Changes

Jump to: navigation, search

XUELK-AN-003: Running Buildroot distribution

368 bytes added, 15:47, 18 September 2018
no edit summary
{{AppliesToSBCLynx}}
{{InfoBoxBottom}}
{{WarningMessage|text=This application note was validated against specific versions of the kit only. It may not work with other versions. Supported versions are listed in the ''History'' section.}}
== History ==
{| class="wikitable" border="1"
|}
==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 note 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 The 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>
[[File:Buildroot-cortex-A7.png|thumb|center|600px|]]
That's it: after saving your configuration, and exiting <code>menuconfig</code> , you can start the build process, by simply issuing the <code>make</code> command.
==Mounting buildroot the Buildroot file system on the target==
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