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:
  • HOST Machine setup:
  • Toolchain Downloading:

Was this helpful?

  1. G4: System development Guide

Download the Toolchain for Rugged Board i.MX6UL

PreviousYocto Compilation For Rugged Board i.MX6ULNextHow to Add New Package in Yocto(root file system)

Last updated 12 months ago

Was this helpful?

Objective:

This guide describes a method of downloading the toolchain for Rugged Board-i.MX6UL and cross compile the sample application.

Materials:

Hardware:

  • PC(Personal computer)/System

Software:

  • Ubuntu 20.04 64Bit

Procedure:

HOST Machine setup:

UBUNTU 20.04 is prefered. Install the below pre-requisite packages :

$ sudo apt-get update

$ sudo apt-get -y install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat

$ sudo apt-get -y install cpio python3 python3-pip python3-pexpect xz-utils debianutils

$ sudo apt-get -y install iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev

$ sudo apt-get -y install pylint3 xterm python3-subunit mesa-common-dev zstd liblz4-tool

Toolchain Downloading:

Step-1: Make directory to download the toolchain.

$ mkdir toolchain

$ cd toolchain

Step-2: Download the toolchain

$ wget https://download.phytec.de/Software/Linux/BSP-Yocto-i.MX6UL/BSP-Yocto-Ampliphy-i.MX6UL-PD21.2.1/sdk/ampliphy/phytec-ampliphy-glibc-x86_64-phytec-qt5demo-image-cortexa7t2hf-neon-vfpv4-toolchain-BSP-Yocto-Ampliphy-i.MX6UL-PD21.2.1.sh

Step-3: 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

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

Step-4: To cross compile any sample application(hello_world.c) or compile any source, please run the below command to get the arm environment.

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

Step-5: Cross compiling the c application as below

$ $CC hello_world.c -o hello_world

$ file hello_world

hello_world:  ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3,BuildID[sha1]=02761505be3114ebfd3c0ec7818290dd5c55f5ee, \
for GNU/Linux 3.2.0, with debug_info, not stripped
Rugged Board i.MX6UL