get the device tree in qemu
This commit is contained in:
parent
a6c8f4de34
commit
2658b4bfb0
1 changed files with 11 additions and 0 deletions
11
os/run-fdt.sh
Executable file
11
os/run-fdt.sh
Executable file
|
@ -0,0 +1,11 @@
|
||||||
|
qemu-system-riscv64 -M 128m -machine virt,dumpdtb=virt.out \
|
||||||
|
-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
|
||||||
|
|
||||||
|
fdtdump virt.out
|
Loading…
Add table
Add a link
Reference in a new issue