can run virtio gpu/block
This commit is contained in:
parent
07029a2e5f
commit
093db48d04
5 changed files with 17 additions and 4 deletions
9
os/run.sh
Executable file
9
os/run.sh
Executable file
|
@ -0,0 +1,9 @@
|
|||
qemu-system-riscv64 -M 128m -machine virt \
|
||||
-bios ../bootloader/rustsbi-qemu.bin \
|
||||
-device loader,file=target/riscv64gc-unknown-none-elf/release/os.bin,addr=0x80200000 \
|
||||
-drive file=../user/target/riscv64gc-unknown-none-elf/release/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 \
|
||||
-serial stdio
|
Loading…
Add table
Add a link
Reference in a new issue