RuggedBOARD DevWiki
  • RuggedBOARDs Developer Wiki
  • RB-A5D2x
    • Contents
    • Download BSP and Documents
  • G1: Getting Started
    • RB-Quick Start Guide
    • Test all the RB interfaces in 10 mins in command Line
    • Example Program for Interfaces Using Python 3
  • G2: Programming Guide
    • Software Architecture on RB (Software Stack Diagram)
    • RB Interface/Bus Programming using MRAA
    • RB Peripherals programming using UPM
  • G3: How to Do?
    • Modbus on RB
    • RB as Tiny Web Server
    • MQTT Client on RB
    • SQL Lite DB
    • AWS Green Grass on RB
    • Microsoft Azure on RB
  • G4: Use Cases / Application Notes
    • Smart Energy Meter with AWS cloud
    • IoT Based solution for Plants Water monitoring
    • Weather Monitoring Stations
    • FAQ
  • G5: System development Guide
    • Advance Host setup
    • Flash a Bootable SD Card for Rugged board
    • Flash a NOR with Bootable SD Card For Rugged Board A5d2x
    • Flash the NOR using tftp For Rugged Board A5d2x
    • Yocto Compilation For Rugged Board A5d2x
    • Download the Toolchain for Rugged Board A5d2x
    • How to Add New Package in Yocto(root file system)
    • Generate the SDK(toolchain) using YOCTO
    • How to compile the U-Boot for Rugged Board A5d2x
    • How to compile the kernel for Rugged Board A5d2x
  • RB-i.MX6UL
    • Contents
    • Download BSP and Documents
  • G1: Getting Started
    • RB-Quick Start Guide
    • Test all the RB interfaces in 10 mins in command Line
    • Example Program for Interfaces Using Python 3
  • G2: Programming Guide
    • Software Architecture on RB (Software Stack Diagram)
    • RB Interface/Bus Programming using MRAA
    • RB Peripherals programming using UPM
  • G3: How to Do?
    • Modbus on RB
    • MQTT Client on RB
  • G4: System development Guide
    • Advance Host setup
    • Flash a Bootable SD Card for Rugged board
    • Flash a NAND with Bootable SD Card For Rugged Board i.MX6UL
    • Flash the NAND using tftp For Rugged Board i.MX6UL
    • Yocto Compilation For Rugged Board i.MX6UL
    • Download the Toolchain for Rugged Board i.MX6UL
    • How to Add New Package in Yocto(root file system)
    • Generate the SDK(toolchain) using YOCTO
    • How to compile the Barebox for Rugged Board i.MX6UL
    • How to compile the kernel for Rugged Board i.MX6UL
  • G5 : Help Desk
    • FAQ
Powered by GitBook
On this page
  • Objective:
  • Materials:
  • Hardware:
  • Software:
  • Procedure:
  • The Build Host Packages:
  • Source Downloading:
  • Building:

Was this helpful?

  1. G5: System development Guide

Yocto Compilation For Rugged Board A5d2x

PreviousFlash the NOR using tftp For Rugged Board A5d2xNextDownload the Toolchain for Rugged Board A5d2x

Last updated 4 years ago

Was this helpful?

Objective:

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

Materials:

Hardware:

  • PC(Personal computer)/System

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: Clone meta-iot-cloud git repository with the proper branch ready.

git clone https://github.com/intel-iot-devkit/meta-iot-cloud.git -b sumo

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

$ cd ..

Step7: Initialize build directory.

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

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.

$ 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/

NOR Flash Images:

Step9: 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 .

To boot the Rugged Board a5d2x with sdcard flash images, please follow procedure from .

Rugged Board A5d2x
Rugged Board A5d2x
Flash a Bootable SD Card for Rugged Baord
Flash a NOR with Bootable SD Card for Rugged Baord