How to compile the Barebox for Rugged Board i.MX6UL

Objective:

This guide describes a method of compile the Barebox for rugged board i.MX6UL .

Materials:

Hardware:

Software:

  • Ubuntu 20.04

Procedure:

The following list shows what you need in order to use a Linux-based build host to build images:

  • Build Host A build host with a minimum of 50 Gbytes of free disk space that is running a supported Linux distribution (i.e. recent releases of Fedora, openSUSE, CentOS, Debian, or Ubuntu).

  • Build Host Packages Appropriate packages installed on the build host.

The Build Host Packages:

The following list shows the required packages needed to build an image :

Ubuntu and Debian:

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get install git

$ sudo apt-get install minicom

$ sudo apt install build-essential

$ sudo apt-get install libncurses5-dev

$ sudo apt-get install lzop

Source Downloading:

Step-1: Create a directory to download the barebox source.

$ mkdir barebox_source

$ cd barebox_source

Step-2: Clone barebox with the proper branch.

$ git clone git://git.phytec.de/barebox

$ cd barebox

$ git branch -a

$ git checkout remotes/origin/v2021.04.0-phy

Step-3: Enable the toolchain.

$ . /opt/ampliphy/BSP-Yocto-Ampliphy-i.MX6UL-PD21.2.1/environment-setup- cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi

Step-4: Configure the barebox for rugged board i.MX6UL.

$ make clean

$ make distclean

$ make imx_v7_defconfig

$ export LDFLAGS="-O1"

$ make

Step-5: After compiling the u-boot source, get the barebox.bin in the current barebox source directory.

Last updated