[U-Boot] qemu and baremetal arm prog

Wolfgang Denk wd at denx.de
Tue Oct 24 18:31:31 UTC 2017


Dear Anupam,

In message <CAEmaDyHtO=2+jZXLa=afZ6+oyxvndaRAbhfL-SSJhHV-kmzmyQ at mail.gmail.com> you wrote:
>
>     printf "bootm 0x%X\n" $(expr $(stat -c%s u-boot.bin) + 65536)
>     bootm 0x218F20

The value 0x218F20 printed here is the offset where your image
starts relative to the begin of the U-Boot binary.

> **Then run :**
> 
>     qemu-system-arm -M vexpress-a9 -kernel flash.bin -m 128M -nographic
> 
> Interrupted it and then run `bootm 0x218F20`
> But it says
> 
>     Wrong Image Format for bootm command
>     ERROR: can't get kernel image!

This can only be correct if your U-Boot binary was loaded to address
0x0000, which probably is not correct.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"We don't care.  We don't have to.  We're the Phone Company."


More information about the U-Boot mailing list