Last active
May 31, 2021 10:24
-
-
Save paranlee/1cf9224e90603918f7f1929c309e4002 to your computer and use it in GitHub Desktop.
Runtime debugging analyize for RISC-V Linux kernel build from (https://gist.github.com/paranlee/8d83db088e766c0409f3d69146ebfe14)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
qemu-system-riscv64 -s -S \ | |
-cpu sifive-u54 \ | |
-smp cpus=4,maxcpus=4 \ | |
-M sifive_u \ | |
-m 4096 \ | |
-kernel arch/riscv/boot/Image \ | |
-bios none \ | |
-nographic \ | |
-no-reboot | |
-append "console=ttyS0" | |
<< 'MULTILINE-COMMENT' | |
$ qemu-system-riscv64 -cpu ? | |
any | |
rv64 | |
rv64gcsu-v1.10.0 | |
rv64gcsu-v1.9.1 | |
rv64imacu-nommu | |
sifive-e51 | |
sifive-u54 | |
$ qemu-system-riscv64 -M ? | |
Supported machines are: | |
none empty machine | |
sifive_e RISC-V Board compatible with SiFive E SDK | |
sifive_u RISC-V Board compatible with SiFive U SDK | |
spike RISC-V Spike Board (default) | |
spike_v1.10 RISC-V Spike Board (Privileged ISA v1.10) | |
spike_v1.9.1 RISC-V Spike Board (Privileged ISA v1.9.1) | |
virt RISC-V VirtIO board | |
# aarch64 example | |
qemu-system-aarch64 -s -S \ | |
-cpu cortex-a72 \ | |
-smp cpus=4,maxcpus=4 \ | |
-M virt \ | |
-m 4096 \ | |
-kernel arch/arm64/boot/Image \ | |
-nographic \ | |
--append "console=ttyAMA0" | |
MULTILINE-COMMENT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment