incubator-nuttx/boards/risc-v/qemu-rv32/rv32-virt
chao.an cbd82f1c1b compile/flags: remove redundant -fomit-frame-pointer from board flags
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-12-27 22:31:27 -06:00
..
configs/nsh boards: move USERMAIN_XX out of INIT_ENTRYPOINT 2021-12-24 08:23:30 -06:00
include
scripts compile/flags: remove redundant -fomit-frame-pointer from board flags 2021-12-27 22:31:27 -06:00
src
Kconfig
README.txt

README.txt

1. Download and install toolchain

  $ curl https://static.dev.sifive.com/dev-tools/riscv64-unknown-elf-gcc-8.3.0-2019.08.0-x86_64-linux-ubuntu14.tar.gz

2. Build and install qemu

  $ git clone https://github.com/qemu/qemu
  $ cd qemu
  $ ./configure --target-list=riscv32-softmmu
  $ make
  $ sudo make install

3. Configure and build NuttX

  $ mkdir ./nuttx; cd ./nuttx
  $ git clone https://github.com/apache/incubator-nuttx.git
  $ git clone https://github.com/apache/incubator-nuttx-apps.git
  $ cd nuttx
  $ make distclean
  $ ./tools/configure.sh rv32-virt:nsh
  $ make

4. Run the nuttx with qemu

  $ qemu-system-riscv32 -M virt -cpu rv32 -bios none -kernel nuttx -nographic

5. TODO

  Support FPU
  Support RISC-V User mode
  Support Network