Debian Kernel

From YobiWiki
Revision as of 22:52, 17 November 2006 by <bdi>PhilippeTeuwen</bdi> (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Kernel compilation

  • Use make-kpkg to create a real Debian package with your home-made kernel and install this package
  • My method: a simple script /usr/src/make-kernel.sh, to use it enter the right kernel-tree as normal user then ../make-kernel.sh
#!/bin/bash
REVISION="3.06.Mercure"
APPEND="-d600"
make-kpkg --rootcmd fakeroot clean 2>&1 |tee ../trace.txt
make-kpkg --rootcmd fakeroot --us --uc --revision $REVISION --append-to-version $APPEND kernel_image 2>&1 |tee -a ../trace.txt
make-kpkg --rootcmd fakeroot modules_clean 2>&1 |tee -a ../trace.txt
make-kpkg --rootcmd fakeroot --us --uc --revision $REVISION --append-to-version $APPEND modules_image 2>&1 |tee -a ../trace.txt
  • modules is only if there are out of kernel-tree modules to compile (such as ndiswrapped), regular kernel modules are already compiled with make-kpkg kernel_image
  • Remark: I could never get a kernel with initrd booting properly :-(
  • There should be an easier way to build modules, I never tried:
    • Use module-assistant package
    • E.g. to compile fuse: m-a a-i fuse
  • When you install a Debian kernel, of your own or from the feeds, you can always find the .config under /boot/config-<kernel version>