Next Previous Contents

34. PCMCIA services installation and configuration

- First.. make sure the PCMCIA cards you have are supported from a list available in the URL in Section 5. If your cards are supported (almost ALL are), download the newest version of software.

- Make sure your Linux kernel has TCP/IP support in it but you don't need to compile in any Ethernet card support. This is done by the PCMCIA modules. Tokenring is an exception to this rule.

- Uncompress the PCMCIA software in /usr/src or somewhere else you like

34.1 Compiling the PCMCIA tools

- run ./configure

- If you have the kernel sources install in /usr/src/kernel/linux, tell the ./configure script to use that to determine the kernel rev.

- I beleive that your card is a CardBus type so enable CardBus support.

- run make all

- run make install

+ Redhat: If this is for a Dell, this is how I would recommend you to configure your laptop. Note, you need to configure the network here and NOT from /etc/sysconfig. PCMCIA works in a totally different fashion than a standard NIC setup:

NOTE: You will need to include or exclude the rigth IRQs and IO ports for your machine.

34.2 Editing the PCMCIA configuration files


                /etc/sysconfig/pcmcia   (for Redhat only)
                --
                PCMCIA=yes
                PCIC=i82365
                PCIC_OPTS="irq_list=3,5,9,10"
                CORE_OPTS=
                --

- All distributions: Edit the /etc/pcmcia/config.opts file:


                --
                #
                # Local PCMCIA Configuration File
                #
                # System resources available for PCMCIA devices
                #
                include port 0x100-0x3ff, memory 0xc0000-0xfffff
                #
                # Extra port range for IBM Token Ring
                #
                include port 0xa20-0xa27
                #
                # Resources we should not use, even if they appear to be available
                #
                # Available IRQs for a Dell Latitude CP are 3,5,[9 is available if
                #       MIDI support for the C4232 sound card is NOT enabled in
                #       the kernel
                #
                # To be used for PCMCIA modem 
                include irq 3
                # Used by interal DB9 serial port
                exclude irq 4
                include irq 5
                # First built-in parallel port
                exclude irq 7
                include irq 9
                # Used by PCMCIA Card controller
                exclude irq 10
                # Used by the CSS Sound Card
                exclude irq 11
                # PS/2 Mouse (trackpad)
                exclude irq 12
                # IDE Channnel #1
                exclude irq 14
                # IDE Channnel #2
                exclude irq 15
                #
                # Options for loadable modules
                #
                # To fix sluggish network with IBM Ethernet adapter...
                #module "pcnet_cs" opts "mem_speed=600"
                #
                # Options for Xircom Netwave driver...
                #module "xircnw_cs" opts "domain=0x100 scramble_key=0x0"
                --

/etc/pcmcia/networks.opts (for DHCP.. If you are using a static IP address.. turn OFF BOOTP here and enter in your IP address in the IPADDR field)


                --
                # Network adapter configuration
                #
                # The address format is "scheme,socket,instance,hwaddr".
                #
                # Note: the "network address" here is NOT the same as the IP address.
                # See the Networking HOWTO.  In short, the network address is the IP
                # address masked by the netmask.
                #
                case "$ADDRESS" in
                *,*,*,*)
                    # Transceiver selection, for cards that need it -- see 'man ifport'
                    IF_PORT=""
                    # Use BOOTP [y/n]
                    BOOTP="y"
                    # IP address
                    IPADDR=""
                    # Netmask
                    NETMASK="255.255.255.0"
                    # Network address
                    NETWORK="1.2.0.0"
                    # Broadcast address
                    BROADCAST="1.2.255.255"
                    # Gateway address
                    GATEWAY="1.2.0.1"
                    # Local domain name
                    DOMAIN="ins.com"
                    # Search list for host lookup
                    SEARCH=""
                    # Nameserver #1
                    DNS_1=""
                    # Nameserver #2
                    DNS_2=""
                    # Nameserver #3
                    DNS_3=""
                    # NFS mounts, should be listed in /etc/fstab
                    MOUNTS=""
                    # For IPX interfaces, the frame type (e.g., 802.2)
                    IPX_FRAME=""
                    # For IPX interfaces, the network number
                    IPX_NETNUM=""
                    # Extra stuff to do after setting up the interface
                    start_fn () { return; }
                    # Extra stuff to do before shutting down the interface
                    stop_fn () { return; }
                    ;;
                esac
                --

After you've done all this.. reboot your machine and while the BIOS is showing the memory, etc.. EJECT all your PCMCIA cards. After Linux has booted, login as root, and then hit ALT-F7 to check out all the logs.

- If everything is working ok, make sure that PCMCIA services is enabled upon boot.

- To do this, UN-DO all edits for PCMCIA lines in Section 8


Next Previous Contents