Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Feb 2001 13:12:15 -0600 (CST)
From:      Simon Epsteyn <seva@sevatech.com>
To:        Greg Lehey <grog@lemis.com>
Cc:        freebsd-mobile@FreeBSD.ORG, Chris Yeoh <cyeoh@linuxcare.com.au>, Anton Blanchard <anton@linuxcare.com>
Subject:   Re: AiroNet 'No card in database for "(null)"("(null)")' problem (4.2-STABLE)
Message-ID:  <Pine.LNX.4.10.10102061254420.7871-100000@null.cc.uic.edu>
In-Reply-To: <20010206162328.A682@wantadilla.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 6 Feb 2001, Greg Lehey wrote:

> On Monday,  5 February 2001 at 17:48:48 -0600, Simon Epsteyn wrote:
> > airo:  Probing for PCI adapters
> > airo:  Finished probing for PCI adapters
> > airo: Doing fast bap_reads
> > airo: MAC enabled  0:40:96:15:64:ab
> > eth1: index 0x05: Vcc 5.0, Vpp 5.0, irq 3, io 0x0100-0x013f

Greg,

> Hmm.  It's a pity Linux doesn't give more information about the ID
> strings.  About the only obvious thing identifying the card is the MAC
> address, and it's nothing like the ones I have here:

One could say "It's a pity this card doesn't work in FreeBSD" :)

> ray0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         ether 00:00:f1:10:f9:9f 
> 
> They could be lookalikes, of course.  Is there a way to display the
> CIS strings?

I am not sure what you mean, I have a AiroNet card (an(4) driver), what is
ray0 and how does that apply do me?

I've never had to dig around in Linux pcmcia, since it just worked, but
here's some more info (!Using a newer version of this card: Cisco AiroNet
342, before I was using AiroNet 4800!) Ok, found dump_cis (see below).

# cardctl config
Socket 0:
  Vcc 5.0V  Vpp1 5.0V  Vpp2 5.0V
  interface type is "memory and I/O"
  irq 3 [exclusive] [level]
  function 0:
    config base 0x03e0
      option 0x45 status 0x00 pin 0x00
    io 0x0100-0x013f [16bit]

# cardctl ident
Socket 0:
  product info: "Cisco Systems", "340 Series Wireless LAN Adapter"
  manfid: 0x015f, 0x0007
  function: 6 (network)

# dmesg | vi -
Linux PCMCIA Card Services 3.1.19
  kernel build: 2.2.16-22 #1 Tue Aug 22 16:49:06 EDT 2000
  options:  [pci] [cardbus] [apm]
PCI routing table version 1.0 at 0xfdf50
  00:0a.0 -> irq 9
Intel PCIC probe: 
  Ricoh RL5C475 rev 00 PCI-to-CardBus at slot 00:0a, mem 0x68000000
    host opts [0]: [isa irq] [io 3/6/1] [mem 3/6/1] [pci irq 9] [lat 168/176] [bus 32/34]
    ISA irqs (default) = 3,4,5,7,10,11,12 PCI status changes
cs: IO port probe 0x0c00-0x0cff: excluding 0xcf8-0xcff
cs: IO port probe 0x0800-0x08ff: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x140-0x147 0x378-0x37f 0x4d0-0x4d7
cs: IO port probe 0x0a00-0x0aff: clean.
cs: memory probe 0xa0000000-0xa0ffffff: clean.
airo:  Probing for PCI adapters
airo:  Finished probing for PCI adapters
airo: Doing fast bap_reads
airo: MAC enabled  0:40:96:3a:27:54
eth1: index 0x05: Vcc 5.0, Vpp 5.0, irq 3, io 0x0100-0x013f

Ah!, it looks like pcmcia-cs packages comes with dump_cis utility, Red Hat
just forgot to include it in the binary RPM (yet included the man page?,
will log a bugzilla report on this).

Here it is:

# ./dump_cis
Socket 0:
  dev_info
    fn_specific 100ns, 512b
  attr_dev_info
    fn_specific 100ns, 512b
  vers_1 4.1, "Cisco Systems", "340 Series Wireless LAN Adapter"
  manfid 0x015f, 0x0007
  funcid network_adapter
  lan_technology wireless
  lan_speed 2 mb/sec
  lan_media 2.4_GHz
  config base 0x03e0 mask 0x0007 last_index 0x05
  cftable_entry 0x05 [default]
    Vcc Vnom 5V Istatic 600mA
    Vpp1 Vnom 5V
    io 0x0000-0x003f [lines=6] [16bit]
    irq mask 0xffff [level]

# ./dump_cis -v
Socket 0 function 0:
  Config register base = 0x03e0, mask = 0x0007
  Configuration option register = 0x45
    [level_req] [index = 0x05]
  Card configuration and status register = 0x80
    [changed]
  Pin replacement register = 0x22
    [ready] [ready_event]

Socket 0:
  offset 0x02, tuple 0x01, link 0x03
    dc 00 ff 
  dev_info
    fn_specific 100ns, 512b

  offset 0x07, tuple 0x17, link 0x03
    dc 00 ff 
  attr_dev_info
    fn_specific 100ns, 512b

  offset 0x0c, tuple 0x14, link 0x00
  no_long_link

  offset 0x0e, tuple 0x15, link 0x31
    04 01 43 69 73 63 6f 20 53 79 73 74 65 6d 73 00 
    33 34 30 20 53 65 72 69 65 73 20 57 69 72 65 6c 
    65 73 73 20 4c 41 4e 20 41 64 61 70 74 65 72 00 
    ff 
  vers_1 4.1, "Cisco Systems", "340 Series Wireless LAN Adapter"

  offset 0x41, tuple 0x20, link 0x04
    5f 01 07 00 
  manfid 0x015f, 0x0007

  offset 0x47, tuple 0x21, link 0x02
    06 00 
  funcid network_adapter

  offset 0x4b, tuple 0x22, link 0x02
    01 07 
  lan_technology wireless

  offset 0x4f, tuple 0x22, link 0x05
    02 80 84 1e 00 
  lan_speed 2 mb/sec

  offset 0x56, tuple 0x22, link 0x02
    03 07 
  lan_media 2.4_GHz

  offset 0x5a, tuple 0x1a, link 0x05
    01 05 e0 03 07 
  config base 0x03e0 mask 0x0007 last_index 0x05

  offset 0x61, tuple 0x1b, link 0x0c
    c5 01 1a 09 55 66 01 55 46 30 ff ff 
  cftable_entry 0x05 [default]
    Vcc Vnom 5V Istatic 600mA
    Vpp1 Vnom 5V
    io 0x0000-0x003f [lines=6] [16bit]
    irq mask 0xffff [level]

# ./dump_cisreg
Socket 0 function 0:
  Config register base = 0x03e0, mask = 0x0007
  Configuration option register = 0x45
    [level_req] [index = 0x05]
  Card configuration and status register = 0x80
    [changed]
  Pin replacement register = 0x22
    [ready] [ready_event]




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-mobile" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.LNX.4.10.10102061254420.7871-100000>