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:
1
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \
2
build-essential chrpath socat libsdl1.2-dev xterm
Copied!
Fedora:
1
$ sudo dnf install gawk make wget tar bzip2 gzip python unzip perl patch \
2
diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath \
3
ccache perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue perl-bignum socat \
4
findutils which SDL-devel xterm
Copied!
OpenSUSE:
1
$ sudo zypper install python gcc gcc-c++ git chrpath make wget python-xml \
2
diffstat makeinfo python-curses patch socat libSDL-devel xterm
Copied!
CentOS:
1
$ sudo yum install gawk make wget tar bzip2 gzip python unzip perl patch \
2
diffutils diffstat git cpp gcc gcc-c++ glibc-devel texinfo chrpath socat \
3
perl-Data-Dumper perl-Text-ParseWords perl-Thread-Queue SDL-devel xterm
Copied!

Source Downloading:

Step1: Create a directory to download the all layers.
1
$ mkdir yocto_rba5d2x
2
$ cd yocto_rba5d2x
3
$ mkdir sources
4
$ cd sources
Copied!
Step2: Clone meta-rba5d2x layer with the proper branch ready.
1
$ git clone https://github.com/rugged-board/meta-rba5d2x.git -b sumo-rba5d2x
Copied!
Step3: Clone poky git repository with the proper branch ready.
1
$ git clone https://github.com/rugged-board/poky.git -b sumo-rba5d2x
Copied!
Step4: Clone meta-openembedded git repository with the proper branch ready.
1
$ git clone git://git.openembedded.org/meta-openembedded -b sumo
Copied!
Step5: Clone meta-iot-cloud git repository with the proper branch ready.
1
git clone https://github.com/intel-iot-devkit/meta-iot-cloud.git -b sumo
Copied!
Step6: come back from the sources directory to configure the build system and start the build process.
1
$ cd ..
Copied!
Step7: Initialize build directory.
1
$ source sources/poky/oe-init-build-env
Copied!

Building:

SD Card Flash Images:

Step8: For rugged board a5d2x(SDCARD) i) Change the machine name to "rugged-board-a5d2x-sd1" in "conf/local.conf" as below.
1
$ vi conf/local.conf
Copied!
ii) Set the machine as below and save the file.
1
MACHINE ?= "rugged-board-a5d2x-sd1"
Copied!
iii) Compile the images for SDCARD Flash using below command.
1
$ bitbake rb-sd-core-image-minimal
Copied!
iv) After completion of this compiling please go to below path to get the SDCARD Flash images.
1
$ cd tmp/deploy/images/rugged-board-a5d2x-sd1/
Copied!
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:

Step9: For rugged board a5d2x(NOR) i) Change machine name to "rugged-board-a5d2x" in conf/local.conf as below.
1
$ vi conf/local.conf
Copied!
ii) Set the machine as below and save the file.
1
MACHINE ?= "rugged-board-a5d2x"
Copied!
iii) Compile the images for NOR Flash using below command.
1
$ bitbake rb-nor-core-image-minimal
Copied!
iv) After completion of this compiling, please go to below path to get the NOR Flash images.
1
$ cd tmp/deploy/images/rugged-board-a5d2x/
Copied!
To boot the Rugged Board a5d2x with sdcard flash images, please follow procedure from Flash a NOR with Bootable SD Card for Rugged Baord.