Open main menu

DAVE Developer's Wiki β

Changes

Template:Building the Yocto BSP

292 bytes added, 16 January
Introduction
!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"|Version
!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|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"xxxx|Year/Month Year/Day}}
|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:#edf8fbededed; padding:5px; color:#000000"|Year/Month Year/Day|!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fbededed; padding:5px; color:#000000"|TBD
|-
|}
<section end=History/>
__FORCETOC__
<section begin=Body/>
''{{{kit-repo}}}'' 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>{{{kit-repo}}}-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_(''{{{kitDESK-MX8M-AN-repo}}}'')#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| styletext="color:#000000; border:solid 1px #A8A8A8; padding:0This process requires a lot of hardware resources in terms of disk storage, RAM, and processing power.3em; margin:0For this reason, it also is recommended to consider the use of a physical machine.3em 0; background-color:#FFFFFF;font-size:95%; vertical-align:middle; "| style="widthFor more details on this topic, please refer to the [https:40px; padding:0//www.nxp.8em;" | [[File:200pxcom/docs/en/supporting-Emblem-importantinformation/L5.15.71_2.2.svg0_LINUX_DOCS.png|60pxzip NXP documentation on this BSP]]| style="vertical-align:middle;"|Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliquai. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequate. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariaturthe ''i. Excepteur sint occaecat cupidatat non proidentMX Yocto Project User's Guide'', sunt in culpa qui officia deserunt mollit anim id est laborumwhich talks about the host setup for the Yocto build system.|}}
==== Initialize the build environment ====
Check that the following packages are install:
{{ImportantMessage|text<pre class=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 [[Advanced_use_of_Yocto_build_system_(''{{{kit"workstation-terminal">dvdk@vagrant:~$ sudo apt-repo}}}'')|this document]] which talks about the advanced use of the Yocto get update && sudo apt install gawk wget git diffstat unzip texinfo gcc build system-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>
==== Initialize the build environment ====
Before running the build, the environment must be initialized properly.
''{{{kit-repo}}}'' 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 ~/desk-mx-l/yocto
dvdk@vagrant:~$ cd ~/desk-mx-l/yocto
dvdk@vagrant:~/desk-mx-l/yocto$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo-1 > repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 29945 100 29945 0 0 64816 0 --:--:-- --:--:-- --:--:-- 64676
dvdk@vagrant:~/desk-mx-l/yocto$ chmod a+x repo
</pre>
 
then, fetch the Yocto repositories with the proper branch:
 
<pre class="workstation-terminal">
dvdk@vagrant:~/{{{kitdesk-repo}}}$ curl http://commondatastorage.googleapis.com/git-repomx-downloadsl/repo > repodvdk@vagrant:~/{{{kit-repo}}}$ chmod a+x repodvdk@vagrant:~/{{{kit-repo}}}yocto$ ./repo init -u git@git.dave.eu:{{{kitdesk-mx-repo}}}l/{{{kitdesk-mx-repo}}}l-bsp.git -b {{{kitrefs/tags/desk-mx8m-repo}}}l-''TBD''4.0.0dvdk@vagrant:~/{{{kitdesk-repo}}}mx-l/yocto$ ./repo sync-c</pre> ==== Initialize DISTRO and MACHINE ====Select the Weston backend (you will be asked to accept the EULA): <pre class="workstation-terminal">dvdk@vagrant:~/{{{kitdesk-mx-repo}}}l/yocto$ DISTRO=fsl-imx-wayland MACHINE=desk-mx8mp 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>
The resulting packages (the default format is ipk) can be found inside ''build/tmp/deploy/rpm''.
''TBD: nomi dei pacakge package pertinenti con il SOC''
<pre class="workstation-terminal">
</pre>
----<section end=Body/> 
[[Category:{{{nome-som}}}]]
8,226
edits