-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Valentin Raevsky <[email protected]>
- Loading branch information
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Disclaimer | ||
|
||
| !IMPORTANT! | This is a development branch, that is not relelased by CompuLab yet| | ||
|---|---| | ||
|
||
# Configuring the build | ||
|
||
## Prerequisites | ||
It is up to developers to prepare the host machine; it requires: | ||
|
||
* [Setup Cross Compiler](https://github.com/compulab-yokneam/meta-bsp-imx8mp/blob/kirkstone/Documentation/toolchain.md#linaro-toolchain-how-to) | ||
* Install these packages: ``shareutils, swing`` | ||
|
||
|
||
## Setup U-Boot environment | ||
|
||
* WorkDir: | ||
``` | ||
mkdir -p compulab-bootloader/build && cd compulab-bootloader | ||
export BUILD=$(pwd)/build | ||
``` | ||
|
||
* Set a CompuLab machine: | ||
|
||
| Machine | Command Line | | ||
|---|---| | ||
|ucm-imx8m-plus|```export MACHINE=ucm-imx8m-plus```| | ||
|som-imx8m-plus|```export MACHINE=som-imx8m-plus```| | ||
|iot-gate-imx8plus|```export MACHINE=iot-gate-imx8plus```| | ||
|
||
* Clone the source code: | ||
``` | ||
git clone --branch u-boot-compulab_v2021.04 https://github.com/compulab-yokneam/u-boot-compulab.git | ||
cd u-boot-compulab | ||
``` | ||
|
||
## Create U-boot binary | ||
|
||
* Apply the machine Config | ||
``` | ||
make O=${BUILD} ${MACHINE}_defconfig | ||
``` | ||
|
||
* Build | ||
``` | ||
nice make -j`nproc` O=${BUILD} flash.bin | ||
``` | ||
|
||
* Result | ||
``` | ||
ls -al ${BUILD}/flash.bin | ||
``` |