Changes

Jump to: navigation, search

Build system (BELK/BXELK)

5,834 bytes removed, 15:56, 11 September 2017
BELK 4.0.0 or newer, BXELK 2.0.0 or newer
As described [[Managed_Virtual_Machine_(MVM)#Yocto-based_Linux_distribution|here]], MVM includes the resources—in terms of network services, cross-toolchain, etc.—to implement the development host shown [[Introduction_to_development_environment_(BELK/BXELK)#Overview|here]].
Part of these resources was generated by the Yocto build system, as depicted in the following picture.
 [[File:Belk-yocto.png{{ImportantMessage|thumb|center|600px|Simplified flow of Yocto-based building process]]  The Yocto-related resources included in the MVM provided with text=As the XUELK kit allows the developer to:*Build U-Boot SPL/U-Boot separately*Build the Linux kernel separately*Build user application upon the is based on Yocto SDK*Use a pre-built root file system image*Install on , the target pre-built additional packages. The build processes mentioned above make use implementation of a pre-built cross-toolchain. To use it, the shell environment has to be set up properly first. To do this, just issue MVM follows the following command:<pre>source /home/dvdk/env.sh</pre> For detailed instructions on how to build U-Boot and the Linux kernel, please refer to approach described [[Building_U-Boot_Managed_Virtual_Machine_(BELK/BXELK)|this page]] and [[Building_Linux_kernel_(BELK/BXELKMVM)|this page]]. By default, the sources are installed in the following directories:*U-Boot: <code>/home/dvdk/<target_name>/u-boot</code>*Linux kernel: <code>/home/dvdk/<target_name>/linux</code>*MVM: <code>/home/dvdk/<target_name>/mvm/</code>.U-Boot and Linux sources were retrieved from public git repositories:{| class="wikitable" border="1"!Component!Remote git repository|-|U-Boot|<code>git@git.dave.eu:dave/bora/u-boot-xlnx.git</code>|-|Linux kernel|<code>git@git.dave.eu:dave/bora/linux-xlnx.git</code>|-|#Yocto BSP|<code>git@git.dave.eu:dave/bora/bora-bsp.git</code>|-based_Linux_distribution|}Access to DAVE Embedded Systems' git repositories is granted to development kit's owners only. Please refer to [[Accessing_DAVE_Embedded_Systems_restricted_git_repositories|this pagehere]] for detailed instructions on how to get accessThe components listed in the table above can be kept in sync and up to date with DAVE Embedded Systems' repositories.Once the git account has been enabled, the developer can:*clone the repository with the <code>git clone <git_remote_repository></code> command *synchronize a source tree entering the repository directory and launching the <code>git fetch origin</code> command.Please note that git fetch doesn't merge the commits on the current branch. To do that, the developer should run the <code>git merge</code> command or replace the ''fetch-merge'' process with a single <code>git pull</code> command. Please note that the recommended method is the ''fetch-merge'' process. For further information on Git, please refer to the official Git Documentation (http://git-scm.com/documentation). {{ImportantMessage|text=Technically speakingAs such, the developer can run a Yocto-based full build process to (re)generate all the pre-built objects included in the MVM. However, this process requires a lot reading of hardware resources in terms of disk storage, RAM, and processing power. For this reason, it is discouraged to use the MVM to perform such build. Using a physical machine is recommended instead. For more details on this, please refer to [[Advanced_use_of_Yocto_build_system_Managed_Virtual_Machine_(BELK/BXELKMVM)#Yocto-based_Linux_distribution|this pagesection]]is highly recommended.
}}
====Yocto BSP image and associated SDKs====
The Yocto BSP image includes the U-Boot binary, the Linux kernel image, and the target root file system. For more information about how to build it and how to build the associated SDKs, please refer to [[Building the Yocto BSP (XUELK)|this page]].
As known, Linux needs a root file system to operate: a root file system must contain everything needed to support ====Building the Linux system (applications, settings, data, ..). The root file system is the file system that is contained on the same partition on which U-Boot and the root directory is located. The Linux kernel, at the end of its startup stage, mounts the root file system on the configured root device and finally launches the <code>/sbin/init</code>, the first user space process and "father" of all the other processes.For more information on the Linux filesystem, please refer to http://www.thegeekstuff.com/2010/09/linux-file-system-structure/. BELK/BXELK provides one (or more) pre-built root file system, that can be used during the evaluation/development phase since it provides a relatively rich set of packages for working with the BORA platform. This root file system is located here: <code>/home/dvdk/<target_name>/rfs/<kit_name></code>. BELK/BXELK also provides a rich repository containing pre-built applications and libraries. These packages can be easily installed on the target by using the <code>smart</code> tool. Please refer to [[Advanced_use_of_Yocto_build_system_(BELK/BXELK)#Using_pre-built_package_archive|this section]] for more details. The following table lists the pre-built root file systems included in the MVM.{| classindividually=="wikitable" border="1"!Kit version<br>BELK<br>BXELK!Image name!Build commands!Path|-|rowspan="3"|<br>4.0.0<br>2.0.0|<code>bora-image</code>|<pre>dvdk@dvdk-vm:~/belk$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > repodvdk@dvdk-vm:~/belk$ chmod a+x repodvdk@dvdk-vm:~/belk$ ./repo init -u git@git.dave.eu:bora/bora-bsp.git -b bora-mortydvdk@dvdk-vm:~/belk$ ./repo syncdvdk@dvdk-vm:~/belk$ source bora-bsp-init-env.shdvdk@dvdk-vm:~/belk/build$ bitbake bora-image</pre>|<code>/home/dvdk/bora/rfs/belk-4.0.0</code>|-|<code>bora-image-devel</code>|<pre>dvdk@dvdk-vm:~/belk$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > repodvdk@dvdk-vm:~/belk$ chmod a+x repodvdk@dvdk-vm:~/belk$ ./repo init -u git@git.dave.eu:bora/bora-bsp.git -b bora-mortydvdk@dvdk-vm:~/belk$ ./repo syncdvdk@dvdk-vm:~/belk$ source bora-bsp-init-env.shdvdk@dvdk-vm:~/belk/build$ bitbake bora-image-devel</pre>|<code>/home/dvdk/bora/rfs/belk-4.0.0</code>|-|<code>bora-image-networking</code>|<pre>dvdk@dvdk-vm:~/belk$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > repodvdk@dvdk-vm:~/belk$ chmod a+x repodvdk@dvdk-vm:~/belk$ ./repo init -u git@git.dave.eu:bora/bora-bsp.git -b bora-mortydvdk@dvdk-vm:~/belk$ ./repo syncdvdk@dvdk-vm:~/belk$ source bora-bsp-init-env.shdvdk@dvdk-vm:~/belk/build$ bitbake bora-image-networking</pre>|<code>/home/dvdk/bora/rfs/belk-4.0.0</code>|-|}  The following table lists the preU-built Yocto SDKs included in Boot and the MVM. These SDKs Linux kernel are associated with typically built without invoking the root file Yocto build system images mentioned above.{| class="wikitable" border="1"!Kit version<br>BELK<br>BXELK!SDK name!Build commands!Path|-|rowspan="3"|<br>4.0.0<br>2.0.0|<code>bora-image</code>|<pre>bitbake bora-image -c populate-sdk</pre>|<code>/home/dvdk/bora/sdk/belk-4.0.0/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi</code>|-|<code>bora-image-devel</code>|<pre>bitbake bora-image-devel -c populate-sdk</pre>|<code>/home/dvdk/bora/sdk/belk-4.0.0/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi</code>|-|<code>bora-image-networking</code>|<pre>bitbake bora-image-networking -c populate-sdk</pre>|<code>/home/dvdk/bora/sdk/belk-4.0.0/sysroots/cortexa9hf-neon-xilinx-linux-gnueabi</code>|-|} 
About C/C++ application development and debugging, please Please refer to the following links for the specific instructions describing these operations:*[[Debugging_with_Eclipse_Building U-Boot (MVMBELK/BXELK)]]*[[Building Linux kernel (BELK/BXELK)|this page]].
===BELK version up to 3.0.2, BXELK version up to 1.0.1===
4,650
edits

Navigation menu