add net support, fix merge error

This commit is contained in:
yufeng 2023-02-06 19:21:43 +08:00 committed by Yu Chen
parent 1a2838d670
commit 2e81c8960c
11 changed files with 365 additions and 0 deletions

View file

@ -73,6 +73,22 @@ disasm-vim: kernel
run: run-inner
run-inner-none: build
@qemu-system-riscv64 \
-M 128m \
-machine virt \
-bios none \
$(GUI_OPTION) \
-kernel $(KERNEL_ELF) \
-drive file=$(FS_IMG),if=none,format=raw,id=x0 \
-device virtio-blk-device,drive=x0 \
# -device virtio-gpu-device \
-device virtio-keyboard-device \
-device virtio-mouse-device \
-device virtio-net-device,netdev=net0 \
-netdev user,id=net0,hostfwd=udp::6200-:2000 \
-serial stdio
run-inner: build
@qemu-system-riscv64 \
-M 128m \
@ -85,6 +101,8 @@ run-inner: build
-device virtio-gpu-device \
-device virtio-keyboard-device \
-device virtio-mouse-device \
-device virtio-net-device,netdev=net0 \
-netdev user,id=net0,hostfwd=udp::6200-:2000 \
-serial stdio
fdt: