Generally runqemu is inteded for (and tested with) specifically qemux86_64 MACHINE (or any other qemu* machine). So if testing your particular target bootloader with qemu isn't actually important, you can rebuild the image for qemux86_64, and in that configuration there is no bootloader: qemu boots the kernel directly.
Alex On Thu, 11 Jan 2024 at 08:59, Sean Nyekjaer <[email protected]> wrote: > > Hi, > > We have an x86_64 machine that we create an wic image for. > For bootloader we are using UEFI boot with u-boot as a EFI payload. > > U-boot doesn’t have support for virtio-scsi-pci, so it’s can’t detect a disk. > U-boot however does some tests with the ahci driver: > https://source.denx.de/u-boot/u-boot/-/blob/master/scripts/build-efi.sh#L116 > It also works for our case. > > But since the runqemu script checks for drivetype by “/dev/sd” I can’t easily > add something like what u-boot uses. > > Any idea’s? > > For now I use in machine conf: > QB_DEFAULT_FSTYPE = "wic" > QB_ROOTFS = "none" > QB_OPT_APPEND = "-drive > id=disk,file=@DEPLOY_DIR_IMAGE@/image-qemux86-64.rootfs.wic,if=none,format=raw > -device ahci,id=ahci -device ide-hd,drive=disk,bus=ahci.0” > > But it would be nice to have the ROOTFS env var expanded instead of declaring > it explicitly here. > > Best regards > Sean Nyekjær
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#193538): https://lists.openembedded.org/g/openembedded-core/message/193538 Mute This Topic: https://lists.openembedded.org/mt/103658327/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
