commit 07e66c462b0f8d735c3390ac3028b7fc8e9b5059
parent 4229b42d82383e9675eb57b56eaf20007873c996
Author: Daniel Barlow <dan@telent.net>
Date: Sat, 9 Dec 2023 15:53:40 +0000
use virtio-bk-pci instead of virtio-bk-device
u-boot is happy with either but Linux can autodetect the PCI-based
hardware
Diffstat:
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
@@ -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])))