diff --git a/Makefile b/Makefile index f868b49..a8f3f5d 100644 --- a/Makefile +++ b/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 diff --git a/conf/linux_defconfig b/conf/linux_defconfig index a066f0e..50fe1f4 100644 --- a/conf/linux_defconfig +++ b/conf/linux_defconfig @@ -36,6 +36,7 @@ CONFIG_ATA=y CONFIG_SATA_AHCI=y CONFIG_SATA_SIL24=y CONFIG_NETDEVICES=y +CONFIG_VIRTIO_NET=y CONFIG_E1000E=y CONFIG_R8169=y # CONFIG_INPUT_KEYBOARD is not set