Subject: Re: an0: read record failed | an0: failed to attach controller
To: None <john@johnrshannon.com>
From: Brian A. Seklecki <lavalamp@spiritual-machines.org>
List: current-users
Date: 10/12/2003 14:08:38
           From: 
John R. Shannon
<john@johnrshannon.com>
       Reply-To: 
john@johnrshannon.com
             To: 
Brian A. Seklecki
<lavalamp@spiritual-machines.org>
        Subject: 
Re: an0: read
record failed |
an0: failed to
attach controller
           Date: 
Sun, 12 Oct 2003
09:53:01 -0600

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have a Sony GRZ-610. My cp card devices are on the cardbus. I see that
you 
have not configured cardbus in your kernel. My experience has been that 
pcmcia is recognized without cardbus support, but the devices don't
work.

Cardbus is not enabled by default. I also had to enable:

options         PCIBIOS                 # PCI BIOS support
options         PCIBIOS_BUS_FIXUP       # fixup PCI bus numbering

acpi did not assign cardbus bus numbers correctly by itself.

P.S.: I have tested with some Orinco cards. I don't have the Cisco.

---------

Mmm, neither of those two options worked (my custom INSTALL or the
default INSTALL_LAPTOP made w/ the lapboot-big.fs w/ mkisofs(1)).  I've
sent-pr(1) about the an(4) messages anyway: 

I'm making a special INSTALL_LAPTOP now w/ the following commented out:

# PCMCIA bus support
##pcmcia*	at pcic? controller ? socket ?
##pcmcia*	at tcic? controller ? socket ?

### ISA PCMCIA controllers
##pcic0 	at isa? port 0x3e0 iomem 0xd0000 iosiz 0x10000
##pcic1 	at isa? port 0x3e2 iomem 0xe0000 iosiz 0x4000
##pcic2	at isa? port 0x3e4 iomem 0xe0000 iosiz 0x4000
##tcic0 	at isa? port 0x240 iomem 0xd0000 iosiz 0x10000

# PCI PCMCIA controllers
##pcic0	at pci? dev? function ?

# ISA Plug-and-Play bus support
isapnp0	at isa?

# ISA Plug-and-Play PCMCIA controllers
##pcic*	at isapnp?

And the following PCI options:

# Configure PCI using BIOS information
options 	PCIBIOS			# PCI BIOS support
options 	PCIBIOSVERBOSE		# PCI BIOS verbose info
options 	PCIBIOS_ADDR_FIXUP	# fixup PCI I/O addresses
options 	PCIBIOS_BUS_FIXUP	# fixup PCI bus numbering
options 	PCIBIOS_INTR_FIXUP	# fixup PCI interrupt routing
#options 	PCIBIOS_IRQS_HINT=0x0a00 # PCI interrupts hint. IRQ 9 or 11
options 	PCIBIOS_INTR_GUESS	# see pcibios(4)
options 	PCIINTR_DEBUG		# super-verbose PCI interrupt fixup

...this ought to force Cardbus instead of PCMCIA (even thought i know
this is a PCMCIA card, not a CardBus card =/ -- the 802.11A card i have
is CardBus though).

If this doesn't work I'm going to have to assume that it's not a PCMCIA
problem but an an(4) problem instead and resume the beatings at a later
date.

[Afterwards]



Verbose debug dmesg output:

---------

	root@addiction:/tmp/O/sys/arch/i386/compile/INSTALL_LAPTOP
total memory = 254 MB
avail memory = 230 MB
using 3277 buffers containing 13108 KB of memory
BIOS32 rev. 0 found at 0xfd871
PCI BIOS rev. 2.1 found at 0xfd9aa
pcibios: config mechanism [1][x], special cycles [x][x], last bus 2
PCI IRQ Routing Table rev. 1.0 found at 0xfdf30, size 176 bytes (9
entries)
PCI Interrupt Router at 000:31:0 (vendor 0x8086 product 0x122e)
PIR Entry 0:
	Bus: 0  Device: 30
		INTA: link 0x00 bitmap 0xdef8
		INTB: link 0x00 bitmap 0xdef8
		INTC: link 0x00 bitmap 0xdef8
		INTD: link 0x00 bitmap 0xdef8
PIR Entry 1:
	Bus: 2  Device: 2
		INTA: link 0x00 bitmap 0xdef8
		INTB: link 0x00 bitmap 0xdef8
		INTC: link 0x00 bitmap 0xdef8
		INTD: link 0x00 bitmap 0xdef8
PIR Entry 2:
	Bus: 2  Device: 5
		INTA: link 0x69 bitmap 0x0008
		INTB: link 0x00 bitmap 0xdef8
		INTC: link 0x00 bitmap 0xdef8
		INTD: link 0x00 bitmap 0xdef8
PIR Entry 3:
	Bus: 2  Device: 8
		INTA: link 0x68 bitmap 0x0200
		INTB: link 0x00 bitmap 0xdef8
		INTC: link 0x00 bitmap 0xdef8
		INTD: link 0x00 bitmap 0xdef8
