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.
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.
**WARNING** This guide is very much still a work in progress. Do not expect anything to work yet.
<aid="org906530a"></a>
<aid="orgf2a2f54"></a>
# Prerequisites
# Prerequisites
emerge -a sys-block/bmap-tools sys-fs/genimage dev-libs/libyaml sys-fs/mtools
emerge -a sys-block/bmap-tools sys-fs/genimage dev-libs/libyaml sys-fs/mtools
mkdir beaglev-fire-gentoo && cd beaglev-fire-gentoo
mkdir beaglev-fire-gentoo && cd beaglev-fire-gentoo
export PROJECT_ROOT="$PWD"
# deploy will contain any output files, images, etc
# deploy will contain any output files, images, etc
mkdir deploy
mkdir deploy
<aid="org81f210c"></a>
<aid="orgb4ce84a"></a>
## Using the riscv toolchain provided via crossdev
## Using the riscv toolchain provided via crossdev
Crossdev is required for this step. If you don’t have crossdev set up, use [this](https://wiki.gentoo.org/wiki/Crossdev) 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 [these steps](#orgcee506a).
Crossdev is required for this step. If you don’t have crossdev set up, use [this](https://wiki.gentoo.org/wiki/Crossdev) 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 [these steps](#org9b64e30).
<https://en.wikipedia.org/wiki/google.com>
crossdev -t riscv64-unknown-linux-gnu
crossdev -t riscv64-unknown-linux-gnu
export RISCV64_CC="riscv64-unknown-linux-gnu-"
export RISCV64_CC="riscv64-unknown-linux-gnu-"
<aid="orgcee506a"></a>
<aid="org9b64e30"></a>
## Using a precompiled toolchain
## Using a precompiled toolchain
@ -69,12 +73,12 @@ Export some other misc. environment variables:
export CORES=$(getconf _NPROCESSORS_ONLN)
export CORES=$(getconf _NPROCESSORS_ONLN)
<aid="orgcf597f6"></a>
<aid="org32e7194"></a>
# Clone & Build Heart Software Services (HSS)
# Clone & Build Heart Software Services (HSS)
<aid="org457b83e"></a>
<aid="orgb4d121b"></a>
## Clone HSS
## Clone HSS
@ -85,7 +89,7 @@ Export some other misc. environment variables:
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.
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.
*WARNING* This guide is very much still a work in progress. Do not expect anything to work yet.
* Prerequisites
* Prerequisites
#+begin_src bash :noeval
#+begin_src bash :noeval
emerge -a sys-block/bmap-tools sys-fs/genimage dev-libs/libyaml sys-fs/mtools
emerge -a sys-block/bmap-tools sys-fs/genimage dev-libs/libyaml sys-fs/mtools
mkdir beaglev-fire-gentoo && cd beaglev-fire-gentoo
mkdir beaglev-fire-gentoo && cd beaglev-fire-gentoo
export PROJECT_ROOT="$PWD"
# deploy will contain any output files, images, etc
# deploy will contain any output files, images, etc
mkdir deploy
mkdir deploy
#+end_src
#+end_src
@ -15,7 +18,7 @@ mkdir deploy
** Using the riscv toolchain provided via crossdev
** 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]].
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]].