lost between in_ram and "bl board_init_r"
Hi all,
I'm trying to run u-boot 1.1.4 on a MPC880 board with 16MB ram and 8MB flash. After a long porting phase now the processor has arrived to relocate_code and once entered there it loops forever between in_ram (start.S) and "bl board_init_r" without calling board_init_r. The u-boot seems to be corrected relocated at 0x00FCA000, the stack seems to be correctly setup but it seems that the printf in board_init_r is never called. I've also enabled a CFG_DRAM_TEST and it is successfull, then I hope no DRAM problems.
Thank you for your help,
Antonio.
Quoted 5 lines · In message <[email protected]> you wrote:
I'm trying to run u-boot 1.1.4 on a MPC880 board with 16MB ram and 8MB flash. After a long porting phase now the processor has arrived to
relocate_codeand once entered there it loops forever betweenin_ram(start.S) and "blboard_init_r" without callingboard_init_r. The u-boot seems to be corrected
So there is a 99.999 % likelyhood that your SDRAM init sequence is incorrect and/or incomplete.
Quoted 3 lines
relocated at
0x00FCA000, the stack seems to be correctly setup but it seems that the printf inboard_init_ris never called. I've also enabled aCFG_DRAM_TESTand it is successfull, then I hope no DRAM problems.
You do. You can be sure of it.
Best regards,
Wolfgang Denk
Signature · 5 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de You are an excellent tactician, Captain. You let your second in com- mand attack while you sit and watch for weakness. -- Khan Noonian Singh, "Space Seed", stardate 3141.9
Problem was solved thanks to Denk suggestions. SDRAM has an internal "mode set register" that can be programmed putting the desired value over the address lines (for example you can configure the burst length), then a special cycle has to be RUN on the cas, ras ... and other lines. If you have power PC you have register MCR, MAR to accomplish the task.
You put the SDRAM register value in MAR, then you use MCR to issue the RUN special cycle that execute a pattern on the bus lines.
Anyway you should read the SDRAM datasheet and processor datasheet.
Probably I was the only not to know this. Anyway, if someone is in trouble I can be more detailed.
Bye.
Quoted 19 lines · Wolfgang Denk
Quoted 5 lines · In message <[email protected]> you wrote:
I'm trying to run u-boot 1.1.4 on a MPC880 board with 16MB ram and 8MB flash. After a long porting phase now the processor has arrived to
relocate_codeand once entered there it loops forever betweenin_ram(start.S) and "blboard_init_r" without callingboard_init_r. The u-boot seems to be correctedSo there is a 99.999 % likelyhood that your SDRAM init sequence is incorrect and/or incomplete.
Quoted 3 lines
relocated at
0x00FCA000, the stack seems to be correctly setup but it seems that the printf inboard_init_ris never called. I've also enabled aCFG_DRAM_TESTand it is successfull, then I hope no DRAM problems.You do. You can be sure of it.
Best regards,
Wolfgang Denk