From owner-freebsd-bugs Mon Dec 31 18:30: 6 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7E5CA37B427 for ; Mon, 31 Dec 2001 18:30:00 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g012U0143213; Mon, 31 Dec 2001 18:30:00 -0800 (PST) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6EAEE37B428 for ; Mon, 31 Dec 2001 18:28:17 -0800 (PST) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g012SH043082; Mon, 31 Dec 2001 18:28:17 -0800 (PST) (envelope-from nobody) Message-Id: <200201010228.g012SH043082@freefall.freebsd.org> Date: Mon, 31 Dec 2001 18:28:17 -0800 (PST) From: Brian Behlendorf To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/33407: Nikon 885 umass support (related to #29160) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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: 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