Clandestine USB SD card slot

George Mitchell george+freebsd at m5p.com
Sun Oct 16 13:22:28 UTC 2016


On 10/15/16 23:10, Anthony Jenkins wrote:
> On 10/15/16 18:28, George Mitchell wrote:
>> FreeBSD 10.3-RELEASE-p7 #0: Thu Aug 11 18:38:15 UTC 2016
>> Acer Aspire E15
>> There is a slot on the front of this laptop which sure looks like an
>> SD card slot, which I hope corresponds to one of these:
>>
>> ugen1.1: <EHCI root HUB AMD> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps)
>> pwr=SAVE (0mA)
>> ugen0.1: <XHCI root HUB 0x1022> at usbus0, cfg=0 md=HOST spd=SUPER
>> (5.0Gbps) pwr=SAVE (0mA)
>> ugen2.1: <EHCI root HUB AMD> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps)
>> pwr=SAVE (0mA)
>> ugen1.2: <product 0x7900 vendor 0x0438> at usbus1, cfg=0 md=HOST
>> spd=HIGH (480Mbps) pwr=SAVE (100mA)
>> ugen2.2: <product 0x7900 vendor 0x0438> at usbus2, cfg=0 md=HOST
>> spd=HIGH (480Mbps) pwr=SAVE (100mA)
>> ugen0.2: <product 0x10b8 vendor 0x1058> at usbus0, cfg=0 md=HOST
>> spd=SUPER (5.0Gbps) pwr=ON (224mA)
>> ugen1.3: <Generic USB Hub ALCOR> at usbus1, cfg=0 md=HOST spd=FULL
>> (12Mbps) pwr=SAVE (100mA)
>> ugen2.3: <product 0x2970 vendor 0x06cb> at usbus2, cfg=0 md=HOST
>> spd=FULL (12Mbps) pwr=ON (100mA)
>> ugen1.4: <USB OPTICAL MOUSE vendor 0x0101> at usbus1, cfg=0 md=HOST
>> spd=LOW (1.5Mbps) pwr=ON (100mA)
>> ugen1.5: <USB 2.0 Hub vendor 0x1a40> at usbus1, cfg=0 md=HOST spd=FULL
>> (12Mbps) pwr=SAVE (100mA)
>> ugen1.6: <E-MU XMidi1X1 Tab E-MU Systems,Inc.> at usbus1, cfg=0 md=HOST
>> spd=FULL (12Mbps) pwr=ON (100mA)
>> ugen1.7: <product 0x300b vendor 0x04ca> at usbus1, cfg=0 md=HOST
>> spd=FULL (12Mbps) pwr=ON (100mA)
>> ugen1.8: <HD WebCam NC.21411.02W44504122LM0007> at usbus1, cfg=0 md=HOST
>> spd=HIGH (480Mbps) pwr=ON (500mA)
>>
>> But inserting a card into the slot produces no results, even with
>> sysctl hw.usb.umass.debug=1 hw.usb.ugen.debug=1 hw.usb.dev.debug=1.
>> (sysctl hw.usb.debug=1 produces way too much output all the time.)
>> Any suggestions on how I can get this slot to overcome its shyness?
>> (I am not subscribed to the list; please CC me.)          -- George
> Your card reader is probably on the PCI bus (and likely not supported by
> FreeBSD); I couldn't find any of your USB Pid:Vids as card readers.
> 
> [ajenkins at ajenkins-hplaptop ~]$ pciconf -lv
> ...
> none2 at pci0:3:0:0:       class=0xff0000 card=0x1995103c chip=0x522910ec
> rev=0x01 hdr=0x00
>     vendor     = 'Realtek Semiconductor Co., Ltd.'
>     device     = 'RTS5229 PCI Express Card Reader'
> 
> Anthony Jenkins
> 
Ah!  It didn't occur to me to run pciconf.  "pciconf -lv" shows this:

sdhci_pci0 at pci0:0:20:7:	class=0x080501 card=0x08651025 chip=0x78131022
rev=0x01 hdr=0x00
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'FCH SD Flash Controller'
    class      = base peripheral
    subclass   = SD host controller

So not only is it (apparently) recognized, but the sdhci_pci driver
attached to it!  But inserting or removing a card shows no activity.
What's my next step?                                      -- George


More information about the freebsd-usb mailing list