Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add some documentation on how/what to setup for it to work.

You need to be on Linux with qemu-static and binfmt-misc installed. On Ubuntu, install the qemu-user-static package, and everything should be setup automatically. To setup a custom build of qemu, use to run docker run --privileged --rm -e QEMU_BINARY_PATH=/path/to/qemu/bin tonistiigi/binfmt --install riscv64  (the use of docker here is only a mean of packaging and it works regardless of the use of docker).

The idea is you make a docker environment using native RISC-V binaries that are auto-run in qemu-user mode. This presents an environment in which RISC-V is the native architecture. It has its own root filesystem, but one can use -v flag to mount the current working directory to /workspace.