<?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_23_Configuring_the_Kernel_-_bitbake&amp;feed=atom&amp;action=history</id>
		<title>EBC Exercise 23 Configuring the Kernel - bitbake - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://elinux.org/index.php?title=EBC_Exercise_23_Configuring_the_Kernel_-_bitbake&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=EBC_Exercise_23_Configuring_the_Kernel_-_bitbake&amp;action=history"/>
		<updated>2013-05-21T20:54:07Z</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_23_Configuring_the_Kernel_-_bitbake&amp;diff=190346&amp;oldid=prev</id>
		<title>Draneaw at 05:29, 8 November 2012</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=EBC_Exercise_23_Configuring_the_Kernel_-_bitbake&amp;diff=190346&amp;oldid=prev"/>
				<updated>2012-11-08T05:29:01Z</updated>
		
		<summary type="html">&lt;p&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 05:29, 8 November 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 5:&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;This is the '''bitbake''' version.&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;This is the '''bitbake''' version.&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;In a previous exercise ([[EBC Exercise 22 Cross-Compiling and Finding the Right Kernel - &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;bitbkae&lt;/del&gt;]]) you learned how to get and compile the kernel.&amp;#160; Here we'll look at configuring it.&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;In a previous exercise ([[EBC Exercise 22 Cross-Compiling and Finding the Right Kernel - &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;bitbake&lt;/ins&gt;]]) you learned how to get and compile the kernel.&amp;#160; Here we'll look at configuring 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;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Finding the kernel sources ==&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 sources ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Draneaw</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=EBC_Exercise_23_Configuring_the_Kernel_-_bitbake&amp;diff=185576&amp;oldid=prev</id>
		<title>Yoder: /* Finding the kernel sources */</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=EBC_Exercise_23_Configuring_the_Kernel_-_bitbake&amp;diff=185576&amp;oldid=prev"/>
				<updated>2012-10-29T19:43:57Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Finding the kernel sources&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 19:43, 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 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;First set up the environment and go to the kernel directory&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 set up the environment and go to the kernel directory&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;&amp;#160; host$ '''source ~/.oe/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;crossCompileEnv&lt;/del&gt;.sh'''&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;&amp;#160; host$ '''source ~/.oe/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;crossCompileEnvBitbake&lt;/ins&gt;.sh'''&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;div&gt;&amp;#160; host$ '''cd ~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-r121c+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/git/'''&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; host$ '''cd ~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-r121c+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/git/'''&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;!-- diff cache key elinux:diff:version:1.11a:oldid:185570:newid:185576 --&gt;
&lt;/table&gt;</summary>
		<author><name>Yoder</name></author>	</entry>

	<entry>
		<id>http://elinux.org/index.php?title=EBC_Exercise_23_Configuring_the_Kernel_-_bitbake&amp;diff=185570&amp;oldid=prev</id>
		<title>Yoder: Bitbake version</title>
		<link rel="alternate" type="text/html" href="http://elinux.org/index.php?title=EBC_Exercise_23_Configuring_the_Kernel_-_bitbake&amp;diff=185570&amp;oldid=prev"/>
				<updated>2012-10-29T19:43:04Z</updated>
		
		<summary type="html">&lt;p&gt;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 is the '''bitbake''' version.&lt;br /&gt;
&lt;br /&gt;
In a previous exercise ([[EBC Exercise 22 Cross-Compiling and Finding the Right Kernel - bitbkae]]) you learned how to get and compile the kernel.  Here we'll look at configuring it.&lt;br /&gt;
&lt;br /&gt;
== Finding the kernel sources ==&lt;br /&gt;
&lt;br /&gt;
First set up the environment and go to the kernel directory&lt;br /&gt;
&lt;br /&gt;
 host$ '''source ~/.oe/crossCompileEnv.sh'''&lt;br /&gt;
 host$ '''cd ~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-r121c+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/git/'''&lt;br /&gt;
&lt;br /&gt;
We'll be visiting this directory so often you should set up an alias:&lt;br /&gt;
 host$ '''alias kernel=&amp;quot;cd ~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-r121c+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/git/&amp;quot;'''&lt;br /&gt;
&lt;br /&gt;
Then just entering&lt;br /&gt;
 host$ '''kernel'''&lt;br /&gt;
will take you to the kernel directory. Put the alias in your '''~/.bashrc''' file so it will be there every time you log in.&lt;br /&gt;
&lt;br /&gt;
== Getting kernel make help ==&lt;br /&gt;
Once there try some of the make commands.  Help is a good place to start.&lt;br /&gt;
&lt;br /&gt;
 host$ '''make help | less'''&lt;br /&gt;
 Cleaning targets:&lt;br /&gt;
   clean           - Remove most generated files but keep the config and&lt;br /&gt;
                     enough build support to build external modules&lt;br /&gt;
   mrproper        - Remove all generated files + config + various backup files&lt;br /&gt;
   distclean       - mrproper + remove editor backup and patch files&lt;br /&gt;
 &lt;br /&gt;
 Configuration targets:&lt;br /&gt;
   config          - Update current config utilising a line-oriented program&lt;br /&gt;
   menuconfig      - Update current config utilising a menu based program&lt;br /&gt;
   xconfig         - Update current config utilising a QT based front-end&lt;br /&gt;
   gconfig         - Update current config utilising a GTK based front-end&lt;br /&gt;
 ...&lt;br /&gt;
This produces a list of common make targets. &lt;br /&gt;
&lt;br /&gt;
== Finding and installing support software ==&lt;br /&gt;
&lt;br /&gt;
There are several ways to configure the kernel.  '''make config''' will prompt you line-by-line for each of the settings, very tedious, not recommended.  Try&lt;br /&gt;
&lt;br /&gt;
 host$ '''make menuconfig'''&lt;br /&gt;
  *** Unable to find the ncurses libraries or the&lt;br /&gt;
  *** required header files.&lt;br /&gt;
  *** 'make menuconfig' requires the ncurses libraries.&lt;br /&gt;
  *** &lt;br /&gt;
  *** Install ncurses (ncurses-devel) and try again.&lt;br /&gt;
  *** &lt;br /&gt;
 make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1&lt;br /&gt;
 make: *** [menuconfig] Error 2&lt;br /&gt;
If you get the error above, you need to install the ncurses library. [[ECE497_Tips_and_Tricks#On_the_host | Here]] are notes on how to discover what to install and installing it.&lt;br /&gt;
&lt;br /&gt;
NOTE FOR UBUNTU USERS: 'sudo apt-get install libncurses5-dev' without quotes will install ncurses&lt;br /&gt;
&lt;br /&gt;
== Configuring the kernel ==&lt;br /&gt;
&lt;br /&gt;
Try the various interfaces for configuring the kernel.&lt;br /&gt;
&lt;br /&gt;
 host$ '''make menuconfig'''&lt;br /&gt;
 host$ '''make xconfig'''&lt;br /&gt;
 host$ '''make gconfig'''&lt;br /&gt;
&lt;br /&gt;
I had to run the following to get these to work.&lt;br /&gt;
 host$ '''sudo apt-get install libncurses5-dev'''&lt;br /&gt;
 host$ '''sudo apt-get install qt3-dev-tools'''&lt;br /&gt;
 host$ '''sudo apt-get install libglade2-dev'''&lt;br /&gt;
&lt;br /&gt;
{{YoderFoot}}&lt;/div&gt;</summary>
		<author><name>Yoder</name></author>	</entry>

	</feed>