mirror of
https://github.com/openhwgroup/cvw
synced 2025-01-23 21:14:37 +00:00
add debug.sh
This commit is contained in:
parent
b73f81548f
commit
74ff583f9b
14
linux/testvector-generation/debug.sh
Executable file
14
linux/testvector-generation/debug.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/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\""
|
Loading…
Reference in New Issue
Block a user