From nobody@www.freebsd.org  Wed Jun 12 11:31:40 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 4C25637B401
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Jun 2002 11:31:40 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5CIVdhG007110
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 12 Jun 2002 11:31:39 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g5CIVdRf007109;
	Wed, 12 Jun 2002 11:31:39 -0700 (PDT)
Message-Id: <200206121831.g5CIVdRf007109@www.freebsd.org>
Date: Wed, 12 Jun 2002 11:31:39 -0700 (PDT)
From: Farid Hajji <farid.hajji@ob.kamp.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: CASIO QV-4000 not recognized by /sys/dev/usb/umass.c
X-Send-Pr-Version: www-1.0

>Number:         39199
>Category:       kern
>Synopsis:       CASIO QV-4000 not recognized by /sys/dev/usb/umass.c
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    njl
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 12 11:40:00 PDT 2002
>Closed-Date:    Thu Aug 21 21:31:29 PDT 2003
>Last-Modified:  Thu Aug 21 21:31:29 PDT 2003
>Originator:     Farid Hajji
>Release:        FreeBSD 4.6-RC
>Organization:
rent-a-wizard.net
>Environment:
FreeBSD bsdchild.rent-a-wizard.net 4.6-RC FreeBSD 4.6-RC #14: Wed Jun 12 19:35:41 CEST 2002  root@bsdchild.rent-a-wizard.net:/usr/obj/usr/src/sys/MYLAPAPM  i386
>Description:
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.

>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).
>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.

>Release-Note:
>Audit-Trail:

From: farid.hajji@Uni-Koeln.DE
To: freebsd-gnats-submit@FreeBSD.org, farid.hajji@ob.kamp.net
Cc:  
Subject: Re: kern/39199: CASIO QV-4000 not recognized by /sys/dev/usb/umass.c
Date: Fri, 11 Oct 2002 14:57:28 +0200 (MET DST)

 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.
 

From: Farid Hajji <me@farid-hajji.de>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: kern/39199: CASIO QV-4000 not recognized by /sys/dev/usb/umass.c
Date: Wed, 21 May 2003 22:27:45 +0200

 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.
 
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: kris 
Responsible-Changed-When: Thu Jul 17 17:30:41 PDT 2003 
Responsible-Changed-Why:  
Assign to USB maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=39199 
State-Changed-From-To: open->closed 
State-Changed-By: njl 
State-Changed-When: Thu Aug 21 21:30:27 PDT 2003 
State-Changed-Why:  
Note that I believe this is fixed in both -stable and -current. 



Responsible-Changed-From-To: joe->njl 
Responsible-Changed-By: njl 
Responsible-Changed-When: Thu Aug 21 21:30:27 PDT 2003 
Responsible-Changed-Why:  
Note that I believe this is fixed in both -stable and -current. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=39199 
>Unformatted:
