      -------------------------------------------------------------------
      Copyright (C) 2000 Gemtek Technology Co., Ltd. All Rights Reserved.
      -------------------------------------------------------------------
      Author:Jonathan Hsieh,jonathan@gemtek.com.tw             8.Aug.2001
 
 
                      Linux PCMCIA CARD Architecture
                      ==============================
                            Installation guide        


This document state about how to configur PCMCIA Card on your computer. It had 
passed under RedHat 6.2 and 7.0 OS. Follow this document can bring up Gemtek WLAN PCMCIA card easily on every linux OS with 2.2+ or 2.4+ kernel. 


1) Driver Installation

You have to login as "root". Copy 'pcmcia-cs-3.1.xx.tar.gz' and
'linux-wlan-ng-0.1.x.tar.gz' to /usr/src directory. Uncompress 
pcmcia-cs-3.1.xx.tar.gz in /usr/src/ directory.
# cp pcmcia-cs-3.1.xx.tar.gz /usr/src/
# cd /usr/src/
# tar zxvf pcmcia-cs-3.1.xx.tar.gz


Run "make config" in the /usr/src/pcmcia-cs-3.1.xx directory.
# make config


Choose the following setting:
  Linux source directory: /usr/src/linux
  Build "trusting" versions of card utilities(y/n): n
  Include 32-bit(CardBus) card support(y/n): y
  Include PnP BIOS resource checking(y/n):  n
  Module install directory: /lib/modules/2.2.xx    # Linux kernel version.


If the configuration has successed, do the next step:
# make all
# make install


Unpack the other one file linux-wlan-ng-0.1.x.tar.gz in /usr/src.
# tar zxvf linux-wlan-ng-0.1.x.tar.gz


Run "make config" in 'linux-wlan-ng-0.1.x' directory.
# make config


Choose the following setting:
  Linux source directory: /usr/src/linux
  Pcmcia-cs source dir: /usr/src/pcmcia-cs-3.1.xx        
  Altermate target install directory:                    # Don't type enything 
  Module install directory: /lib/modules/2.2.xx
  PCMCIA script directory: /etc/pcmcia
  Target Architecture? i386
  Prefix for build host compiler? (rarely needed):	 # Blank
  Compiling with a cross compiler? n
  Build for debugging (see doc/config.debug): n
  Build for Kernel PCMCIA: n
  Build PLX???? based PCI (_plx) adapter drivers? n
  Build PCMCIA Card Services (_cs) drivers? y  


If the configuration successful, do the next step:
# make all
# make install



2) Network Configuration

Modify the file '/etc/pcmcia/network.opts'. This file is wireless network
configuration. You can use text editor to modify it. 
  ......
  ......
  IPADDR="192.168.1.100"               
  NETMASK="255.255.255.0"            
  NETWORK="192.168.1.0"   
  BROADCAST="192.168.1.255" 
  GATEWAY="192.168.1.254"
  ......
  DNS_1="192.168.1.1"
  ......
  ......


Modify the file '/etc/pcmcia/wlan-ng.opts'. In this file you should choose the
AP ESSID that you want to connect.
  ......
  ......
  #=======STA=========================================
  # SSID is all we have for now
  dot11DesiredSSID="WLAN_PRISM2"             # SSID of AP you want to 
  ......                                     # connect with.
  ......
 

Modify the file '/etc/sysconfig/pcmcia' in System V init script arrangement. If 
you use BSD boot script arrangement, the PCMCIA startup script is installed in 
/etc/rc.d/rc.pcmcia as Slackware. Boot options are specified in rc.pcmcia
itself. The PCMCIA startup script is invoked form /etc/rc.d/rc.S.
  ......
  PCIC=i82365                 # This is the only mandatory option setting.
  ......
  ......
  PCIC_OPTS="irq_mode=0"      # Driver requires a "irq_mode=0" parameter
  ......                      # for most of card readers. "irq_mode=1"
  ......                      # parameter is for Elan P-series PCI card
                              # readers based on the Cirrus PD6729 PCI-
                              # to-PCMCIA bridge chip.
 
                                    

3) Start connection

Start PCMCIA script. You can use this command as follow:
# ./etc/rc.d/init.d/pcmcia start(restart)
 or 
# ./etc/rc.d/rc.pcmcia start(restart)


If you heard two long-beep sounds that means PCMCIA card has been bring up.
