I am trying to run a raspberry pi emulator on Ubuntu. I have my unzipped raspberry image named rpi.img and qemu folder all in the rpi directory.
Am running this command:
qemu-system-arm -M versatilepb -cpu arm1176 -m 256 \
-kernel qemu-rpi-kernel/kernel-qemu-4.19.50-buster -hda rpi.img \
-append "dwc_otq.lpm_enable=0 root=/dev/sda2 console=tt1 rootfstype=exr4 elavator=deadline rootwait" \
-dtb qemu-rpi-kernel versatile-pb-buster.dtb -no-reboot -serial stdio
It gives me the warning:
WARNING: Image format was not specified for 'rpi.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
qemu-system-arm: versatile-pb-buster.dtb: drive with bus=0, unit=0 (index=0) exists
and the emulator does not start. Where exactly should i specify the "format =raw" i have tried a couple of solutions and i get errors or the same warning.
Thanks