diff options
| author | Tsukasa OI <[email protected]> | 2021-12-03 10:13:56 +0900 |
|---|---|---|
| committer | Anup Patel <[email protected]> | 2021-12-11 16:24:39 +0530 |
| commit | 66fbcc03df0444bb6ce2286d3605cbc13b361cb1 (patch) | |
| tree | a6ea1e9a9035e16e8c2d90f50074f25b3f857d18 /docs | |
| parent | 2428987cc06310f0e54abd4ce2efe3ed60f52245 (diff) | |
docs/platform: spike: Enhance Spike examples
This commit makes Spike usable as QEMU (in fact, those are based on
QEMU examples).
Signed-off-by: Tsukasa OI <[email protected]>
Reviewed-by: Anup Patel <[email protected]>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/platform/spike.md | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/docs/platform/spike.md b/docs/platform/spike.md index 79e2eb2b..bde9e13e 100644 --- a/docs/platform/spike.md +++ b/docs/platform/spike.md @@ -43,7 +43,18 @@ make PLATFORM=generic FW_PAYLOAD_PATH=<linux_build_directory>/arch/riscv/boot/Im Run: ``` -spike --initrd <path_to_cpio_ramdisk> build/platform/generic/firmware/fw_payload.elf +spike -m256 \ + --initrd <path_to_cpio_ramdisk> \ + --bootargs 'root=/dev/ram rw console=hvc0 earlycon=sbi' \ + build/platform/generic/firmware/fw_payload.elf +``` +or +``` +spike -m256 \ + --kernel <linux_build_directory>/arch/riscv/boot/Image \ + --initrd <path_to_cpio_ramdisk> \ + --bootargs 'root=/dev/ram rw console=hvc0 earlycon=sbi' \ + build/platform/generic/firmware/fw_jump.elf ``` Execution on QEMU RISC-V 64-bit |
