Running u-boot standalone hello_world on an image partition with qemu
Tom Rini
trini at konsulko.com
Thu Nov 3 19:09:30 CET 2022
On Thu, Nov 03, 2022 at 09:54:40AM +0000, Lists Nick Betteridge wrote:
> I'm developing on an ubuntu x86 machine, trying to run the u-boot
> hello_world standalone application which resides on an image |sd.img| which
> contains a partition
>
> I've compiled u-boot (|v2022.10|) with |qemu-x86_64_defconfig|
>
> I run qemu with "|qemu-system-x86_64 -m 1024 -nographic -bios u-boot.rom
> -drive format=raw,file=sd.img"|
>
> u-boot starts up, doesn't find a script, doesn't detect tftp, and awaits a
> command. If I type |"ext4ls ide 0:1|", I can clearly see hello_world.bin
> (|3932704 hello_world.bin|).
>
> When I do a |ext4load ide 0:1 0x40000 hello_world.bin| (in preparation for
> |go 40000 This is another test|), qemu/u-boot restarts.
>
> 0x40000 is the |CONFIG_STANDALONE_LOAD_ADDR| for x86.
>
> I have also tried making an image of hello_world |"mkimage -n "Hello stand
> alone" -A x86_64 -O u-boot -T standalone -C none -a 0x40000 -d
> hello_world.bin -v hello_world.img|" and tried to load the image into
> 0x40000 with the intention of using |bootm| in case of cache issues -
> qemu/u-boot still resets.
>
> Could anyone possibly point out the basic mistake I'm making?
Using the standalone API on platforms where we support UEFI applications
is strongly discouraged. If some part of the UEFI support in U-Boot is
lacking for your use case we strongly encourage patches adding support
for that (as we're doing right now for enhancing SPI support).
--
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20221103/8faeb925/attachment.sig>
More information about the U-Boot
mailing list