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"|2024/01/xx31|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-MX9-L -5.0.0 release
|-
|}
==== 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.
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/yocto$ python3 ./repo init -u git@git.dave.eu:desk-mx-l/desk-mx-l-bsp.git -b refs/tags/desk-mx9-l-5.0.0dvdk@vagrant:~/desk-mx-l/yocto$ python3 ./repo sync
</pre>
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/yocto$ DISTRO=fsl-imx-wayland MACHINE=desk-mx9 mx93 source desk-setup-release.sh -b build-wayland
...
Do you accept the EULA you just read? (y/n) y
==== 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).
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:~/desk-mx-l/yocto$ source deskDISTRO=fsl-mximx-l/yoctowayland MACHINE=desk-bspmx93 source desk-initsetup-envrelease.sh-b build-waylanddvdk@vagrant:~/desk-mx-l/yocto/build-wayland$
</pre>
</pre>
The resulting packages (the default format is <code>deb</code>) can be found inside ''tmp/deploy/rpm/images/desk-mx9mx93-l-5.0.0''.
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/yocto/build-wayland$ ls -l tmp/deploy/images/desk-mx9-l-5.0.0deb/armv8a/memtester*-rw-r--r-- 1 2 dvdk dvdk 10692 Sep 12 16 7548 Jan 28 13:05 54 tmp/deploy/images/desk-mx9-l-5.0.0deb/armv8a/memtester_4.56.10-r0_arm64.deb-rw-r--r-- 1 2 dvdk dvdk 27693 Sep 12 1621956 Jan 28 13:05 54 tmp/deploy/imagesdeb/deskarmv8a/memtester-mx9-l-5dbg_4.6.0-r0_arm64.0deb-rw-r--r-- 2 dvdk dvdk 876 Jan 28 13:54 tmp/deploy/deb/armv8a/memtester-dbg-4dev_4.56.10-r0_arm64.deb-rw-r--r-- 1 2 dvdk dvdk 2872 Sep 12 163072 Jan 28 13:05 54 tmp/deploy/images/desk-mx9-l-5.0.0deb/armv8a/memtester-dev-4doc_4.56.10-r0_arm64.deb-rw-r--r-- 1 2 dvdk dvdk 5903 Sep 12 166672 Jan 28 13:05 54 tmp/deploy/images/desk-mx9-l-5.0.0deb/armv8a/memtester-doc-4src_4.56.10-r0_arm64.deb
</pre>
8,226
edits