<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://elinux.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://elinux.org/index.php?title=EBC_Exercise_22_Cross-Compiling_and_Finding_the_Right_Kernel_-_bitbake&amp;feed=atom&amp;action=history</id>
		<title>EBC Exercise 22 Cross-Compiling and Finding the Right Kernel - bitbake - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://elinux.org/index.php?title=EBC_Exercise_22_Cross-Compiling_and_Finding_the_Right_Kernel_-_bitbake&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=EBC_Exercise_22_Cross-Compiling_and_Finding_the_Right_Kernel_-_bitbake&amp;action=history"/>
		<updated>2013-05-19T07:44:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.21alpha</generator>

	<entry>
		<id>http://elinux.org/index.php?title=EBC_Exercise_22_Cross-Compiling_and_Finding_the_Right_Kernel_-_bitbake&amp;diff=193436&amp;oldid=prev</id>
		<title>Lobdeljt: /* meta-angstrom */</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=EBC_Exercise_22_Cross-Compiling_and_Finding_the_Right_Kernel_-_bitbake&amp;diff=193436&amp;oldid=prev"/>
				<updated>2012-11-14T07:10:57Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;meta-angstrom&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 07:10, 14 November 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 183:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 183:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; nothing to commit (working directory clean)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160; nothing to commit (working directory clean)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Don't worry that your HEAD is detached.&amp;#160; That just means &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;your &lt;/del&gt;not on a branch.&amp;#160; However it is the commit that was used to create the kernel we want.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Don't worry that your HEAD is detached.&amp;#160; That just means &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;you're &lt;/ins&gt;not on a branch.&amp;#160; However it is the commit that was used to create the kernel we want.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== meta-opie ===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;=== meta-opie ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key elinux:diff:version:1.11a:oldid:185558:newid:193436 --&gt;
