Ubuntu kernel

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m (Created page with 'This page outlines steps to compile the Ubuntu kernel (why can't it be simple!) with a 10.04 host machine * First off, get the relevant source. [https://wiki.ubuntu.com/Kernel/D…')
 
m
Line 1: Line 1:
This page outlines steps to compile the Ubuntu kernel (why can't it be simple!) with a 10.04 host machine
+
This page outlines steps to (cross-)compile the Ubuntu kernel (why can't it be simple!) with a 10.04 host machine
  
 
* First off, get the relevant source. [https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide Ubuntu's Git Guide] or download the tar.
 
* First off, get the relevant source. [https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide Ubuntu's Git Guide] or download the tar.
 
* Install billions of packages:
 
* Install billions of packages:
 
<source lang="bash">
 
<source lang="bash">
sudo su -
+
sudo su
 
# the ones they tell you about
 
# the ones they tell you about
 
apt-get install git git-core libnewt-dev
 
apt-get install git git-core libnewt-dev
Line 18: Line 18:
 
<source lang="bash">
 
<source lang="bash">
 
fakeroot debian/rules clean
 
fakeroot debian/rules clean
 +
export `dpkg-architecture -aarmel`
 
skipabi=true skipmodule=true fakeroot debian/rules binary-indep
 
skipabi=true skipmodule=true fakeroot debian/rules binary-indep
 
+
skipabi=true skipmodule=true fakeroot debian/rules binary-perarch
 +
skipabi=true skipmodule=true fakeroot debian/rules binary
 
</source>
 
</source>
  
For the helping pages see [https://help.ubuntu.com/community/Kernel/Compile 1] [https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide 2] [http://blog.avirtualhome.com/2011/08/03/how-to-compile-a-new-ubuntu-11-04-natty-kernel/ 3]
+
For the helping pages see:
 +
[https://help.ubuntu.com/community/Kernel/Compile 1]
 +
[https://wiki.ubuntu.com/Kernel/Dev/KernelGitGuide 2]
 +
[http://blog.avirtualhome.com/2011/08/03/how-to-compile-a-new-ubuntu-11-04-natty-kernel/ 3]

Revision as of 16:57, 6 October 2011

This page outlines steps to (cross-)compile the Ubuntu kernel (why can't it be simple!) with a 10.04 host machine

  • First off, get the relevant source. Ubuntu's Git Guide or download the tar.
  • Install billions of packages:
sudo su
# the ones they tell you about
apt-get install git git-core libnewt-dev
apt-get install fakeroot build-essential crash kexec-tools makedumpfile kernel-wedge
apt-get build-dep linux
apt-get install libncurses5 libncurses5-dev libelf-dev asciidoc binutils-dev
# and the ones they dont...
apt-get install libdw-dev
exit
  • Copy in your config (from /proc/config.gz or /boot/config-* or /boot/config-`uname -r`)
  • Execute some awesome (and largely wasteful) commands:
fakeroot debian/rules clean
export `dpkg-architecture -aarmel`
skipabi=true skipmodule=true fakeroot debian/rules binary-indep
skipabi=true skipmodule=true fakeroot debian/rules binary-perarch
skipabi=true skipmodule=true fakeroot debian/rules binary

For the helping pages see: 1 2 3

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox