[PATCH 1/1] docs/platform: spike: Enhance Spike examples
Anup Patel
anup at brainfault.org
Thu Dec 2 20:28:06 PST 2021
On Fri, Dec 3, 2021 at 6:44 AM Tsukasa OI <research_trasio at irq.a4lg.com> wrote:
>
> 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>
Looks good to me.
Reviewed-by: Anup Patel <anup.patel at wdc.com>
Regards,
Anup
> ---
> 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