&lt;/table&gt;</summary>
		<author><name>Lobdeljt</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=EBC_Exercise_22_Cross-Compiling_and_Finding_the_Right_Kernel_-_bitbake&amp;diff=185558&amp;oldid=prev</id>
		<title>Yoder: /* Cross-compiling Hello World */ Added Bitbake to crossCompileEnv.sh</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=EBC_Exercise_22_Cross-Compiling_and_Finding_the_Right_Kernel_-_bitbake&amp;diff=185558&amp;oldid=prev"/>
				<updated>2012-10-29T18:23:52Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Cross-compiling Hello World: &lt;/span&gt; Added Bitbake to crossCompileEnv.sh&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 18:23, 29 October 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Stop Here, the rest hasn't been updated ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Stop Here, the rest hasn't been updated ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;== Cross-compiling Hello World ==&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;This shows how to setup the paths to use the compiler loaded by bitbake.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Listing 2-4 on page 29 of the text is an embedded version of Hello World. If you've set up your git repository you will find it in '''helloWorld.c''' when you do a''' git pull'''.&amp;#160; Compile and run it on your host to be sure it works.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''gcc helloWorld.c'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''./a.out'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; Hello, World! Main is executing at 0x400524&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; This address (0x7fff8260bdf8) is in our stack frame&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; This address (0x601038) is in our bss section&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; This address (0x601020) is in our data section&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Now that you know it's working, let's cross compile it. First set the paths to find the cross-compilers. Put the following in a file, call it ~/.oe/'''crossCompileEnvBitbake.sh'''. Make sure the path is correct for your system. This is for a 32-bit linux. &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; # add cross tools to your path&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; export ARM_TOOLCHAIN_PATH=~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; PATH=$PATH:$ARM_TOOLCHAIN_PATH/..&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; PATH=$ARM_TOOLCHAIN_PATH:$PATH&amp;#160; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; export ARCH=arm&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; export CROSS_COMPILE=arm-angstrom-linux-gnueabi-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Here it is for 64-bit&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; # add cross tools to your path&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; export ARM_TOOLCHAIN_PATH=~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/bin/armv7a-angstrom-linux-gnueabi&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; PATH=$PATH:$ARM_TOOLCHAIN_PATH/..&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; PATH=$ARM_TOOLCHAIN_PATH:$PATH&amp;#160; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; export ARCH=arm&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; export CROSS_COMPILE=arm-angstrom-linux-gnueabi-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Now ''source'' the file and compile again. (Note: you only have to source once per terminal session.)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''source ~/.oe/crossCompileEnvBitbake.sh'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''${CROSS_COMPILE}gcc helloWorld.c'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''file a.out'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;The '''file''' command tells what's in the file.&amp;#160; In this case we have an ARM executable.&amp;#160; Success!&amp;#160; Now copy to your Beagle and run&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''scp a.out root@beagle:.'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''ssh root@beagle ./a.out'''&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; Hello, World! Main is executing at 0x8374&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; This address (0xbeb32d4c) is in our stack frame&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; This address (0x10650) is in our bss section&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; This address (0x10648) is in our data section&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;The '''scp''' copies a.out to the beagle and the '''ssh''' runs the a.out on the beagle. Notice the address are very different from the host version.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{YoderFoot}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Finding the Kernel and Installing It ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Finding the Kernel and Installing It ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Yoder</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=EBC_Exercise_22_Cross-Compiling_and_Finding_the_Right_Kernel_-_bitbake&amp;diff=183290&amp;oldid=prev</id>
		<title>Yoder: /* Finding the Kernel and Installing It */</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=EBC_Exercise_22_Cross-Compiling_and_Finding_the_Right_Kernel_-_bitbake&amp;diff=183290&amp;oldid=prev"/>
				<updated>2012-10-22T13:57:59Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Finding the Kernel and Installing It&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:57, 22 October 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 11:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Finding the Kernel and Installing It ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Finding the Kernel and Installing It ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;After doing [[EBC Exercise 08 Installing Development Tools]] you have a Beagle kernel on your host computer. Let's see if it works.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;After doing [[EBC Exercise 08 Installing Development Tools &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;- bitbake&lt;/ins&gt;]] you have a Beagle kernel on your host computer. Let's see if it works.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Once compiled the kernel is put in a file called '''uImage'''.&amp;#160; You may have seen it in the FAT partition on your SD card.&amp;#160; Let's find it on your host. One way to find it is&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Once compiled the kernel is put in a file called '''uImage'''.&amp;#160; You may have seen it in the FAT partition on your SD card.&amp;#160; Let's find it on your host. One way to find it is&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Yoder</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=EBC_Exercise_22_Cross-Compiling_and_Finding_the_Right_Kernel_-_bitbake&amp;diff=183284&amp;oldid=prev</id>
		<title>Yoder: /* Cross-compiling Hello World */ Moved to own page</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=EBC_Exercise_22_Cross-Compiling_and_Finding_the_Right_Kernel_-_bitbake&amp;diff=183284&amp;oldid=prev"/>
				<updated>2012-10-22T13:56:54Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Cross-compiling Hello World: &lt;/span&gt; Moved to own page&lt;/span&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr style='vertical-align: top;'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 13:56, 22 October 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;First we'll check everything by compiling the Hello World program, then we'll try the kernel and u-boot.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;First we'll check everything by compiling the Hello World program, then we'll try the kernel and u-boot.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;== Cross-compiling Hello World ==&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Listing 2-4 on page 29 of the text is an embedded version of Hello World. If you've set up your git repository you will find it in '''helloWorld.c''' when you do a''' git pull'''.&amp;#160; Compile and run it on your host to be sure it works.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''gcc helloWorld.c'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''./a.out'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; Hello, World! Main is executing at 0x400524&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; This address (0x7fff8260bdf8) is in our stack frame&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; This address (0x601038) is in our bss section&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; This address (0x601020) is in our data section&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Now that you know it's working, let's cross compile it. First set the paths to find the cross-compilers. Put the following in a file, call it ~/.oe/'''crossCompileEnv.sh'''. Make sure the path is correct for your system. This is for a 32-bit linux. &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; # add cross tools to your path&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; export ARM_TOOLCHAIN_PATH=~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; PATH=$PATH:$ARM_TOOLCHAIN_PATH/..&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; PATH=$ARM_TOOLCHAIN_PATH:$PATH&amp;#160; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; export ARCH=arm&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; export CROSS_COMPILE=arm-angstrom-linux-gnueabi-&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Here it is for 64-bit&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; # add cross tools to your path&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; export ARM_TOOLCHAIN_PATH=~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/bin/armv7a-angstrom-linux-gnueabi&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; PATH=$PATH:$ARM_TOOLCHAIN_PATH/..&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; PATH=$ARM_TOOLCHAIN_PATH:$PATH&amp;#160; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; export ARCH=arm&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; export CROSS_COMPILE=arm-angstrom-linux-gnueabi-&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;Now ''source'' the file and compile again. (Note: you only have to source once per terminal session.)&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''source ~/.oe/crossCompileEnv.sh'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''${CROSS_COMPILE}gcc helloWorld.c'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''file a.out'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;The '''file''' command tells what's in the file.&amp;#160; In this case we have an ARM executable.&amp;#160; Success!&amp;#160; Now copy to your Beagle and run&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''scp a.out root@beagle:.'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; host$ '''ssh root@beagle ./a.out'''&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; Hello, World! Main is executing at 0x8374&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; This address (0xbeb32d4c) is in our stack frame&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; This address (0x10650) is in our bss section&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; This address (0x10648) is in our data section&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;The '''scp''' copies a.out to the beagle and the '''ssh''' runs the a.out on the beagle. Notice the address are very different from the host version.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Stop Here, the rest hasn't been updated ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Stop Here, the rest hasn't been updated ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Yoder</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=EBC_Exercise_22_Cross-Compiling_and_Finding_the_Right_Kernel_-_bitbake&amp;diff=183224&amp;oldid=prev</id>
		<title>Yoder: Copied from Exercise 22 to make a bitbake version</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=EBC_Exercise_22_Cross-Compiling_and_Finding_the_Right_Kernel_-_bitbake&amp;diff=183224&amp;oldid=prev"/>
				<updated>2012-10-22T13:45:10Z</updated>
		
		<summary type="html">&lt;p&gt;Copied from Exercise 22 to make a bitbake version&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:ECE497]]&lt;br /&gt;
[[Category: BeagleBoard]]&lt;br /&gt;
{{YoderHead}}&lt;br /&gt;
&lt;br /&gt;
This class is about developing software for embedded Linux. So far we have been doing all of our development on the Beagle. This works well for small (and not so small) programs. However, we are now moving into kernel development and that's best done on a more powerful host computer. In [[EBC Exercise 08 Installing Development Tools]] you learned how to download and install the cross-compilers and the source for kernel and u-boot. Now we'll use those tools.&lt;br /&gt;
&lt;br /&gt;
First we'll check everything by compiling the Hello World program, then we'll try the kernel and u-boot.&lt;br /&gt;
&lt;br /&gt;
== Cross-compiling Hello World ==&lt;br /&gt;
&lt;br /&gt;
Listing 2-4 on page 29 of the text is an embedded version of Hello World. If you've set up your git repository you will find it in '''helloWorld.c''' when you do a''' git pull'''.  Compile and run it on your host to be sure it works.&lt;br /&gt;
&lt;br /&gt;
 host$ '''gcc helloWorld.c'''&lt;br /&gt;
 host$ '''./a.out'''&lt;br /&gt;
 Hello, World! Main is executing at 0x400524&lt;br /&gt;
 This address (0x7fff8260bdf8) is in our stack frame&lt;br /&gt;
 This address (0x601038) is in our bss section&lt;br /&gt;
 This address (0x601020) is in our data section&lt;br /&gt;
&lt;br /&gt;
Now that you know it's working, let's cross compile it. First set the paths to find the cross-compilers. Put the following in a file, call it ~/.oe/'''crossCompileEnv.sh'''. Make sure the path is correct for your system. This is for a 32-bit linux. &lt;br /&gt;
&lt;br /&gt;
 # add cross tools to your path&lt;br /&gt;
 export ARM_TOOLCHAIN_PATH=~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/sysroots/i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi&lt;br /&gt;
 PATH=$PATH:$ARM_TOOLCHAIN_PATH/..&lt;br /&gt;
 PATH=$ARM_TOOLCHAIN_PATH:$PATH  &lt;br /&gt;
 export ARCH=arm&lt;br /&gt;
 export CROSS_COMPILE=arm-angstrom-linux-gnueabi-&lt;br /&gt;
&lt;br /&gt;
Here it is for 64-bit&lt;br /&gt;
&lt;br /&gt;
 # add cross tools to your path&lt;br /&gt;
 export ARM_TOOLCHAIN_PATH=~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/sysroots/x86_64-linux/usr/bin/armv7a-angstrom-linux-gnueabi&lt;br /&gt;
 PATH=$PATH:$ARM_TOOLCHAIN_PATH/..&lt;br /&gt;
 PATH=$ARM_TOOLCHAIN_PATH:$PATH  &lt;br /&gt;
 export ARCH=arm&lt;br /&gt;
 export CROSS_COMPILE=arm-angstrom-linux-gnueabi-&lt;br /&gt;
&lt;br /&gt;
Now ''source'' the file and compile again. (Note: you only have to source once per terminal session.)&lt;br /&gt;
 host$ '''source ~/.oe/crossCompileEnv.sh'''&lt;br /&gt;
 host$ '''${CROSS_COMPILE}gcc helloWorld.c'''&lt;br /&gt;
 host$ '''file a.out'''&lt;br /&gt;
 a.out: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, not stripped&lt;br /&gt;
&lt;br /&gt;
The '''file''' command tells what's in the file.  In this case we have an ARM executable.  Success!  Now copy to your Beagle and run&lt;br /&gt;
&lt;br /&gt;
 host$ '''scp a.out root@beagle:.'''&lt;br /&gt;
 host$ '''ssh root@beagle ./a.out'''&lt;br /&gt;
 Hello, World! Main is executing at 0x8374&lt;br /&gt;
 This address (0xbeb32d4c) is in our stack frame&lt;br /&gt;
 This address (0x10650) is in our bss section&lt;br /&gt;
 This address (0x10648) is in our data section&lt;br /&gt;
&lt;br /&gt;
The '''scp''' copies a.out to the beagle and the '''ssh''' runs the a.out on the beagle. Notice the address are very different from the host version.&lt;br /&gt;
&lt;br /&gt;
== Stop Here, the rest hasn't been updated ==&lt;br /&gt;
&lt;br /&gt;
== Finding the Kernel and Installing It ==&lt;br /&gt;
&lt;br /&gt;
After doing [[EBC Exercise 08 Installing Development Tools]] you have a Beagle kernel on your host computer. Let's see if it works.&lt;br /&gt;
&lt;br /&gt;
Once compiled the kernel is put in a file called '''uImage'''.  You may have seen it in the FAT partition on your SD card.  Let's find it on your host. One way to find it is&lt;br /&gt;
&lt;br /&gt;
 host$ '''cd ~/BeagleBoard/oe'''&lt;br /&gt;
 host$ '''find . -name uImage'''&lt;br /&gt;
 ./build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-mainline-3.2.18-r121b/git/arch/arm/boot/uImage&lt;br /&gt;
 ./build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-mainline-3.2.18-r121b/sysroot-destdir/kernel/uImage&lt;br /&gt;
 ./build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-mainline-3.2.18-r121b/image/kernel/uImage&lt;br /&gt;
 ./build/tmp-angstrom_v2012_05-eglibc/sysroots/beagleboard/kernel/uImage&lt;br /&gt;
&lt;br /&gt;
It looks like I've compile the 3.2.18 version of the kernel.  What version is the beagle running?&lt;br /&gt;
&lt;br /&gt;
 beagle$ '''uname -a'''&lt;br /&gt;
 Linux yoder-bone 3.2.25 #1 Fri Aug 10 10:33:12 CEST 2012 armv7l GNU/Linux&lt;br /&gt;
&lt;br /&gt;
The bone is running 3.2.25.  Here's how to get our sources to match those used to compile the 3.2.25 kernel.&lt;br /&gt;
&lt;br /&gt;
 beagle$ '''cat /etc/angstrom-build-info''' &lt;br /&gt;
 Configured Openembedded layers:&lt;br /&gt;
 meta-angstrom     = angstrom-v2012.05-yocto1.2:a029f5f5d19f788e2ab17227f35350ff5b6ca125&lt;br /&gt;
 meta-oe           &lt;br /&gt;
 toolchain-layer   &lt;br /&gt;
 meta-efl          &lt;br /&gt;
 meta-gpe          &lt;br /&gt;
 meta-gnome        &lt;br /&gt;
 meta-xfce         &lt;br /&gt;
 meta-initramfs    &lt;br /&gt;
 meta-multimedia   = denzil:b4488f4c012a64604b28bd2b6e93de411c34466d&lt;br /&gt;
 meta-opie         = master:efa3892b20a4ef80274e56e5633ebd62c16f9731&lt;br /&gt;
 meta-java         = master:3386ea6c96096f107f43f282f654e5afa456109e&lt;br /&gt;
 meta-browser      = master:c47f59df2e723495679c751cbdf6a8c6adec4b6a&lt;br /&gt;
 meta-mono         = master:83f8233b0498aadb18bf7605c3ba6c71d9e13a3a&lt;br /&gt;
 meta-kde          = master:5b0882d951cfd71886d423c190faaa7c7f932333&lt;br /&gt;
 meta-ti           = angstrom-staging:5364d0795bb27c2deb5a4e2df7d2f01ffb394cca&lt;br /&gt;
 meta-efikamx      = master:2c09a3a780b23448e8a6ca964256ff7f5ccba65d&lt;br /&gt;
 meta-nslu2        = master:3d9fc951b05b4df476374b6fc3085ebac7f293ee&lt;br /&gt;
 meta-htc          &lt;br /&gt;
 meta-nokia        &lt;br /&gt;
 meta-openmoko     &lt;br /&gt;
 meta-palm         = master:2b106be01228f64298d6cb338f93088806594344&lt;br /&gt;
 meta-handheld     = master:1f05a15aceb4c3a19fa070463b58125b5658b2a9&lt;br /&gt;
 meta-raspberrypi  = denzil:34eef2ea4f5f24630dbb73b386861430167b8431&lt;br /&gt;
 meta-intel        &lt;br /&gt;
 meta-sugarbay     &lt;br /&gt;
 meta-crownbay     &lt;br /&gt;
 meta-emenlow      &lt;br /&gt;
 meta-fishriver    &lt;br /&gt;
 meta-fri2         &lt;br /&gt;
 meta-jasperforest &lt;br /&gt;
 meta-n450         = master:f75f9b6f68473eb0efac802409608f8389be0030&lt;br /&gt;
 meta              = denzil:b052427a6678b1b696f8c64cf0fdc55e6af86c48&lt;br /&gt;
&lt;br /&gt;
This file shows the various repositories that were used to compile the kernel (and the root file system) for the given SD image (the bone A6A image in my case). Yes, the kernel comes from several git repositories.  How many?  &lt;br /&gt;
 host$ '''cd ~/BeagleBoard/oe'''&lt;br /&gt;
 host$ '''find . -name .git'''&lt;br /&gt;
 ./.git&lt;br /&gt;
 ./build/tmp-angstrom_v2012_05-eglibc/buildhistory/.git&lt;br /&gt;
 ./build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/u-boot-2011.12-r8/git/.git&lt;br /&gt;
 ./build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-mainline-3.2.18-r121b/git/.git&lt;br /&gt;
 ./build/tmp-angstrom_v2012_05-eglibc/work/armv7a-angstrom-linux-gnueabi/mtd-utils-1.4.9-r1/git/.git&lt;br /&gt;
 ./sources/meta-xilinx/.git&lt;br /&gt;
 ./sources/meta-intel/.git&lt;br /&gt;
 ./sources/bitbake/.git&lt;br /&gt;
 ./sources/meta-efikamx/.git&lt;br /&gt;
 ./sources/meta-angstrom/.git&lt;br /&gt;
 ./sources/openembedded-core/.git&lt;br /&gt;
 ./sources/meta-handheld/.git&lt;br /&gt;
 ./sources/meta-kde/.git&lt;br /&gt;
 ./sources/meta-nslu2/.git&lt;br /&gt;
 ./sources/meta-openembedded/.git&lt;br /&gt;
 ./sources/meta-raspberrypi/.git&lt;br /&gt;
 ./sources/meta-mono/.git&lt;br /&gt;
 ./sources/meta-java/.git&lt;br /&gt;
 ./sources/meta-ti/.git&lt;br /&gt;
 ./sources/meta-ettus/.git&lt;br /&gt;
 ./sources/meta-openpandora/.git&lt;br /&gt;
 ./sources/meta-smartphone/.git&lt;br /&gt;
 ./sources/meta-opie/.git&lt;br /&gt;
 ./sources/meta-browser/.git&lt;br /&gt;
&lt;br /&gt;
The first '''.git''' is the repository you cloned to do the initial bitbake. The next is the u-boot repository. The next one is the kernel's repository. We'll be using that repository so much you should set up a symbolic link to it so you can find it easily.&lt;br /&gt;
&lt;br /&gt;
 host$ '''ln -s ~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-mainline-3.2.18-r121b/git/ ~/...'''&lt;br /&gt;
&lt;br /&gt;
Notice several '''.git'''s are in the '''sources''' directory. Note they have many names in common with the contents of '''/etc/angstrom-build-info'''.  These are the repositories where we need to checkout the commits that correspond to the tags above.  Here's how, take the first repository with a tag and '''cd''' to it.&lt;br /&gt;
&lt;br /&gt;
=== meta-angstrom ===&lt;br /&gt;
&lt;br /&gt;
 host$ '''cd sources/meta-angstrom/'''&lt;br /&gt;
 /home/beagle/BeagleBoard/oe/sources/meta-angstrom&lt;br /&gt;
 host$ '''git status'''&lt;br /&gt;
 # On branch angstrom-v2012.05-yocto1.2&lt;br /&gt;
 nothing to commit (working directory clean)&lt;br /&gt;
 host$ '''git remote update'''&lt;br /&gt;
 Fetching origin&lt;br /&gt;
 remote: Counting objects: 132, done.&lt;br /&gt;
 remote: Compressing objects: 100% (57/57), done.&lt;br /&gt;
 remote: Total 105 (delta 53), reused 96 (delta 45)&lt;br /&gt;
 Receiving objects: 100% (105/105), 16.95 KiB, done.&lt;br /&gt;
 Resolving deltas: 100% (53/53), completed with 18 local objects.&lt;br /&gt;
 From git://github.com/Angstrom-distribution/meta-angstrom&lt;br /&gt;
    140671a..784d76b  master     -&amp;gt; origin/master&lt;br /&gt;
&lt;br /&gt;
Now checkout the corresponding tag&lt;br /&gt;
 host$ '''git checkout a029f5f5d19f788e2ab17227f35350ff5b6ca125'''&lt;br /&gt;
 Note: checking out 'a029f5f5d19f788e2ab17227f35350ff5b6ca125'.&lt;br /&gt;
 &lt;br /&gt;
 You are in 'detached HEAD' state. You can look around, make experimental&lt;br /&gt;
 changes and commit them, and you can discard any commits you make in this&lt;br /&gt;
 state without impacting any branches by performing another checkout.&lt;br /&gt;
 &lt;br /&gt;
 If you want to create a new branch to retain commits you create, you may&lt;br /&gt;
 do so (now or later) by using -b with the checkout command again. Example:&lt;br /&gt;
 &lt;br /&gt;
   git checkout -b new_branch_name&lt;br /&gt;
 &lt;br /&gt;
 HEAD is now at a029f5f... base-files bbappend: move /var/run handling to systemd proper&lt;br /&gt;
 host$ '''git status'''&lt;br /&gt;
 # Not currently on any branch.&lt;br /&gt;
 nothing to commit (working directory clean)&lt;br /&gt;
&lt;br /&gt;
Don't worry that your HEAD is detached.  That just means your not on a branch.  However it is the commit that was used to create the kernel we want.&lt;br /&gt;
&lt;br /&gt;
=== meta-opie ===&lt;br /&gt;
&lt;br /&gt;
Now, repeat this for each of the hash tags in '''/etc/angstrom-build-info'''.  I'll get you started, you finish it.&lt;br /&gt;
&lt;br /&gt;
 host$ '''cd ../meta-opie'''&lt;br /&gt;
 /home/beagle/BeagleBoard/oe/sources/meta-opie&lt;br /&gt;
 host$ '''git remote update'''&lt;br /&gt;
 Fetching origin&lt;br /&gt;
 host$ '''git checkout efa3892b20a4ef80274e56e5633ebd62c16f9731'''&lt;br /&gt;
 HEAD is now at efa3892... opie-packagemanager: fix a couple more quoting issues&lt;br /&gt;
&lt;br /&gt;
=== and so on... ===&lt;br /&gt;
Keep going until you get an error.&lt;br /&gt;
&lt;br /&gt;
=== meta-ti ===&lt;br /&gt;
This repository pulls from more than one place so the checkout will fail.  Here's what to do.&lt;br /&gt;
 host$ '''cd ../meta-ti'''&lt;br /&gt;
 host$ '''git remote update'''&lt;br /&gt;
 host$ '''git checkout 5364d0795bb27c2deb5a4e2df7d2f01ffb394cca'''&lt;br /&gt;
 fatal: reference is not a tree: 5364d0795bb27c2deb5a4e2df7d2f01ffb394cca&lt;br /&gt;
&lt;br /&gt;
So what repository has the tag '''5364d0795bb27c2deb5a4e2df7d2f01ffb394cca'''?  Try google. With a bit of googling, I was able to find https://github.com/Angstrom-distribution/meta-ti/commit/5364d0795bb27c2deb5a4e2df7d2f01ffb394cca.  Add this to the remote repositories.&lt;br /&gt;
 host$ '''git remote add test https://github.com/Angstrom-distribution/meta-ti'''&lt;br /&gt;
 host$ '''git remote update'''&lt;br /&gt;
 host$ '''git checkout 5364d0795bb27c2deb5a4e2df7d2f01ffb394cca'''&lt;br /&gt;
