Use Linux 5.2.21-1-MANJARO #1 SMP PREEMPT Sat Oct 12 11:09:56 UTC 2019 x86_64 GNU/Linux
.
2019 Fall asked to do on a RISC-V, wonderful.
1. Install the necessary package
According to the official website requirements sudo pacman -S riscv64-linux-gnu-binutils riscv64-linux-gnu-gcc riscv64-linux-gnu-gdb qemu-arch-extra
.
Fails, the check need to update the metadata Pacman sudo pacman -Syy
, after success.
test:
$ riscv64-linux-gnu-gcc --version
riscv64-linux-gnu-gcc (GCC) 9.2.0
$ qemu-system-riscv64 --version
QEMU emulator version 4.1.0
Download the code:
$ git clone git://github.com/mit-pdos/xv6-riscv-fall19.git
test:
$ make qemu
# ... lots of output ...
init: starting sh
$