- Make sure you have pre-requsite software
- Make sure you have Haiku hrev56706 or later
$ mkdir ~/Code && cd ~/Code
$ git clone https://github.com/haiku/haiku.git
$ git clone https://github.com/haiku/buildtools.git
$ git clone https://github.com/haiku/firmware.git
$ cd buildtools/jam
$ make
$ sudo ./jam0 install
Compile Haiku:
$ cd ~/Code/haiku
$ mkdir generated.riscv64 && cd generated.riscv64
$ ../configure --build-cross-tools riscv64 --cross-tools-source ../../buildtools -j4
$ jam -q @minimum-mmc
$ ../src/tests/qemu-boot-test riscv64 kernel:~/Code/firmware/u-boot/riscv64/qemu/u-boot.bin ./haiku-mmc.image