* runqemu on genericarm64: "u-boot.bin not found" error
@ 2025-01-27 11:27 Michael Opdenacker
2025-01-27 11:47 ` [poky] " Ross Burton
0 siblings, 1 reply; 3+ messages in thread
From: Michael Opdenacker @ 2025-01-27 11:27 UTC (permalink / raw)
To: Ross Burton; +Cc: poky@lists.yoctoproject.org, michael.opdenacker
Ross, all,
Probably not a surprise for some of you, but I figured it's good to
report this somewhere:
I generated an image for the "genericarm64" machine, and when trying to
use the "runqemu" command, I get this error:
$ runqemu nographic slirp
runqemu - INFO - Running bitbake -e ...
runqemu - ERROR - BIOS
/home/mike/work/yocto/master/poky/build-genericarm64/tmp/deploy/images/genericarm64/u-boot.bin
not found
runqemu - INFO - Cleaning up
runqemu - INFO - Host uptime: 670446.07
That's not a surprise, as the bootloader for this image is based on grub.
I tried to modify meta-yocto-bsp/conf/machine/genericarm64.conf to use
the "grub-efi-bootaa64.efi" file instead. However, while runqemu doesn't
complain any more, the virtual machine doesn't seem to boot.
Any workaround for testing the "genericarm64" machine through the
"runqemu" script?
In the long run, it would be great if the normal "runqemu" command
worked out of the box.
Cheers
Michael.
--
Michael Opdenacker
Root Commit
Yocto Project and OpenEmbedded Training course - Learn by doing:
https://rootcommit.com/training/yocto/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [poky] runqemu on genericarm64: "u-boot.bin not found" error
2025-01-27 11:27 runqemu on genericarm64: "u-boot.bin not found" error Michael Opdenacker
@ 2025-01-27 11:47 ` Ross Burton
2025-01-27 12:13 ` Michael Opdenacker
0 siblings, 1 reply; 3+ messages in thread
From: Ross Burton @ 2025-01-27 11:47 UTC (permalink / raw)
To: michael.opdenacker@rootcommit.com; +Cc: poky@lists.yoctoproject.org
On 27 Jan 2025, at 11:27, Michael Opdenacker via lists.yoctoproject.org <michael.opdenacker=rootcommit.com@lists.yoctoproject.org> wrote:
>
> Ross, all,
>
> Probably not a surprise for some of you, but I figured it's good to report this somewhere:
>
> I generated an image for the "genericarm64" machine, and when trying to use the "runqemu" command, I get this error:
>
> $ runqemu nographic slirp
> runqemu - INFO - Running bitbake -e ...
> runqemu - ERROR - BIOS /home/mike/work/yocto/master/poky/build-genericarm64/tmp/deploy/images/genericarm64/u-boot.bin not found
> runqemu - INFO - Cleaning up
> runqemu - INFO - Host uptime: 670446.07
>
> That's not a surprise, as the bootloader for this image is based on grub.
>
> I tried to modify meta-yocto-bsp/conf/machine/genericarm64.conf to use the "grub-efi-bootaa64.efi" file instead. However, while runqemu doesn't complain any more, the virtual machine doesn't seem to boot.
>
> Any workaround for testing the "genericarm64" machine through the "runqemu" script?
>
> In the long run, it would be great if the normal "runqemu" command worked out of the box.
From the genericarm64 README:
There is also limited support for booting a genericarm64 image inside QEMU. When
building the image also build the `u-boot` recipe to build the required
firmware (note that this firmware will _not_ boot on real hardware), then use
`runqemu` as usual.
That uboot will then chainload into grub.
I don’t think it’s appropriate to always build the uboot because there’s a risk that people will think it’s suitable for the target hardware, when it’s only useful with a qemu.
Ross
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [poky] runqemu on genericarm64: "u-boot.bin not found" error
2025-01-27 11:47 ` [poky] " Ross Burton
@ 2025-01-27 12:13 ` Michael Opdenacker
0 siblings, 0 replies; 3+ messages in thread
From: Michael Opdenacker @ 2025-01-27 12:13 UTC (permalink / raw)
To: Ross Burton; +Cc: michael.opdenacker, poky@lists.yoctoproject.org
Hi Ross,
Thanks for these details!
On 1/27/25 12:47, Ross Burton wrote:
> On 27 Jan 2025, at 11:27, Michael Opdenacker via lists.yoctoproject.org <michael.opdenacker=rootcommit.com@lists.yoctoproject.org> wrote:
>> Ross, all,
>>
>> Probably not a surprise for some of you, but I figured it's good to report this somewhere:
>>
>> I generated an image for the "genericarm64" machine, and when trying to use the "runqemu" command, I get this error:
>>
>> $ runqemu nographic slirp
>> runqemu - INFO - Running bitbake -e ...
>> runqemu - ERROR - BIOS /home/mike/work/yocto/master/poky/build-genericarm64/tmp/deploy/images/genericarm64/u-boot.bin not found
>> runqemu - INFO - Cleaning up
>> runqemu - INFO - Host uptime: 670446.07
>>
>> That's not a surprise, as the bootloader for this image is based on grub.
>>
>> I tried to modify meta-yocto-bsp/conf/machine/genericarm64.conf to use the "grub-efi-bootaa64.efi" file instead. However, while runqemu doesn't complain any more, the virtual machine doesn't seem to boot.
>>
>> Any workaround for testing the "genericarm64" machine through the "runqemu" script?
>>
>> In the long run, it would be great if the normal "runqemu" command worked out of the box.
> From the genericarm64 README:
>
> There is also limited support for booting a genericarm64 image inside QEMU. When
> building the image also build the `u-boot` recipe to build the required
> firmware (note that this firmware will _not_ boot on real hardware), then use
> `runqemu` as usual.
>
> That uboot will then chainload into grub.
>
> I don’t think it’s appropriate to always build the uboot because there’s a risk that people will think it’s suitable for the target hardware, when it’s only useful with a qemu.
Understood! Indeed the following does the trick:
IMAGE_INSTALL:append = " u-boot"
Thanks again
Michael.
--
Michael Opdenacker
Root Commit
Yocto Project and OpenEmbedded Training course - Learn by doing:
https://rootcommit.com/training/yocto/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-27 12:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-27 11:27 runqemu on genericarm64: "u-boot.bin not found" error Michael Opdenacker
2025-01-27 11:47 ` [poky] " Ross Burton
2025-01-27 12:13 ` Michael Opdenacker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox