Bug 180119 - [umass] FreeBSD 9.1 umass driver does not correctly handle Panasonic Lumix DMC-LX7 Camera [regression]
Summary: [umass] FreeBSD 9.1 umass driver does not correctly handle Panasonic Lumix DM...
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-usb mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-30 05:20 UTC by tednolan
Modified: 2017-12-31 22:23 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tednolan 2013-06-30 05:20:00 UTC
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

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.
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).
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:58:36 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped