Skip to contentSkip to conversation

after a sw reset, u-boot hangs in relocate_code

U-Boot-Users Jaka Močnik 2 participants 2 messages Mar 4, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 5 lines

Given that it is a problem on restart, I would speculate you have a peripheral (ethernet is your #1 suspect) that isn"t being shut down before you reset/reboot. As a result, a packet comes in after you reboot and your peripheral (ethernet) DMAs the packet into memory in the middle of somewhere it doesn"t belong.

it's certainly an interesting thought - I will look into it, but I do not think that this is the cause of my problems: if it were, I would expect the CPU to throw an exception and go down the hard way. it doesn't: it just hangs (or so it seems - I am currently JTAG-less, so I can't really tell what's going on inside). also, in that case the board would probably not behave as deterministically as it does (as the problem would be caused by an unpredictable external event). besides, eth is really the only possible culprit since the problem occurs even when rebooting from u-boot, where eth is the only thing that can mess with memory asynchronously. serial console I/O is polling-based...

regards,
jaKa

Signature · 2 lines
e-mail: jaka at activetools.si
w3:     http://fish.homeunix.org/people/jaka/
#1 lore raw
Quoted 6 lines · In message <1109963987.4094.11.camel@pink> you wrote:

it's certainly an interesting thought - I will look into it, but I do not think that this is the cause of my problems: if it were, I would expect the CPU to throw an exception and go down the hard way. it doesn't: it just hangs (or so it seems - I am currently JTAG-less, so I can't really tell what's going on inside). also, in that case the board

There is a likelyhood of some 99.5% that you are asking a FAQ. Like this one:
http://www.denx.de/twiki/bin/view/DULG/UBootCrashAfterRelocation

I bet your SDRAM init sequence is broken.

Best regards,

Wolfgang Denk

Signature · 3 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Brain fried - Core dumped