Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Dec 2001 18:28:17 -0800 (PST)
From:      Brian Behlendorf <brian@hyperreal.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/33407: Nikon 885 umass support (related to #29160)
Message-ID:  <200201010228.g012SH043082@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         33407
>Category:       kern
>Synopsis:       Nikon 885 umass support (related to #29160)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec 31 18:30:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Brian Behlendorf
>Release:        4.5-PRERELEASE
>Organization:
>Environment:
FreeBSD yez.hyperreal.org 4.5-PRERELEASE FreeBSD 4.5-PRERELEASE #3: Mon Dec 31 17:49:55 PST 2001     brian@yez.hyperreal.org:/usr/obj/usr/src/sys/yez  i386

>Description:
Similar to #29160, umass support for the Nikon 885 requires a patch to scsi_da.c in order to access the pictures on the card.

>How-To-Repeat:
Plug a Nikon 885 into the USB port and attempt to mount_msdos /dev/da0s1.  You'll get:
Dec 31 16:25:43 yez /kernel: (da0:umass-sim0:0:0:0): READ(06). CDB: 8 0 0 0 1 0 
Dec 31 16:25:43 yez /kernel: (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:20,0
Dec 31 16:25:43 yez /kernel: (da0:umass-sim0:0:0:0): Invalid command operation code
Dec 31 16:25:43 yez /kernel: da0: reading primary partition table: error reading fsbn 0

>Fix:
The camera identifies itself as:

Dec 31 18:09:57 yez /kernel: da0: <Nikon Digital Camera 1.00> Removable Direct Access SCSI-2 device 

Note that this is a much more generic identifier than the Nikon 995 patch was looking for, so it would be ideal to test this with a couple other Nikon cameras as well, or at least compare identifiers.

Despite the warnings to not include patches, here ya go:

[yez] 6:27pm scsi > diff -c3 scsi_da.c.orig scsi_da.c
*** scsi_da.c.orig      Sat Dec 29 11:48:25 2001
--- scsi_da.c   Mon Dec 31 17:34:18 2001
***************
*** 329,334 ****
--- 329,341 ----
        },
        {
                /*
+                * Nikon Coolpix 885
+                */
+               {T_DIRECT, SIP_MEDIA_REMOVABLE, "Nikon", "Digital Camera", "*"},
+               /*quirks*/ DA_Q_NO_6_BYTE
+       },
+       {
+               /*
                 * Minolta Dimage 2330
                 */
                {T_DIRECT, SIP_MEDIA_REMOVABLE, "MINOLTA", "DIMAGE 2330*", "*"},

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201010228.g012SH043082>