&lt;br /&gt;
Now continue on with the rest of the repositories.&lt;br /&gt;
&lt;br /&gt;
=== Once all the repositories are all up to date ===&lt;br /&gt;
&lt;br /&gt;
Now it's time to bitbake again and the 3.2.25 kernel should appear.&lt;br /&gt;
&lt;br /&gt;
 host$ '''cd ~/BeagleBoard/oe'''&lt;br /&gt;
 host$ '''source ~/.oe/environment-angstromv2012.05'''&lt;br /&gt;
 host$ '''time bitbake virtual/kernel'''&lt;br /&gt;
&lt;br /&gt;
== Finding the Kernel for the ETC 2012 image ==&lt;br /&gt;
We are looking for uImage, but we only want the 2.6.32 version.  The last grep file the file in the '''boot''' directory. Several lines are printed, but the one I'm interested in is:&lt;br /&gt;
 ''./build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-r110b+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/git''/arch/arm/boot/uImage&lt;br /&gt;
&lt;br /&gt;
The first part of the path (in italics) is the path to the kernel.  Check it out.&lt;br /&gt;
&lt;br /&gt;
 host$ '''cd build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-r110b+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/git'''&lt;br /&gt;
 host$ '''ls -F'''&lt;br /&gt;
 arch/           drivers/   Kbuild       modules.order   samples/    usr/&lt;br /&gt;
 block/          firmware/  kernel/      Module.symvers  scripts/    virt/&lt;br /&gt;
 COPYING         fs/        lib/         net/            security/   vmlinux*&lt;br /&gt;
 CREDITS         include/   MAINTAINERS  patches/        sound/      vmlinux.o&lt;br /&gt;
 crypto/         init/      Makefile     README          System.map&lt;br /&gt;
 Documentation/  ipc/       mm/          REPORTING-BUGS  tools/&lt;br /&gt;
&lt;br /&gt;
We'll be learning what's in many of these over the next couple of weeks.  Remember this location.  Let's find uImage.&lt;br /&gt;
&lt;br /&gt;
 host$ '''cd arch/arm/boot; ls -shF'''&lt;br /&gt;
 total 13M&lt;br /&gt;
 4.0K bootp/       6.3M Image*      4.0K Makefile  3.0M zImage*&lt;br /&gt;
 4.0K compressed/  4.0K install.sh  3.0M uImage&lt;br /&gt;
 host$ '''ls -l uImage'''&lt;br /&gt;
 -rw-r--r-- 1 beagle beagle 3144300 2011-12-08 01:02 uImage&lt;br /&gt;
&lt;br /&gt;
It should have the date that you did the bitbake.  Let's see if it runs on the Beagle&lt;br /&gt;
 host$ '''scp uImage root@beagle:.'''&lt;br /&gt;
 host$ '''ssh root@beagle'''&lt;br /&gt;
 beagle$ '''cd /boot; ls -F'''&lt;br /&gt;
 total 18M&lt;br /&gt;
 4.0K MLO@&lt;br /&gt;
 372K Module.symvers-2.6.32&lt;br /&gt;
 1.4M System.map-2.6.32&lt;br /&gt;
  80K config-2.6.32&lt;br /&gt;
 4.0K u-boot.bin@&lt;br /&gt;
    0 uImage@&lt;br /&gt;
 3.1M uImage-2.6.32&lt;br /&gt;
 8.9M vmlinux-2.6.32&lt;br /&gt;
 beagle$ '''ls -l uImage'''&lt;br /&gt;
 lrwxrwxrwx 1 www-data www-data 13 May 12  2011 uImage -&amp;gt; uImage-2.6.32&lt;br /&gt;
