>Number:         180119
>Category:       usb
>Synopsis:       FreeBSD 9.1 umass driver does not correctly handle Panasonic 
>Lumix DMC-LX7 Camera
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jun 30 04:20:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Ted Nolan
>Release:        9.1 AMD64
>Organization:
self
>Environment:
FreeBSD brookside-ether 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 
09:23:10 UTC 2012     r...@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC 
 amd64

>Description:
The Panasonic Lumix DMC-LX11 camera has a USB connection.  When connected over 
USB to a computer, the camera operates as a USB mass storage device allowing 
access to the MSDOS filesystem (containing pictures) on the camera's internal 
SDHC/SDXC card.

This works correctly when connecting the camera to my FreeBSD8.1 i386 box over 
USB1.0.  The following messages appear in dmesg on the 8.1 machine:

=====START 8.1 messages===========================
ugen0.2: <Panasonic> at usbus0
umass0: <Panasonic DMC-LX7, class 0/0, rev 2.00/1.00, addr 2> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x0000
umass0:2:0:-1: Attached to scbus2
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power on, 
reset, or bus device reset occurred)
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <MATSHITA DMC-LX7 0100> Removable Direct Access SCSI-5 device 
da0: 1.000MB/s transfers
da0: 15193MB (31116288 512 byte sectors: 255H 63S/T 1936C)
GEOM: da0: partition 1 does not start on a track boundary.
GEOM: da0: partition 1 does not end on a track boundary.
========================END 8.1 messages===========================

The camera also appears as expected in /dev (although the name shows up twice 
-- something I can't ever recall seeing before):

ls -l /dev/da*
crw-rw----  1 root  wheel    0, 128 Jun 29 23:46 /dev/da0
crw-rw----  1 root  wheel    0, 129 Jun 29 23:46 /dev/da0s1
crw-rw----  1 root  wheel    0, 129 Jun 29 23:46 /dev/da0s1

However, when connecting the same camera over USB2.0 with the same cable to my 
9.1 AMD64 box, mass storage mode does not work, and the following messages show 
up in dmesg:

======================Start 9.1 messages============================
ugen1.3: <Panasonic> at usbus1
umass2: <Panasonic DMC-LX7, class 0/0, rev 2.00/1.00, addr 3> on usbus1
umass2:  SCSI over Bulk-Only; quirks = 0x4000
umass2:7:2:-1: Attached to scbus7
(probe0:umass-sim2:2:0:0): REPORT LUNS. CDB: a0 0 0 0 0 0 0 0 0 10 0 0 
(probe0:umass-sim2:2:0:0): CAM status: SCSI Status Error
(probe0:umass-sim2:2:0:0): SCSI status: Check Condition
(probe0:umass-sim2:2:0:0): SCSI sense: UNIT ATTENTION asc:28,0 (Not ready to 
ready change, medium may have changed)
(probe0:umass-sim2:2:0:0): Retrying command (per sense data)
da2 at umass-sim2 bus 2 scbus7 target 0 lun 0
da2: <MATSHITA DMC-LX7 0100> Removable Direct Access SCSI-5 device 
da2: 40.000MB/s transfers
da2: 12479025381376MB (133643435037949953 512 byte sectors: 255H 63S/T 
-432571248C)
==================================END 9.1 messages=======================

Note the negative number in the "cylinder" parameter in the last line!

Also, no partitions show up in /dev, just the main node for da2:

crw-rw----  1 root  wheel    0, 107 Jun 20 00:31 /dev/da0
crw-rw----  1 root  wheel    0, 143 Jun 20 00:32 /dev/da1
crw-rw----  1 root  wheel    0, 145 Jun 20 00:32 /dev/da1s1
crw-rw----  1 root  wheel    0, 146 Jun 20 00:32 /dev/da1s2
crw-rw----  1 root  wheel    0, 149 Jun 20 23:43 /dev/da1s2s1
crw-rw----  1 root  wheel    0, 147 Jun 20 00:32 /dev/da1s5
crw-rw----  1 root  wheel    0, 154 Jun 29 23:59 /dev/da2

>How-To-Repeat:
Connect a Panasonic Lumix DMC-LX7 camera to an AMD64 FreeBSD 9.1 system over 
USB2.0.  (I don't know whether 9.1 on i386 works with it or not).
>Fix:
No fix.  The only workaround is to take the SDXC card out of the camera and 
connect to it with a card reader.  I don't like doing this because I figure the 
card connectors are more delicate than the camera USB connector.

>Release-Note:
>Audit-Trail:
>Unformatted:
_______________________________________________
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Reply via email to