Bug 39199

Summary: CASIO QV-4000 not recognized by /sys/dev/usb/umass.c
Product: Base System Reporter: Farid Hajji <farid.hajji>
Component: kernAssignee: njl
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Farid Hajji 2002-06-12 19:40:00 UTC
The CASIO QV-4000 digital camera is not properly recognized by /sys/dev/usb/umass.c as a mass storage device. The QV-4000 is known to behave in a non-standard manner as described in http://www.harald-schreiber.de/

I can help by testing patches against -STABLE. I really want to get
that camera working without having to boot into Linux for that.

Fix: 

Look at http://www.harald-schreiber.de/ for a Linux-specific fix which could be adapted to umass.c. umass.c already contains specific handling for a few devices with quirks; this should be expanded or generalized.
How-To-Repeat: Turning the device on, ugen recognizes it, but umass doesn't. It is not possible to mount that device on /dev/da* (device not configured).
Comment 1 farid.hajji 2002-10-11 13:57:28 UTC
Okay, I've tried to access the QV-4000 again under
4.7-STABLE cvsupped 10/10/2002. This is what I've got:

Turning the device on:

umass0: CASIO product 0x1001, rev 1.00/10.00, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <CASIO DIGITAL_CAMERA 1.00> Removable Direct Access SCSI-0 device
da0: 150KB/s transfers
da0: 1027MB (2104704 512 byte sectors: 0H 0S/T 0C)

Trying to mount it:

# mount -t msdos /dev/da0s1 /mnt
umass0: Unsupported ATAPI command 0x08, 6 byte command should have been
  converted
da0: reading primary partition table: error reading fsbn 0
umass0: Unsupported ATAPI command 0x35
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x6,
  scsi status == 0x0
msdos: /dev/da0s1: Input/output error.

The same for:
# mount -t msdos /dev/da0 /mnt

Turning the device off:
umass0: at uhub0 port 1 (addr 2) disconnected
(da0:umass-sim0:0:0:0): lost device
(da0:umass-sim0:0:0:0): removing device entry
umass0: detached.

I also got (unreproducible) kernel panics from time to time
while trying to mount da0 as above.

Regards,

-Farid.
Comment 2 me 2003-05-21 21:27:45 UTC
Please close this PR, problem solved in
  5.1-BETA FreeBSD 5.1-BETA #3: Sat May 10 05:02:42 CEST 2003
  GENERIC Kernel.

Everything works as expected now.

Thanks,

-Farid.

-- 
Farid Hajji -- Unix Systems and Network Management.
http://www.farid-hajji.net/address.html
Quoth the Raven, "Nevermore." --Edgar Allan Poe.
Comment 3 Kris Kennaway freebsd_committer freebsd_triage 2003-07-18 01:30:41 UTC
Responsible Changed
From-To: freebsd-bugs->joe

Assign to USB maintainer
Comment 4 njl freebsd_committer freebsd_triage 2003-08-22 05:30:27 UTC
State Changed
From-To: open->closed

Note that I believe this is fixed in both -stable and -current. 



Comment 5 njl freebsd_committer freebsd_triage 2003-08-22 05:30:27 UTC
Responsible Changed
From-To: joe->njl

Note that I believe this is fixed in both -stable and -current.