[U-Boot-Users] Porting Problems :: PPC8270

Hello, We have now managed to partly port U-boot1.0.2 to our custom board. What we can see, with BDI2000 and printf:s, is that the code always reaches board_init_r i.e. We are in RAM.
I am using the PQ2FADS code as base since we are using a Motorola PPC8270.
Now the problems start. I have encountered some strange things:
1. Variable flash_info[], introduced in file flash.c is pointing to flash! Some other variables are also pointing to either flash or 0xffffffff, they should point to some address in RAM.
2. If I run the code on the board without BDI2000, it always crashes sometime after flash_init...
3. If I run the code on the board with BDI2000 along with breakpoints in say board_init_r, cpu_init_r, console_init_r, main_loop I can get all the way to the main_loop and the "CLI"...
Can anybody give me a hint where to look for broken code...
Thanks // Matias

In message 47022.194.237.142.13.1079453822.squirrel@webmail.unisite.se you wrote:
We have now managed to partly port U-boot1.0.2 to our custom board. What we can see, with BDI2000 and printf:s, is that the code always reaches board_init_r i.e. We are in RAM.
...
Now the problems start. I have encountered some strange things:
...
Can anybody give me a hint where to look for broken code...
Your SDRAM init sequence is broken. There is more to it than just setting up the UPM tables.
Best regards,
Wolfgang Denk
participants (2)
-
uboot@sundmangroup.com
-
Wolfgang Denk