Subject: IBM Microdrive not detected
To: None <port-i386@netbsd.org>
From: Stephen Borrill <sborrill@precedence.co.uk>
List: port-i386
Date: 12/05/2001 13:12:01
I've a IGB Microdrive in a PCMCIA carrier. I've plugged it into the laptop 
and it's detected in Windows. Under NetBSD it doesn't see it at all. I 
believe it should just be viewed as an extra HD.

-------------- 8< -------------------
Here are the snippets from my kernel config:
# PCMCIA IDE controllers
wdc*	at pcmcia? function ?

# IDE drives
# Flags are used only with controllers that support DMA operations
# and mode settings (e.g. some pciide controllers)
# The lowest order four bits (rightmost digit) of the flags define the PIO
# mode to use, the next set of four bits the DMA mode and the third set the
# UltraDMA mode. For each set of four bits, the 3 lower bits define the mode
# to use, and the last bit must be 1 for this setting to be used.
# For DMA and UDMA, 0xf (1111) means 'disable'.
# 0x0fac means 'use PIO mode 4, DMA mode 2, disable UltraDMA'.
# (0xc=1100, 0xa=1010, 0xf=1111)
# 0x0000 means "use whatever the drive claims to support".
wd*	at wdc? channel ? drive ? flags 0x0000
wd*	at pciide? channel ? drive ? flags 0x0000

# ATAPI bus support
atapibus* at wdc? channel ?
atapibus* at pciide? channel ?

-------------- 8< -------------------
Here is my dmesg:
x1039 0x0900   C  0x43  10  0    already assigned
000:01:2 0x1039 0x7001   D  0x44  11  0    already assigned
000:01:3 0x1039 0x7001   D  0x44  11  0    already assigned
000:01:4 0x1039 0x7018   B  0x42   5  0    already assigned
000:01:6 0x1039 0x7013   C  0x43  10  0    already assigned
000:10:0 0x104c 0xac41   A  0x41   5  2    fixed up
000:10:1 0x104c 0x8017   B  0x42   5  0    already assigned
------------------------------------------
PCI fixup examining 1039:630
PCI fixup examining 1039:5513
PCI fixup examining 1039:08
PCI fixup examining 1039:900
PCI fixup examining 1039:7001
PCI fixup examining 1039:7001
PCI fixup examining 1039:7018
PCI fixup examining 1039:7013
PCI fixup examining 1039:01
PCI fixup examining 1039:6300
PCI bridge 0: primary 0, secondary 1, subordinate 1
PCI fixup examining 104c:ac41
PCI bridge 1: primary 0, secondary 2, subordinate 2
PCI fixup examining 104c:8017
PCI bus #2 is the last bus
[System BIOS Setting]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x1039 0x0630 
	10h mem  0x20000000 0x04000000
		[OK]
000:00:1 0x1039 0x5513 
	10h port 0x000001f0 0x00000004
	14h port 0x000003f4 0x00000004
	18h port 0x00000170 0x00000004
	1ch port 0x00000374 0x00000004
	20h port 0x00001100 0x00000010
		[OK]
000:01:0 0x1039 0x0008 
		[OK]
000:01:1 0x1039 0x0900 
	10h port 0x00003200 0x00000100
	14h mem  0x24000000 0x00001000
		[OK]
000:01:2 0x1039 0x7001 
	10h mem  0x24001000 0x00001000
		[OK]
000:01:3 0x1039 0x7001 
	10h mem  0x24002000 0x00001000
		[OK]
000:01:4 0x1039 0x7018 
	10h port 0x00003400 0x00000100
	14h mem  0x24003000 0x00001000
		[OK]
000:01:6 0x1039 0x7013 
	10h port 0x00003600 0x00000100
	14h port 0x00003800 0x00000080
		[OK]
000:02:0 0x1039 0x0001 
		[OK]
000:10:0 0x104c 0xac41 
	10h mem  0x00000000 0x00001000
		[NG]
000:10:1 0x104c 0x8017 
	10h mem  0x24004000 0x00000800
	14h mem  0x24008000 0x00004000
		[OK]
001:00:0 0x1039 0x6300 
	10h mem  0x48000000 0x08000000
	14h mem  0x40000000 0x00020000
	18h port 0x0000a000 0x00000080
		[OK]
--------------------------[  1 devices bogus]
 Physical memory end: 0x1efee000
 PCI memory mapped I/O space start: 0x1f000000
[PCIBIOS fixup stage]-----------------------
  device vendor product
  register space address    size
--------------------------------------------
000:00:0 0x1039 0x0630 
	10h mem  0x20000000 0x04000000
		[OK]
000:00:1 0x1039 0x5513 
	10h port 0x000001f0 0x00000004
	14h port 0x000003f4 0x00000004
	18h port 0x00000170 0x00000004
	1ch port 0x00000374 0x00000004
	20h port 0x00001100 0x00000010
		[OK]
000:01:0 0x1039 0x0008 
		[OK]
000:01:1 0x1039 0x0900 
	10h port 0x00003200 0x00000100
	14h mem  0x24000000 0x00001000
		[OK]
000:01:2 0x1039 0x7001 
	10h mem  0x24001000 0x00001000
		[OK]
000:01:3 0x1039 0x7001 
	10h mem  0x24002000 0x00001000
		[OK]
000:01:4 0x1039 0x7018 
	10h port 0x00003400 0x00000100
	14h mem  0x24003000 0x00001000
		[OK]
000:01:6 0x1039 0x7013 
	10h port 0x00003600 0x00000100
	14h port 0x00003800 0x00000080
		[OK]
000:02:0 0x1039 0x0001 
		[OK]
000:10:0 0x104c 0xac41 
	10h mem  0x1f000000 0x00001000
		[OK]
000:10:1 0x104c 0x8017 
	10h mem  0x24004000 0x00000800
	14h mem  0x24008000 0x00004000
		[OK]
001:00:0 0x1039 0x6300 
	10h mem  0x48000000 0x08000000
	14h mem  0x40000000 0x00020000
	18h port 0x0000a000 0x00000080
		[OK]
--------------------------[  0 devices bogus]
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled
pchb0 at pci0 dev 0 function 0
pchb0: Silicon Integrated System SiS 630 Host Bridge (rev. 0x31)
agp at pchb0 not configured
pciide0 at pci0 dev 0 function 1: Silicon Integrated System 5597/5598 IDE 
controller (rev. 0xd0)
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <HITACHI_DK23CA-30>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 28615 MB, 16383 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)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (Ultra/33) (using DMA 
data transfers)
pciide0: secondary channel configured to compatibility mode
atapibus0 at pciide0 channel 1: 2 targets
cd0 at atapibus0 drive 0: <TOSHIBA DVD-ROM SD-R2002, , 1J29> type 5 cdrom 
removable
cd0: 32-bit data port
cd0: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
cd0(pciide0:1:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pcib0 at pci0 dev 1 function 0
pcib0: Silicon Integrated System 85C503 or 5597/5598 ISA bridge (rev. 0x00)
sip0 at pci0 dev 1 function 1: SiS 900 10/100 Ethernet
sip0: interrupting at irq 10
sip0: Ethernet address 00:90:f5:0a:b3:b4
ukphy0 at sip0 phy 0: Generic IEEE 802.3u media interface
ukphy0: OUI 0x00a0be, model 0x0004, rev. 1
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ohci0 at pci0 dev 1 function 2: Silicon Integrated System 5597/5598 USB host 
controller (rev. 0x07)
ohci0: interrupting at irq 11
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: Silicon Integra OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 1 function 3: Silicon Integrated System 5597/5598 USB host 
controller (rev. 0x07)
ohci1: interrupting at irq 11
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: Silicon Integra OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 3 ports with 3 removable, self powered
autri0 at pci0 dev 1 function 4: Silicon Integrated System SiS 7018 Sound 
(rev. 0x02)
autri0: interrupting at irq 5
autri0: Asahi Kasei AK4543 codec; headphone, 18 bit DAC, 18 bit ADC, AZTECH 3D
audio0 at autri0: full duplex, mmap, independent
midi0 at autri0: 4DWAVE MIDI UART
Silicon Integrated System product 0x7013 (modem communications, revision 
0xa0) at pci0 dev 1 function 6 not configured
ppb0 at pci0 dev 2 function 0: Silicon Integrated System 86C201 (rev. 0x00)
pci1 at ppb0 bus 1
pci1: i/o space, memory space enabled
vga1 at pci1 dev 0 function 0: Silicon Integrated System product 0x6300 (rev. 
0x31)
wsdisplay0 at vga1 kbdmux -1: console (80x25, vt100 emulation)
cbb0 at pci0 dev 10 function 0: Texas Instruments PCI4410 PCI-CardBus Bridge 
w/ OCHI IEEE 1394 Controller (rev. 0x02)
Texas Instruments PCI4410 OCHI IEEE 1394 HOST Controller w/ PCI-CardBus 
Bridge (Firewire serial bus, interface 0x10, revision 0x02) at pci0 dev 10 
function 1 not configured
isa0 at pcib0
com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, working fifo
com1 at isa0 port 0x2f8-0x2ff irq 3: 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)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
lpt0 at isa0 port 0x378-0x37b irq 7
pcppi0 at isa0 port 0x61
midi1 at pcppi0: PC speaker
spkr0 at pcppi0
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
fd0 at fdc0 drive 0: 1.44MB, 80 cyl, 2 head, 18 sec
isapnp0: no ISA Plug 'n Play devices found
cbb0: interrupting at irq 5
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 2 device 0
pcmcia0 at cardslot0
apm0 at mainbus0: Power Management spec V1.2
biomask eb65 netmask ef65 ttymask ffe7
ums0 at uhub0 port 1 configuration 1 interface 0
ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/11.00, addr 2, iclass 3/1
ums0: 3 buttons and Z dir.
wsmouse1 at ums0 mux 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)
wsmux1: connecting to wsdisplay0