[PATCH 1/1] docs/platform: spike: Enhance Spike examples
Tsukasa OI
research_trasio at irq.a4lg.com
Thu Dec 2 17:13:56 PST 2021
This commit makes Spike usable as QEMU (in fact, those are based on
QEMU examples).
Signed-off-by: Tsukasa OI <research_trasio at irq.a4lg.com>
---
docs/platform/spike.md | 13 ++++++++++++-
1 file changed, 12 insertions(+), 1 deletion(-)
diff --git a/docs/platform/spike.md b/docs/platform/spike.md
index 79e2eb2..bde9e13 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
--
2.32.0
More information about the opensbi
mailing list