[PATCH 1/1] docs/platform: spike: Enhance Spike examples
Anup Patel
anup at brainfault.org
Sat Dec 11 03:03:09 PST 2021
On Fri, Dec 3, 2021 at 9:58 AM Anup Patel <anup at brainfault.org> wrote:
>
> 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>
Applied this patch to the riscv/opensbi repo.
Thanks,
Anup
>
> 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