Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX6-L/Development/Building the Yocto BSP

835 bytes added, 13:53, 27 February 2022
Building the Yocto BSP on DESK-MX6-L 3.0.0 release
<section begin="History" />
{| style="border-collapse:collapse; "
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
|-
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Version!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Issue Date!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|[[Building_the_Yocto_BSP_(XELK) | XELK]]|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Aug 2019|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Previous XELK version
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|1.0.0|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Jun 2021|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|First DESK release|-| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |3.0.0| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |Feb 2022| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |3.0.0 DESK release
|}
<section end="History" /><section begin="Body" />
==Building the Yocto BSP==
===Quick reference===
{| class="wikitable" border="1"
!colspan="3" |Repository Information
|-
! Repository
! URL
| git@git.dave.eu:desk-mx-l/desk-mx-l-bsp.git
| git@git.dave.eu:desk-mx-l/meta-desk-mx.git
|-
! stable branch
| sumohardknott| sumohardknott
|-
! stable tag
| desk-mx6-l-13.0.10| desk-mx6-l-13.0.10
|}
{| class="wikitable" border="1"
!colspan="2" |Build targets
|-
! Name
For more information on the Linux filesystem, please refer to http://www.thegeekstuff.com/2010/09/linux-file-system-structure/.
''desk-mx-l'' provides one (or more) pre-built root file system, that can be used during the evaluation/development/deployment cycle. For instance, the root file system included in the <code>dave-image-devel</code> image is suited for the development phase, since it provides a relatively rich set of packages including tools and libraries used to debug the application code. The pre-built root file systems are located here: <code>/home/dvdk/desk-mx-l/rfs/<kit_name></code>.
Besides the pre-built root file systems, DAVE also provides a rich repository containing pre-built applications and libraries. These packages can be easily installed on the target by using the <code>dnf</code> tool. Please refer to [[Advanced_use_of_Yocto_build_system_(''desk-mx-l'')#Using_pre-built_package_archive|this section]] for more details.
dvdk@vagrant:~/desk-mx-l$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo-1 > repo
dvdk@vagrant:~/desk-mx-l$ chmod a+x repo
dvdk@vagrant:~/desk-mx-l$ ./repo init -u git@git.dave.eu:desk-mx-l/desk-mx-l-bsp.git -b refs/tags/desk-mx6-l-13.0.10
dvdk@vagrant:~/desk-mx-l$ ./repo sync
</pre>
==== Running the build ====
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 80GiB of disk space is required for the build. The process may be slowed down significantly 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, to consider the following options:
* Migrating the build system to a physical machine
* Assuming that the host system has the required resources, extending the hardware capabilities of the default MVM (e.g. adding more cores and disk space).
Once completed the initialization phase, developers can launch the Yocto image build process with the following commands:
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/yocto$ DISTRO=fsl-imx-x11 MACHINE=desk-mx6 source desk-setup-release.sh -b build-x11dvdk@vagrant:~/desk-mx-l/yocto/build-x11$ bitbake desk-image-x11
</pre>
Where <code><target-image-name></code> is one of the images listed in [[#Quick reference|here]].
Once the build process is completed, the resulting files (the U-Boot binaries, the Linux kernel image, the device tree blob, the .tar.gz compressed root file system image, etc.) will be available in <code>build-x11/tmp/deploy/images/desk-mx-lmx6</code>using the environment prepared as stated above.
====Generating the SDKs====
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/yocto$ DISTRO=fsl-imx-x11 MACHINE=desk-mx6 source desk-setup-release.sh -b build-x11
</pre>
</pre>
The resulting packages (the default format is <code>rpm</code>) can be found inside ''<code>build-x11/tmp/deploy/rpm''</code>.
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/build-x11$ ls -l tmp/deploy/rpm/cortexa9hf_neoncortexa9t2hf_neon/memtester*-rw-r--r-- 1 4 dvdk dvdk 10692 Sep 13213 Feb 25 12 16:05 43 tmp/deploy/rpm/cortexa9hf_neoncortexa9t2hf_neon/memtester-4.35.0-r0.cortexa9hf_neoncortexa9t2hf_neon.rpm-rw-r--r-- 1 4 dvdk dvdk 27693 Sep 28049 Feb 25 12 16:05 43 tmp/deploy/rpm/cortexa9hf_neoncortexa9t2hf_neon/memtester-dbg-4.35.0-r0.cortexa9hf_neoncortexa9t2hf_neon.rpm-rw-r--r-- 1 4 dvdk dvdk 2872 Sep 6049 Feb 25 12 16:05 43 tmp/deploy/rpm/cortexa9hf_neoncortexa9t2hf_neon/memtester-dev-4.35.0-r0.cortexa9hf_neoncortexa9t2hf_neon.rpm-rw-r--r-- 1 4 dvdk dvdk 5903 Sep 8973 Feb 25 12 16:05 43 tmp/deploy/rpm/cortexa9hf_neoncortexa9t2hf_neon/memtester-doc-4.35.0-r0.cortexa9t2hf_neon.rpm-rw-r--r-- 4 dvdk dvdk 12977 Feb 25 12:43 tmp/deploy/rpm/cortexa9t2hf_neon/memtester-src-4.5.0-r0.cortexa9hf_neoncortexa9t2hf_neon.rpm
</pre>
devwiki_user
120
edits