Dockerfile and script to build uboot for MNT Reforn2
Find a file
2021-04-20 02:40:59 +02:00
docker First commit 2021-04-20 02:40:59 +02:00
src First commit 2021-04-20 02:40:59 +02:00
Dockerfile First commit 2021-04-20 02:40:59 +02:00
README.md First commit 2021-04-20 02:40:59 +02:00

u-boot for MNT Reform build script

Work in progress script for building uboot for the MNT Refom 2 computer.

Howto

To compile the script, you'll need to install some packages. On Debian :

apt install -y --no-install-recommends gcc-aarch64-linux-gnu \
                      device-tree-compiler \ 
                      make \
                      bc \
                      build-essential \
                      bison \
                      flex \
                      bash \
                      git \
                      ca-certificates

You just need to launch make_uboot.sh. By default, script build uboot with sdcard support. to build it with emmc support you need to pass the emmc argument:

./make_uboot.sh emmc

You can also define UBOOT_BUILD environment variable with emmc or sdcard variable.

The flash.bin is located in the u-boot/ directory.

Build with docker

Build the image :

docker build -t reform_kernel_build .

Then run the container with with a directory mapped to /output:

docker run -v /home/docker/output:/output --env UBOOT_BUILD=sdcard --rm reform_kernel_build

You could pass the UBOOT_BUILD environment variable to your container do tell make_uboot.sh which version to compile :

  • sdcard or not defined if you'll install to the SDCard
  • emmc for the internal memomry of the IMX card

Flash.bin file will be in the directory mapped to /output in the container.

Licence

This work is derivated from MNT script found here and licenced under the GPLv3 Licence