[U-Boot-Users] Running test code from RAM while having GOT pointing to flash

Wolfgang Denk wd at denx.de
Tue Oct 25 08:50:41 CEST 2005


In message <4A062D477D842B4C8FC48EA5AF2D41F20152806A at us-bv-m23.global.tektronix.net> you wrote:
> My code seems to be crashing in the relocate_code routine while switching
> from flash to RAM.  There was an address_probe fixup which was not enabled
> And I enabled it. So, the relocation table (GOT) gets copied successfully
> From flash to RAM but the code dies seomewhere between coping the fixups

I think you misunderstand the function of the GOT.

> And the in_ram label.  Somehow, on my BDI, it sees an exception and goes
> to the reset vector i.e 0x100.

See the FAQ at http://www.denx.de/wiki/view/DULG/UBootCrashAfterRelocation

> My approach is to avoid the GOT stuff and write a test routine which is

The "GOT stuff" is known to work just fine. I suggest  you  focus  on
the  remaining  stuff, i. e. your SDRAM init sequence. Again, see the
FAQ.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I often quote myself; it adds spice to my conversation.  - G. B. Shaw




More information about the U-Boot mailing list