QEMU VM of Android 14 GSI ARM64 on Termux
I am trying to create QEMU VM of Android 14 GSI ARM64 on Termux
Error msg
when change to
pkg update && pkg install curl qemu-utils qemu-common qemu-system-aarch64-headless -y
mkdir ~/android14 && cd ~/android14
curl https://dl.google.com/developers/android/udc/images/gsi/gsi_gms_arm64-exp-UP1A.231005.007-10754064-77f9c9df.zip -o gsi_gms_arm64-exp-UP1A.231005.007-10754064-77f9c9df.zip
unzip gsi_gms_arm64-exp-UP1A.231005.007-10754064-77f9c9df.zip
curl https://dl.google.com/android/gki/gki-certified-boot-android14-6.1-2024-12_r1.zip -o gki-certified-boot-android14-6.1-2024-12_r1.zip
unzip gki-certified-boot-android14-6.1-2024-12_r1.zip
qemu-img create -f qcow2 -o preallocation=full ~/android14/android14.img 16G
qemu-system-aarch64 -machine virt -m 2048 -smp cpus=1 -cpu cortex-a72 -drive if=pflash,format=raw,read-only=on,file=$PREFIX/share/qemu/bios.bin -drive if=pflash,format=raw,read-only=on,file=$PREFIX/share/qemu/vgabios-cirrus.bin -netdev user,id=n1,dns=8.8.8.8,hostfwd=tcp::2222-:22 -device virtio-net,netdev=n1 -drive file=~/android14/system.img,format=raw,id=system -drive file=~/android14/vbmeta.img,format=raw,id=vbmeta -drive file=~/android14/android14.img,format=qcow2 -kernel ~/android14/boot-6.1.img -nographic
pkg update && pkg install curl qemu-utils qemu-common qemu-system-aarch64-headless -y
mkdir ~/android14 && cd ~/android14
curl https://dl.google.com/developers/android/udc/images/gsi/gsi_gms_arm64-exp-UP1A.231005.007-10754064-77f9c9df.zip -o gsi_gms_arm64-exp-UP1A.231005.007-10754064-77f9c9df.zip
unzip gsi_gms_arm64-exp-UP1A.231005.007-10754064-77f9c9df.zip
curl https://dl.google.com/android/gki/gki-certified-boot-android14-6.1-2024-12_r1.zip -o gki-certified-boot-android14-6.1-2024-12_r1.zip
unzip gki-certified-boot-android14-6.1-2024-12_r1.zip
qemu-img create -f qcow2 -o preallocation=full ~/android14/android14.img 16G
qemu-system-aarch64 -machine virt -m 2048 -smp cpus=1 -cpu cortex-a72 -drive if=pflash,format=raw,read-only=on,file=$PREFIX/share/qemu/bios.bin -drive if=pflash,format=raw,read-only=on,file=$PREFIX/share/qemu/vgabios-cirrus.bin -netdev user,id=n1,dns=8.8.8.8,hostfwd=tcp::2222-:22 -device virtio-net,netdev=n1 -drive file=~/android14/system.img,format=raw,id=system -drive file=~/android14/vbmeta.img,format=raw,id=vbmeta -drive file=~/android14/android14.img,format=qcow2 -kernel ~/android14/boot-6.1.img -nographic
qemu-system-aarch64: device requires 67108864 bytes, block backend provides 131072 bytes
qemu-system-aarch64: device requires 67108864 bytes, block backend provides 131072 bytes
edk2-aarch64-code.fd
QemuLoadKernelImage: LoadImage(): Unsupported
BdsDxe: failed to load Boot0001 "UEFI Misc Device" from PciRoot(0x0)/Pci(0x2,0x0): Not Found
BdsDxe: failed to load Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x3,0x0): Not Found BdsDxe: failed to load Boot0003 "UEFI Misc Device 3" from PciRoot(0x0)/Pci(0x4,0x0): Not Found BdsDxe: failed to load Boot0004 "UEFI Non-Block Boot Device" from VenMedia(1428F772-B64A-441E-B8C3-9EBDD7F893C7): Not Found >>Start PXE over IPv4.
QemuLoadKernelImage: LoadImage(): Unsupported
BdsDxe: failed to load Boot0001 "UEFI Misc Device" from PciRoot(0x0)/Pci(0x2,0x0): Not Found
BdsDxe: failed to load Boot0002 "UEFI Misc Device 2" from PciRoot(0x0)/Pci(0x3,0x0): Not Found BdsDxe: failed to load Boot0003 "UEFI Misc Device 3" from PciRoot(0x0)/Pci(0x4,0x0): Not Found BdsDxe: failed to load Boot0004 "UEFI Non-Block Boot Device" from VenMedia(1428F772-B64A-441E-B8C3-9EBDD7F893C7): Not Found >>Start PXE over IPv4.
1 Reply
qemu does not work with android. hence, google maintains a fork of qemu as android emulator in android studio.