Ubuntu kernel

From Attie's Wiki
Jump to: navigation, search

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
skipabi=true skipmodule=true fakeroot debian/rules binary-omap4
#skipabi=true skipmodule=true fakeroot debian/rules binary-indep
#skipabi=true skipmodule=true fakeroot debian/rules binary-perarch

For the helping pages see: 1 2 3

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox