Open main menu

DAVE Developer's Wiki β

Changes

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

594 bytes removed, 08:46, 19 July 2023
no edit summary
!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"|VersionID#
!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"|X.Y.Z{{oldid|18015|18015}}|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 Year19/07/2023|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; borderDESK-right:solid 2px #73B2C7;borderMP1-top:solid 2px #73B2C7; borderL-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|[TBD_link X1.Y0.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; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|TBD0 release
|-
|}
! URL
| git@git.dave.eu:desk-mp1-l/desk-mp1-l-bsp.git
| git@git.dave.eu:desk-mp1-l/meta-desk-mp1-l.git
|-
! stable branch
| desk-mp1-l-''TBD''kirkstone| ''TBD (e.g. Yocto version)kirkstone
|-
! stable tag
| desk-mp1-l-1.x0.x0| desk-mp1-l-1.x0.x0
|}
! Description
|-
| desk-mp1-l-image| Minimal image|-| desk-mp1-ldave-image-devel
| This image include tools for development/debugging
|-
| deskdave-mp1image-lqt5-image-networkingweston| In addition <code>desk-mp1-ldave-image-devel</code>, this image provides several networking toolsQt5 libraries using the <code>weston</code> backend with <code>wayland</code> server
|}
''desk-mp1-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}}}mp1-l$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo -1 > repodvdk@vagrant:~/{{{kitdesk-repo}}}mp1-l$ chmod a+x repodvdk@vagrant:~/{{{kitdesk-repo}}}mp1-l$ ./repo init -u git@git.dave.eu:{{{kit/desk-mp1-repo}}}l/{{{kitdesk-repo}}}mp1-l-bsp.git -b {{{kitdesk-mp1-repo}}}l-''TBD''1.0.0dvdk@vagrant:~/{{{kitdesk-repo}}}mp1-l$ ./repo syncdvdk@vagrant:~/{{{kitdesk-repo}}}mp1-l$ source {{{kitDISTRO=openstlinux-repo}}}eglfs MACHINE=desk-bspmp1 source ./desk-initsetup-envrelease.sh
</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 8 cores, 816-12 32 GiB RAM) also depending on your Internet connection speed (all sources are fetched from the network). Nearly 20GiB 100GiB 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}}}mp1-l/build$ bitbake <target-image-name>
</pre>
Where <code><target-image-name></code> is one of the images listed in [[#Quick reference|here]].
==== Building additional packages ====
To build additional packages the user must first enter the directory where the <code>desk-mp1-l-bsp-init-env.sh</code> is placed and source it:
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kitdesk-repo}}}mp1-l$ source {{{kitDISTRO=openstlinux-repo}}}eglfs MACHINE=desk-bspmp1 source ./desk-initsetup-envrelease.shdvdk@vagrant:~/{{{kitdesk-mp1-repo}}}l/build$
</pre>
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kitdesk-repo}}}mp1-l/build$ bitbake memtester
</pre>
The resulting packages (the default format is ipk) can be found inside ''build/tmp-glibc/deploy/rpmdeb''. ''TBD: nomi dei pacakge pertinenti con il SOC''
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kitdesk-repo}}}mp1-l/build$ ls -l tmp-glibc/deploy/rpmdeb/cortexa9hf_neoncortexa7t2hf-neon-vfpv4/memtester*-rw-r--r-- 1 2 dvdk dvdk 10692 Sep 12 1617712 Mar 1 08:05 57 tmp-glibc/deploy/rpmdeb/cortexa9hf_neoncortexa7t2hf-neon-vfpv4/memtester-4dbg_4.35.01-r0.cortexa9hf_neon0_armhf.rpmdeb-rw-r--r-- 1 2 dvdk dvdk 27693 Sep 12 16 904 Mar 1 08:05 57 tmp-glibc/deploy/rpmdeb/cortexa9hf_neoncortexa7t2hf-neon-vfpv4/memtester-dbg-4dev_4.35.01-r0.cortexa9hf_neon0_armhf.rpmdeb-rw-r--r-- 1 2 dvdk dvdk 2872 Sep 12 163096 Mar 1 08:05 57 tmp-glibc/deploy/rpmdeb/cortexa9hf_neoncortexa7t2hf-neon-vfpv4/memtester-dev-4doc_4.35.01-r0.cortexa9hf_neon0_armhf.rpmdeb-rw-r--r-- 1 2 dvdk dvdk 5903 Sep 12 166432 Mar 1 08:05 57 tmp-glibc/deploy/rpmdeb/cortexa9hf_neoncortexa7t2hf-neon-vfpv4/memtester-docsrc_4.5.1-4r0.30_armhf.0deb-rw-r--r-- 2 dvdk dvdk 6492 Mar 1 08:57 tmp-glibc/deploy/deb/cortexa7t2hf-neon-vfpv4/memtester_4.5.1-r0.cortexa9hf_neon0_armhf.rpmdeb
</pre>
8,286
edits