help: images in example directory are invalid
Greetings folks
As I've mentioned, u-boot is running on the board now. However, I've so far failed to get a stand-alone application to run. For instance, when I load hello_world.srec, then check it with iminfo, I get "bad magic number".
Using mkimage -l hello_world.srec, I get 'Bad Magic Number:
"hello_world.srec" is no valid image' I get the same result for hello_world (the elf format).
Using powerpc-linux-objdump -fs hello_world.srec, I see:
hello_world.srec: file format srec
architecture: UNKNOWN!, flags 0x00000000:
start address 0x00040004
Contents of section .sec1:
40000 000182b0 9421ffd8 7c0802a6 429f0005 .....!..|...B... 40010 bf610014 7fc802a6 9001002c 801efff0 .a.........,.... 40020 7c7c1b78 7fc0f214 7c832378 7c9b2378 ||.x....|.#x|.#x
Can anyone explain why u-boot is building invalid images?
Thanks
Ben
Signature · 5 lines
Benjamin Collar Siemens AG CT SE 2 Embedded Linux 089-636-53711
Re your subject: No, they are not.
Quoted 5 lines · In message <1096540775.5348.38.camel@mhpajh5c> you wrote:
As I've mentioned, u-boot is running on the board now. However, I've so far failed to get a stand-alone application to run. For instance, when I load hello_world.srec, then check it with iminfo, I get "bad magic number".
What makes you think that a stand-alone application should have a valid header? Did you use mkimage to build it?
Quoted 3 lines
Using mkimage -l hello_world.srec, I get 'Bad Magic Number:
"hello_world.srec" is no valid image' I get the same result forhello_world(the elf format).
Of course.
Quoted 1 line
Can anyone explain why u-boot is building invalid images?
These are vaid images. They just don't have a U-Boot image header as you didn't add one.
Best regards,
Wolfgang Denk
Signature · 3 lines
Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de He who hesitates is not only lost, but miles from the next exit.