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

Using powerpc-linux-objdump -fs hello_world.srec, I see:
hello_world.srec: file format srec architecture: UNKNOWN!, flags 0x00000000:
start address 0x00040004
You're getting warmer ... try README. It's all there. The images are valid.
--Scott

On Thu, 2004-09-30 at 14:36, Scott McNutt wrote:
Using powerpc-linux-objdump -fs hello_world.srec, I see:
hello_world.srec: file format srec architecture: UNKNOWN!, flags 0x00000000:
start address 0x00040004
You're getting warmer ... try README. It's all there. The images are valid.
I presume, then, that I'm either reading the wrong README or the wrong section of it. Thus, following the algorithm given later in the README, I'm asking the list to help.
Anyway, in the readme under "Standalone HOWTO" I read and follow:
=> loads ....fine I load the hello_world.srec
go 40004 blah blah blah ## Starting application at 0x00040004 HANG
hmm....The hang very much bugs me, and I have no idea why it happens, however, I just want to run an image, and lo and behold:
=> imi 0x00040004 Bad Magic Number
What have I read incorrectly, please? When I do a loads, it loads into ram, right? Good deal, my ram starts at address 0x0 so everything should work happily. AFAIK. No dice, though.
What am I missing here?
Thanks Ben
--Scott
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users

In message 1096556093.10111.12.camel@mhpajh5c you wrote:
I presume, then, that I'm either reading the wrong README or the wrong section of it. Thus, following the algorithm given later in the README,
Or you're misinterpreting what you read.
Anyway, in the readme under "Standalone HOWTO" I read and follow:
=> loads ....fine I load the hello_world.srec
go 40004 blah blah blah ## Starting application at 0x00040004
Correct.
HANG
hmm....The hang very much bugs me, and I have no idea why it happens, however, I just want to run an image, and lo and behold:
You must be doing something wrong. This works fine for me.
Ummm... was your image really built for start address 0x00040004?
=> imi 0x00040004 Bad Magic Number
This is normal. Ther eis no image header for standalone applications. [It's "standalone applications", not "standalone application images" - mind the difference. Of course you can also build "standalone application images" which will have a (hopefully valid) image header.]
What have I read incorrectly, please? When I do a loads, it loads into ram, right? Good deal, my ram starts at address 0x0 so everything should
No, it loads to the address you give inthe SRECORD file, this may be RAM, or may be flash, or may be garbage. The result may be different for each of these cases.
Best regards,
Wolfgang Denk
participants (3)
-
Benjamin Collar
-
Scott McNutt
-
Wolfgang Denk