Hi Alex,
Thanks for sharing. I confirmed that works on DeveloperBox too! But virgl doesn't work (it seems the rasterizer is broken). I guess since I have no hardware GL acceleration.
Thank you,
2020年10月30日(金) 23:21 Alex Bennée alex.bennee@linaro.org:
Hi,
I think I've mentioned them in other threads but to bring it all in one place. Using the images from:
https://download.automotivelinux.org/AGL/release/jellyfish/10.0.0/qemuarm64/...
You just need the kernel image and the agl-demo-platform-crosssdk-qemuarm64.ext4 filesystem. The initrd is a slimmed down rootfs in a RAM disk.
To run with a simple VGA-like frame buffer:
./aarch64-softmmu/qemu-system-aarch64 -cpu host -enable-kvm \ -smp 2 -machine type=virt -serial mon:stdio \ -netdev user,id=unet,hostfwd=tcp::2222-:22 \ -device virtio-net-device,netdev=unet,id=virt-net \ -drive id=disk0,file=agl-demo-platform-crosssdk-qemuarm64.ext4,if=none,format=raw \ -device virtio-blk-device,drive=disk0 \ -soundhw hda \ -device qemu-xhci \ -device usb-tablet \ -device usb-kbd \ -object rng-random,filename=/dev/urandom,id=rng0 \ -device virtio-rng-pci,rng=rng0 \ -device virtio-serial-device \ -chardev null,id=virtcon -device virtconsole,chardev=virtcon -m 4096 \ -kernel ~/images/agl/Image \ -append "console=ttyAMA0 root=/dev/vda" \ -display gtk,show-cursor=on \ -device VGA,edid=on,xmax=1024,ymax=768
Running with virtio-gpu should give a similar 2D frame buffer experience, making the last two lines:
-display gtk,show-cursor=on \ -device virtio-gpu-pci
And finally enabling VirGL for accelerated pass-through you get:
-display gtk,show-cursor=on,gl-on \ -device virtio-gpu-pci,virgl=on
although obviously if your host ends up sending it to softpipe in the end the results won't be as impressive. I've also replicated the config (find it in /boot) and re-built my own kernel current stable kernel and it worked fine.
-- Alex Bennée