Skip navigation.

Posts tagged with "Debian"

Building new kernel in Debian

,

Useful Links
Linux Kernel in a Nutshell
Kernel Build HOWTO
Debian-Kernel-Compile-Howto (Kernel 2.6)
Debian Linux Kernel Handbook
Howto: build Linux kernel module against installed kernel w/o full kernel source tree
SystemTap on Debian GNU/Linux
Creating custom kernels with Debian's kernel-package system

The Debian Way
$ apt-get install fakeroot, kernel-package, linux-source-2.6.16
$ tar xjf /usr/src/linux-source-2.6.16.tar.bz2
$ cd linux-source-2.6.16
$ make menuconfig (or xconfig)
$ make-kpkg clean

$ fakeroot make-kpkg --initrd --revision=bob.1.0 
                     kernel_image kernel_headers
or 
$ fakeroot make-kpkg --initrd --append-to-version=-bob-1.0 
                               kernel_image kernel_headers


$ make-kpkg modules_image
or
$ make-kpkg --append-to-version=-bob-1.0 modules_image
//keep giving me the version mismatch error, 
//better put modules_image option together with kernel_image 
//build everything in a single run makes your life much easier
//Another way: change include/linux/utsrelease.h to 
//force the version match,
//still see some warning, however, modules compiled just fine

$ dpkg -i ../linux-image-2.6.16_bob.1.0_i386.deb
$ dpkg -i (any module deb)
$ shutdown -r now

The Traditional Way
make menuconfig (or xconfig)
make
make modules_install (as root)
make install (as root)
update-initramfs -c -k [kernel version]  (for initrd.img)

Tips
Remember to recompile other modules that are not in debian package (outside /usr/src).
For example, Orinico USB driver.

Configure X Server for Debian on Dell Inspiron 4000

,

After installation, the screen display doesn't work. After reading tons of materials online and tried several configuration, the following works:

/etc/X11/xorg.conf

In Section "Device", change driver from "ati" to "r128".

In Section "Monitor", add

  HorizSync 30-60
  VertRefresh 60-90

In Section "Screen", change DefaultDepth from 24 to 16. And

  SubSection "Display"
        Depth 16
        Modes "1024x768"
  EndSubSection

I may need to find a solution to make depth as 24.