Kernel compile

Notes on the latest kernel compile.

2.6.16

  1. `aptitude install linux-source-2.6.16`
  2. Untarred linux-source.tar.bz2 in /usr/src/
  3. Copied .config from /usr/src/kernel-source-2.6.11 to /usr/src/linux-source-2.6.16
  4. Checked out the Linux Kernel Configuration Archive and consulted the trustworthy GNU/Linux on an IBM ThinkPad X31
  5. Made some minor tweaks (found I could best tweak by looking at the .config file in one terminal while going through the `make menuconfig` selections in another)
    • Made ext2 support a module, since I'm running ext3 (`CONFIG_EXT2_FS=m`)
    • No rom or cram support, since I'm not using initrd (`# CONFIG_ROMFS_FS is not set` ... `# CONFIG_CRAMFS is not set`)
    • Got rid of all usb network adapters except `CONFIG_USB_MON=y`, which were compiled as modules for some unknown reason
    • Considered dropping apm for acpi, but decided to wait. If it ain't broke don't fix it, right? I mean, the tradeoffs are about equal, so it's just not worth it at this point. Also selected `CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y`.
    • Added `CONFIG_PRINTER=m`, which I needed
    • Annoyance: `CONFIG_RAMFS=y` shows up in .config, and there's no listing for it in menuconfig. Does that mean it's necessary for something else I selected, or just forgotten in the Kconfig?
  6. Left madwifi and thinkpad modules' source in /usr/src/
  7. Ran the following:
    # make-kpkg clean modules_clean
    # make-kpkg --revision=magnum.0.7 kernel_image
    # make-kpkg modules_image
    # dpkg -i linux-image-2.6.16_magnum.0.7_i386.deb
    # dpkg -i madwifi-module-2.6.16_20050124-1-onoe+magnum.0.7_i386.deb
    # dpkg -i thinkpad-modules-2.6.16_5.9-2.1+magnum.0.7_i386.deb
  8. Reboot
  9. Had to go into modconf and install the `ath_pci` module to get wireless working, same for apm and some others.
  10. That's it for now! Here's my kernel .config file.
Addendum: Thinkpad modules won't install. Found this bug. Don't really need them, anyway.

keywords: tech, Debian, Linux, kernel compiling, Thinkpad X31 created 2006-05-16 last modified 2008-08-01