Skip to content
Permalink
Browse files

qemu fixes.

fallback to no-KVM mode. Comment out broken USB storage attach on rpi3.
  • Loading branch information
nolanl committed Feb 5, 2020
1 parent 9a655fe commit 3fd5d34429c88043f206c202b09c182521c4d33f
Showing with 3 additions and 2 deletions.
  1. +3 −2 Makefile
@@ -157,6 +157,7 @@ PHONY += clean
clean: fs_clean initrd_clean
rm -rf $(BUILDDIR)

PHONY += wireguard_src
WIREGUARD_SRC := $(WIREGUARDDIR)/contrib/kernel-tree/create-patch.sh
wireguard_src: $(WIREGUARD_SRC)
$(WIREGUARD_SRC):
@@ -638,11 +639,11 @@ qemu-run: $(RPI3_IMG) $(TMP_USB_IMG)
-kernel $(IMGFSDIR)/$(KERNEL_IMG) -initrd $(INITRD) \
-dtb $(IMGFSDIR)/bcm2837-rpi-3-b.dtb \
-m 1024 -no-reboot -append "8250.nr_uarts=1 console=tty1 console=ttyAMA0,115200" \
-drive file=$(RPI3_IMG),if=sd,format=raw -drive file=$(TMP_USB_IMG),if=virtio,format=raw
-drive file=$(RPI3_IMG),if=sd,format=raw #-drive file=$(TMP_USB_IMG),if=virtio,format=raw
else ifeq ($(ARCH), amd64)
qemu-run: $(PC_IMG) $(TMP_USB_IMG)
@echo -e "\nctrl-a x to exit qemu\n"
qemu-system-x86_64 -enable-kvm -nographic -m 2048 \
qemu-system-x86_64 -accel kvm:tcg -nographic -m 1024 \
-hda $(PC_IMG) -hdb $(TMP_USB_IMG)
endif
PHONY += qemu-run

0 comments on commit 3fd5d34

Please sign in to comment.
You can’t perform that action at this time.