Yocto Compilation For Rugged Board A5d2x

Objective:

This guide describes a method of compiling the yocto for the Rugged Board A5d2x for both NOR Flash and SD Card(MMC) Flash.

Materials:

Hardware:

Software:

  • Ubuntu 16.04

Procedure:

The following list shows what you need in order to use a Linux-based build host to use the Yocto Project 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

Fedora:

$ sudo dnf install gawk make wget tar bzip2 gzip python unzip perl patch \
diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \
ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue perl-bignum socat \
findutils which SDL-devel xterm

OpenSUSE:

$ sudo zypper install python gcc gcc-c++ git chrpath make wget python-xml \
diffstat makeinfo python-curses patch socat libSDL-devel xterm

CentOS:

$ sudo yum install gawk make wget tar bzip2 gzip python unzip perl patch \
diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath socat \
perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue SDL-devel xterm

Source Downloading:

Step1: Create a directory to download the all layers.

$ mkdir yocto_rba5d2x
$ cd yocto_rba5d2x
$ mkdir sources
$ cd sources

Step2: Clone meta-rba5d2x layer with the proper branch ready.

$ git clone https://github.com/rugged-board/meta-rba5d2x.git -b sumo-rba5d2x

Step3: Clone poky git repository with the proper branch ready.

$ git clone https://github.com/rugged-board/poky.git -b sumo-rba5d2x

Step4: Clone meta-openembedded git repository with the proper branch ready.

$ git clone git://git.openembedded.org/meta-openembedded -b sumo

Step5: come back from the sources directory to configure the build system and start the build process.

$ cd ..

Step6: Initialize build directory.

$ source sources/poky/oe-init-build-env

Building:

SD Card Flash Images:

Step7: For rugged board a5d2x(SDCARD) i) Change the machine name to "rugged-board-a5d2x-sd1" in "conf/local.conf" as below.

$ vi conf/local.conf

ii) Set the machine as below and save the file.

MACHINE ?= "rugged-board-a5d2x-sd1"

iii) Compile the images for SDCARD Flash using below command.

$ bitbake rb-sd-core-image-minimal

iv) After completion of this compiling please go to below path to get the SDCARD Flash images.

$ cd tmp/deploy/images/rugged-board-a5d2x-sd1/

To boot the Rugged Board a5d2x with sdcard flash images, please follow procedure from Flash a Bootable SD Card for Rugged Baord.

NOR Flash Images:

Step8: For rugged board a5d2x(NOR) i) Change machine name to "rugged-board-a5d2x" in conf/local.conf as below.

$ vi conf/local.conf

ii) Set the machine as below and save the file.

MACHINE ?= "rugged-board-a5d2x"

iii) Compile the images for NOR Flash using below command.

$ bitbake rb-nor-core-image-minimal

iv) After completion of this compiling, please go to below path to get the NOR Flash images.

$ cd tmp/deploy/images/rugged-board-a5d2x/

To boot the Rugged Board a5d2x with sdcard flash images, please follow procedure from Flash a NOR with Bootable SD Card for Rugged Baord.