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

Scott McNutt ScottM at orbacom.com
Thu Sep 30 18:01:30 CEST 2004


> => 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?


More information about the U-Boot mailing list