6. Using make-kpkg to build the new kernel and pcmcia-source modules

Steps to build the kernel

  • Be sure the pcmcia-source is under /usr/src/modules.

  • Go ahead and configure your kernel and be sure that pcmcia support IS NOT compiled in as an option in the kernel.

  • To build the kernel and pcmcia-source, be sure you are under the

    /usr/src/linux
    or have a symbolic link from /usr/src/linux pointing to whatever kernel source you have set up.

  • Type

    make-kpkg clean
    to clean

  • Then type

    make-kpkg --revision=custom.1.0 kernel_image modules_image

The kernel_image option will build the kernel while the modules_image option will build all modules located under

/usr/src/modules/
. So be sure that you do indeed want to rebuild any other modules that are located in source when you are ready to build your new kernel.

After some chugging, go up one level to

/usr/src
and you should see two new Debian packages that should look something like this:

kernel-image-2.4.19-pre4_custom.1.0_i386.deb
pcmcia-modules-2.4.19-pre4_3.1.31-7+custom.1.0_i386.deb

You first want to install the kernel image so you would type

dpkg -i kernel-image-etc....

Now install the modules by typing

dpkg -i pcmcia-modules.etc...

Caution

There are a couple of assumptions that make-kpkg makes about your lilo.conf file. One is that you have not radically changed it. Make-kpgk will make make symbolics links from '/boot' where the actual kernel resides to 'vmlinuz' which is under '/'. In other words, under '/', you will see vmlinuz and vmlinuz.old which are symbolic links to the real kernel images under /boot/. Anyway if you have any questions ask me.

Copyright © 2010-2024 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout