Dennis Melentyev
2006-May-17 11:10 UTC
6.1 and USB: problems with mounting SonyEricsson K750 flash
Hi All! I've got a problem with mounting SonyEricsson K750 flash card: 6.1 is not stabily mounting/recognizing device, and, after several tries ended up in creating TWO IDENTICAL device nodes in /dev!!! Has anyone any suggestion on how to resolve such a problem? Here is kind of my actions log: After connecting the cable, got this in console: umass0: Sony Ericsson Sony Ericsson K750, rev 2.00/0.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: <Sony Eri Memory Stick 0000> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 1902MB (3895296 512 byte sectors: 255H 63S/T 242C) so far everything is ok, except the reported disk size: it's 1Gb, not 2Gb. Trying to mount, get at console: umass0: BBB reset failed, STALLED Killing mount with ^C. After extracting plug from the socket: umass0: BBB reset failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED g_vfs_done():da0s1[READ(offset=16384, length=4096)]error = 5 umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED (da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status == 0x0 umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: BBB bulk-out clear stall failed, STALLED umass0: BBB reset failed, STALLED umass0: BBB bulk-in clear stall failed, STALLED umass0: at uhub2 port 2 (addr 2) disconnected Trying to plug it back again for several times, some failures to recognize the device, and finally it recognized again. Mounting again, got: D-MELENTYEV# mount /mnt/flash/ mount_msdosfs: /dev/da0s1: Device not configured Take a look at /dev and start going mad seeing two identical nodes: D-MELENTYEV# ll /dev/da0* crw-r----- 1 root operator 0, 116 May 15 12:39 /dev/da0 crw-r----- 1 root operator 0, 114 May 15 12:39 /dev/da0s1 crw-r----- 1 root operator 0, 114 May 15 12:39 /dev/da0s1 D-MELENTYEV# stat /dev/da0* 67174144 116 crw-r----- 1 root operator 116 0 "May 15 12:39:14 2006" "May 15 12:39:14 2006" "May 15 12:39:14 2006" "Jan 1 02:59:59 1970" 4096 0 0 /dev/da0 67174144 114 crw-r----- 1 root operator 114 0 "May 15 12:39:14 2006" "May 15 12:39:14 2006" "May 15 12:39:14 2006" "Jan 1 02:59:59 1970" 4096 0 0 /dev/da0s1 67174144 114 crw-r----- 1 root operator 114 0 "May 15 12:39:14 2006" "May 15 12:39:14 2006" "May 15 12:39:14 2006" "Jan 1 02:59:59 1970" 4096 0 0 /dev/da0s1 The file names are absolutely identical!!! D-MELENTYEV# find /dev -name "da0*" -print0 | hd 00000000 2f 64 65 76 2f 64 61 30 73 31 00 2f 64 65 76 2f |/dev/da0s1./dev/| 00000010 64 61 30 00 2f 64 65 76 2f 64 61 30 73 31 00 |da0./dev/da0s1.| Any ideas? What could I include in PR apart from info in this message? PS. 6.1-RC1 worked fine PPS. uname -a FreeBSD D-MELENTYEV.HOME 6.1-STABLE FreeBSD 6.1-STABLE #2: Wed May 10 15:08:05 EEST 2006 root@D-MELENTYEV.HOME:/usr/obj/usr/src/sys/GENERIC i386 cvsup'ed on May 10th several hours before rebuilding everything. -- Dennis Melentyev -------------- next part -------------- A non-text attachment was scrubbed... Name: console.log Type: application/octet-stream Size: 19592 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20060517/b78fe4d2/console-0001.obj
Bengt Ahlgren
2006-May-17 14:14 UTC
6.1 and USB: problems with mounting SonyEricsson K750 flash
Hi! "Dennis Melentyev" <dennis.melentyev@gmail.com> writes:> I've got a problem with mounting SonyEricsson K750 flash card: > 6.1 is not stabily mounting/recognizing device, and, after several tries > ended up in creating TWO IDENTICAL device nodes in /dev!!! > > Has anyone any suggestion on how to resolve such a problem? > > Here is kind of my actions log: > After connecting the cable, got this in console: > umass0: Sony Ericsson Sony Ericsson K750, rev 2.00/0.00, addr 2 > da0 at umass-sim0 bus 0 target 0 lun 0 > da0: <Sony Eri Memory Stick 0000> Removable Direct Access SCSI-0 device > da0: 1.000MB/s transfers > da0: 1902MB (3895296 512 byte sectors: 255H 63S/T 242C) > > so far everything is ok, except the reported disk size: it's 1Gb, not 2Gb.I get a different error, but which could possibly be related. I am running 6.1R on a Thinkpad X40. I just thought my connectors have accumulated too much dirt, because after retrying two-three times it succeeds. But perhaps dirt is not the issue, because when it succeeds in reading the size, mounting and reading works perfectly without errors. Here is what I get about 3 times out of 4 when attaching: umass0: Sony Ericsson Sony Ericsson K750, rev 2.00/0.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: <Sony Eri Memory Stick 0000> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: Attempt to query device size failed: NOT READY, Medium not present (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 (da0:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0 (da0:umass-sim0:0:0:0): CAM Status: SCSI Status Error (da0:umass-sim0:0:0:0): SCSI Status: Check Condition (da0:umass-sim0:0:0:0): NOT READY asc:3a,0 (da0:umass-sim0:0:0:0): Medium not present (da0:umass-sim0:0:0:0): Unretryable error Opened disk da0 -> 6 And, correctly when it succeeds: umass0: Sony Ericsson Sony Ericsson K750, rev 2.00/0.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: <Sony Eri Memory Stick 0000> Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 61MB (126912 512 byte sectors: 64H 32S/T 61C) I am not sure when the above problems started. When my phone was new (July 2005) it worked without any problems. I was most likely running 5.4 at that time. Bengt