RE: [U-Boot-Users] RE: help: images in example directory are inva lid

=> loads ....fine I load the hello_world.srec
Good.
go 40004 blah blah blah ## Starting application at 0x00040004
Good.
HANG
Bad. You should see something like (PQ2FADS board):
==> loads ## Ready for S-Record download ...
## First Load Addr = 0x00040000 ## Last Load Addr = 0x00050323 ## Total Size = 0x00010324 = 66340 Bytes ## Start Addr = 0x00040004 => go 40004 this is a test ## Starting application at 0x00040004 ... Example expects ABI version 2 Actual U-Boot ABI version 2 Hello World argc = 5 argv[0] = "40004" argv[1] = "this" argv[2] = "is" argv[3] = "a" argv[4] = "test" argv[5] = "<NULL>" Hit any key to exit ...
## Application terminated, rc = 0x0 =>
hmm....The hang very much bugs me, and I have no idea why it happens
Set a breakpoint and debug. This should not happen. Check your addresses -- make sure they're valid.
I'm assuming you have RAM at 40000, and u-boot is running high enough above it (i.e. your stack stack, heap, etc, are not being corrupted).
and lo and behold:
=> imi 0x00040004 Bad Magic Number
imi is for u-boot image files (see mkimage).
What have I read incorrectly, please? From 'loads' to 'go' you are executing the correct
commands. Check your addresses with objdump.
--Scott
participants (1)
-
Scott McNutt