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:

Was this helpful?

  1. G4: System development Guide

Generate the SDK(toolchain) using YOCTO

PreviousHow to Add New Package in Yocto(root file system)NextHow to compile the Barebox for Rugged Board i.MX6UL

Last updated 1 year ago

Was this helpful?

Objective:

This guide describes a method of generating the software development kit (Toolchain) using yocto for rugged board i.MX6UL and install it.

Materials:

Hardware:

  • PC(Personal computer)/System​

Software:

  • Ubuntu 20.04

Procedure:

Step-1: To generate the SDK,need to compile the yocto in your pc using Yocto Compilation For Rugged Board i.MX6UL document.

Step-2: After completion of yocto. Go to build folder in yocto and follow below command to generate the SDK.

$ bitbake -c populate_sdk rb-qt5demo-image

Step-3: It will take much time to complete(depends on your PC performance and speed) and go to below path to get the SDK script with the name "phytec-ampliphy-glibc-x86_64-phytec-qt5demo-image-cortexa7t2hf-neon-vfpv4-toolchain- BSP-Yocto-Ampliphy-i.MX6UL-PD21.2.1.sh"

phytec-ampliphy-glibc-x86_64-phytec-qt5demo-image-cortexa7t2hf-neon-vfpv4-toolchain- BSP-Yocto-Ampliphy-i.MX6UL-PD21.2.1.sh

$ cd deploy/sdk/

Step-4: Give the permissions to the toolchain script file as below and install it.

$ chmod 777 phytec-ampliphy-glibc-x86_64-phytec-qt5demo-image-cortexa7t2hf-neon- vfpv4-toolchain-BSP-Yocto-Ampliphy-i.MX6UL-PD21.2.1.sh

$ ./phytec-ampliphy-glibc-x86_64-phytec-qt5demo-image-cortexa7t2hf-neon-vfpv4- toolchain-BSP-Yocto-Ampliphy-i.MX6UL-PD21.2.1.sh

Step-5: To cross compile any sample application(hello_world.c) or compile any source, please run the below command.

$ . /opt/ampliphy/BSP-Yocto-Ampliphy-i.MX6UL-PD21.2.1/environment-setup- cortexa7t2hf-neon-vfpv4-phytec-linux-gnueabi

Step-6: Cross compiling the c application as below

$ $CC hello.c -o hello

$ file hello

hello: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, BuildID[sha1]=0871c22580dba40910267d5811df33348472d9fd, 
    for GNU/Linux 3.2.0, with debug_info, not stripped
Yocto Compilation For Rugged Board i.MX6UL | RuggedBOARD DevWiki
Logo