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

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 to whatever kernel source you have set up. 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 it is ok to build any other modules there.

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 is that you have not radically changed it. the new kernel will be installed over the older kernel image and the older kernel image will be moved to linux.old. Anyway if you have any questions ask me.