	Question & Answer Of WL2420 Linux Driver Installation

If you had successfully compile Linux kernel with WL24xx drivers but
it does not work correctly, please check following points before
bug reporting.

In the following testing, I stalled 3 LAN cards in my PC. One is
3Com 3c509 100/10 Mbps PCI Ethernet card, others are WL2420 ISA
Wireless LAN cards.

In my Space.c, WL_Probe() behinds tc59x_probe(). e.g.

	#if defined(CONFIG_VORTEX)
		&& tc59x_probe(dev)
	#endif
		&& WL_Probe(dev)	/* Add this line */

So, 3c509 will be eth0, and WL2420 will be eth1 and eth2.

**********************************************************************
*** Check point : PC BIOS setup correctly ?
**********************************************************************
Suggestions:

   PNP OS Installed - must set to NO. 'No' means that Linux does not
   supporting PnP, and BIOS will do PnP functions for you.
   There is no reason for setting it to Yes.

**********************************************************************
*** Check point : PnP works correctly? 
***               WLJMP.EXE could point out 2 WL24xx cards?
**********************************************************************
Boot into MS-DOS, and run WLJMP.EXE to verify...

C:\> WLJMP
LANEscape jumper emulator, version 1.2
(c) copyright 1997 by Z-com Inc., Taiwan

  Card Information List of Initialized WL2420 card(s)  
Physic address      Interrupt level    I/O base address
=======================================================
00:60:b3:10:00:e7         11             0x280
00:60:b3:10:00:cd         10             0x2c0

**********************************************************************
*** Check point : lilo.conf is correct ?
**********************************************************************
Since Linux only detects 1 net card, you must force it to detect 
additional eth1 and eth2.
Have you added a line which points out you have eth0, eth1, and eth2 ??

root@neon:/# cat /etc/lilo.conf

# Start LILO global section
boot = /dev/sda
#compact        # faster, but won't work on all systems.
delay = 300
vga = normal    # force sane state
# ramdisk = 0     # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /usr/src/linux-2.0.30/arch/i386/boot/zImage
  root = /dev/sdb1
  label = make
  append = "ether=0,0,eth1 ether=0,0,eth2"
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

**********************************************************************
*** Check point : WL_Probe() find eth1 & eth2 ?
**********************************************************************
In my own environment, WL_Probe() finds eth1 at 0x280, IRQ 11 and radio CH2,
eth2 at 0x2c0, IRQ 10, and radio CH7.

PS: You may assign radio channel with WLU.EXE
 
root@neon:/# dmesg | more
...
eth0: 3Com 3c595 Vortex 100baseTX at 0xe000, 00:20:af:d4:28:2c, IRQ 14
  64K word-wide RAM 3:1 Rx:Tx split, 10baseT interface.
eth0: Overriding PCI latency timer (CFLT) setting of 32, new value is 248.
3c59x.c:v0.43 9/2/97 Donald Becker http://cesdis.gsfc.nasa.gov/linux/drivers/vortex.html
eth1: Trying to probe WL24xx PnP card...
wlpnp.c: Found Data port = 0x20b, by resource data
wlpnp.c: nPnPRdPort = 0x20b
wlpnp.c: Total 3 CNS found
wlpnp.c: Find an CSN ID :0e 8c 00 28 2b dc 15 00 42 
wlpnp.c: Find an CSN ID :68 6d 24 20 b3 10 00 e7 01 
eth1: WL24xx PnP card probe at 0x280, IRQ 11
eth1: WL24xx at 0x280, IRQ 11, MAC address in EEPROM: 00:60:b3:10:00:e7
eth2: Trying to probe WL24xx PnP card...
wlpnp.c: Found Data port = 0x20b, by resource data
wlpnp.c: nPnPRdPort = 0x20b
wlpnp.c: Total 3 CNS found
wlpnp.c: Find an CSN ID :0e 8c 00 28 2b dc 15 00 42 
wlpnp.c: Find an CSN ID :68 6d 24 20 b3 10 00 e7 01 
wlpnp.c: Find an CSN ID :68 6d 24 20 b3 10 00 cd 2b 
eth2: WL24xx PnP card probe at 0x2c0, IRQ 10
eth2: WL24xx at 0x2c0, IRQ 10, MAC address in EEPROM: 00:60:b3:10:00:cd
...

**********************************************************************
*** Check point : eth1 & eth2 had been configured?
**********************************************************************
Check your /etc/rc.d/rc.inet1 (as a example of Slackware), do you
have these lines?

/sbin/ifconfig eth1 192.168.1.254 broadcast 192.168.1.255 netmask 255.255.255.0
/sbin/route add -net 192.168.1.0 netmask 255.255.255.0 eth1

/sbin/ifconfig eth2 192.168.2.254 broadcast 192.168.2.255 netmask 255.255.255.0
/sbin/route add -net 192.168.2.0 netmask 255.255.255.0 eth2

If so, does dmesg show the following lines?

eth1: Initialize WL24xx firmware...
eth1: Channel 2, Speed 2 Mb/s, Ad-hoc Mode
eth1: device opened
eth2: Initialize WL24xx firmware...
eth2: Channel 7, Speed 2 Mb/s, Ad-hoc Mode
eth2: device opened
...

**********************************************************************
*** Check point : ifconfig correctly as WLJMP.EXE shown?
***               IRQ conflicts? IO ports correct?
**********************************************************************
root@neon:/# ifconfig -a

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:41800 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41800 errors:0 dropped:0 overruns:0 carrier:0 coll:0

eth0      Link encap:Ethernet  HWaddr 00:20:AF:D4:28:2C  
          inet addr:203.67.40.216  Bcast:203.67.40.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4846 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 coll:0
          Interrupt:14 Base address:0xe000 

eth1      Link encap:Ethernet  HWaddr 00:60:B3:10:00:E7  
          inet addr:192.168.1.254  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1017 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1025 errors:0 dropped:0 overruns:0 carrier:0 coll:0
          Interrupt:11 Base address:0x280 

eth2      Link encap:Ethernet  HWaddr 00:60:B3:10:00:CD  
          inet addr:192.168.2.254  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3646 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3627 errors:0 dropped:0 overruns:0 carrier:0 coll:0
          Interrupt:10 Base address:0x2c0 

**********************************************************************
*** Check point : routing table correctly?
**********************************************************************
root@neon:/# route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
localnet        *               255.255.255.0   U     0      0        3 eth0
192.168.1.0     *               255.255.255.0   U     0      0        2 eth1
192.168.2.0     *               255.255.255.0   U     0      0        2 eth2
loopback        *               255.0.0.0       U     0      0        2 lo
default         gw.zcom.com.tw  0.0.0.0         UG    1      0        4 eth0

**********************************************************************
*** It still not work ?
**********************************************************************
If you go here, and still not find anything wrong, please 'su root' and
run the enclosed script - WLINFO, and mail /tmp/zcom.log to Z-Com. 

Thank you!


