Add VirtIO net support
This commit is contained in:
4
Makefile
4
Makefile
@ -177,4 +177,6 @@ sim: $(spike) $(bbl)
|
||||
|
||||
.PHONY: qemu
|
||||
qemu: $(qemu) $(bbl) $(rootfs)
|
||||
$(qemu) -nographic -machine virt -kernel $(bbl) -drive file=$(rootfs),format=raw,id=hd0 -device virtio-blk-device,drive=hd0
|
||||
$(qemu) -nographic -machine virt -kernel $(bbl) \
|
||||
-drive file=$(rootfs),format=raw,id=hd0 -device virtio-blk-device,drive=hd0 \
|
||||
-netdev user,id=net0 -device virtio-net-device,netdev=net0
|
||||
|
Reference in New Issue
Block a user