#!/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 \ # -ex "set pagination off" \ # -ex "set logging overwrite on" \ # -ex "set logging redirect on" \ # -ex "set confirm off" \ # -ex "target extended-remote :$tcpPort" \ # -ex "maintenance packet Qqemu.PhyMemMode:1" \ # -ex "file $imageDir/vmlinux"