Skip to content

Commit aedd8a4

Browse files
committed
✨ feat(prebuilt/qemu-virt64-riscv): add qemu-virt64-riscv
1 parent 66210dc commit aedd8a4

3 files changed

Lines changed: 52 additions & 0 deletions

File tree

706 KB
Binary file not shown.

prebuilt/qemu-virt64-riscv/run.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/bash
2+
3+
# @author zhouquan
4+
# @file run.sh
5+
#
6+
# Change Logs:
7+
# Date Author Notes
8+
# ------------ ---------- -----------------------------------------------
9+
# 2023-01-12 zhouquan initial version
10+
#
11+
12+
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
13+
14+
qemu-system-riscv64 \
15+
-nographic \
16+
-machine virt \
17+
-m 256M \
18+
-kernel ${script_dir}/rtthread.bin \
19+
-drive if=none,file=${script_dir}/ext4.img,format=raw,id=blk0 \
20+
-device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \
21+
-netdev user,id=tap0,hostfwd=tcp::8080-:80 \
22+
-device virtio-net-device,netdev=tap0,bus=virtio-mmio-bus.1 \
23+
-device virtio-serial-device \
24+
-chardev socket,host=127.0.0.1,port=43212,server=on,wait=off,telnet=on,id=console0 \
25+
-device virtserialport,chardev=console0
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
# @author zhouquan
4+
# @file run.sh
5+
#
6+
# Change Logs:
7+
# Date Author Notes
8+
# ------------ ---------- -----------------------------------------------
9+
# 2023-01-12 zhouquan initial version
10+
#
11+
12+
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
13+
14+
qemu-system-riscv64 \
15+
-nographic \
16+
-machine virt \
17+
-m 256M \
18+
-kernel ${script_dir}/rtthread.bin \
19+
-drive if=none,file=${script_dir}/ext4.img,format=raw,id=blk0 \
20+
-device virtio-blk-device,drive=blk0,bus=virtio-mmio-bus.0 \
21+
-netdev user,id=tap0,hostfwd=tcp::8080-:80 \
22+
-device virtio-net-device,netdev=tap0,bus=virtio-mmio-bus.1 \
23+
-device virtio-serial-device \
24+
-chardev socket,host=127.0.0.1,port=43212,server=on,wait=off,telnet=on,id=console0 \
25+
-device virtserialport,chardev=console0 \
26+
-S \
27+
-gdb tcp::1234

0 commit comments

Comments
 (0)