Changes

Jump to: navigation, search

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

1,343 bytes removed, 16:50, 14 February 2022
no edit summary
!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"|X1.Y0.Z0|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"|Month YearFeb 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"|TBD|-|-|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"|[TBD_link X.Y.Z]|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"|Month Year|style="border-left:solid 2px #73B2C7; borderFirst DESK-right:solid 2px #73B2C7;borderMX8-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|TBDL release
|-
|}
|-
! URL
| git@gitgitlab.lan.dave.eu:desk-mx8mmx-l-rel-2.0.0/desk-mx8mmx-l-rel-2.0.0-bsp.git| git@gitgitlab.lan.dave.eu:desk-mx8mmx-l-rel-2.0.0/meta-desk-mx8m-l-rel-2.0.0mx.git
|-
! stable branch
| desk-mx8m-l-rel-2.0.0-''TBD''| ''TBD (edesk-mx8m-l-rel-2.g0. Yocto version)0
|-
! stable tag
| desk-mx8m-l-rel-2.0.0-1.x.xrc2| desk-mx8m-l-rel-2.0.0-1.x.xrc2
|}
! Description
|-
| desk-mx8m-l-rel-2.0.0-image| Minimal image|-| desk-mx8m-l-rel-2.0.0dave-image-devel
| This image include tools for development/debugging
|-
| desk-mx8m-l-rel-2.0.0-image-networkingqt5| In addition <code>desk-mx8m-l-rel-2.0.0-image-devel</code>, this This image provides several networking toolsinclude a Qt5 graphic backend on framebuffer
|}
For more information on the Linux filesystem, please refer to http://www.thegeekstuff.com/2010/09/linux-file-system-structure/.
''desk[[DESK-mx8mMX8M-lL | DESK-relMX8M-2.0.0'' 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>desk-mx8m-l-rel-2.0.0-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/<target_name>/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>smart</code> tool. Please refer to [[Advanced_use_of_Yocto_build_system_(''desk[[DESK-mx8mMX8M-lL | DESK-relMX8M-2.0.0''L]])#Using_pre-built_package_archive|this section]] for more details.
To generate the supported root file systems, the build of the Yocto BSP has to be run. The output of this process is an image containing the U-Boot binary file, the Linux kernel image, and the selected root file system image. The following sections describe in detail how to execute this operation.
{{ImportantMessage|text=The following procedure requires the access to the DAVE Embedded Systems' git repositories. The access to such repositories is granted to development kit's owners only. Please refer to [[Accessing_DAVE_Embedded_Systems_restricted_git_repositories|this page]] for detailed instructions on how to get it.}}
{{ImportantMessage|text=This process requires a lot of hardware resources in terms of disk storage, RAM, and processing power. For this reason, it also is recommended to consider the use of a physical machine. For more details on this topic, please refer to the [[Advanced_use_of_Yocto_build_system_(''deskhttps://www.nxp.com/webapp/Download?colCode=imx-mx8myocto-l-rel-2L4.14.98_2.0.00_ga NXP documentation on this BSP], i.e. the ''i.MX Yocto Project User's Guide'')|this document]] , which talks about the advanced use of hosto setup for the Yocto build system.}}
==== Initialize the build environment ====
Before running the build, the environment must be initialized properly.
''desk[[DESK-mx8mMX8M-lL | DESK-relMX8M-2.0.0'' L]] Yocto BSP uses [https://code.google.com/p/git-repo/ git-repo] tool to fetch all the required git repositories. To install it, please use the following commands:
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > repodvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto$ chmod a+x repodvdk@vagrant:~/{{{kitdesk-mx-repo}}}l/yocto$ ./repo init -u git@git.dave.eu:{{{kitdesk-mx-repo}}}l/{{{kitdesk-repo}}}mx-l-bsp.git -b {{{kitrefs/tags/desk-mx8m-l-repo}}}2.0.0-''TBD''rc2dvdk@vagrant:~/{{{kitdesk-mx-repo}}}l/yocto$ ./repo syncdvdk@vagrant:~/{{{kitdesk-mx-repo}}}l/yocto$ source {{{kitdesk-repo}}}mx-l-bsp-init-env.sh
</pre>
Once completed the initialization phase, developers can launch the Yocto image build process with the following commands:
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto/build$ bitbake <targetdave-image-name>devel
</pre>
Where <code><targetdave-image-name>devel</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/tmp/deploy/images/desk-mx8m-l-rel-2.0.0</code>.
After creating an image as described in the previous version, the corresponding SDK can be generated by issuing the following command:
<pre class="workstation-terminal">
bitbake <targetdave-image-name> devel -c populate-sdk
</pre>
Again, replace <code><targetdave-image-name>devel</code> with one of the images listed in [[#Quick reference|here]].
==== Building additional packages ====
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto$ source {{{kitdesk-repo}}}mx-l-bsp-init-env.shdvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto/build$
</pre>
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto/build$ bitbake memtester
</pre>
The resulting packages (the default format is ipkrpm) can be found inside ''build/tmp/deploy/rpm''. ''TBD: nomi dei pacakge pertinenti con il SOC''
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kit-repo}}}/build$ ls -l tmp/deploy/rpm/cortexa9hf_neon/memtester*
-rw-r--r-- 1 dvdk dvdk 10692 Sep 12 16:05 tmp/deploy/rpm/cortexa9hf_neon/memtester-4.3.0-r0.cortexa9hf_neon.rpm
-rw-r--r-- 1 dvdk dvdk 27693 Sep 12 16:05 tmp/deploy/rpm/cortexa9hf_neon/memtester-dbg-4.3.0-r0.cortexa9hf_neon.rpm
-rw-r--r-- 1 dvdk dvdk 2872 Sep 12 16:05 tmp/deploy/rpm/cortexa9hf_neon/memtester-dev-4.3.0-r0.cortexa9hf_neon.rpm
-rw-r--r-- 1 dvdk dvdk 5903 Sep 12 16:05 tmp/deploy/rpm/cortexa9hf_neon/memtester-doc-4.3.0-r0.cortexa9hf_neon.rpm
</pre>
----
[[Category:ORCA]]
8,256
edits

Navigation menu