Open main menu

DAVE Developer's Wiki β

Changes

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"|{{oldid|xxxx|Year2024/Month01/Day}}31|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;borderDESK-top:solid 2px #73B2C7; borderMX9-bottom:solid 2px #73B2C7; backgroundL-color:#ededed; padding:5px; color:#000000"|Year/Month/Day!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000"|TBD5.0.0 release
|-
|}
|-
! URL
| git@git.dave.eu:desk-mx9mx-l-5.0.0/desk-mx9mx-l-5.0.0-bsp.git| git@git.dave.eu:desk-mx9mx-l-5.0.0/meta-desk-mx9-l-5.0.0mx.git
|-
! stable branch
| desk-mx9-l-5.0x.0-''TBD''x| ''TBD (edesk-mx9-l-5.gx. Yocto version)x
|-
! stable tag
| desk-mx9-l-5.0.0-1.x.x| desk-mx9-l-5.0.0-1.x.x
|}
! Description
|-
| desk-mx9-l-5.0.0-image| Minimal image|-| desk-mx9-l-5.0.0dave-image-devel
| This image include tools for development/debugging
|-
| desk-mx9-l-5.0.0-image-networkingqt6| In addition <code>desk-mx9-l-5.0.0-image-devel</code>, this This image provides several networking toolsinclude a Qt6 graphic backend on Wayland compositor
|}
For more information on the Linux filesystem, please refer to http://www.thegeekstuff.com/2010/09/linux-file-system-structure/.
''desk[[DESK-MX9-mx9L | DESK-lMX9-5.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-mx9-l-5.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>smartapt-get</code> tool. Please refer to [[Advanced_use_of_Yocto_build_system_(''deskDESK-mx9MX8M-lAN-5.0.0'')#Using_pre0001:_Package_Management_with_apt-built_package_archiveget |this sectionapplication note]] 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_(https://www.nxp.com/docs/en/user-guide/IMX_YOCTO_PROJECT_USERS_GUIDE.pdf NXP documentation on this BSP], i.e. the ''desk-mx9-l-5i.0.0MX Yocto Project User's Guide'')|this document]] , which talks about the advanced use of host setup for the Yocto build system.}}
==== Initialize the build environment ====
 
Before running the build, the environment must be initialized properly.
''desk[[DESK-MX9-mx9L | DESK-lMX9-5.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:~$ mkdir -p ~/{{{kitdesk-repo}}}mx-l/yoctodvdk@vagrant:~$ cd ~/desk-mx-l/yoctodvdk@vagrant:~/desk-mx-l/yocto$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > repodvdk@vagrant:~/{{{kitdesk-mx-repo}}}l/yocto$ chmod a+x repo</pre> then, fetch the Yocto repositories with the proper branch: <pre class="workstation-terminal">dvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto$ python3 ./repo init -u git@git.dave.eu:{{{kitdesk-repo}}}mx-l/{{{kitdesk-repo}}}mx-l-bsp.git -b {{{kitrefs/tags/desk-mx9-repo}}}l-''TBD''5.0.0dvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto$ python3 ./repo sync</pre> ==== Initialize DISTRO and MACHINE ====Select the Weston backend (you will be asked to accept the EULA): <pre class="workstation-terminal">dvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto$ DISTRO=fsl-imx-wayland MACHINE=desk-mx93 source {{{kitdesk-repo}}}setup-bsprelease.sh -initb build-envwayland.sh..Do you accept the EULA you just read? (y/n) y EULA has been accepted. Welcome to Freescale Community BSP...dvdk@vagrant:~/desk-mx-l/yocto/build-wayland$
</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 50GiB 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:~/{{{kitdesk-repo}}}mx-l/yocto/build$ bitbake <target-image-name>
</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/tmp/deploy/images/desk-mx9-l-5.0.0mx39</code>.
====Generating the SDKs====
</pre>
Again, replace <code><target-image-name></code> with one of the images listed in [[#Quick reference|here]].
 
====Generating the Toolchain====
Toolchain can be created by the following command:
 
<pre class="workstation-terminal">
bitbake meta-toolchain
</pre>
 
==== Building additional packages ====
To build additional packages the user must first enter select the directory where ''DISTRO'' and source the <code>desk-mx9-l-5.0.0-bspsetup-init-envrelease.sh</code> is placed and source itscript
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto$ source {{{kitDISTRO=fsl-imx-repo}}}wayland MACHINE=desk-bspmx93 source desk-initsetup-envrelease.sh-b build-waylanddvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto/build-wayland$
</pre>
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto/build$ bitbake memtester
</pre>
The resulting packages (the default format is ipk<code>deb</code>) can be found inside ''build/tmp/deploy/rpm/images/desk-mx93-l-5.0.0''. ''TBD: nomi dei package pertinenti con il SOC''
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kit-repo}}}yocto/build-wayland$ ls -l tmp/deploy/rpmdeb/cortexa9hf_neonarmv8a/memtester*-rw-r--r-- 1 2 dvdk dvdk 7548 Jan 28 13:54 tmp/deploy/deb/armv8a/memtester_4.6.0-r0_arm64.deb-rw-r--r-- 2 dvdk dvdk 10692 Sep 12 1621956 Jan 28 13:05 54 tmp/deploy/rpmdeb/cortexa9hf_neonarmv8a/memtester-4dbg_4.36.0-r0.cortexa9hf_neonr0_arm64.rpmdeb-rw-r--r-- 1 2 dvdk dvdk 27693 Sep 12 16 876 Jan 28 13:05 54 tmp/deploy/rpmdeb/cortexa9hf_neonarmv8a/memtester-dbg-4dev_4.36.0-r0.cortexa9hf_neonr0_arm64.rpmdeb-rw-r--r-- 1 2 dvdk dvdk 2872 Sep 12 163072 Jan 28 13:05 54 tmp/deploy/rpmdeb/cortexa9hf_neonarmv8a/memtester-dev-4doc_4.36.0-r0.cortexa9hf_neonr0_arm64.rpmdeb-rw-r--r-- 1 2 dvdk dvdk 5903 Sep 12 166672 Jan 28 13:05 54 tmp/deploy/rpmdeb/cortexa9hf_neonarmv8a/memtester-doc-4src_4.36.0-r0.cortexa9hf_neonr0_arm64.rpmdeb
</pre>
8,226
edits