Skip to content

Instantly share code, notes, and snippets.

@paranlee
Last active June 20, 2021 03:26
Show Gist options
  • Save paranlee/336cc692a036edf373351e3850e26586 to your computer and use it in GitHub Desktop.
Save paranlee/336cc692a036edf373351e3850e26586 to your computer and use it in GitHub Desktop.
runtime analyize for RISC-V linux kernel
~/qemu/build/qemu-system-riscv64 \
-cpu sifive-u54 \
-smp cpus=4,maxcpus=4 \
-M virt \
-m 4096 \
-nographic \
-no-reboot \
-kernel ~/linux/arch/riscv/boot/Image \
-append "root=/dev/vda rw console=ttyS0" \
-drive file=~/busybox/root.bin,format=raw,id=hd0 \
-device virtio-blk-device,drive=hd0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment