<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=CL-SOM-AM57x%3A_Yocto_Linux%3A_Building</id>
	<title>CL-SOM-AM57x: Yocto Linux: Building - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=CL-SOM-AM57x%3A_Yocto_Linux%3A_Building"/>
	<link rel="alternate" type="text/html" href="https://www.mediawiki.compulab.com/w/index.php?title=CL-SOM-AM57x:_Yocto_Linux:_Building&amp;action=history"/>
	<updated>2026-05-08T08:42:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://www.mediawiki.compulab.com/w/index.php?title=CL-SOM-AM57x:_Yocto_Linux:_Building&amp;diff=3125&amp;oldid=prev</id>
		<title>Urim at 14:44, 12 January 2017</title>
		<link rel="alternate" type="text/html" href="https://www.mediawiki.compulab.com/w/index.php?title=CL-SOM-AM57x:_Yocto_Linux:_Building&amp;diff=3125&amp;oldid=prev"/>
		<updated>2017-01-12T14:44:35Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Introduction =&lt;br /&gt;
&lt;br /&gt;
This article describes how to install and build the Yocto Linux 1.8 (fido) release for CL-SOM-AM57x on a development machine.&lt;br /&gt;
&lt;br /&gt;
= Preparation steps =&lt;br /&gt;
&lt;br /&gt;
* Download the Linux Yocto package for CL-SOM-AM57x from [http://compulab.co.il/products/computer-on-modules/cl-som-am57x-ti-am5728-am5718-system-on-module/#devres CompuLab website]. Unzip the package to a directory on your host workstation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir cl-som-am57x-yocto-dev&lt;br /&gt;
cd cl-som-am57x-yocto-dev&lt;br /&gt;
unzip /path/to/downloaded/cl-som-am57x-yocto-linux.zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Install development tools:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo apt-get install git build-essential diffstat texinfo gawk chrpath gcc-multilib wget socat libsdl1.2-dev mtd-utils&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Install the Arago toolchain&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
wget https://snapshots.linaro.org/openembedded/sources/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.xz&lt;br /&gt;
sudo tar -Jxvf gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf.tar.xz -C /opt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Download and install Yocto Linux development source code ==&lt;br /&gt;
&lt;br /&gt;
Type the following commands to download and install the Yocto Linux 1.8 (fido) source code on the development station:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk&lt;br /&gt;
cd tisdk&lt;br /&gt;
./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-02.00.01.07-config.txt&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Apply the CL-SOM-AM57x support patch ===&lt;br /&gt;
Once the Yocto Linux 1.8 (fido) source code is installed on the Host machine, apply the CL-SOM-AM57x patch, as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
patch -p1 &amp;lt; ../cl-som-am57x-yocto-linux/development/yocto-cl-som-am57x-1.0.patch&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
At this point, CompuLab Yocto support has been installed over the Yocto Linux source code and can be built.&lt;br /&gt;
&lt;br /&gt;
== local.conf customizations ==&lt;br /&gt;
For local builds customization, edit you local.conf file with any favourite text editor.&lt;br /&gt;
&lt;br /&gt;
=== Parallel build ===&lt;br /&gt;
Set the build parameters to fully utilize your host machine &lt;br /&gt;
BB_NUMBER_THREADS = '4'&amp;lt;br&amp;gt;PARALLEL_MAKE = '-j 6' &lt;br /&gt;
BB_NUMBER_THREADS should be your host machine's number of threads minus 2 or same. &lt;br /&gt;
PARALLEL_MAKE should be the number of threads your host machine has plus two.&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Download directory ===&lt;br /&gt;
Recommended to save download time and space. &lt;br /&gt;
DL_DIR = &amp;quot;/home/&amp;amp;lt;uname&amp;amp;gt;/yocto_dl&amp;quot;&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Setting up the Toolchain ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
export PATH=/opt/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin:$PATH&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= Building the CL-SOM-AM57x Yocto image =&lt;br /&gt;
Change directory to the build directory of Yocto and set up the build environment:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd build&lt;br /&gt;
source conf/setenv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The {{parameter|arago-core-tisdk-image}} can be built as follows:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
MACHINE=cl-som-am57x bitbake arago-core-tisdk-image&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
After the image is built, all images are located in: {{filename|/path/to/cl-som-am57x-yocto-linux/tisdk/build/arago-tmp-external-linaro-toolchain/deploy/images/cl-som-am57x}}&lt;br /&gt;
&lt;br /&gt;
= See also =&lt;br /&gt;
* [[CL-SOM-AM57x: Yocto Linux: Manual Installation]]&lt;br /&gt;
* [[CL-SOM-AM57x: Yocto Linux: Package contents]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux]]&lt;br /&gt;
[[Category:Yocto]]&lt;br /&gt;
[[Category:CL-SOM-AM57x]]&lt;/div&gt;</summary>
		<author><name>Urim</name></author>
		
	</entry>
</feed>