Changes

Jump to: navigation, search

Building the Yocto BSP (DIVELK)

387 bytes added, 08:13, 2 May 2018
no edit summary
{{Applies To Yocto}}
{{InfoBoxBottom}}
 
{{ImportantMessage|text=As the DIVELK kit is based on Yocto, the implementation of the MVM follows the approach described [[Managed_Virtual_Machine_(MVM)#Yocto-based_Linux_distribution|here]]. As such, the reading of [[Managed_Virtual_Machine_(MVM)#Yocto-based_Linux_distribution|this section]] is highly recommended.
}}
== History ==
!Notes
|-
|{{oldid|7096|3.0.0}}
|Jun 2017
|[[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_3.0.0|DIVELK 3.0.0]]
|
|-
|-
|4.0.0
|Apr 2018
|[[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_4.0.0|DIVELK 4.0.0]]
|
|-
|-
! stable branch
| diva-fidomorty| diva-fidomorty
|-
! stable tag
| divelk-34.0.0| divelk-34.0.0
|}
| divelk-image-devel
| minimal for development/debugging image
|-
| divelk-image-networking
| based on divelk-image-devel plus networking tools
|-
| divelk-image-matrix
|}
==Introduction==
This is a quickstart guide to build Yocto BSP for DIVA SOM, to rebuild the binaries (uU-bootBoot, linux Linux kernel, root file system) provided with the DIVELK releases.
For more information regarding the Yocto build system, go to its [[:Category:Yocto|dedicated category page]]
== Build System prerequisite system prerequisites ==
DIVELK MVM is already configured to build this Yocto version/configuration, however , users typically don't use a VirtualBox VM for Yocto builds for performance reasons.
You can refer to [http://www.yoctoproject.org/docs/1.8/mega-manual/mega-manual.html#yp-resources Yocto manual setup section] for a list of supported Linux distribution and their configuration to create your own build environment on your favorite distribution.
== Build Building the DIVELK Yocto BSP ==
=== Toolchain ===
To build DIVELK BSP first you need to download Linaro toolchain from
https://releases.linaro.org/components/toolchain/binaries/56.32-2016.0211/arm-linux-gnueabihf/gcc-linaro-56.32.1-2016.0211-x86_64_arm-linux-gnueabihf.tar.xz
install it and add it to the PATH.
dvdk@vagrant-ubuntu-trusty-64:~/diva$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > repo
dvdk@vagrant-ubuntu-trusty-64:~/diva$ chmod a+x repo
dvdk@vagrant-ubuntu-trusty-64:~/diva$ ./repo init -u git@git.dave.eu:diva/diva-bsp.git -b diva-fidomorty
dvdk@vagrant-ubuntu-trusty-64:~/diva$ ./repo sync
</pre>
=== Build the Yocto BSP image === 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 of disk space is required for the build. Moreover, building inside the DVDK adds some overhead, 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, developers should 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 DVDK (eg: adding more cores and disk space)
170
edits

Navigation menu