From owner-freebsd-bugs Sat Oct 13 5:20: 8 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 9205E37B408 for ; Sat, 13 Oct 2001 05:20:01 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9DCK1G03023; Sat, 13 Oct 2001 05:20:01 -0700 (PDT) (envelope-from gnats) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id DE5A437B401 for ; Sat, 13 Oct 2001 05:19:20 -0700 (PDT) Received: (from nobody@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f9DCJKe02942; Sat, 13 Oct 2001 05:19:20 -0700 (PDT) (envelope-from nobody) Message-Id: <200110131219.f9DCJKe02942@freefall.freebsd.org> Date: Sat, 13 Oct 2001 05:19:20 -0700 (PDT) From: Bryan Liesner To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-1.0 Subject: kern/31250: Cannot mount an Olympus D-370 camera as a umass device 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: 31250 >Category: kern >Synopsis: Cannot mount an Olympus D-370 camera as a umass device >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Oct 13 05:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Bryan Liesner >Release: 4.4-stable >Organization: >Environment: FreeBSD gravy.kishka.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Sat Oct 13 07:43:42 EDT 2001 bryan@gravy.kishka.net:/usr/src/sys/compile/GRAVY i386 >Description: This applies to an Olympus D-370 digital camera with storage class usb. After compiling a kernel with scbus, da, pass, and umass support, mount_msdos /dev/da0s1 /mnt gives the following result: Oct 13 07:50:18 gravy /kernel: (da0:umass-sim0:0:0:0): READ(06). CDB: 8 0 0 0 1 Oct 13 07:50:18 gravy /kernel: (da0:umass-sim0:0:0:0): ILLEGAL REQUEST asc:20,0 Oct 13 07:50:18 gravy /kernel: (da0:umass-sim0:0:0:0): Invalid command operation Oct 13 07:50:18 gravy /kernel: da0: reading primary partition table: error reading fsbn 0 ~ >How-To-Repeat: Try to mount the camera as described above >Fix: Apply this patch: --- /usr/src/sys/cam/scsi/scsi_da.c Mon Sep 24 11:23:55 2001 +++ scsi_da.c Sat Oct 13 07:29:06 2001 @@ -243,12 +243,20 @@ * do not support READ_6 commands, only READ_10. */ {T_DIRECT, SIP_MEDIA_REMOVABLE, "Sony", "Sony DSC", "*"}, /*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE }, { + /* + * Olympus D series cameras do not support READ_6 + * commands + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "OLYMPUS", "D*", "*"}, + /*quirks*/ DA_Q_NO_6_BYTE + }, + { {T_OPTICAL, SIP_MEDIA_REMOVABLE, "FUJITSU", "MCF3064AP", "*"}, /*quirks*/ DA_Q_NO_6_BYTE } }; static d_open_t daopen; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message