Browse Source

fix warning about image type

subDesTagesMitExtraKaese 3 weeks ago
parent
commit
68f4fe9e67
1 changed files with 6 additions and 5 deletions
  1. 6 5
      start-vm.sh

+ 6 - 5
start-vm.sh

@@ -30,8 +30,9 @@ cd "$SCRIPT_PATH"
 umount "$mountdir"
 losetup -d "$loop"
 
-
-#qemu-system-arm -kernel "$kernel" -cpu arm1176 -m 256 -M versatilepb -serial stdio -append "root=/dev/sda2 rootfstype=ext4 rw" -dtb "$dtb" -hda "$image" -no-reboot
-
-qemu-img resize "$image" 4G
-qemu-system-arm -M raspi2b -append "rw earlyprintk loglevel=8 console=ttyAMA0,115200 dwc_otg.lpm_enable=0 root=/dev/sda2 rootdelay=1" -sd "$image" -dtb "$dtb" -kernel "$kernel" -m 1G -smp 4 -serial stdio -usb -device usb-mouse -device usb-kbd 2>&1 | tee qemu.log
+qemu-img resize -f raw "$image" 4G
+qemu-system-arm -M raspi2b \
+    -append "rw earlyprintk loglevel=8 console=ttyAMA0,115200 dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2 rootdelay=1" \
+    -drive file="$image",format=raw,if=sd \
+    -dtb "$dtb" -kernel "$kernel" -m 1G -smp 4 \
+    -serial stdio -usb -device usb-mouse -device usb-kbd 2>&1 | tee qemu.log