Dies ist eine alte Version des Dokuments!


Toradex Colibri i.MX6

Loading Image to a Board

RS232 Console

A login shell can be accessed through UART-A on the Colibri Evaluation board with a null modem cable. The communication settings are: 115200 8N1.
If you are using our Controller Board (cb20) you need a special USB/TTL-Serial-UART converter cable. The connector on the board is a 6-pin SIL connector, e.g. http://ch.farnell.com/ftdi/ttl-232r-3v3/kabel-usb-ttl-pegel-seriell-umsetzung/dp/1329311

Crossdeveloping Applications

If you use our standard rootfs as described above, you have GCC 5.3 installed. For crossdevelopment you need the same toolchain (same gcc and library version) on the host and the target. Download this toolchain from out FTP: inf004/ftp/colibri_imx6/RT/host_tc_arm_gcc5_3_RT.zip and extract with

$ tar –xzvf host_tc_arm_gcc5_3_RT.zip

To build an application for that system, provide CMake the path to the CMake toolchainfile. This file can be found in your toolchain folder and from there navigate to /usr/share/buildroot/toolchainfile.cmake.

Accessing the UART's

UART-A (used for console, see above) and UART-B can be accessed on the cb20 board. Both can be written to with

echo "hello world" | sudo tee /dev/ttymxc0    # for console
echo "hello world" | sudo tee /dev/ttymxc1    # for UART-B

Build new System Images

System Setup

Environment variables are used for building the components. On the first time, everything has to be build in the correct order. The first variable is the working directory:

$ cd path/to/working/dir
$ export WD=$(pwd)

After the first complete build, the environment variables can be set by a script (env.sh):

export WD=/home/userXY/path/to/working/dir
export PATH=$WD/buildroot/output/host/usr/bin:$PATH
export PATH=$WD/u-boot/tools:$PATH
export ARCH=arm
export CROSS_COMPILE=arm-buildroot-linux-uclibcgnueabihf-
export KERNELDIR=$EFS/linux

Source this script to load the variables:

$ . env.sh

First steps with a newly flashed board

After loading your new rootfs run the initial-setup.sh script in /opt/cb20/bin to allow the generation of SSH-Keys. Also the read-write partition mounted at /mnt/data is formatted.

Device tree

The device tree binary for the cb20 and evaluation board can be found on the NTB FTP server (\\inf004\ftp)