dhruvvyas90 / qemu-rpi-kernel

Qemu kernel for emulating Rpi on QEMU
2.06k stars 363 forks source link

How to use more memory in emulated system #112

Closed cmonty14 closed 4 years ago

cmonty14 commented 4 years ago

Hi,

-M versatilepb restrict the memory configuration to be no more than 256MB.

In order to increase available memory my idea is now to add a file located in host's temporary filesystem and configure this as clients swap.

In Arch Linux, I created this file with qemu-create -f raw /tmp/qemutmp/swap.img 256M

Now the question is how to add this raw file to QEMU when starting the emulated system?

Adding this option to qemu-system-arm -drive "file=/tmp/qemutmp/swap.img,if=none,index=1,media=disk,format=raw,id=disk1" is not working, means there's no additional drive after starting the system.

Can you please advise how to get this additional drive working?

THX

dhruvvyas90 commented 4 years ago

Qemu now support raspi2/3 machine emulation natively. Please check native-emulation folder on the repo.