SMC2632W-v2 Installation Notes on RedHat 8.0 -------------------------------------------- by Igor Fedulov System data: IBM ThinkPad A20m Kernel:2.4.18-14 #1 Wed Sep 4 13:35:50 EDT 2002 RedHat release: 8.0 PCMCIA: kernel-pcmcia-cs-3.1.31-9 Wireless tools: wireless-tools-25-1 rpm -qa | grep gcc: compat-gcc-7.3-2.96.110 gcc-g77-3.2-7 gcc-c++-3.2-7 libgcc-3.2-7 gcc-3.2-7 gcc-objc-3.2-7 Driver source: ------------- I used CVS as it was easier for me to keep track of changes and make updates as driver code changes. Here is CVS root: :pserver:anonymous:@cvs.atmelwlandriver.sourceforge.net:/cvsroot/atmelwlandriver I had to make changes to the driver source which are outlined below: [root@mercury atmelwlandriver]# cvs update cvs server: Updating . cvs server: Updating man cvs server: Updating patch cvs server: Updating scripts cvs server: Updating src cvs server: Updating src/Pcmcia_Pci M src/Pcmcia_Pci/fastvnet_cs.c cvs server: Updating src/apps cvs server: Updating src/apps/XWlan cvs server: Updating src/apps/cmd_line cvs server: Updating src/includes cvs server: Updating src/includes/pcmcia M src/includes/pcmcia/vnet.h cvs server: Updating src/includes/usb cvs server: Updating src/usb Here are the cvs diffs for modified files, I'm assuming that diff output is known to the reader of this document: [root@mercury atmelwlandriver]# cvs diff src/Pcmcia_Pci/fastvnet_cs.c Index: src/Pcmcia_Pci/fastvnet_cs.c =================================================================== RCS file: /cvsroot/atmelwlandriver/atmelwlandriver/src/Pcmcia_Pci/fastvnet_cs.c,v retrieving revision 1.9 diff -r1.9 fastvnet_cs.c 32a33 > #include 104,107c105,108 < MODULE_PARM(WepKey1, "c" __MODULE_STRING(11)); < MODULE_PARM(WepKey2, "c" __MODULE_STRING(11)); < MODULE_PARM(WepKey3, "c" __MODULE_STRING(11)); < MODULE_PARM(WepKey4, "c" __MODULE_STRING(11)); --- > MODULE_PARM(WepKey1, "c" __MODULE_STRING(12)); > MODULE_PARM(WepKey2, "c" __MODULE_STRING(12)); > MODULE_PARM(WepKey3, "c" __MODULE_STRING(12)); > MODULE_PARM(WepKey4, "c" __MODULE_STRING(12)); 1038c1039 < if (IW_IS_SET(cmd) && cmd >= SIOCSIWNAME && !suser()) --- > if (IW_IS_SET(cmd) && cmd >= SIOCGIWNAME && !suser()) [root@mercury atmelwlandriver]# cvs diff src/includes/pcmcia/vnet.h Index: src/includes/pcmcia/vnet.h =================================================================== RCS file: /cvsroot/atmelwlandriver/atmelwlandriver/src/includes/pcmcia/vnet.h,v retrieving revision 1.5 diff -r1.5 vnet.h 25a26 > #define HAS_WIRELESS_EXTENSIONS 1 Compilation and installation: ---------------------------- Here is the list of commands that I ran including choices that I made: [root@mercury atmelwlandriver]# make clean find -name '*.o' -o -name '*.map' |xargs rm -f rm -f .config Now run make config [root@mercury atmelwlandriver]# make config Build all (y/n) : n Kernel Version Running 2.4.18-14 Found Kernel Source Directory (/lib/modules/2.4.18-14/build) Build Debug version (y/n) : n Build USB Drivers (y/n) : n Build PCMCIA Drivers (y/n) : y Build PCMCIA intersil Driver (y/n) : n Build PCMCIA rfmd Driver (y/n) : y Build PCMCIA 3COM Driver (y/n) : n Build PCMCIA rfmd revision d Driver (y/n) : n Build PCMCIA rfmd revision e Driver (y/n) : n Build PCMCIA 504 Driver (y/n) : n Build miniPCI Driver (y/n) : n Build applications (y/n) : y Build command line application (y/n) : y You have to install the xforms library in order to use the xvnet application Finished. Now run make install [root@mercury atmelwlandriver]# make install ... depmod -aq OK [root@mercury atmelwlandriver]# Ok if above finished, following file should exist: /lib/modules/2.4.18-14/pcmcia/pcmf502r.o Now time to go edit some files. Go to /etc/pcmcia and create file called "smc.conf", cut and paste following into that file: device "pcmf502r" class "network" module "pcmf502r" card "SMC 2632W V2 11 Mbps Wireless PCMCIA Card" manfid 0x01bf, 0xb301 bind "pcmf502r" This will inform PCMCIA that if device found with manfid 0x01bf, 0xb301 then the module pcmf502r should be loaded etc. Now restart pcmcia service: [root@mercury pcmcia]# /etc/rc.d/init.d/pcmcia restart Shutting down PCMCIA services: cardmgr modules. Starting PCMCIA services: modules cardmgr. Inspect /var/log/messages to see the output of the cardmgr, it should be something like this: Oct 7 11:56:38 mercury cardmgr[4106]: socket 0: SMC 2632W V2 11 Mbps Wireless PCMCIA Card Oct 7 11:56:38 mercury cardmgr[4106]: executing: 'modprobe pcmf502r' Oct 7 11:56:39 mercury cardmgr[4106]: executing: './network start eth0' Oct 7 11:56:39 mercury /etc/hotplug/net.agent: invoke ifup eth0 Next thing that you do is enter the WEP key(if you network is encrypted if not you should be already up and running), by doing this: [root@mercury pcmcia]# iwconfig eth0 enc "AA-AA-AA-AA...AA" where "eth0" is the name of the interface that was binded to your wireless card and the "AA...AA" is the encryption key. If you don't use encryption key everything should just work assuming that eth0 is configured properly. Aka here is mine /etc/sysconfig/network-scripts/ifcfg-eth0 for example: [root@mercury pcmcia]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE='eth0' ONBOOT='yes' BOOTPROTO='none' IPADDR='10.100.100.17' NETMASK='255.255.255.0' GATEWAY='10.100.100.1' TYPE='Ethernet' USERCTL='no' NETWORK='10.100.100.0' BROADCAST='10.100.100.255' ENCRYPTION=on KEY="AA-AA-AA-...AA" Here is how iwconfig output looks like: eth0 ATMEL RFMD ESSID:"My-wireless-network" Mode:Managed Channel:1 Access Point: 00:00:00:00:00:00 Bit Rate:11Mb/s Tx-Power=2 dBm Retry:on RTS thr=2347 B Fragment thr=2346 B Encryption key:AAAA-AAAA-AAAA-AAAA-AAAA-AAAA-AA Encryption mode:restricted Encryption mode:open Link Quality:40 Signal level:24 Noise level:0 Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0 Tx excessive retries:0 Invalid misc:0 Missed beacon:0 Notes: ----- It seems that after reboot with card inserted XWindows won't startup at all, I can't seem to find out why, if I do I'll update this document. If you know why please email me as it's really annoying to eject the card every time you reboot and you reboot often cuz it's a laptop. :( Feedback: -------- Feedback is always welcome, please direct all your questions to igor AT outlook.net. As I assume this document will be posted on the web you will have to substitute AT with you know what your self :)