Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Sep 2014 17:39:02 -0400
From:      grarpamp <grarpamp@gmail.com>
To:        freebsd-usb@freebsd.org
Cc:        Hans Petter Selasky <hps@selasky.org>, freebsd-hardware@freebsd.org
Subject:   Re: USB storage device not recognized
Message-ID:  <CAD2Ti2_XtJUdkMTaSqp6WMo3pF9oazj7t66BzQ6udn_PtXDkfg@mail.gmail.com>
In-Reply-To: <CAD2Ti28Y5i5MQjc8A%2B3ib1PDW8crgK7v05xQo39OP94bD0f=iA@mail.gmail.com>
References:  <CAD2Ti2_CZzvB2zudHBgc5K%2BqCnt2Mz8y9A6MrgYnPPqE646J=g@mail.gmail.com> <540300A7.6050505@selasky.org> <CAD2Ti2_KsGWiEY3rh73C8L62fkitTeZosN7p%2Bo%2B_i6w5m_BETA@mail.gmail.com> <54040827.5060002@selasky.org> <CAD2Ti28Y5i5MQjc8A%2B3ib1PDW8crgK7v05xQo39OP94bD0f=iA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Is there a way to actively probe out for a device from a usb port?

> [The other ports act the same way... a usbstick is recognized,
> this device isn't.]

The problem was bad cable mating... power pair connected but
data pair did not. Cutting back some plastic shroud let USB
seat further in and fixed it. Mountable and files accessible now.


New problem... the kernel is picking up what might be a second
LUN and throwing a lot of errors. If this LUN is real and intentional
I have no idea what purpose it would be for. It is not accessible
in a usual way with dd...

# camcontrol devl -v
scbus3 on umass-sim0 bus 0:
<NAME 3.00> at scbus3 target 0 lun 0 (da0,pass2)
<NAME 3.00> at scbus3 target 0 lun 1 (da1,pass3)
# ls /dev/*da*
/dev/da0        /dev/da0s1      /dev/da1
# dd if=/dev/da1 of=/dev/null
dd: /dev/da1: Device not configured

[Update: This has both soldered flash and microSD slot,
the second LUN may be the SD slot. Will test...]


Also the kernel does not print USB 'port' number except on disconnect...
 kernel: umass0: at uhub3, port 5, addr 2 (disconnected)
It needs to print a corresponding 'connected' line on connect,
or perhaps add the 'port' in here...
 kernel: umass0: <NAME, class 0/0, rev 2.00/1.00, addr 2> on usbus3


Here's the full LUN / port issue log...

k: ugen3.2: <Name> at usbus3
k: umass0: <Name, class 0/0, rev 2.00/1.00, addr 2> on usbus3
k: umass0:  SCSI over Bulk-Only; quirks = 0x4000
k: umass0:3:0:-1: Attached to scbus3
k: (probe0:umass-sim0:0:0:0): Down reving Protocol Version from 2 to 0?
k: pass2 at umass-sim0 bus 0 scbus3 target 0 lun 0
k: pass2: <NAME 3.00> Removable Direct Access SCSI-0 device
k: pass2: Serial Number 0123456789ABCDEF
k: pass2: 40.000MB/s transfers
k: GEOM: new disk da0
k: da0 at umass-sim0 bus 0 scbus3 target 0 lun 0
k: da0: <NAME 3.00> Removable Direct Access SCSI-0 device
k: da0: Serial Number 0123456789ABCDEF
k: da0: 40.000MB/s transfers
k: da0: 3770MB (7722483 512 byte sectors: 255H 63S/T 480C)
k: da0: quirks=0x2<NO_6_BYTE>
k: da0: Delete methods: <NONE(*)>
k: (probe0:umass-sim0:0:0:1): Down reving Protocol Version from 2 to 0?
k: (probe0:umass-sim0:0:0:1): SCSI status error
k: (probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 00 20 00 00 00 00
k: (probe0:umass-sim0:0:0:1): CAM status: SCSI Status Error
k: (probe0:umass-sim0:0:0:1): SCSI status: Check Condition
k: (probe0:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium
not present)
k: (probe0:umass-sim0:0:0:1): Error 6, Unretryable error
k: pass3 at umass-sim0 bus 0 scbus3 target 0 lun 1
k: pass3: <NAME 3.00> Removable Direct Access SCSI-0 device
k: pass3: Serial Number 0123456789ABCDEF
k: pass3: 40.000MB/s transfers
k: (da1:umass-sim0:0:0:1): SCSI status error
k: (da1:umass-sim0:0:0:1): READ CAPACITY(10). CDB: 25 20 00 00 00 00 00 00 00 00
k: (da1:umass-sim0:0:0:1): CAM status: SCSI Status Error
k: (da1:umass-sim0:0:0:1): SCSI status: Check Condition
k: (da1:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present)
k: (da1:umass-sim0:0:0:1): Error 6, Unretryable error
k: da1 at umass-sim0 bus 0 scbus3 target 0 lun 1
k: da1: <NAME 3.00> Removable Direct Access SCSI-0 device
k: da1: Serial Number 0123456789ABCDEF
k: da1: 40.000MB/s transfers
k: da1: Attempt to query device size failed: NOT READY, Medium not present
k: da1: quirks=0x2<NO_6_BYTE>
k: da1: Delete methods: <NONE(*)>
k: GEOM: new disk da1
k: (da1:umass-sim0:0:0:1): SCSI status error
k: (da1:umass-sim0:0:0:1): READ CAPACITY(10). CDB: 25 20 00 00 00 00 00 00 00 00
k: (da1:umass-sim0:0:0:1): CAM status: SCSI Status Error
k: (da1:umass-sim0:0:0:1): SCSI status: Check Condition
k: (da1:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present)
k: (da1:umass-sim0:0:0:1): Error 6, Unretryable error
k: Opened disk da1 -> 6
k: (da1:umass-sim0:0:0:1): SCSI status error
k: (da1:umass-sim0:0:0:1): READ CAPACITY(10). CDB: 25 20 00 00 00 00 00 00 00 00
k: (da1:umass-sim0:0:0:1): CAM status: SCSI Status Error
k: (da1:umass-sim0:0:0:1): SCSI status: Check Condition
k: (da1:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not present)
k: (da1:umass-sim0:0:0:1): Error 6, Unretryable error
k: Opened disk da1 -> 6
k: ugen3.2: <Name> at usbus3 (disconnected)
k: umass0: at uhub3, port 5, addr 2 (disconnected)
k: (da0:umass-sim0:0:0:0): lost device - 0 outstanding, 0 refs
k: (da0:umass-sim0:0:0:0): removing device entry
k: (pass2:umass-sim0:0:0:0): lost device
k: (pass2:umass-sim0:0:0:0): removing device entry
k: (da1:umass-sim0:0:0:1): lost device - 0 outstanding, 0 refs
k: (da1:umass-sim0:0:0:1): removing device entry
k: (pass3:umass-sim0:0:0:1): lost device
k: (pass3:umass-sim0:0:0:1): removing device entry



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