add net support, fix merge error
This commit is contained in:
parent
1a2838d670
commit
2e81c8960c
11 changed files with 365 additions and 0 deletions
18
os/Makefile
18
os/Makefile
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue