User:Zulu Foxtrott/GentooOnARM/EasyInstall/Preparing

Installing a build toolchain
On the host system (the Linux command-line environment that is used to install Gentoo to a storage device of choice) a working regular build toolchain has to be installed. On Gentoo systems this is usually always already the case. On systems running Debian or derivatives like Ubuntu install the toolchain with. For other Linux distributions please consult their respective documentation.

Setting up a cross build environment
Depending on the host system's operating system, instructions on how to install the toolchain for cross compilation differ. Consult the specific distribution's documentation. On debian and the likes  and   would need to be installed.

In case the host system runs Gentoo, set up :

Installing crossdev
First create an overlay that crossdev can use:

Then instruct Portage and crossdev to use this overlay create:

Now install crossdev:

Installing the cross build toolchain
Install the cross toolchain:

Installing required tools
Install GNU Parted and the Device Tree Compiler (dtc). The easiest way to do that again depends on the host system's operating system. On debian and descendants one would usually use  followed by the package name.

On Gentoo the respective packages - and  - can be installed with:

Optional: Installing cryptsetup for device encryption
In case the new installation is to be encrypted install cryptsetup version 2.0.0 or newer.

On a Gentoo host system this can be accomplished by installing :

If unsure, verify the version with:

Setting required environment variables
TODO: move section forward

Finally set the necessary environment variables:

Do not omit the trailing "":