Step 4: configure pcmcia

First make sure to install in your pcmcia package the PCMCIA kernel modules that will be needed by your hardware. Refer to the Bering installation guide to learn how to do that.

For our Xircom card the following modules were used:

# ls -la /lib/modules/pcmcia
drwxr-xr-x    2 root     root         4096 avr 25 07:54 ./
drwxrwxrwt   27 root     root         4096 avr 25 07:52 ../
-rw-r--r--    1 root     root        11248 avr 25 07:53 ds.o
-rw-r--r--    1 root     root        33728 avr 25 07:53 i82365.o
-rw-r--r--    1 root     root        57272 avr 25 07:54 pcmcia_core.o
-rw-r--r--    1 root     root         8204 avr 25 07:54 serial_cs.o
-rw-r--r--    1 root     root        19680 avr 25 07:54 xirc2ps_cs.o

Once your package is ready, enter the LEAF Package configuration menu and choose pcmcia. The following menu will appear

                        pcmcia configuration files

        1) pcmcia default parameters
        2) pcmcia configuration
        3) wireless configuration

  q) quit
  ----------------------------------------------------------------------------
        Selection:

Entry 1) allows to edit the /etc/default/pcmcia file which defines the pcmcia parameters that will be used by the cardmgr program and the /etc/init.d/pcmcia script.

In our practical example (a Xircom RealPort EThernet 10/100 + Modem 56k - ref REM56G-100BTX) this file will contain:

PCMCIA=yes
PCIC=i82365.o
PCIC_OPTS=
CORE_OPTS=
CARDMGR_OPTS=

Entry 2) allows to edit the /etc/pcmcia/config.opts file. Please refer to the PCMCIA How-to for the explanation of the different options.

The default /etc/pcmcia/config.opts file provided in the pcmcia.lrp package is the default file provided in the pcmcia-cs package. It looks like:

include port 0xa00-0xaff
#
# Resources we should not use, even if they appear to be available
#
# First built-in serial port
exclude irq 4
# Second built-in serial port
exclude irq 12
# First built-in parallel port
exclude irq 7

Entry 3) is only used if you are using a wireless PCMCIA card. If not this file can only contain:

*,*,*,*)
    ;;

Refer to the wireless section of this user's guide if you need to setup wireless.