Skip to contentSkip to conversation

Relocation on MPC852T AdderII

U-Boot-Users Raghu 2 participants 2 messages Jul 30, 2003

lore
Share & tools
lore

Raghu

author
#0 lore raw

Hi,

Working on u-boot for AdderII ( MPC852T ) I am able to get SMC1 up ( CPU_CLK issue ).

Now the code is copied into RAM and is executing from RAM.

But it is not able to branch to func "board_init_r" I have confirmed using BDI2000 the the code for "board_init_r" is actually present at that RAM location.

The branch is done in func "clear_bss"
cpu/mpc8xx/start.S file.

But the PC always jumps to "trap_init" function. I am using the "u-boot.lds" file from FADS board.

I have attached the assembly listing and dump from BDI.

Regards,
Raghu.

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: u-boot_dump.txt
Url: http://lists.denx.de/pipermail/u-boot/attachments/20030730/1e452b88/attachment.txt

#1 lore raw
Quoted 8 lines · In message <[email protected]> you wrote:

Now the code is copied into RAM and is executing from RAM.

But it is not able to branch to func "board_init_r" I have confirmed using BDI2000 the the code for "board_init_r" is actually present at that RAM location.

This is a FAQ. Your SDRAM initialization sequence is broken. Remeber that it is NOT sufficient to set up the memory controller, you must also initialize the SDRAM chips.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Living on Earth may be expensive, but it includes an annual free trip
around the Sun.