Changes

Jump to: navigation, search

Building the Yocto BSP (XUELK)

127 bytes removed, 21:09, 5 December 2016
fix paragraph numbering and other minor changes
For more information regarding Yocto build system, go to its [[:Category:Yocto|dedicated category page]]
=== Build System prerequisite ===
XUELK MVM is already configured to build this Yocto version/configuration, however users typically don't use a VirtualBox VM for Yocto builds for performance reasons.
You can refer to [http://www.yoctoproject.org/docs/1.8/mega-manual/mega-manual.html#yp-resources Yocto manual setup section] for a list of supported Linux distribution and their configuration.
=== Build XUELK Yocto BSP ===
==== Initialize the build environment ====
XUELK Yocto BSP uses [https://code.google.com/p/git-repo/ git-repo] tool to fetch all the required git repositories to build
dvdk@dvdk-vm:~/lynx$ ./repo init -u git@git.dave.eu:lynx/lynx-bsp.git -b lynx-fido
dvdk@dvdk-vm:~/lynx$ ./repo sync
dvdk@dvdk-vm:~/lynx$ DISTRO=fsl-imx-fb MACHINE=sbc-lynx source lynx-setup-release.sh -b build-fb -e fb
dvdk@dvdk-vm:~/lynx/build$ bitbake lynx-image-gui
</pre>
==== Build the Yocto image ====
Please note that even the basic root file system requires a few hours to build on a mid-hi range desktop (4-6 cores, 8-12 GiB RAM) also depending on your Internet connection speed (all sources are fetched from the network). Nearly 20GiB of disk space is required for the build. Moreover, building inside the DVDK adds some overhead, since the performances of a virtual machine are reduced if compared to the physical hardware. Thus, it's recommended to check the hardware capabilities of the host system and, when building with Yocto is required, developers should consider the following options:
The resulting files (kernel, devicetree and u-boot binaries, plus .tar.gz root file system) will then be available inside ''build/tmp/deploy/images/sbc-lynx''.
==== Build additional packages ====
To build additional packages the user must first enter the directory where the <code>lynx-setup-release.sh</code> is placed and source it
<pre class="workstation-terminal">
dvdk@dvdk-vm:~/lynx/build$ ls -l tmp/deploy/rpm/armv7a-vfp-neoncortexa7hf_vfp_neon/memtester*-rw-r--r-- 2 1 dvdk dvdk 7102 Aug 26 169967 Sep 7 05:33 43 tmp/deploy/rpm/armv7acortexa7hf_vfp_neon/memtester-vfp-neon/memtester_44.1.3-r0_armv7a-vfp-neonr0.cortexa7hf_vfp_neon.ipkrpm-rw-r--r-- 2 1 dvdk dvdk 21720 Aug 26 1625544 Sep 7 05:33 43 tmp/deploy/rpm/armv7a-vfp-neoncortexa7hf_vfp_neon/memtester-dbg_4dbg-4.1.3-r0_armv7a-vfp-neonr0.cortexa7hf_vfp_neon.ipkrpm-rw-r--r-- 2 1 dvdk dvdk 792 Aug 26 16 2884 Sep 7 05:33 42 tmp/deploy/rpm/armv7a-vfp-neoncortexa7hf_vfp_neon/memtester-dev_4dev-4.1.3-r0_armv7a-vfp-neonr0.cortexa7hf_vfp_neon.ipkrpm-rw-r--r-- 2 1 dvdk dvdk 2748 Aug 26 165611 Sep 7 05:33 44 tmp/deploy/rpm/armv7a-vfp-neoncortexa7hf_vfp_neon/memtester-doc_4doc-4.1.3-r0_armv7a-vfp-neonr0.cortexa7hf_vfp_neon.ipkrpm
</pre>
743
edits

Navigation menu