&lt;br /&gt;
So the uImage that is there is a symbolic link to '''uImage-2.6.32'''.  Let's save the working uImage in a difference file and copy our new uImage in.&lt;br /&gt;
&lt;br /&gt;
 beagle$ '''mv uImage-2.6.32 uImage-2.6.32.orig'''&lt;br /&gt;
 beagle$ '''mv ~/uImage uImage-2.6.32'''&lt;br /&gt;
&lt;br /&gt;
And then reboot.&lt;br /&gt;
 beagle$ '''shutdown -r now'''&lt;br /&gt;
&lt;br /&gt;
After a couple of minutes your should be back and running again.  Check and see if you are really running the new kernel.&lt;br /&gt;
 beagle$ '''uname -a'''&lt;br /&gt;
 Linux beagleboard 2.6.32 #3 PREEMPT Thu Dec 8 01:02:13 EST 2011 armv7l GNU/Linux&lt;br /&gt;
&lt;br /&gt;
It worked! That's the date I compiled mine on.&lt;br /&gt;
&lt;br /&gt;
=== Failed Kernel ===&lt;br /&gt;
Here's what I get when trying to run the 3.2.18 kernel on the A6A bone image.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
reading u-boot.img&lt;br /&gt;
reading u-boot.img&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
U-Boot 2011.09-00053-gb423c52 (Aug 10 2012 - 11:26:55)&lt;br /&gt;
&lt;br /&gt;
I2C:   ready&lt;br /&gt;
DRAM:  256 MiB&lt;br /&gt;
WARNING: Caches not enabled&lt;br /&gt;
No daughter card present&lt;br /&gt;
NAND:  HW ECC Hamming Code selected&lt;br /&gt;
No NAND device found!!!&lt;br /&gt;
0 MiB&lt;br /&gt;
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1&lt;br /&gt;
*** Warning - readenv() failed, using default environment&lt;br /&gt;
&lt;br /&gt;
Net:   cpsw&lt;br /&gt;
Hit any key to stop autoboot:  0 &lt;br /&gt;
SD/MMC found on device 0&lt;br /&gt;
reading uEnv.txt&lt;br /&gt;
&lt;br /&gt;
27 bytes read&lt;br /&gt;
Loaded environment from uEnv.txt&lt;br /&gt;
Importing environment from mmc ...&lt;br /&gt;
Loading file &amp;quot;/boot/uImage&amp;quot; from mmc device 0:2 xxa2&lt;br /&gt;
4385656 bytes read&lt;br /&gt;
## Booting kernel from Legacy Image at 80007fc0 ...&lt;br /&gt;
   Image Name:   Linux-3.2.18&lt;br /&gt;
   Image Type:   ARM Linux Kernel Image (uncompressed)&lt;br /&gt;
   Data Size:    4385592 Bytes = 4.2 MiB&lt;br /&gt;
   Load Address: 80008000&lt;br /&gt;
   Entry Point:  80008000&lt;br /&gt;
   Verifying Checksum ... OK&lt;br /&gt;
   XIP Kernel Image ... OK&lt;br /&gt;
