'''Red Hat 7.3 as a full wireless AP + wireless WAN interface''' ### Index ### !! Introduction This setup is to have a Red Hat 7.3 linux box configured with a Compaq WL200 PCI Wireless card as a full AP Interface in master mode using the Hostap Driver, Also having a Enterasys RoamAbout wireless PC card as a a WAN point to point interface in ad-hoc mode using the Orinoco driver. !! 1. Requirements !!! 1.1 Hardware (http://www.compaq.com Compaq) WL200 wireless PCI card. (http://www.enterasys.com Enterasys) RoamAbout wireless PC card. Ricoh RL5c475 PCI cradle. !!! 1.2 Software (http://www.redhat.com Redhat) Linux 7.3 (http://pcmcia-cs.sourceforge.net Pcmcia-cs) version (http://pcmcia-cs.sourceforge.net/ftp/pcmcia-cs-3.2.0.tar.gz 3.2.0) ('''Jun 2004''': current version is (http://pcmcia-cs.sourceforge.net/ftp/ 3.2.7)) (http://hostap.epitest.fi Host AP driver) version (http://hostap.epitest.fi/releases/Prism2-2002-05-19.tar.gz 2002-05-19) ('''Jun 2004''': current version is (http://hostap.epitest.fi/releases/hostap-driver-0.1.3.tar.gz hostap-driver-0.1.3)) (http://www.ozlabs.org/people/dgibson/dldwd Orinoco driver) version (http://ozlabs.org/people/dgibson/dldwd/orinoco-0.12b.tar.gz 0.12b) ('''Jun 2004''': current version (http://www.ozlabs.org/people/dgibson/dldwd/orinoco-0.13e.tar.gz orinoco-0.13e)) (http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html Wireless tools) version (http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/wireless_tools.24.tar.gz 24) ('''Jun 2004''': current version (http://pcmcia-cs.sourceforge.net/ftp/contrib/wireless_tools.26.tar.gz wireless_tools.26)) !!! 1.3 Firmware (http://www.intersil.com Prism) firmware version (http://www.goonda.org/wireless/utils/UpdFw8c3.zip 0.8.3) for WL200. (http://www.orinocowireless.com Orinoco) firmware version (http://www.orinocowireless.com/template.html?section=m52&envelope=90&page=3267 8.10) for RoamAbout. !! 2. Compile New Kernel With No PCMCIA/CardBus Support Change to kernel source directory (eg. ''cd /usr/src/linux-2.4.18-3''). ('''Jun 2004:''' The newer pcmcia-cs package will look for the kernel at /usr/src/linux. This link should be present in most newer distributions. If not create a symlink to the versioned kernel. This is now the preferred method of linking to the kernel source tree.)%%% Edit the Makefile (eg. '''Vi Makefile'''), and change the __EXTRAVERSION = -3custom__ statement in the (approx) 4th line down. %%%Remove the word custom so that it's __EXTRAVERSION = -3__ and Save this change. ---- Run '''make menuconfig''' (or you can use '''make xconfig''').%%% In the Main menu * select __General setup --->__. * then '''de'''select __PCMCIA/CardBus support --->__ in the General setup menu. * __Exit__ Return to Main menu. * Select __Network device support --->__ in the Main menu. * In the Network device support menu scroll down, ** and Select __Wireless LAN (non-hamradio) --->__. * In the wireless LAN (non-hamradio) menu, ** ensure __[*] Wireless LAN (non-hamradio)__ is selected by having a * in the [ ] * Un-select all other devices list below __Wireless LAN (non-hamradio)__ by removing all * or M next to them. * Exit and save config. ---- Run '''make clean''' Run '''make dep''' and when finished make the image, Run '''make bzImage-2002-08-09''' (or what ever name you want to call it)%%% Time to test the new kernel. !!! 2.1 Boot New Kernel Using GRUB If you are using grub as the boot manager, then edit ''/boot/grub/grub.conf''%%% Enter the following at the bottom of the grub.conf file. Title Red Hat Linux (2.4.18-3 mykernel) root (hd0,0) kernel /bzImage-2002-08-09 ro root=/dev/hda3 Save the changes and test boot. !!! 2.2 Boot New Kernel Using LILO If you are using LILO as the boot manager, then edit ''/etc/lilo.conf''%%% Enter the following at the bottom of lilo.conf file image = /bzImage-2202-08-09 label = Red Hat Linux (2.4.18-3 mykernel) Save the changes and run '''lilo -v''', so that it writes out lilo.conf and makes system bootable, then test boot. !!! 2.3 Compile and Install Modules Once you have test booted ok. Return to the kernel source directory and do the following... Run '''make modules''' Run '''make modules_install''' Reboot again to test. !! 3. Complile and Install PCMCIA and Wireless Card Drivers !!! 3.1 PCMCIA-CS Driver Download the (http://pcmcia-cs.sourceforge.net/ftp/ latest pcmcia-cs package). Change to the directory, where you want the files to unpacked(eg. ''cd /usr/src'') and Unpack it using '''tar -zxf /file.tar.gz''' !!! 3.2 Hostap Driver Download the (http://hostap.epitest.fi latest hostap-driver package) and change to the directory, where you want the files to be unpacked and unpack it.%%% Eg. Copy all the files and sub-directories in ''/Prism2-2002-05-19/driver'' (or ''/hostap-driver-0.1.x/driver'') to root of pcmcia-cs source directory%%% !!! 3.3 Orinoco Driver If you want to compile Orinoco driver for Enterasys PCMCIA card.%%% Download the (http://ozlabs.org/people/dgibson/dldwd/ latest Orinoco package), and unpack it.%%% Eg. Copy all .c and .h files to pcmcia-cs wireless sub-directory (''pcmcia-cs-3.2.x/wireless''), and ''hermes.conf'' to etc sub-directory (pcmcia-cs-3.2.x/etc). !!! 3.4 Compile and Install Change to pcmcia-cs source directory (eg. ''cd /usr/src/pcmcia-cs-3.2.0'').%%% Run '''make config''' (ensure the default kernel source directory is correct). %%% Use default for other options. Run '''make all''' then Run '''make install'''%%% Additional (http://pcmcia-cs.sourceforge.net/ftp/doc/PCMCIA-HOWTO-2.html#ss2.2 PCMCIA-HOWTO: Compilation and installation) information is available.%%% ('''Jun 2004:''' For the newer pcmcia-cs-3.2.7 version '''make config''' has been replaced with '''Configure'''. Run this command, point it to the ''/usr/src/linux'' tree and accept the remaining defaults. It will output the configuration to the screen, check it and fix if necessary)%%% !!! 3.5 IRQ Routing Because the default setting is to use ISA, We need to tell the system to use PCI for this card.%%% Edit ''/etc/sysconfig/pcmcia'' and Add this line to it (__'''WL200 need this to work'''__). PCIC_OPTS='irq_mode=1' If you want to have a ricoh chipset pci cradle and enterasys card, to coexist with WL200, then add this.%%% PCIC_OPTS='irq_mode=1 irq_list=0' If the above doen't work for your system try adding __'''extra_sockets=1'''__. !!! 3.6 Network Parameters To set the IP address, subnet mask, etc, for wireless interfaces%%% Edit this file ''/etc/pcmcia/network.opts''%%% More info is available, (http://pcmcia-cs.sourceforge.net/ftp/doc/PCMCIA-HOWTO-4.html#ss4.3 Linux PCMCIA HOWTO: Usage and features). !!! 3.7 Wireless Parameters To set any wireless interfaces to a specific settings (eg. channel, essid, etc).%%% Edit this file ''/etc/pcmcia/wireless.opts''%%% Visit (http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/PCMCIA.txt PCMCIA Wireless Configuration) for more information. !!! Todo list * Add firmware upgrade howto. * confirm this procedure ** did it work for you ** have any instructions changed Wiki generated by (http://wireless.org.au/~tyson/tools/html2wiki/ html2wiki) CategoryHowTo