Wiki
Clone wikiitron-bsp-manual / the-yocto-toolchain
TX SOFTWARE PLATFORM MANUAL
THE YOCTO TOOLCHAIN
######<< back to Home
Index
- Setting a development environment
- Itron BSP platform
- Setup and build the toolchain
- Install the toolchain
- Use the toolchain
###### << . 1 . >>
Setting a development environment
Supported Linux distributions
The full list of the Linux distributions that is suitable for lates Yocto Project development is referenced here.
Yocto Project Reference Manual
For Yocto Rocko we recommend using Ubuntu 16.04 64-bit on a physical PC or inside a Virtual Machine:
Installation recommendations
- Set the number of CPUs to maximum possible
- Set the memory size to at least 4GB.
- Set the disk size to be at least 200GB. 300GB is better.
- Use Bridge for networking.
- Install the VMWare tools.
- If you have an extra hard drive you can use it as a physical partition and set your home directory to it.
- Update Ubuntu right after the first login.
Required packages
Follow the links below and install all required packages on your machine.
Yocto Project Reference Manual
Please make sure your host PC is running Ubuntu 16.04 64-bit and install the following packages:
$ sudo apt-get install gawk wget git-core diffstat unzip texinfo gcc-multilib \ build-essential chrpath socat cpio python python3 python3-pip python3-pexpect \ xz-utils debianutils iputils-ping libsdl1.2-dev xterm
$ sudo apt-get install autoconf libtool libglib2.0-dev libarchive-dev python-git \ xterm sed cvs subversion coreutils texi2html docbook-utils python-pysqlite2 \ help2man make gcc g++ desktop-file-utils libgl1-mesa-dev libglu1-mesa-dev \ mercurial automake groff curl lzop asciidoc u-boot-tools dos2unix mtd-utils pv \ libncurses5 libncurses5-dev libncursesw5-dev libelf-dev
###### << . 2 . >>
Itron BSP platform
Repo installation
To get the BSP (Board Support Package) you need to have repo
- the multiple git repository tool - installed.
Repo is a tool built on top of Git. Repo helps manage many Git repositories, does the uploads to revision control systems, and automates parts of the development workflow.
Install the repo
utility:
$ mkdir ~/bin $ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo
Download Yocto Rocko BSP for TX modules
Download the BSP source:
$ PATH=${PATH}:~/bin $ mkdir ~/itron-fslc-yocto $ cd ~/itron-fslc-yocto $ repo init -u https://bitbucket.org/noritake-itron/itron-bsp-platform.git -b rocko $ repo sync -j4
At the end of the commands, you have every metadata you need to start work with.
You can use any directory to host your build.
The source code is checked out at itron-fslc-yocto/sources
.
Update Yocto Rocko BSP
To update BSP sources please use the following command:
$ repo sync -j4
###### << . 3 . >>
Setup and build the toolchain
Setting the Yocto environment
You can use the command below to setup environment.
$ MACHINE=<tx070s|tx101s|tx070l|tx070u> DISTRO=<fslc-x11/fslc-framebuffer/fslc-wayland/fslc-xwayland> . setup-environment <build_directory_name>
Note: <tx070s|tx101s|tx070l|tx070u> - please choose the proper machine
Note: <fslc-x11/fslc-framebuffer/fslc-wayland/fslc-xwayland> - please choose the proper distro name*
Note: <build_directory_name> - please select the directory name
Configure the Yocto system
You can find the information about the Yocto configuration in the link below:
Build the toolchain
You can build the standard toolchain or the toolchain the support for Qt5
To build the toolchain without the Qt support please use the following command:
$ bitbake meta-ide-support $ bitbake meta-toolchain
To build the toolchain with the Qt support please use the following command:
$ bitbake meta-ide-support $ bitbake meta-toolchain-qt
###### << . 4 . >>
Install the toolchain
When you successfully build the toolchain you can install tools.
To install the toolchain without the Qt support please run:
$ tmp/deploy/sdk/fslc-x11-glibc-x86_64-meta-toolchain-armv7at2hf-neon-toolchain-2.4.1.sh
Note: the toolchain above is for the version with X11
Note: to run commands above you have to be inside the Yocto build directory
To install the toolchain with the Qt support please run:
$ tmp/deploy/sdk/fslc-framebuffer-glibc-x86_64-meta-toolchain-qt5-armv7at2hf-neon-toolchain-2.4.1.sh
Note: the toolchain above is for the framebuffer version with the Qt support
Note: to run commands above you have to be inside the Yocto build directory
###### << . 5 . >>
Use the toolchain
Each time you wish to use the toolchain in a new shell session, you need to source the environment setup script:
$ source /opt/fslc-fb/2.4.1/environment-setup-armv7at2hf-neon-fslc-linux-gnueabi
Note: the toolchain above is for the framebuffer version
or
$ . /opt/fslc-x11/2.4.1/environment-setup-armv7at2hf-neon-fslc-linux-gnueabi
Note: the toolchain above is for the version with X11
######<< back to Top
######<< back to Home
Updated