OK&lt;br /&gt;
&lt;br /&gt;
Starting kernel ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Installing a New U-boot ==&lt;br /&gt;
&lt;br /&gt;
While we're at it, let's install a new U-boot.  Note:  The new U-boot runs for me, but doesn't boot the kernel, yet.&lt;br /&gt;
&lt;br /&gt;
 host$ '''cd ~/BeagleBoard/oe/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/'''&lt;br /&gt;
 host$ '''ls -F'''&lt;br /&gt;
 linux-3.0.9-r110a/&lt;br /&gt;
 linux-omap-psp-2.6.32-r110b+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/&lt;br /&gt;
 shadow-4.1.4.3-r5/&lt;br /&gt;
 u-boot-2011.09-r4/&lt;br /&gt;
&lt;br /&gt;
There's the U-boot directory.&lt;br /&gt;
&lt;br /&gt;
 host$ cd u-boot-2011.09-r4/git/; ls -F&lt;br /&gt;
 api/        COPYING    fs/          mkconfig*     post/            tools/&lt;br /&gt;
 arch/       CREDITS    include/     mmc_spl/      README           u-boot*&lt;br /&gt;
 board/      disk/      lib/         nand_spl/     rules.mk         '''u-boot.bin'''&lt;br /&gt;
 boards.cfg  doc/       MAINTAINERS  net/          snapshot.commit  u-boot.lds&lt;br /&gt;
 common/     drivers/   MAKEALL*     onenand_ipl/  spl/             u-boot.map&lt;br /&gt;
 config.mk   examples/  Makefile     patches/      System.map       u-boot.srec&lt;br /&gt;
