linux kernel

Kernel compilation

$ cd /usr/src
$ tar xjf /root/linux-2.6.2.tar.bz2

Create proper linux link to the new directory

$ cd /usr/src/linux
$ make menuconfig

Testing

$ make bzImage
$ make modules
$ make modules_install
$ cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.2
$ cp System.map /boot/System-2.6.2.map

Modify /etc/lilo.conf and reboot

Installation

$ make-kpkg clean
$ make-kpkg --revision=toughbook.1.0 kernel_image modules_image kernel_headers
$ make-kpkg modules
$ cd /usr/src
$ dpkg -i <kernel-headers-*.deb> <kernel-image-*.deb>

Check and restart lilo

Note: If a ppc kernel does not compile, with an error message like this at the end of a compile process:

cp: cannot stat `arch/ppc/boot/images/vmlinux.coff': No such file or directory

simply touch the missing file between the clean process and the make process:

$ touch arch/ppc/boot/images/vmlinux.coff

Kernel package update

To run this procedure you need these packages:

  • cramfsprogs
  • initrd-tools

When the debian kernel is not booting properly and loops with some weird insmod messages it is necessary to do the following steps:

Edit /etc/mkinitrd/modules and add 'ext3' and/or 'ext2' on a separate line each

$ mkinitrd -o /boot/initrd.img-2.4.20-586tsc-test /lib/modules/2.4.20-586tsc/
$ cramfsck -v -x /tmp/foo /boot/initrd.img-2.4.20-586tsc-test

The RAM disk content is then unpacked in /tmp/foo.

List shared memory segments

$ ipcs
 
harry/linux_kernel.txt · Last modified: 2005/03/30 15:31 (external edit)
Locations of visitors to this page

 
Recent changes RSS feed Creative Commons License Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki