#Buildroot 2016.02 on XTERM-01

<div class="text-success lead">
This article illustrates how to generate from sources a BuildRoot 2016.02 distribution for XTERM-01
</div>

##Building BuildRoot from sources

Follow this article: 

* @article='buildroot_2016_02' 

using <b>acme-xterm-01_defconfig</b> in this way instead of use other buildroot configuration.

<pre class="terminal">
~/buildroot-2016.02$ <b>make acme-xterm-01_defconfig</b>
...
</pre>

The file <b>acme-xterm-01_defconfig</b> is created by the patches applied in this article on the standard Buildroot distribution.

##Compile Linux

Follow this article: 

* @article='compile_linux_4_4' 

using <b>acme-xterm-01_defconfig</b> to generate the Linux config:

<pre class="terminal">
~/linux-4.4.11$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- acme-xterm-01_defconfig
...
</pre>

and <b>acme-xterm-01.dts</b> as device tree:

<pre class="terminal">
~/linux-4.4.11$ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- acme-xterm-01.dtb
...
</pre>

These files are created by applying the patches listed inside the articles.

##Copying the file on the first uSD partition

<pre class="terminal">
~/linux-4.4.11$ cp arch/arm/boot/dts/acme-xterm-01.dtb /media/$USER/boot/acme-arietta.dtb
~/linux-4.4.11$ cp arch/arm/boot/zImage /media/$USER/boot
~/linux-4.4.11$ sudo rsync -avc modules/lib/. /media/$USER/rootfs/lib/.
</pre>

##Try a Qt example

Get the access to the board using the [DPI interface](/DIP) or via [SSH](/ssh).

Login with as __root__ using the password __acmesystems__

Calibrate the touchscreen by typing:

<pre class="minicom">
# <b>ts_calibrate</b>
</pre>  

then try one of the Qt example available:

<pre class="minicom">
# <b>cd /usr/share/qt/examples/widgets/sliders</b>
# <b>./sliders</b> 
</pre>  

now run this command in order to set Qt to use tslib:

<pre class="minicom">
# <b>export QWS_MOUSE_PROTO=Tslib:/dev/input/event0</b>
</pre>  

then launch the first example ([see the video](https://youtu.be/dxFgib5qrvA)):

<pre class="minicom">
# <b>/sliders -qws</b>
</pre>  

##Related links

* [BuildRoot web page](http://www.buildroot.net/)

@shop='XTERM-01'
@shop='ARIETTA-G25'
@shop='ARIETTA-G25-256'
@shop='STRIP-001'
