Skip to contentSkip to conversation

lost between in_ram and "bl board_init_r"

U-Boot-Users Antonio Di Bacco 2 participants 3 messages May 9, 2006 – May 11, 2006

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
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_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

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 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.

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
#2 lore raw

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_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

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 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.

You do. You can be sure of it.

Best regards,

Wolfgang Denk