Changes

Jump to: navigation, search

XUELK-AN-003: Running Buildroot distribution

157 bytes added, 10:49, 14 February 2017
no edit summary
|}
==Introduction==
By default, [[AXEL_ULite_and_SBC_Lynx_Embedded_Linux_Kit_(XUELK)|'''AXEL ULite and SBC Lynx Embedded Linux Kit (XUELK)''']] comes with a Yocto distribution. Nevertheless, other distributions can be used as well. This application shows how to run one of them, [https://buildroot.org buildrootBuildroot].
buildroot Buildroot is known to be very simple to configure and build. An exhaustive discussion of buildroot Buildroot is beyond the scope of this application note. Interested reader can refer for example to [http://events.linuxfoundation.org/sites/events/files/slides/belloni-petazzoni-buildroot-oe_0.pdf this presentation] which compares in detail Yocto and buildrootBuildroot.
The test bed used for this application note is composed of the same hardware/software platform delivered along with the XUELK. About buildrootBuildroot, the version 2016.11.2 was used.
==Donwloading, configuring and building buildroot==This process is straightforward. Once the file [https://buildroot.org/downloads/buildroot-2016.11.2.tar.gz <code>buildroot-2016.11.2.tar.gz</code>] is downloaded and decompressed on your Linux host machine, get into the buildroot Buildroot directory, and run <code>make menuconfig</code>.
Then enter the <code>Target options</code> menu and select:
*<code>ARM (little endian)</code> for <code>Target Architecture</code>
*<code>cortex-A7</code> for <code>Target Architecture Variant</code>
Once the build process is completed, in the <code>output/images</code> subdirectory the file <code>rootfs.tar</code> is available. This file contains the root file system for the target.
In this example, this file is was untarred on a NFS server, in order to mount it via NFS protocol by the target. The following dump shows the serial console messages, printed out by the target during the boot process:
<pre class="mw-collapsible mw-collapsed">
Swap: 0 0 0
</pre>
In real world applications, additional packages are usually added by selecting them under the <code>Target packages</code> item of the configuration menu. Just look at the <code>packages</code> directory to see which ones are available out of the box. To add further packages, please refer to [https://buildroot.org/downloads/manual/manual.html#adding-packages this link].
4,650
edits

Navigation menu