Skip to contentSkip to conversation

Baremetal && Qemu vexpress && U-boot

U-Boot Mark L. 1 participant 1 message Jan 8, 2017

lore
Share & tools
lore

Mark L.

author
#0 lore raw

Hi,

I have a problem with a baremetal program I would like U-boot to launch inside a QEMU. Versions:
Qemu: 2.2.1. Machine vexpress-a9
U-boot: fetched "latest" from ftp (dated as 11/07/2016)
U-boot machine: vexpress_ca9x4_config

I followed the instructions in this link:
https://balau82.wordpress.com/2010/03/10/u-boot-for-arm-on-qemu/

I end up with:
"Wrong Image Format for bootm command
ERROR: can?t get kernel image!"

When executing iminfo, I get:
"## Checking Image at 80008000 ...
Unknown image format!"

Even modifying the test.ld with a start address of 80008000 instead of 10000, and the same for mkimage won't give any result. I provide a raw binary (just like the tuto) for my app with no headers.

I think the "cat u-boot test.uimg > flash.bin" has become more than useless now.
After u-boot compilation, I can't use the binary version: no prompt will show and a crash is waiting to happen. One has to use the u-boot image. How can I plug my baremetal application in this case?

I tried hard with "md" to find my code (in U-boot) but the code is so scattered that I lost myself in the process.

Any help would be very appreciated

Thanks

--?
Mark