Trucrux Inc

Building OS for TRUX-IMX6 D01

Host system required OS environment Ubuntu 14/16 64-bit

Host system required  Minimum storage : 100GB

Installing Dependencies #

Run the following command to install dependencies

$ sudo apt-get install wget git-core unzip texinfo gcc-multilib socat libsdl1.2-dev gawk
diffstat build-essential chrpath sed cvs subversion coreutils texi2html docbook-utils python-
pysqlite2 help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev
mercurial autoconf automake groff mercurial curl lzop asciidoc xterm u-boot-tools

Repo utility setup #

To setup repo utility follow the below commands:
Open terminal window
Create a bin folder.

$ mkdir ~/bin

(No need to create if bin folder already exists)
Download and install the repo utility

$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
$ chmod a+x ~/bin/repo
$ export PATH=~/bin:$PATH

GIT Configurations #

$ mkdir Trucrux
$ cd Trucrux
$ git config --global user.name "Your Name"
$ git config --global user.email "Your Email"
$ repo init -u https://github.com/imx6-backup/Trucrux.git -b trux-d01 -m trux-d01.xml
$ repo sync

Replace <name> by git username and <email> by git registered email

Setup and OS build #

Trucrux supports below image :

  • Core-image-minimal – is a default trucrux image with GUI and without Qt5 support

Supported Distro

  • fsl-imx-x11

To build image

Use this command for building code for first time to set MACHINE

$ cd ~/Trucrux
$ DISTRO=fsl-imx-x11 MACHINE=imx6-truxd01 source trucrux-setup-release.sh -b
build_truxd01

once the machine is set setup environment with following command

$ DISTRO=fsl-imx-x11 MACHINE=imx6-truxd01 source setup-environment build_truxd01

use bitbake command to build OS image

$ bitbake core-image-minimal

for more bitbake options follow bitbake cheat sheet

https://elinux.org/Bitbake_Cheat_Sheet

The output image is located in:

~/Trucrux/build_truxd01/tmp/deploy/images/imx6-truxd01/