linux - Why can't I adjust size used by my android emulator? -
i try run android emulator on vps debian8.2 installed, has 1gb memory. bash script used start android image:
1 #!/bin/bash 2 3 dir=./ 4 5 $dir/emulator64-ranchu-arm64 -system $dir/system.img -data $dir/userdata.img -ramdisk $dir/ramdisk.img -kernel $dir/image -cache $dir/cache.img -sysdir $dir -no-window -verbose -show-kernel
but failed with:
[...] concatenated qemu options: ./qemu/linux-x86_64/qemu-system-aarch64 -cpu cortex-a57 -machine type=ranchu -m 1024 -append 'console=ttyama0,38400 keep_bootcon earlyprintk=ttyama0' -serial mon:stdio -kernel .//image -initrd .//ramdisk.img -drive index=0,id=sdcard,file=.//system.img -device virtio-blk-device,drive=sdcard -drive index=1,id=userdata,file=.//.//userdata.img -device virtio-blk-device,drive=userdata -drive index=2,id=cache,file=.//cache.img -device virtio-blk-device,drive=cache -drive index=3,id=system,file=.//system.img -device virtio-blk-device,drive=system -netdev user,id=mynet -device virtio-net-device,netdev=mynet -show-cursor -nographic -l lib/pc-bios qemu-system-aarch64: cannot set guest memory 'ranchu.ram': cannot allocate memory
it seems android image used 1024mb memory can not allocated try adjust memory size adding -memory 512
emulator. still same error , can see memory size argument in "concatenated qemu options" still -m 1024
. wrong something? why memory size option can not adjusted?
thanks help:)
Comments
Post a Comment