Subject: Re: support for unconfigured PCI devices, esp. SD card reader
To: Anne Bennett <anne@porcupine.montreal.qc.ca>
From: Greg Troxel <gdt@ir.bbn.com>
List: port-i386
Date: 07/29/2007 19:13:48
The card reader very likely looks like one of these, which is first an
external device and then a built-in reader.  These are USB2.  I see in your dmesg:

ehci0 at pci0 dev 29 function 7: Intel 82801GB/GR USB EHCI Controller (rev. 0x01)
ehci0: interrupting at ioapic0 pin 23 (irq 4)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: single transaction translator
uhub4: 8 ports with 8 removable, self powered
ehci0 at pci0 dev 29 function 7: Intel 82801GB/GR USB EHCI Controller (rev. 0x01)
ehci0: interrupting at ioapic0 pin 23 (irq 4)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3

So make sure you have umass in your kernel.  Run 'usbdevs -v' as root to
see if you see any usb devices that might be card readers.  If all else
fails, the sandisk 12-in-1 is $30 from www.bhphotovideo.com and has
worked well for me under various NetBSD versions.  Your system appears
to have an Intel chipset, so it should be ok.

From my dmesg:

ehci0 at pci0 dev 29 function 7: Intel 82801FB/FR USB EHCI Controller (rev. 0x03)
ehci0: interrupting at ioapic0 pin 23 (irq 9)
ehci0: BIOS has given up ownership
ehci0: EHCI version 1.0
ehci0: companion controllers, 2 ports each: uhci0 uhci1 uhci2 uhci3
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: Intel EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
[other stuff]
umass0 at uhub4 port 5 configuration 1 interface 0
umass0: SanDisk ImageMate 12 in 1 Reader/Writer, rev 2.00/93.17, addr 2
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, 4 luns per target
umass1 at uhub4 port 6 configuration 1 interface 0
umass1: Generic USB2.0 Card Reader, rev 2.00/1.9c, addr 3
umass1: using SCSI over Bulk-Only
scsibus2 at umass1: 2 targets, 4 luns per target
sd0 at scsibus1 target 0 lun 0: <Generic, STORAGE DEVICE, 9317> disk removable
sd0: drive offline
sd1 at scsibus1 target 0 lun 1: <Generic, STORAGE DEVICE, 9317> disk removable
sd1: drive offline
sd2 at scsibus1 target 0 lun 2: <Generic, STORAGE DEVICE, 9317> disk removable
sd2: drive offline
sd3 at scsibus1 target 0 lun 3: <Generic, STORAGE DEVICE, 9317> disk removable
sd3: drive offline
sd4 at scsibus2 target 0 lun 0: <Generic, IC1210        CF, 1.9C> disk removable
sd4: drive offline
sd5 at scsibus2 target 0 lun 1: <Generic, IC1210        MS, 1.9C> disk removable
sd5: drive offline
sd6 at scsibus2 target 0 lun 2: <Generic, IC1210    MMC/SD, 1.9C> disk removable
sd6: drive offline
sd7 at scsibus2 target 0 lun 3: <Generic, IC1210        SM, 1.9C> disk removable
sd7: drive offline