116
edits
Changes
no edit summary
|}
This is a quickstart guide to build Yocto BSP for Axel SOMs, to rebuild the binaries (U-Boot, Linux kernel, root file system) provided with XELK releases.
For more information regarding Yocto build system, go to its [[:Category:Yocto|dedicated category page]]
<pre class="workstation-terminal">
dvdk@dvdk-vm:~/axel$ ./repo init -u git@git.dave.eu:axel/axel-bsp.git -b axel-krogoth
dvdk@dvdk-vm:~/axel$ ./repo sync
</pre>
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)
<pre class="workstation-terminal">
dvdk@dvdk-vm:~/xelkaxel$ DISTRO=fsl-imx-x11 MACHINE=imx6qxelk source axel-bspsetup-init-envrelease.sh -b build-x11dvdk@dvdk-vm:~/xelkaxel/build$ bitbake baseaxel-rootfsimage-imagex11
</pre>
Again, replace <code><target-image-name></code> with one of the images listed in [[#Quick reference|here]].
To build additional packages the user must first enter the directory where the axel-bsp-init-env.sh is placed and source it
<pre class="workstation-terminal">
dvdk@dvdk-vm:~/xelkaxel$ DISTRO=fsl-imx-x11 MACHINE=imx6qxelk source axel-bspsetup-init-envrelease.sh -b build-x11dvdk@dvdk-vm:~/xelkaxel/build$
</pre>
And then he can run any of the [[http://www.yoctoproject.org/docs/latest/mega-manual/mega-manual.html#usingpoky-components-bitbake bitbake]] commandcommands.
<pre class="workstation-terminal">
</pre>
The resulting packages (the default format is ipk) can be found inside ''build/tmp/deploy/ipkrpm''.
<pre class="workstation-terminal">