Debian Kernel
Revision as of 21:52, 17 November 2006 by <bdi>PhilippeTeuwen</bdi> (talk | contribs)
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>