&lt;br /&gt;
The file we want is right on the top level.&lt;br /&gt;
&lt;br /&gt;
 host$ '''scp u-boot.bin root@beagle:.'''&lt;br /&gt;
 host$ '''ssh -X root@beagle'''&lt;br /&gt;
 beagle$ '''cd /media/mmcblk0p1/; ls -F'''&lt;br /&gt;
 MLO*         u-boot.bin.broken*  uEnv.txt*&lt;br /&gt;
 U-BOOT.BIN*  UIMAGE*             uEnv/&lt;br /&gt;
&lt;br /&gt;
Be sure you are logged into the Beagle via the serial port, rather than using ssh. Otherwise you won't see the boot sequence that appears before the kernel is running.&lt;br /&gt;
&lt;br /&gt;
Here we've changed to the FAT partition which is where u-boot lives.  Back it up and install the new one.&lt;br /&gt;
&lt;br /&gt;
 beagle$ '''mv U-BOOT-BIN u-boot-bin.orig'''&lt;br /&gt;
 beagle$ '''mv ~/.u-boot-bin .'''&lt;br /&gt;
 beagle$ '''shutdown -r now'''&lt;br /&gt;
&lt;br /&gt;
You should now see the new u-boot running if you are logged in via the serial port.&lt;br /&gt;
&lt;br /&gt;
== Compile via make ==&lt;br /&gt;
&lt;br /&gt;
When you use bitbake it sets up all the paths to use the correct cross compilers.  You can also build the kernel or u-boot by using '''make''' if you set the paths like we did above.  &lt;br /&gt;
&lt;br /&gt;
If you haven't already, ''source'' the file and ''cd'' to the kernel directory and try a ''make''.&lt;br /&gt;
&lt;br /&gt;
 host$ '''source ~/.oe/crossCompileEnv.sh'''&lt;br /&gt;
 host$ '''cd ~/BeagleBoard/oe/build/tmp-angstrom_2010_x-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-r110b+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/git'''&lt;br /&gt;
 host$ '''make xconfig'''&lt;br /&gt;
