From 39ba7253b08a89ef43f29539ac4a09dc15339332 Mon Sep 17 00:00:00 2001 From: Yu Chen Date: Mon, 20 Jun 2022 23:32:50 +0800 Subject: [PATCH] get the device tree in qemu --- os/run-fdt.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 os/run-fdt.sh diff --git a/os/run-fdt.sh b/os/run-fdt.sh new file mode 100755 index 00000000..c7c886d1 --- /dev/null +++ b/os/run-fdt.sh @@ -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 \ No newline at end of file