From owner-freebsd-usb@FreeBSD.ORG Sat Jan 12 18:50:04 2008 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D382816A41B for ; Sat, 12 Jan 2008 18:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id AADB413C461 for ; Sat, 12 Jan 2008 18:50:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m0CIo4Df024231 for ; Sat, 12 Jan 2008 18:50:04 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m0CIo3po024230; Sat, 12 Jan 2008 18:50:03 GMT (envelope-from gnats) Date: Sat, 12 Jan 2008 18:50:03 GMT Message-Id: <200801121850.m0CIo3po024230@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: Taras Korenko Cc: Subject: Re: usb/93389: [umass] [patch] Digital Camera Pentax S60 don't work X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Taras Korenko List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Jan 2008 18:50:04 -0000 The following reply was made to PR usb/93389; it has been noted by GNATS. From: Taras Korenko To: bug-followup@freebsd.org Cc: icw@ukr.net Subject: Re: usb/93389: [umass] [patch] Digital Camera Pentax S60 don't work Date: Sat, 12 Jan 2008 20:33:07 +0200 Hi, folks. I had the same problem with this digital camera, but a little bit different solution. The main idea is to leave the old "wildcards" unchanged, 'cause we've got at least two success stories in the hardware compatibility list (Asahi Optical Optio 230 & 330). And we don't know for sure whether changing proto would have negative impact on devices of those two models. The patches are following: -------------------------------------------------------------------- --- usbdevs.orig 2008-01-12 17:18:12.000000000 +0200 +++ usbdevs 2008-01-12 19:22:43.000000000 +0200 @@ -691,6 +691,7 @@ /* Asahi Optical products */ product ASAHIOPTICAL OPTIO230 0x0004 Digital camera product ASAHIOPTICAL OPTIO330 0x0006 Digital camera +product ASAHIOPTICAL OPTIOS60 0x0047 Pentax Optio 60 /* ASIX Electronics products */ product ASIX AX88172 0x1720 10/100 ethernet -------------------------------------------------------------------- --- umass.orig.c 2008-01-12 12:44:31.000000000 +0200 +++ umass.c 2008-01-12 19:25:51.000000000 +0200 @@ -320,6 +320,12 @@ }; Static struct umass_devdescr_t umass_devdescrs[] = { + { USB_VENDOR_ASAHIOPTICAL, USB_PRODUCT_ASAHIOPTICAL_OPTIOS60, + RID_WILDCARD, + UMASS_PROTO_SCSI | UMASS_PROTO_BBB, + IGNORE_RESIDUE + }, + { USB_VENDOR_ASAHIOPTICAL, PID_WILDCARD, RID_WILDCARD, UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I, RS_NO_CLEAR_UA -------------------------------------------------------------------- --- scsi_da.orig.c 2008-01-12 19:29:07.000000000 +0200 +++ scsi_da.c 2008-01-12 19:30:03.000000000 +0200 @@ -475,6 +475,14 @@ {T_DIRECT, SIP_MEDIA_REMOVABLE, "EM732X", "MP3 Player*", "1.0"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, + { + /* + * PENTAX Optio S60 Digital Camera (vendor ASAHIOPTICAL) + * PR: usb/93389 + */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "PENTAX", "DIGITAL_CAMERA", + "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE + }, }; static disk_strategy_t dastrategy; -------------------------------------------------------------------- They were tested with: FreeBSD notebook.ukrhub.net 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #1: Sat Jan 12 17:45:09 EET 2008 ds@notebook.ukrhub.net:/usr/obj/usr/src/sys/GENERIC i386 A part of dmesg: umass0: PENTAX product 0x0047, rev 1.10/0.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 243MB (498176 512 byte sectors: 64H 32S/T 243C) #usbdevs -vdf /dev/usb0 Controller /dev/usb0: addr 1: full speed, self powered, config 1, OHCI root hub(0x0000), NEC(0x0000), rev 1.00 uhub0 port 1 addr 2: full speed, self powered, config 1, product 0x0047(0x0047), PENTAX(0x0a17), rev 0.00 umass0 port 2 powered port 3 powered #camcontrol inquiry da0 pass0: Removable Direct Access SCSI-0 device pass0: Serial Number pass0: 1.000MB/s transfers -- Best regards, Taras Korenko, Network Engineer, UkrCom ISP +38 044 205 55 70 +38 044 205 55 76