Difference between revisions of "Debian Kernel"

From YobiWiki
Jump to navigation Jump to search
m
 
Line 15: Line 15:
 
** E.g. to compile fuse: m-a a-i fuse
 
** 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>
 
* When you install a Debian kernel, of your own or from the feeds, you can always find the .config under /boot/config-<kernel version>
  +
----
  +
To know which version of gcc was used to compile a kernel:
  +
cat /proc/version

Revision as of 17:59, 8 January 2007

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>

To know which version of gcc was used to compile a kernel:

cat /proc/version