Код: Выделить всё
qemu-system-aarch64 -machine virt-9.0,virtualization=on,gic_version=3 -cpu max \
-smp 8 -m 8G -kernel /mnt/zroot-133/zroot-133/A_FILES/OS/Linux/RaspiOS/Image \
-append "root=/dev/vda2 rootfstype=ext4 rw panic=0 console=ttyAMA0 kvm-arm.mode=nested" \
-drive format=raw,file=/mnt/zroot-133/zroot-133/A_FILES/OS/Linux/RaspiOS/2024-07-04-raspios-bookworm-arm64-big.img,if=none,id=hd0 \
-device virtio-blk,drive=hd0,bootindex=0 \
-netdev tap,id=mynet0,ifname=tap0,script=no,downscript=no \
-device virtio-net-pci,netdev=mynet0,mac=52:55:00:d1:55:01 -device usb-ehci \
-device usb-kbd -device virtio-tablet-pci -usb -device virtio-serial-pci \
-spice port=5930,disable-ticketing=on \
-device virtserialport,chardev=spicechannel0,name=com.redhat.spice.0 \
-chardev spicevmc,id=spicechannel0,name=vdagent -display spice-app &`
https://2net.co.uk/blog/ каракатица-android12.html
с некоторыми отличиями. Поскольку я использую Raspi OS/Debian Bookworm, эмулируемый с помощью qemu-system-aarch64 и Android 13, я использовал следующие команды:
Код: Выделить всё
$ repo init -u https://android.googlesource.com/platform/manifest -b android-13.0.0_r6
$ repo sync -c
$ source build/envsetup.sh
$ lunch aosp_cf_arm64_phone-userdebug
$ m
Код: Выделить всё
pi@raspberrypi:/mnt/droplet/mnt/zroot-133/zroot-133/A_FILES/OS/Android/2net-co-uk/aosp_cf_arm64_phone-userdebug $ source build/envsetup
pi@raspberrypi:/mnt/droplet/mnt/zroot-133/zroot-133/A_FILES/OS/Android/2net-co-uk/aosp_cf_arm64_phone-userdebug $ lunch aosp_cf_arm64_phone-userdebug
Код: Выделить всё
/mnt/droplet/mnt/zroot-133/zroot-133/A_FILES/OS/Android/2net-co-uk/aosp_cf_arm64_phone-userdebug/build/blueprint/microfactory/microfactory.bash: riga 62:
/mnt/droplet/mnt/zroot-133/zroot-133/A_FILES/OS/Android/2net-co-uk/aosp_cf_arm64_phone-userdebug/out/microfactory_Linux: cannot execute binary file: exe Format not valid
Код: Выделить всё
pi@raspberrypi:/mnt/droplet/mnt/zroot-133/zroot-133/A_FILES/OS/Android/2net-co-uk/aosp_cf_arm64_phone-userdebug/out/target/product $ ls
vsoc_arm64
Подробнее здесь: https://stackoverflow.com/questions/790 ... -not-valid