Debian PCMCIA



Introduction

This document briefly describes the Debian pcmcia setup.

The pcmcia kernel modules must be consistent with the installed kernel. Therefore, when you update the kernel, you must update the pcmcia modules with the relevant version.

There is a little bit more work to do if you're compiling your own kernel.


Building the pcmcia modules

Install the pcmcia-source and pcmcia-cs packages with;

  • apt-get install pcmcia-source pcmcia-cs

After installing the pcmcia-source, read the Debian README for detailed instructions on building the modules;

  • less /usr/src/modules/pcmcia-cs/debian/README

Briefly;

Assuming /usr/src/linux is a symbolic link to the source directory your kernel source is installed in

  1. cp /boot/config-2.4.28 /usr/src/linux # or whatever your favourite config is
  2. cd /usr/src/linux
  3. make menuconfig # (or make 'menu config' or make 'menu oldconfig')
  4. make-kpkg clean
  5. make-kpkg --append-to-version -myversion kernel-image modulesimage

kernel-image-[some-version].deb and pcmcia-modules-[some-version].deb will have been created in /usr/src

Each is then installed with;

  • dpkg -i kernel-image-[some-version].deb
  • dpkg -i pcmcia-modules-[some-version].deb

Update your lilo or grub configuration accordingly and reboot.


-- Frank Dean - 01 Feb 2005

Related Topics: DebianTips