Subject: Re: support for unconfigured PCI devices, esp. SD card reader
To: Greg Troxel <gdt@ir.bbn.com>
From: Anne Bennett <anne@porcupine.montreal.qc.ca>
List: port-i386
Date: 07/29/2007 20:55:22
On Sun, 29 Jul 2007, Greg Troxel replied to me:

> 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, usb4 at ehci0, uhub4 at usb4]
>
> So make sure you have umass in your kernel.

I have:

   sd*  at scsibus? target ? lun ?      # SCSI disk drives
   scsibus* at umass?
   umass*       at uhub? port ? configuration ? interface ?

so that *should* be it, so why doesn't it show up?

> Run 'usbdevs -v' as root to
> see if you see any usb devices that might be card readers.

Output appended.  The printer and the UPS show up; nothing else.

I'm starting to wonder if that card is correctly connected inside
the machine.  I suppose it's possible that when I added a second
disk, I jostled something (or it came from the factory incorrectly
connected).  Time to pull out the screwdriver, I guess!

> 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.

I'll keep that in mind as a last resort.  You have:

> ehci0 at pci0 dev 29 function 7: Intel 82801FB/FR USB EHCI Controller (rev. 0x03)
[...]
> 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

That's almost certainly what it should look like.  I'm starting to
suspect that this is not a kernel problem.  Thanks for pointing me in
the right direction.


Anne Bennett
----------------------------------------------------------------
# usbdevs -v

Controller /dev/usb0:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
  port 1 addr 2: full speed, self powered, config 1, PSC 1500 series(0x4c11), HP(0x03f0), rev 1.00
  port 2 powered
Controller /dev/usb1:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
  port 1 addr 2: low speed, power 24 mA, config 1, Back-UPS BR  800 FW:9.o2 .D USB FW:o2(0x0002), American Power Conversion(0x051d), rev 1.06
  port 2 powered
Controller /dev/usb2:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
  port 1 powered
  port 2 powered
Controller /dev/usb3:
addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x8086), rev 1.00
  port 1 powered
  port 2 powered
Controller /dev/usb4:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), Intel(0x8086), rev 1.00
  port 1 powered
  port 2 powered
  port 3 powered
  port 4 powered
  port 5 powered
  port 6 powered
  port 7 powered
  port 8 powered

----------------------------------------------------------------