PIR Entry 4:
	Bus: 0  Device: 0
		INTA: link 0x00 bitmap 0xdef8
		INTB: link 0x00 bitmap 0xdef8
		INTC: link 0x00 bitmap 0xdef8
		INTD: link 0x00 bitmap 0xdef8
PIR Entry 5:
	Bus: 0  Device: 31
		INTA: link 0x00 bitmap 0xdef8
		INTB: link 0x00 bitmap 0xdef8
		INTC: link 0x00 bitmap 0xdef8
		INTD: link 0x00 bitmap 0xdef8
PIR Entry 6:
	Bus: 0  Device: 29
		INTA: link 0x60 bitmap 0x0200
		INTB: link 0x63 bitmap 0x0200
		INTC: link 0x00 bitmap 0xdef8
		INTD: link 0x00 bitmap 0xdef8
PIR Entry 7:
	Bus: 0  Device: 2
		INTA: link 0x60 bitmap 0x0200
		INTB: link 0x00 bitmap 0xdef8
		INTC: link 0x00 bitmap 0xdef8
		INTD: link 0x00 bitmap 0xdef8
PIR Entry 8:
	Bus: 0  Device: 1
		INTA: link 0x60 bitmap 0x0200
		INTB: link 0x00 bitmap 0xdef8
		INTC: link 0x00 bitmap 0xdef8
		INTD: link 0x00 bitmap 0xdef8
pciintr_link_fixup: PIRQ 0x00 already connected to IRQ 9
pciintr_link_fixup: PIRQ 0x01 not connected, assigning IRQ 9
pciintr_link_fixup: PIRQ 0x02 not connected, assigning IRQ 3
pciintr_link_fixup: PIRQ 0x03 already connected to IRQ 9
pciintr_link_route: route of PIRQ 0x00 -> IRQ 9 preserved BIOS setting
pciintr_link_route: route of PIRQ 0x03 -> IRQ 9 preserved BIOS setting
------------------------------------------
  device vendor product pin PIRQ IRQ stage
------------------------------------------
000:02:0 0x8086 0x3577   A  0x00   9  0    already assigned
000:29:0 0x8086 0x2482   A  0x00   9  0    already assigned
000:29:1 0x8086 0x2484   B  0x03   9  0    already assigned
pciintr_header_fixup: no entry for link 0x14 (0:30:0:@)
002:05:0 0x1180 0x0475   A  0x02   3  1    already assigned
002:08:0 0x8086 0x1031   A  0x01   9  1    already assigned
------------------------------------------
PCI fixup examining 8086:3575
PCI fixup examining 8086:3577
PCI fixup examining 8086:3577
PCI fixup examining 8086:2482
PCI fixup examining 8086:2484
PCI fixup examining 8086:2487
PCI fixup examining 8086:2448
PCI fixup examining 104c:8023
PCI fixup examining 1180:475
PCI bridge 1: primary 1, secondary 2, subordinate 2
PCI fixup examining 8086:1031
PCI bridge 0: primary 0, secondary 1, subordinate 2
PCI fixup examining 8086:248c
PCI fixup examining 8086:248a
PCI fixup examining 8086:2483
PCI fixup examining 8086:2485
PCI fixup examining 8086:2486
PCI bus #2 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x8086 0x3575 
		[OK]
000:02:0 0x8086 0x3577 
	10h mem  0xe8000000 0x08000000
	14h mem  0xe0000000 0x00080000
		[OK]
000:02:1 0x8086 0x3577 
	10h mem  0xf0000000 0x08000000
	14h mem  0xe0080000 0x00080000
		[OK]
000:29:0 0x8086 0x2482 
	20h port 0x00001800 0x00000020
		[OK]
000:29:1 0x8086 0x2484 
	20h port 0x00001820 0x00000020
		[OK]
000:29:2 0x8086 0x2487 
	20h port 0x00001840 0x00000020
		[OK]
000:30:0 0x8086 0x2448 
		[OK]
000:31:0 0x8086 0x248c 
		[OK]
000:31:1 0x8086 0x248a 
	10h port 0x000001f0 0x00000008
	14h port 0x000003f4 0x00000004
	18h port 0x00000170 0x00000008
	1ch port 0x00000374 0x00000004
	20h port 0x00001860 0x00000010
	24h mem  0xe0100000 0x00000400
		[OK]
000:31:3 0x8086 0x2483 
	20h port 0x00001880 0x00000020
		[OK]
000:31:5 0x8086 0x2485 
	10h port 0x00001c00 0x00000100
	14h port 0x000018c0 0x00000040
		[OK]
000:31:6 0x8086 0x2486 
	10h port 0x00002400 0x00000100
	14h port 0x00002000 0x00000080
		[OK]
001:02:0 0x104c 0x8023 
	10h mem  0xe0205000 0x00000800
	14h mem  0xe0200000 0x00004000
		[OK]
001:05:0 0x1180 0x0475 
	10h mem  0x00000000 0x00001000
		[NG]
001:08:0 0x8086 0x1031 
	10h mem  0xe0204000 0x00001000
	14h port 0x00003000 0x00000040
		[OK]
--------------------------[  1 devices bogus]
 Physical memory end: 0x0fe7c000
 PCI memory mapped I/O space start: 0x0ff00000
