mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-24 21:44:29 +00:00
15 lines
501 B
Bash
15 lines
501 B
Bash
|
#!/bin/bash
|
||
|
imageDir=$RISCV/buildroot/output/images
|
||
|
tvDir=$RISCV/linux-testvectors
|
||
|
tcpPort=1239
|
||
|
|
||
|
# QEMU Simulation
|
||
|
(qemu-system-riscv64 \
|
||
|
-M virt -dtb $imageDir/wally-virt.dtb \
|
||
|
-nographic \
|
||
|
-bios $imageDir/fw_jump.elf -kernel $imageDir/Image -append "root=/dev/vda ro" -initrd $imageDir/rootfs.cpio \
|
||
|
-singlestep -rtc clock=vm -icount shift=0,align=off,sleep=on \
|
||
|
> ./qemu-serial) # \
|
||
|
#-gdb tcp::$tcpPort -S \
|
||
|
#& riscv64-unknown-elf-gdb -quiet -x debug.gdb -ex "debug $tcpPort \"$imageDir/vmlinux\""
|