Date: Tue, 8 Aug 2006 04:20:20 GMT From: Ganbold <ganbold@micom.mng.net> To: freebsd-i386@FreeBSD.org Subject: Re: i386/76653 : Problem with Asahi Optical usb device (Pentax Optio S50) Message-ID: <200608080420.k784KKUa021960@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/76653; it has been noted by GNATS. From: Ganbold <ganbold@micom.mng.net> To: bug-followup@FreeBSD.org, freebsd-bugs@FreeBSD.org Cc: guzman@zalem.net, csaba.henk@creo.hu, iedowse@FreeBSD.org Subject: Re: i386/76653 : Problem with Asahi Optical usb device (Pentax Optio S50) Date: Tue, 08 Aug 2006 13:14:01 +0900 Hi, I have Pentax Optio S60 and I got it working in Dell D620 under FreeBSD-6.1-STABLE by patching umass.c and scsi_da.c. # uname -an FreeBSD devil.micom.mng.net 6.1-STABLE FreeBSD 6.1-STABLE #7: Tue Aug 8 12:52:48 ULAST 2006 tsgan@devil.micom.mng.net:/usr/obj/usr/src/sys/DEVIL i386 Aug 8 12:59:39 devil kernel: umass0: PENTAX product 0x0047, rev 1.10/0.00, addr 2 Aug 8 12:59:40 devil kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Aug 8 12:59:40 devil kernel: da0: <PENTAX DIGITAL_CAMERA 1.00> Removable Direct Access SCSI-0 device Aug 8 12:59:40 devil kernel: da0: 1.000MB/s transfers Aug 8 12:59:40 devil kernel: da0: 243MB (498176 512 byte sectors: 64H 32S/T 243C) # usbdevs -v ... Controller /dev/usb2: addr 1: full speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: full speed, self powered, config 1, product 0x0047(0x0047), PENTAX(0x0a17), rev 0.00 ... Patches are here: ----------------------------------------------------------------------------------- --- /usr/src/sys/dev/usb/umass.c-orig Tue Aug 8 12:54:25 2006 +++ /usr/src/sys/dev/usb/umass.c Tue Aug 8 12:55:37 2006 @@ -321,7 +321,7 @@ Static struct umass_devdescr_t umass_devdescrs[] = { { USB_VENDOR_ASAHIOPTICAL, PID_WILDCARD, RID_WILDCARD, - UMASS_PROTO_ATAPI | UMASS_PROTO_CBI_I, + UMASS_PROTO_ATAPI | UMASS_PROTO_BBB, RS_NO_CLEAR_UA }, { USB_VENDOR_ADDON, USB_PRODUCT_ADDON_ATTACHE, RID_WILDCARD, ----------------------------------------------------------------------------------- --- /usr/src/sys/cam/scsi/scsi_da.c-orig Tue Aug 8 12:53:37 2006 +++ /usr/src/sys/cam/scsi/scsi_da.c Tue Aug 8 12:47:15 2006 @@ -436,6 +436,11 @@ "*"}, /*quirks*/ DA_Q_NO_SYNC_CACHE }, { + /* PENTAX Optio S60. */ + {T_DIRECT, SIP_MEDIA_REMOVABLE, "PENTAX", "DIGITAL_CAMERA", "*"}, + /*quirks*/ DA_Q_NO_SYNC_CACHE + }, + { /* * Genesys 6-in-1 Card Reader * PR: usb/94647 hth, Ganbold
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608080420.k784KKUa021960>