Subject: Re: NetBSD Wireless Problem
To: Jon Voris <jvoris@stevens.edu>
From: Gilles Gravier <Gilles@Gravier.org>
List: netbsd-users
Date: 04/24/2006 08:10:36
Up to now, I've ALWAYS had problems with NetBSD and PC-MCIA cards on my 
laptops.

The good news is that these problems have ALWAYS been solved by applying 
what is here :

ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-3.0/i386/INSTALL.html#Possible%20PCMCIA%20issues

In particular the part about :

    After installation, this value can be permanently written to the
    kernel image directly with:


           |||#|* cp /netbsd /netbsd.bak*
           |||#|* gdb --write /netbsd*
           |||(gdb)|* set pcic_isa_intr_alloc_mask=0x0a00*
           |||(gdb)|* set pcic_isa_alloc_iobase=0x330*
           |||(gdb)|* set pcic_isa_alloc_iosize=0x0bf*
           |||(gdb)|* quit*
           |||#|

    or you could specify these value when configuring your kernel, e.g.:


        | |

        options PCIC_ISA_INTR_ALLOC_MASK=0x0a00
        options PCIC_ISA_ALLOC_IOBASE=0x330
        options PCIC_ISA_ALLOC_IOSIZE=0x0bf
              

    If you can get your PCMCIA card to work using this hack, you may
    also ignore the [PCMCIA] notes later in this document.

Gilles

