readme.txt 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. Linux on Spike RISC-V ISA simulator
  2. ===================================
  3. This configuration provides a minimal working setup to run a Linux
  4. kernel in the Spike RISC-V ISA simulator.
  5. The Spike ISA simulator can be an interresting alternative to Qemu, in
  6. some specific cases. For example: simulating new instructions (see [1]),
  7. simulating riscv-openocd/gdb debug sessions (see [2], [3]), or
  8. generating an accurate per-instruction log of execution (see
  9. riscv-isa-sim spike -l option)...
  10. To run Buildroot Linux in Spike, use the commands:
  11. make spike_riscv64_defconfig
  12. make
  13. ./board/spike/riscv64/start.sh
  14. The boot is made with the standard RISC-V OpenSBI boot loader. In
  15. order to keep the simulation simple, the rootfs is passed as an initrd
  16. ramfs.
  17. Note: at the time of this writing, Spike v1.1.0 and OpenSBI v1.0 does
  18. not support console input emulation for 32bit RISC-V systems. A 32bit
  19. Linux system can boot and reach the login, but it's not possible to
  20. login. See [4].
  21. [1].
  22. https://github.com/riscv-software-src/riscv-isa-sim/tree/v1.1.0#simulating-a-new-instruction
  23. [2].
  24. https://github.com/riscv-software-src/riscv-isa-sim/tree/v1.1.0#debugging-with-gdb
  25. [3].
  26. https://github.com/riscv/riscv-openocd
  27. [4].
  28. https://github.com/riscv-software-src/opensbi/blob/v1.0/lib/utils/sys/htif.c#L127