This guide is written in a way that forces the reader to manually perform every step, excluding environment variables via the setup script because I want to be able to change those. If you would like to follow the official guide provided by beagleboard, which is far more streamlined and automated, please see the references at the bottom of this document.
* Prerequisites
#+begin_src bash :noeval
emerge -a sys-block/bmap-tools sys-fs/genimage dev-libs/libyaml sys-fs/mtools
mkdir beaglev-fire-gentoo && cd beaglev-fire-gentoo
# deploy will contain any output files, images, etc
mkdir deploy
#+end_src
** Using the riscv toolchain provided via crossdev
Crossdev is required for this step. If you don't have crossdev set up, use [[https://wiki.gentoo.org/wiki/Crossdev][this]] guide to install it. At the time of writing this installs riscv64-unknown-linux-gnu-gcc 13.2.1. This is note worthy because the official guide uses 11.4. If there are issues with this toolchain, use the precompiled toolchain via [[*Using a precompiled toolchain][these steps]].
The patches currently exist as part of BeagleV's ~BeagleV-Fire-ubuntu~ repo, so we'll just clone the whole thing for now. Eventually, I'll see if I can mirror just the patches somewhere.