From 07e66c462b0f8d735c3390ac3028b7fc8e9b5059 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sat, 9 Dec 2023 15:53:40 +0000 Subject: [PATCH] use virtio-bk-pci instead of virtio-bk-device u-boot is happy with either but Linux can autodetect the PCI-based hardware --- pkgs/run-liminix-vm/run-liminix-vm.fnl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/run-liminix-vm/run-liminix-vm.fnl b/pkgs/run-liminix-vm/run-liminix-vm.fnl index 9d059cf4..e52c6d71 100644 --- a/pkgs/run-liminix-vm/run-liminix-vm.fnl +++ b/pkgs/run-liminix-vm/run-liminix-vm.fnl @@ -79,7 +79,7 @@ (if uboot ["-drive" (.. "if=pflash,format=raw,file=" uboot ) "-drive" (.. "if=none,format=raw,id=hd0,file=" disk) - "-device" "virtio-blk-device,drive=hd0" + "-device" "virtio-blk-pci,drive=hd0" ] (let [cmdline (.. cmdline " mem=256M liminix mtdparts=phram0:16M(rootfs) phram.phram=phram0," options.phram-address ",16Mi,65536 root=/dev/mtdblock0")] ["-kernel" options.kernel "-append" cmdline])))