add working tags

unstable
Penguin 1 year ago
parent 86a991b0a5
commit ecaa764acb

@ -1,31 +1,31 @@
# Table of Contents # Table of Contents
1. [Preface](#org1ca0724) 1. [Preface](#org9d68638)
2. [Prerequisites](#orgd880ca0) 2. [Prerequisites](#org3b929ef)
1. [Using the riscv toolchain provided via crossdev](#org0c91d99) 1. [Using the riscv toolchain provided via crossdev](#orgf423559)
2. [Using a precompiled toolchain](#org95740e3) 2. [Using a precompiled toolchain](#org92cf0ed)
3. [Clone & Build Heart Software Services (HSS)](#org5786970) 3. [Clone & Build Heart Software Services (HSS)](#org2e48d5e)
1. [Clone HSS](#org7fecd92) 1. [Clone HSS](#org853aecd)
2. [Build HSS](#org7510e9a) 2. [Build HSS](#org621df6b)
4. [Clone & Build u-boot](#org02222bb) 4. [Clone & Build u-boot](#orgaff2e88)
1. [Clone u-boot](#org3cf2c32) 1. [Clone u-boot](#org558a985)
2. [Download the patches](#org2ecaabc) 2. [Download the patches](#org0dafb7b)
3. [Build u-boot](#org2f41dfd) 3. [Build u-boot](#org9691c19)
5. [Build the Linux kernel](#orgcb36949) 5. [Build the Linux kernel](#org2cc1254)
6. [Generate the HSS payload](#orgc553d95) 6. [Generate the HSS payload](#org22c36ce)
7. [Gentoo](#orgd715570) 7. [Gentoo](#org3f1a215)
<a id="org1ca0724"></a> <a id="org9d68638"></a>
# Preface # Preface
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.
<a id="orgd880ca0"></a> <a id="org3b929ef"></a>
# Prerequisites # Prerequisites
@ -35,17 +35,17 @@ This guide is written in a way that forces the reader to manually perform every
mkdir deploy mkdir deploy
<a id="org0c91d99"></a> <a id="orgf423559"></a>
## Using the riscv toolchain provided via crossdev ## Using the riscv toolchain provided via crossdev
Crossdev is required for this step. If you don&rsquo;t have crossdev set up, use [this](https: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](#org95740e3). Crossdev is required for this step. If you don&rsquo;t have crossdev set up, use [this](https: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](#org92cf0ed).
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-"
<a id="org95740e3"></a> <a id="org92cf0ed"></a>
## Using a precompiled toolchain ## Using a precompiled toolchain
@ -69,12 +69,12 @@ Export some other misc. environment variables:
export CORES=$(getconf _NPROCESSORS_ONLN) export CORES=$(getconf _NPROCESSORS_ONLN)
<a id="org5786970"></a> <a id="org2e48d5e"></a>
# Clone & Build Heart Software Services (HSS) # Clone & Build Heart Software Services (HSS)
<a id="org7fecd92"></a> <a id="org853aecd"></a>
## Clone HSS ## Clone HSS
@ -85,7 +85,7 @@ Export some other misc. environment variables:
git clone -b ${HSS_BRANCH} ${HSS_REPO} ./hart-software-services/ --depth=${GIT_DEPTH} git clone -b ${HSS_BRANCH} ${HSS_REPO} ./hart-software-services/ --depth=${GIT_DEPTH}
<a id="org7510e9a"></a> <a id="org621df6b"></a>
## Build HSS ## Build HSS
@ -94,12 +94,12 @@ Export some other misc. environment variables:
cp -v ./hart-software-services/tools/hss-payload-generator/hss-payload-generator ./deploy/ cp -v ./hart-software-services/tools/hss-payload-generator/hss-payload-generator ./deploy/
<a id="org02222bb"></a> <a id="orgaff2e88"></a>
# Clone & Build u-boot # Clone & Build u-boot
<a id="org3cf2c32"></a> <a id="org558a985"></a>
## Clone u-boot ## Clone u-boot
@ -110,7 +110,7 @@ Export some other misc. environment variables:
git clone -b ${UBOOT_BRANCH} ${UBOOT_REPO} ./u-boot/ --depth=${GIT_DEPTH} git clone -b ${UBOOT_BRANCH} ${UBOOT_REPO} ./u-boot/ --depth=${GIT_DEPTH}
<a id="org2ecaabc"></a> <a id="org0dafb7b"></a>
## Download the patches ## Download the patches
@ -119,9 +119,9 @@ The patches currently exist as part of BeagleV&rsquo;s `BeagleV-Fire-ubuntu` rep
git clone https://git.beagleboard.org/beaglev-fire/BeagleV-Fire-ubuntu.git ./beaglev --depth=${GIT_DEPTH} git clone https://git.beagleboard.org/beaglev-fire/BeagleV-Fire-ubuntu.git ./beaglev --depth=${GIT_DEPTH}
<a id="org2f41dfd"></a> <a id="org9691c19"></a>
## Build u-boot ## WIP Build u-boot
# Apply patches to uboot # Apply patches to uboot
cp -v ./patches/u-boot/beaglev-fire/microchip_mpfs_icicle.h ./u-boot/include/configs/microchip_mpfs_icicle.h cp -v ./patches/u-boot/beaglev-fire/microchip_mpfs_icicle.h ./u-boot/include/configs/microchip_mpfs_icicle.h
@ -141,17 +141,17 @@ The patches currently exist as part of BeagleV&rsquo;s `BeagleV-Fire-ubuntu` rep
cp -v ./u-boot/u-boot.bin ./deploy/src.bin cp -v ./u-boot/u-boot.bin ./deploy/src.bin
<a id="orgcb36949"></a> <a id="org2cc1254"></a>
# Build the Linux kernel # TODO Build the Linux kernel
<a id="orgc553d95"></a> <a id="org22c36ce"></a>
# Generate the HSS payload # TODO Generate the HSS payload
<a id="orgd715570"></a> <a id="org3f1a215"></a>
# Gentoo # TODO Gentoo

@ -81,7 +81,7 @@ git clone https://git.beagleboard.org/beaglev-fire/BeagleV-Fire-ubuntu.git ./bea
#+end_src #+end_src
** Build u-boot ** WIP Build u-boot
#+begin_src bash #+begin_src bash
# Apply patches to uboot # Apply patches to uboot
cp -v ./patches/u-boot/beaglev-fire/microchip_mpfs_icicle.h ./u-boot/include/configs/microchip_mpfs_icicle.h cp -v ./patches/u-boot/beaglev-fire/microchip_mpfs_icicle.h ./u-boot/include/configs/microchip_mpfs_icicle.h
@ -101,6 +101,6 @@ cp -v ./u-boot/u-boot.bin ./deploy/
cp -v ./u-boot/u-boot.bin ./deploy/src.bin cp -v ./u-boot/u-boot.bin ./deploy/src.bin
#+end_src #+end_src
* Build the Linux kernel * TODO Build the Linux kernel
* Generate the HSS payload * TODO Generate the HSS payload
* Gentoo * TODO Gentoo

Loading…
Cancel
Save