How to compile the kernel for Rugged Board A5d2x


This guide describes a method of compile the kernel for rugged board a5d2x.




  • Ubuntu 16.04


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:

$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
build-essential chrpath socat libsdl1.2-dev xterm

Source Downloading:

Step1: Create a directory to download the kernel source.

$ mkdir kernel_source
cd kernel_source

Step2: Clone linux-rba5d2x with the proper branch.

$ git clone
$ cd linux-rba5d2x
$ git checkout origin/linux-rba5d2x

Step3: Before configuring the kernel,Please run the arm environment to cross compile the downloaded kernel source. If you dont have arm toolchain, please follow step4 to download the toolchain.

$ . /opt/poky-tiny/2.5.2/environment-setup-cortexa5hf-neon-poky-linux-musleabi

Step4: If you haven't downloaded the toolchain before please follow below link.

Download the toolchain for rugged board a5d2x

Step5: configure the kernel for rugged board a5d2x.

$ make rb_a5d2x_defconfig

Step6: compile the kernel for rugged board a5d2x using below command.

$ make

Step7: After compiling the kernel source get the zImage and oftree from below paths in kernel source. zImage: arch/arm/boot/zImage oftree: arch/arm/boot/dts/a5d2x-rugged_board.dtb

Last updated