[PCIBIOS fixup stage]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x8086 0x3575 
		[OK]
000:02:0 0x8086 0x3577 
	10h mem  0xe8000000 0x08000000
	14h mem  0xe0000000 0x00080000
		[OK]
000:02:1 0x8086 0x3577 
	10h mem  0xf0000000 0x08000000
	14h mem  0xe0080000 0x00080000
		[OK]
000:29:0 0x8086 0x2482 
	20h port 0x00001800 0x00000020
		[OK]
000:29:1 0x8086 0x2484 
	20h port 0x00001820 0x00000020
		[OK]
000:29:2 0x8086 0x2487 
	20h port 0x00001840 0x00000020
		[OK]
000:30:0 0x8086 0x2448 
		[OK]
000:31:0 0x8086 0x248c 
		[OK]
000:31:1 0x8086 0x248a 
	10h port 0x000001f0 0x00000008
	14h port 0x000003f4 0x00000004
	18h port 0x00000170 0x00000008
	1ch port 0x00000374 0x00000004
	20h port 0x00001860 0x00000010
	24h mem  0xe0100000 0x00000400
		[OK]
000:31:3 0x8086 0x2483 
	20h port 0x00001880 0x00000020
		[OK]
000:31:5 0x8086 0x2485 
	10h port 0x00001c00 0x00000100
	14h port 0x000018c0 0x00000040
		[OK]
000:31:6 0x8086 0x2486 
	10h port 0x00002400 0x00000100
	14h port 0x00002000 0x00000080
		[OK]
001:02:0 0x104c 0x8023 
	10h mem  0xe0205000 0x00000800
	14h mem  0xe0200000 0x00004000
		[OK]
001:05:0 0x1180 0x0475 
	10h mem  0x0ff00000 0x00001000
		[OK]
001:08:0 0x8086 0x1031 
	10h mem  0xe0204000 0x00001000
	14h port 0x00003000 0x00000040
		[OK]
--------------------------[  0 devices bogus]
mainbus0 (root)
cpu0 at mainbus0: (uniprocessor)
cpu0: Intel Mobile Pentium III (686-class), 1193.17 MHz, id 0x6b4
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 512 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: 16 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: vendor 0x8086 product 0x3575 (rev. 0x04)
agp at pchb0 not configured
vga1 at pci0 dev 2 function 0: vendor 0x8086 product 0x3577 (rev. 0x04)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation)
wsmux1: connecting to wsdisplay0
vendor 0x8086 product 0x3577 (miscellaneous display) at pci0 dev 2
function 1 not configured
uhci0 at pci0 dev 29 function 0: vendor 0x8086 product 0x2482 (rev.
0x02)
uhci0: interrupting at irq 9
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 29 function 1: vendor 0x8086 product 0x2484 (rev.
0x02)
uhci1: interrupting at irq 9
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: vendor 0x8086 UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 29 function 2: vendor 0x8086 product 0x2487 (rev.
0x02)
pci_intr_map: no mapping for pin C (line=ff)
uhci2: couldn't map interrupt
ppb0 at pci0 dev 30 function 0: vendor 0x8086 product 0x2448 (rev. 0x42)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vendor 0x104c product 0x8023 (Firewire serial bus, interface 0x10) at
pci1 dev 2 function 0 not configured
cbb0 at pci1 dev 5 function 0: vendor 0x1180 product 0x0475 (rev. 0x80)
fxp0 at pci1 dev 8 function 0: Intel PRO/100 VE Network Controller, rev
66
fxp0: interrupting at irq 9
fxp0: Ethernet address 08:00:46:77:e5:40
inphy0 at fxp0 phy 1: i82562ET 10/100 media interface, rev. 0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

*******

cbb0: interrupting at irq 3
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0
pcmcia0 at cardslot0

*******

pcib0 at pci0 dev 31 function 0
pcib0: vendor 0x8086 product 0x248c (rev. 0x02)
piixide0 at pci0 dev 31 function 1
piixide0: Intel 82801CA IDE Controller (ICH3) (rev. 0x02)
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 interrupting at irq 15
atabus1 at piixide0 channel 1
vendor 0x8086 product 0x2483 (SMBus serial bus, revision 0x02) at pci0
dev 31 function 3 not configured
vendor 0x8086 product 0x2485 (audio multimedia, revision 0x02) at pci0
dev 31 function 5 not configured
vendor 0x8086 product 0x2486 (modem communications, revision 0x02) at
pci0 dev 31 function 6 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: 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
pcppi0 at isa0 port 0x61
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
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
md0: internal 2500 KB image area

**************

an0 at pcmcia0 function 0: Cisco Systems, 350 Series Wireless LAN
Adapter
an0: read record failed for sc->an_caps (Card Capabilties)
an0: failed to attach controller

*****************

wd0 at atabus0 drive 0: <HITACHI_DK23DA-30>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 28615 MB, 58140 cyl, 16 head, 63 sec, 512 bytes/sect x 58605120
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 5 (Ultra/100) (using
DMA data transfers)
boot device: fd0
root on md0a dumps on md0b
root file system type: ffs
warning: no /dev/console
---------