Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Sep 2009 20:52:38 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        Robert Noland <rnoland@freebsd.org>, "Daniel O'Connor" <doconnor@gsoft.com.au>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Excessivly cheap USB device issue
Message-ID:  <200909280052.n8S0qCpL032199@lava.sentex.ca>
In-Reply-To: <1254062842.2048.1467.camel@balrog.2hip.net>
References:  <200909280009.28658.doconnor@gsoft.com.au> <1254062842.2048.1467.camel@balrog.2hip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
At 10:47 AM 9/27/2009, Robert Noland wrote:
> > Sep 27 14:29:18 midget kernel: da1: Attempt to query device size 
> failed: NOT READY, Medium not present
> >
> > If I connect a CF card to da1 and run 'fdisk da1' I get..
> > [midget 0:06] ~ >fdisk da1
> > load: 0.29  cmd: fdisk 69630 [cgticb] 1.50r 0.00u 0.00s 0% 1160k
> > load: 0.19  cmd: fdisk 69630 [cbwait] 24.42r 0.00u 0.00s 0% 1160k
> > load: 0.19  cmd: fdisk 69630 [cbwait] 27.01r 0.00u 0.00s 0% 1160k
> > fdisk: unable to get correct path for da1: Input/output error
> >
> > [midget 0:05] ~ >sudo usbconfig -u 5 -a 2 dump_device_desc
> > ugen5.2: <Mass Storage Device Generic> at usbus5, cfg=0 md=HOST 
> spd=HIGH (480Mbps) pwr=ON
> >
> >   bLength = 0x0012
> >   bDescriptorType = 0x0001
> >   bcdUSB = 0x0200
> >   bDeviceClass = 0x0000
> >   bDeviceSubClass = 0x0000
> >   bDeviceProtocol = 0x0000
> >   bMaxPacketSize0 = 0x0040
> >   idVendor = 0x058f
> >   idProduct = 0x6362
> >   bcdDevice = 0x0129
> > load: 0.21  cmd: usbconfig 69643 [WCTRL] 1.73r 0.00u 0.00s 0% 1080k
> >   iManufacturer = 0x0001  <retrieving string failed>
> > load: 0.19  cmd: usbconfig 69643 [WCTRL] 8.56r 0.00u 0.00s 0% 1104k
> >   iProduct = 0x0002  <retrieving string failed>
> >   iSerialNumber = 0x0003  <retrieving string failed>
> >   bNumConfigurations = 0x0001
> >
> > Perhaps some quirk would help but I'm not sure which one :)
>
>I also have a similar device, which I've been messing with a bit the
>last couple of days.  In your case, it isn't seeing the media, just the
>"drive".  I've had to try various combinations of unplugging the adapter
>from usb, inserting the media then plugging it back in.  It does seem to
>work fairly reliably if you boot with the media already inserted, but it
>doesn't seem to detect media change at all.


I get around it (on my cheap reader) by  always doing a
cat /dev/null > /dev/da1
whever I change or insert new media into the reader

That seems to work with the gear I have 99% of the time.

         ---Mike




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