&lt;br /&gt;
([[EBC Exercise 13 Configuring the Kernel]] has details on configuring the kernel.)&lt;br /&gt;
&lt;br /&gt;
To make the kernel run&lt;br /&gt;
&lt;br /&gt;
 host$ '''make uImage'''&lt;br /&gt;
&lt;br /&gt;
Now, follow the instructions above to install your freshly compiled kernel.&lt;br /&gt;
&lt;br /&gt;
== Getting the A6A Kernel ==&lt;br /&gt;
&lt;br /&gt;
 beagle$ '''cat /etc/angstrom-build-info''' &lt;br /&gt;
 Configured Openembedded layers:&lt;br /&gt;
 meta-angstrom     = angstrom-v2012.05-yocto1.2:a029f5f5d19f788e2ab17227f35350ff5b6ca125&lt;br /&gt;
 meta-oe           &lt;br /&gt;
 toolchain-layer   &lt;br /&gt;
 meta-efl          &lt;br /&gt;
 meta-gpe          &lt;br /&gt;
 meta-gnome        &lt;br /&gt;
 meta-xfce         &lt;br /&gt;
 meta-initramfs    &lt;br /&gt;
 meta-multimedia   = denzil:b4488f4c012a64604b28bd2b6e93de411c34466d&lt;br /&gt;
 meta-opie         = master:efa3892b20a4ef80274e56e5633ebd62c16f9731&lt;br /&gt;
 meta-java         = master:3386ea6c96096f107f43f282f654e5afa456109e&lt;br /&gt;
 meta-browser      = master:c47f59df2e723495679c751cbdf6a8c6adec4b6a&lt;br /&gt;
 meta-mono         = master:83f8233b0498aadb18bf7605c3ba6c71d9e13a3a&lt;br /&gt;
 meta-kde          = master:5b0882d951cfd71886d423c190faaa7c7f932333&lt;br /&gt;
 meta-ti           = angstrom-staging:5364d0795bb27c2deb5a4e2df7d2f01ffb394cca&lt;br /&gt;
 meta-efikamx      = master:2c09a3a780b23448e8a6ca964256ff7f5ccba65d&lt;br /&gt;
 meta-nslu2        = master:3d9fc951b05b4df476374b6fc3085ebac7f293ee&lt;br /&gt;
 meta-htc          &lt;br /&gt;
 meta-nokia        &lt;br /&gt;
 meta-openmoko     &lt;br /&gt;
 meta-palm         = master:2b106be01228f64298d6cb338f93088806594344&lt;br /&gt;
 meta-handheld     = master:1f05a15aceb4c3a19fa070463b58125b5658b2a9&lt;br /&gt;
 meta-raspberrypi  = denzil:34eef2ea4f5f24630dbb73b386861430167b8431&lt;br /&gt;
 meta-intel        &lt;br /&gt;
 meta-sugarbay     &lt;br /&gt;
 meta-crownbay     &lt;br /&gt;
 meta-emenlow      &lt;br /&gt;
 meta-fishriver    &lt;br /&gt;
 meta-fri2         &lt;br /&gt;
 meta-jasperforest &lt;br /&gt;
 meta-n450         = master:f75f9b6f68473eb0efac802409608f8389be0030&lt;br /&gt;
 meta              = denzil:b052427a6678b1b696f8c64cf0fdc55e6af86c48 &lt;br /&gt;
&lt;br /&gt;
 host$ '''cd BeagleBoard/oe/sources/meta-ti'''&lt;br /&gt;
 host$ '''git checkout master'''&lt;br /&gt;
&lt;br /&gt;
{{YoderFoot}}&lt;/div&gt;</summary>
		<author><name>Yoder</name></author>	</entry>

	</feed>