Skip to content

Instantly share code, notes, and snippets.

@kallisti5
Last active January 14, 2023 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kallisti5/43f3b4c1b2be60514eaa21c0324f5b6e to your computer and use it in GitHub Desktop.
Save kallisti5/43f3b4c1b2be60514eaa21c0324f5b6e to your computer and use it in GitHub Desktop.
Haiku riscv64 testing

Setup your build environment

$ 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

Build haiku riscv64

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

Boot haiku riscv64 in qemu

$ ../src/tests/qemu-boot-test riscv64 kernel:~/Code/firmware/u-boot/riscv64/qemu/u-boot.bin ./haiku-mmc.image
@kallisti5
Copy link
Author

haiku_riscv64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment