I have a System76 Astra (ALTRAD8UD2-1L2Q) with lots of space and ram. None of that is doing me much good if the Rpi5 system images I want to virtualize with either give me a VGA or serial console. Of course, I cannot just boot a plain Rpi5 image, that would be #tooeasy. When enabling the VGA driver I just get the TianoCore boot shell It does not see the qcow2 filesystem as a boot device. If I
ls fs0:
I see some files, but the TianoCore BIOS screen never lists a bootable file system.
Am I missing a .efi
driver somewhere?
For console:
- video=none
- Copied the initrd and the kernel from the qcow2 file
- defined the extra dtd
- updated cmdline.txt to add
console=ttyAMA0,115200
- updated config.txt to add
enable_uart=1
With some combinations I get a serial connection but no login prompt, but mostly I donāt get any sign of boot.
Console 1:
<console type="pty" tty="/dev/pts/6">
<source path="/dev/pts/6"/>
<target type="virtio" port="0"/>
<alias name="console0"/>
</console>
Console VirtIO Serial 0:
<controller type="virtio-serial" index="0">
<alias name="virtio-serial0"/>
<address type="pci" domain="0x0000" bus="0x03" slot="0x00" function="0x0"/>
</controller>
And Iāve tried defining the dtb for the bcm2712-rpi-5-b:
<os firmware="efi">
<type arch="aarch64" machine="virt-8.2">hvm</type>
<firmware>
<feature enabled="yes" name="enrolled-keys"/>
<feature enabled="yes" name="secure-boot"/>
</firmware>
<loader readonly="yes" type="pflash">/usr/share/AAVMF/AAVMF_CODE.ms.fd</loader>
<nvram template="/usr/share/AAVMF/AAVMF_VARS.ms.fd">/var/lib/libvirt/qemu/nvram/2501-rpi5-build_VARS.fd</nvram>
<kernel>/VMs/l_2501-rpi5-build/kernel_2712.img</kernel>
<initrd>/VMs/l_2501-rpi5-build/initramfs_2712</initrd>
<cmdline>rw earlyprintk loglevel=8 root=/dev/vda1 rootdelay=1 console=ttyAMA0,115200 rootfstype=ext4</cmdline>
<dtb>/VMs/l_2501-rpi5-build/bcm2712-rpi-5-b.dtb</dtb>
<boot dev="hd"/>
<bootmenu enable="yes"/>
</os>
Also, Iāve been referencing Perplexity: https://www.perplexity.ai/search/i-am-running-an-arm64-server-i-QG9Ir_3iQUWrXgl9uBjVzw
Search results on S/O mostly seem to focus on amd64 based emulation (ok)ā¦and after looking at so much of this Iām not sure thereās much of any difference by being on a fancy ARM CPU. #gottabeabetterway