Jon Voris wrote:
> Hello,
>
> I installed NetBSD 3.0 on a laptop but I've hit a wall trying to get 
> the OS to recognize my wireless card. I have a Compaq W110 card that I 
> *think* is compatible with the wi driver, but I've tried a different 
> type of card and I get the same messages regardless. During boot and 
> whenever I insert the card I receive the following messages:
>
> cbb0: wait took 0.008594s
> pcmcia0: ++enabled_count = 1
> cis mem map cb0ae000
> pcmcia0: CIS tuple chain:
>  ff
> CISTPL_END
> cis mem map cb0ae000
> CISTPL_LINKTARGET expected, code ff observed
> pcmcia0: card appears to have bogus CIS
> pcmcia0: --enabled_count = 0
>
> I've attached my complete dmesg output. I'm running the GENERIC_LAPTOP 
> kernel slightly modified for more verbose debugging information. Does 
> anyone have any suggestions as to how I could get this to work?
>
> Thank you very much,
>
> Jonathan Voris
>
>
>
> ------------------------------------------------------------------------
>
> NetBSD 3.0 (TECHNODROME) #2: Fri Apr 21 21:55:49 EDT 2006
> 	jvoris@technodrome:/usr/src/sys/arch/i386/compile/TECHNODROME
> total memory = 383 MB
> avail memory = 368 MB
> BIOS32 rev. 0 found at 0xf0000
> PCI BIOS rev. 2.1 found at 0xf0478
> pcibios: config mechanism [1][x], special cycles [x][x], last bus 1
> PCI IRQ Routing Table rev. 1.0 found at 0xf0970, size 0 bytes (-2 entries)
> pcibios_pir_init: bad IRQ table size
> PCI IRQ Routing Table rev. 1.0 found at 0xf9c70, size 224 bytes (12 entries)
> PCI Interrupt Router at 000:07:0 (Intel 82371AB (PIIX4) PCI-ISA Bridge compatible)
> PCI Exclusive IRQs: 11
> ------------------------------------------
>   device vendor product pin PIRQ IRQ stage
> ------------------------------------------
> 000:04:0 0x104c 0xac1c   A  0x00  11  0    already assigned
> 000:04:1 0x104c 0xac1c   A  0x00  11  0    already assigned
> 000:07:2 0x8086 0x7112   D  0x03  11  0    already assigned
> 000:08:0 0x125d 0x1978   A  0x02  11  0    already assigned
> 000:09:0 0x8086 0x1229   A  0x02  11  0    already assigned
> 000:09:1 0x11c1 0x0445   A  0x02  11  0    already assigned
> 001:00:0 0x1002 0x4c4d   A  0x00  11  0    already assigned
> ------------------------------------------
> PCI fixup examining 8086:7190
> PCI fixup examining 8086:7191
> PCI fixup examining 1002:4c4d
> PCI bridge 0: primary 0, secondary 1, subordinate 1
> PCI fixup examining 104c:ac1c
> PCI bridge 1: primary 0, secondary 2, subordinate 2
> PCI fixup examining 104c:ac1c
> PCI bridge 2: primary 0, secondary 3, subordinate 3
> PCI fixup examining 8086:7110
> PCI fixup examining 8086:7111
> PCI fixup examining 8086:7112
> PCI fixup examining 8086:7113
> PCI fixup examining 125d:1978
> PCI fixup examining 8086:1229
> PCI fixup examining 11c1:445
> PCI bus #3 is the last bus
> [System BIOS Setting]-----------------------
>   device vendor product
>   register space address    size
> --------------------------------------------
> 000:00:0 0x8086 0x7190 
> 	10h mem  0x50000000 0x04000000
> 		[OK]
> 000:01:0 0x8086 0x7191 
> 		[OK]
> 000:04:0 0x104c 0xac1c 
> 	10h mem  0x41180000 0x00001000
> 		[OK]
> 000:04:1 0x104c 0xac1c 
> 	10h mem  0x41200000 0x00001000
> 		[OK]
> 000:07:0 0x8086 0x7110 
> 		[OK]
> 000:07:1 0x8086 0x7111 
> 	20h port 0x00003460 0x00000010
> 		[OK]
> 000:07:2 0x8086 0x7112 
> 	20h port 0x00003440 0x00000020
> 		[OK]
> 000:07:3 0x8086 0x7113 
> 		[OK]
> 000:08:0 0x125d 0x1978 
> 	10h port 0x00003000 0x00000100
> 		[OK]
> 000:09:0 0x8086 0x1229 
> 	10h mem  0x41280000 0x00001000
> 	14h port 0x00003400 0x00000040
> 	18h mem  0x41100000 0x00020000
> 		[OK]
> 000:09:1 0x11c1 0x0445 
> 	10h port 0x00003470 0x00000008
> 	14h mem  0x41300000 0x00001000
> 		[OK]
> 001:00:0 0x1002 0x4c4d 
> 	10h mem  0x40000000 0x01000000
> 	14h port 0x00002000 0x00000100
> 	18h mem  0x41000000 0x00001000
> 		[OK]
> --------------------------[  0 devices bogus]
>  Physical memory end: 0x17fec000
>  PCI memory mapped I/O space start: 0x18000000
> mainbus0 (root)
> cpu0 at mainbus0: (uniprocessor)
> cpu0: Intel Pentium III (686-class), 896.14 MHz, id 0x68a
> cpu0: features 383f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR>
> cpu0: features 383f9ff<PGE,MCA,CMOV,PAT,PSE36,MMX>
> cpu0: features 383f9ff<FXSR,SSE>
> cpu0: I-cache 16 KB 32B/line 4-way, D-cache 16 KB 32B/line 4-way
> cpu0: L2 cache 256 KB 32B/line 8-way
> cpu0: ITLB 32 4 KB entries 4-way, 2 4 MB entries fully associative
> cpu0: DTLB 64 4 KB entries 4-way, 8 4 MB entries 4-way
> cpu0: 8 page colors
> pci0 at mainbus0 bus 0: configuration mode 1
> pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
> pchb0 at pci0 dev 0 function 0
> pchb0: Intel 82443BX Host Bridge/Controller (rev. 0x03)
> agp0 at pchb0: aperture at 0x50000000, size 0x4000000
> ppb0 at pci0 dev 1 function 0: Intel 82443BX AGP Interface (rev. 0x03)
> pci1 at ppb0 bus 1
> pci1: i/o space, memory space enabled
> vga1 at pci1 dev 0 function 0: ATI Technologies Rage Mobility (rev. 0x64)
> wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
> wsmux1: connecting to wsdisplay0
> cbb0 at pci0 dev 4 function 0: Texas Instruments PCI1225 PCI-CardBus Bridge (rev. 0x01)
> cbb1 at pci0 dev 4 function 1: Texas Instruments PCI1225 PCI-CardBus Bridge (rev. 0x01)
> pcib0 at pci0 dev 7 function 0
> pcib0: Intel 82371AB (PIIX4) PCI-ISA Bridge (rev. 0x02)
> piixide0 at pci0 dev 7 function 1
> piixide0: Intel 82371AB IDE controller (PIIX4) (rev. 0x01)
> piixide0: bus-master DMA support present
> piixide0: primary channel wired to compatibility mode
> piixide0: primary channel interrupting at irq 14
> atabus0 at piixide0 channel 0
> piixide0: secondary channel wired to compatibility mode
> piixide0: secondary channel ignored (disabled)
> uhci0 at pci0 dev 7 function 2: Intel 82371AB (PIIX4) USB Host Controller (rev. 0x01)
> uhci0: interrupting at irq 11
> usb0 at uhci0: USB revision 1.0
> uhub0 at usb0
> uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
> uhub0: 2 ports with 2 removable, self powered
> Intel 82371AB (PIIX4) Power Management Controller (miscellaneous bridge, revision 0x03) at pci0 dev 7 function 3 not configured
> esm0 at pci0 dev 8 function 0: ESS Technology Maestro 2E PCI Audio Accelerator (rev. 0x10)
> esm0: interrupting at irq 11
> esm0: ac97: SigmaTel STAC9721/23 codec; 18 bit DAC, 18 bit ADC, SigmaTel 3D
> audio0 at esm0: full duplex, mmap, independent
> fxp0 at pci0 dev 9 function 0: i82559S Ethernet, rev 9
> fxp0: interrupting at irq 11
> fxp0: Ethernet address 00:d0:59:4c:11:c3
> inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 4
> inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
> Lucent Technologies LTMODEM (serial communications) at pci0 dev 9 function 1 not configured
> cbb0: interrupting at irq 11
> cardslot0 at cbb0 slot 0 flags 0
> cardbus0 at cardslot0: bus 2 device 0
> pcmcia0 at cardslot0
> cbb1: interrupting at irq 11
> cardslot1 at cbb1 slot 1 flags 0
> cardbus1 at cardslot1: bus 3 device 0
> pcmcia1 at cardslot1
> isa0 at pcib0
> lpt0 at isa0 port 0x378-0x37b irq 7
> com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
> com2 at isa0 port 0x3e8-0x3ef irq 5: ns16550a, working fifo
> pckbc0 at isa0 port 0x60-0x64
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> pms0: Synaptics touchpad version 5.6
> pms0: Palm detect, Multi-finger
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pms0 mux 0
> pcppi0 at isa0 port 0x61
> midi0 at pcppi0: PC speaker
> sysbeep0 at pcppi0
> isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
> npx0 at isa0 port 0xf0-0xff: using exception 16
> fdc0 at isa0 port 0x3f0-0x3f7 irq 6 drq 2
> isapnp0: no ISA Plug 'n Play devices found
> apm0 at mainbus0: Power Management spec V1.2
> fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
> Kernelized RAIDframe activated
> atapibus0 at atabus0: 2 targets
> cd0 at atapibus0 drive 1: <Compaq  DVD-ROM SD-C2402, 5100706747, 1A05> cdrom removable
> cd0: 32-bit data port
> cd0: drive supports PIO mode 4, DMA mode 2
> wd0 at atabus0 drive 0: <HITACHI_DK23CA-20>
> wd0: drive supports 16-sector PIO transfers, LBA addressing
> wd0: 19077 MB, 38760 cyl, 16 head, 63 sec, 512 bytes/sect x 39070080 sectors
> wd0: 32-bit data port
> wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
> wd0(piixide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA)
> cd0(piixide0:0:1): using PIO mode 4, DMA mode 2 (using DMA)
> cbb0: wait took 0.009115s
> pcmcia0: ++enabled_count = 1
> cis mem map cb095000
> pcmcia0: CIS tuple chain:
>  ff
> CISTPL_END
> cis mem map cb095000
> CISTPL_LINKTARGET expected, code ff observed
> pcmcia0: card appears to have bogus CIS
> pcmcia0: --enabled_count = 0
> boot device: wd0
> root on wd0a dumps on wd0b
> root file system type: ffs
> wsdisplay0: screen 1 added (80x25, vt100 emulation)
> wsdisplay0: screen 2 added (80x25, vt100 emulation)
> wsdisplay0: screen 3 added (80x25, vt100 emulation)
> wsdisplay0: screen 4 added (80x25, vt100 emulation)
>
>   

-- 
/*Gilles Gravier*/ *=* *Gilles@Gravier.org* <mailto:Gilles@Gravier.org> 
*=* *http://www.gravier.org/*
ICQ : *77488526* 
<http://www.icq.com/whitepages/about_me.php?Uin=77488526> * || *MSN 
Messenger : Gilles@Gravier.org <http://members.msn.com/Gilles@Gravier.org>*
*Skype : ggravier <callto://ggravier>* || *Y! : ggravier 
<http://profiles.yahoo.com/ggravier> || AOL : gillesgravier 
<aim:goim?screenname=gillesgravier>
PGP Key ID : *0x8DE6D026* 
<http://pgp.mit.edu:11371/pks/lookup?search=0x8DE6D026&op=index>
"Chastity is its own punishment." (/Solomon Short/) [/David Gerrold/]
"De toutes les aberrations sexuelles, la chasteté est la plus 
aberrante." [Anatole France]