How to compile the U-Boot for Rugged Board A5d2x

Objective:

This guide describes a method of compile the u-boot for rugged board a5d2x.

Materials:

Hardware:

Software:

  • Ubuntu 16.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 that runs on QEMU in graphical mode.
Ubuntu and Debian:
1
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
2
build-essential chrpath socat libsdl1.2-dev xterm
Copied!

Source Downloading:

Step1: Create a directory to download the u-boot source.
1
$ mkdir uboot_source
2
cd uboot_source
Copied!
Step2: Clone uboot-rba5d2x with the proper branch.
1
$ git clone https://github.com/rugged-board/uboot-rba5d2x.git
2
$ cd uboot-rba5d2x
3
$ git checkout origin/uboot-rba5d2x
Copied!
Step3: Before configuring the u-boot,Please run the arm environment to cross compile the downloaded u-boot source. If you dont have arm toolchain, please follow step4 to download the toolchain.
1
$ . /opt/poky-tiny/2.5.2/environment-setup-cortexa5hf-neon-poky-linux-musleabi
Copied!
Step4: If you haven't downloaded the toolchain before please follow below link.

NOR Flash Compilation:

Step5: Configure the u-boot for NOR Flash of rugged board a5d2x.
1
$ make rugged_board_a5d2x_qspiflash_defconfig
Copied!
Step6: Compile the u-boot for NOR Flash of rugged board a5d2x using below command.
1
$ make
Copied!

SDCard Flash Compilation:

step7: Configure the u-boot for SDCard Flash of rugged board a5d2x.
1
$ make rugged_board_a5d2x_mmc1_defconfig
Copied!
Step8: Compile the u-boot for SDCard Flash of rugged board a5d2x using below command.
1
$ make
Copied!
Step9: After compiling the u-boot source, get the u-boot.bin in the current uboot-rba5d2x source directory.