Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 07 Apr 2014 14:47:27 +0200
From:      Hans Petter Selasky <hps@selasky.org>
To:        Ivan Rokotov <ivan.rokotov.bsd@gmail.com>, freebsd-usb@freebsd.org
Subject:   Re: Realtek SD Card Reader 0x0bda / 0x0129 detection?
Message-ID:  <53429E5F.1030407@selasky.org>
In-Reply-To: <CAOTTJKGJFEwzhtL%2Br4Xp=hVx=dWAwXx7Jm1qu10MVXx5AHsC9A@mail.gmail.com>
References:  <CAOTTJKGJFEwzhtL%2Br4Xp=hVx=dWAwXx7Jm1qu10MVXx5AHsC9A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 04/06/14 03:53, Ivan Rokotov wrote:
> Hi,
>
> Environment: FreeBSD 10.0-RELEASE/amd64 on Lenovo IdeaPad S400.
>
> SD Card Reader visible by usbconfig:
> ugen1.4: <USB2.0-CRW Generic> at usbus1, cfg=0 md=HOST spd=HIGH
> (480Mbps) pwr=ON (500mA)
>
> usbconfig info:
>    bLength = 0x0012
>    bDescriptorType = 0x0001
>    bcdUSB = 0x0200
>    bDeviceClass = 0x00ff
>    bDeviceSubClass = 0x00ff
>    bDeviceProtocol = 0x00ff
>    bMaxPacketSize0 = 0x0040
>    idVendor = 0x0bda
>    idProduct = 0x0129
>    bcdDevice = 0x3960
>    iManufacturer = 0x0001  <Generic>
>    iProduct = 0x0002  <USB2.0-CRW>
>    iSerialNumber = 0x0003  <20100201396000000>
>    bNumConfigurations = 0x0001
>
> Adding/removing SD card yields nothing. The same with booting with SD
> card and/or turning power on/off with usbconfig.
>
> If I add this to /usr/src/sys/dev/usb/usbdevs
> product REALTEK USB20CRW_T  0x0129  USB20CRW Card Reader
>
> - nothing changes.
>
> If I add these quirks to /usr/src/sys/dev/usb/quirk/usb_quirk.c
> USB_QUIRK(REALTEK, USB20CRW_T, 0x0000, 0xffff, UQ_MSC_NO_GETMAXLUN,
> UQ_MSC_FORCE_WIRE_BBB, UQ_MSC_FORCE_PROTO_SCSI)
>
> then I get:
> umass0: <Bulk-In, Bulk-Out, Interface> on usbus1
> umass0:  SCSI over Bulk-Only; quirks = 0x0100
> umass0:3:0:-1: Attached to scbus3
> ...
> (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00
> (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error
> (probe0:umass-sim0:0:0:0): Retrying command
> ...
> (probe0:umass-sim0:0:0:0): Error 5, Retries exhausted
>
> Adding the 'UQ_MSC_NO_SYNC_CACHE" quirk changes nothing.
>
> Does anybody know what should be done and is it possible at all to use
> this card reader with FreeBSD 10.0?
>
> Ivan
> _______________________________________________
> freebsd-usb@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-usb
> To unsubscribe, send any mail to "freebsd-usb-unsubscribe@freebsd.org"
>

Hi,

How did you add the quirk?

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?53429E5F.1030407>