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}}xx|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:#ededed; padding:5px; color:#000000"|Year/Month/Day!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; borderFirst DESK-bottom:solid 2px #73B2C7; backgroundMX9-color:#ededed; padding:5px; color:#000000"|TBDL 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/supporting-information/L5.15.71_2.2.0_LINUX_DOCS.zip 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 ====
Check that the following packages are install:
 
<pre class="workstation-terminal">
dvdk@vagrant:~$ sudo apt-get update && sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm python3-subunit mesa-common-dev zstd liblz4-tool
</pre>
 
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$ ./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$ ./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-mx9 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>
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]].
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto$ source {{{kitdesk-mx-repo}}}l/yocto-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 ipk<code>deb</code>) can be found inside ''build/tmp/deploy/rpm/images/desk-mx9-l-5.0.0''. ''TBD: nomi dei package pertinenti con il SOC''
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto/build$ ls -l tmp/deploy/rpmimages/desk-mx9-l-5.0.0/cortexa9hf_neonarmv8a/memtester*-rw-r--r-- 1 dvdk dvdk 10692 Sep 12 16:05 tmp/deploy/rpmimages/cortexa9hf_neon/memtesterdesk-mx9-l-45.30.0/armv8a/memtester_4.5.1-r0r0_arm64.cortexa9hf_neon.rpmdeb-rw-r--r-- 1 dvdk dvdk 27693 Sep 12 16:05 tmp/deploy/rpmimages/cortexa9hf_neondesk-mx9-l-5.0.0/armv8a/memtester-dbg-4.35.01-r0.cortexa9hf_neonr0_arm64.rpmdeb-rw-r--r-- 1 dvdk dvdk 2872 Sep 12 16:05 tmp/deploy/rpmimages/desk-mx9-l-5.0.0/cortexa9hf_neonarmv8a/memtester-dev-4.35.01-r0.cortexa9hf_neonr0_arm64.rpmdeb-rw-r--r-- 1 dvdk dvdk 5903 Sep 12 16:05 tmp/deploy/rpmimages/cortexa9hf_neondesk-mx9-l-5.0.0/armv8a/memtester-doc-4.35.01-r0.cortexa9hf_neonr0_arm64.rpmdeb
</pre>
8,226
edits