https://elinux.org/index.php?title=EBC_Exercise_23_Configuring_the_Kernel_-_bitbake&feed=atom&action=history
EBC Exercise 23 Configuring the Kernel - bitbake - Revision history
2024-03-28T08:48:30Z
Revision history for this page on the wiki
MediaWiki 1.31.0
https://elinux.org/index.php?title=EBC_Exercise_23_Configuring_the_Kernel_-_bitbake&diff=260660&oldid=prev
Yoder: Added pointer to 3.8 kernel instructions.
2013-06-03T16:11:23Z
<p>Added pointer to 3.8 kernel instructions.</p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 16:11, 3 June 2013</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>[[Category:<del class="diffchange diffchange-inline">ECE497</del>]]</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>[[Category:<ins class="diffchange diffchange-inline">ECE497Fall2012</ins>]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:BeagleBoard]]</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>[[Category:BeagleBoard]]</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{YoderHead}}</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>{{YoderHead}}</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">{{EBC3.2}}This was used for the 3.2 kernel.  [[EBC Exercise 23 Configuring the Kernel]] is for the 3.8 kernel.</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This is the '''bitbake''' version.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This is the '''bitbake''' version.</div></td></tr>
<!-- diff cache key elinux:diff::1.12:old-190346:rev-260660 -->
</table>
Yoder
https://elinux.org/index.php?title=EBC_Exercise_23_Configuring_the_Kernel_-_bitbake&diff=190346&oldid=prev
Draneaw at 05:29, 8 November 2012
2012-11-08T05:29:01Z
<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 05:29, 8 November 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l5" >Line 5:</td>
<td colspan="2" class="diff-lineno">Line 5:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This is the '''bitbake''' version.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>This is the '''bitbake''' version.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>In a previous exercise ([[EBC Exercise 22 Cross-Compiling and Finding the Right Kernel - <del class="diffchange diffchange-inline">bitbkae</del>]]) you learned how to get and compile the kernel.  Here we'll look at configuring it.</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>In a previous exercise ([[EBC Exercise 22 Cross-Compiling and Finding the Right Kernel - <ins class="diffchange diffchange-inline">bitbake</ins>]]) you learned how to get and compile the kernel.  Here we'll look at configuring it.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Finding the kernel sources ==</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>== Finding the kernel sources ==</div></td></tr>
<!-- diff cache key elinux:diff::1.12:old-185576:rev-190346 -->
</table>
Draneaw
https://elinux.org/index.php?title=EBC_Exercise_23_Configuring_the_Kernel_-_bitbake&diff=185576&oldid=prev
Yoder: /* Finding the kernel sources */
2012-10-29T19:43:57Z
<p><span dir="auto"><span class="autocomment">Finding the kernel sources</span></span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 19:43, 29 October 2012</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l11" >Line 11:</td>
<td colspan="2" class="diff-lineno">Line 11:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>First set up the environment and go to the kernel directory</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>First set up the environment and go to the kernel directory</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>  host$ '''source ~/.oe/<del class="diffchange diffchange-inline">crossCompileEnv</del>.sh'''</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>  host$ '''source ~/.oe/<ins class="diffchange diffchange-inline">crossCompileEnvBitbake</ins>.sh'''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  host$ '''cd ~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-r121c+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/git/'''</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>  host$ '''cd ~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-r121c+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/git/'''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"></td></tr>
<!-- diff cache key elinux:diff::1.12:old-185570:rev-185576 -->
</table>
Yoder
https://elinux.org/index.php?title=EBC_Exercise_23_Configuring_the_Kernel_-_bitbake&diff=185570&oldid=prev
Yoder: Bitbake version
2012-10-29T19:43:04Z
<p>Bitbake version</p>
<p><b>New page</b></p><div>[[Category:ECE497]]<br />
[[Category:BeagleBoard]]<br />
{{YoderHead}}<br />
<br />
This is the '''bitbake''' version.<br />
<br />
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.<br />
<br />
== Finding the kernel sources ==<br />
<br />
First set up the environment and go to the kernel directory<br />
<br />
host$ '''source ~/.oe/crossCompileEnv.sh'''<br />
host$ '''cd ~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-r121c+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/git/'''<br />
<br />
We'll be visiting this directory so often you should set up an alias:<br />
host$ '''alias kernel="cd ~/BeagleBoard/oe/build/tmp-angstrom_v2012_05-eglibc/work/beagleboard-angstrom-linux-gnueabi/linux-omap-psp-2.6.32-r121c+gitr5fc29e7b2a76a64a739f857858ef0b98294aa155/git/"'''<br />
<br />
Then just entering<br />
host$ '''kernel'''<br />
will take you to the kernel directory. Put the alias in your '''~/.bashrc''' file so it will be there every time you log in.<br />
<br />
== Getting kernel make help ==<br />
Once there try some of the make commands. Help is a good place to start.<br />
<br />
host$ '''make help | less'''<br />
Cleaning targets:<br />
clean - Remove most generated files but keep the config and<br />
enough build support to build external modules<br />
mrproper - Remove all generated files + config + various backup files<br />
distclean - mrproper + remove editor backup and patch files<br />
<br />
Configuration targets:<br />
config - Update current config utilising a line-oriented program<br />
menuconfig - Update current config utilising a menu based program<br />
xconfig - Update current config utilising a QT based front-end<br />
gconfig - Update current config utilising a GTK based front-end<br />
...<br />
This produces a list of common make targets. <br />
<br />
== Finding and installing support software ==<br />
<br />
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<br />
<br />
host$ '''make menuconfig'''<br />
*** Unable to find the ncurses libraries or the<br />
*** required header files.<br />
*** 'make menuconfig' requires the ncurses libraries.<br />
*** <br />
*** Install ncurses (ncurses-devel) and try again.<br />
*** <br />
make[1]: *** [scripts/kconfig/dochecklxdialog] Error 1<br />
make: *** [menuconfig] Error 2<br />
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.<br />
<br />
NOTE FOR UBUNTU USERS: 'sudo apt-get install libncurses5-dev' without quotes will install ncurses<br />
<br />
== Configuring the kernel ==<br />
<br />
Try the various interfaces for configuring the kernel.<br />
<br />
host$ '''make menuconfig'''<br />
host$ '''make xconfig'''<br />
host$ '''make gconfig'''<br />
<br />
I had to run the following to get these to work.<br />
host$ '''sudo apt-get install libncurses5-dev'''<br />
host$ '''sudo apt-get install qt3-dev-tools'''<br />
host$ '''sudo apt-get install libglade2-dev'''<br />
<br />
{{YoderFoot}}</div>
Yoder