From nobody@FreeBSD.org  Fri Mar  5 03:15:18 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 69DB716A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Mar 2004 03:15:18 -0800 (PST)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 63EAC43D1F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri,  5 Mar 2004 03:15:18 -0800 (PST)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.10/8.12.10) with ESMTP id i25BFH72081281
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 5 Mar 2004 03:15:17 -0800 (PST)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.10/8.12.10/Submit) id i25BFHA3081280;
	Fri, 5 Mar 2004 03:15:17 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200403051115.i25BFHA3081280@www.freebsd.org>
Date: Fri, 5 Mar 2004 03:15:17 -0800 (PST)
From: Ryuji MATSUMOTO <matumoto@pluto.ai.kyutech.ac.jp>
To: freebsd-gnats-submit@FreeBSD.org
Subject: The addition of a FreeBSD support USB-DVD drive.
X-Send-Pr-Version: www-2.3

>Number:         63793
>Category:       kern
>Synopsis:       The addition of a FreeBSD support USB-DVD drive.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sanpei
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 05 03:20:16 PST 2004
>Closed-Date:    Thu May 06 06:17:10 PDT 2004
>Last-Modified:  Thu May 06 06:17:10 PDT 2004
>Originator:     Ryuji MATSUMOTO
>Release:        FreeBSD-4.9-STABLE(Thu Mar  4 17:15:27 JST 2004(JST))/ Userland: FreeBSD-4.9-p2
>Organization:
>Environment:
FreeBSD atlas 4.9-STABLE FreeBSD 4.9-STABLE #1: Thu Mar  4 21:37:23 JST 2004     matumoto@atlas:/usr/src/sys/compile/ATLAS  i386
>Description:
The following USB-DVD-R drives cannot write in DVD-R by growisofs. 

-Logitec LDR-H443SU2
(In japanese. http://www.logitec.co.jp/products/dvd/ldrh443su2.html)
-IO-DATA DVR-UEH8
(In japanese http://www.iodata.jp/prod/storage/dvd/2004/dvr-ueh8/index.htm)

# growisofs -speed=1 -dvd-compat -Z /dev/cd0a=cd2.iso
:-[ unable to GET EVENT: FFFFFFFF ]
:-( unable to GET CONFIGURATION, non-MMC unit?: Input/output error

If the appended file is corrected, writing will be made to DVD-R by 
growisofs.

The environment of my computer is as follows.
 
-Asus P4PE/Pentium 2.53GHz/MEM 512M
-Dell PowerEdge 600SC/Celeron2.0GHz/MEM 512M

-Logitec LDR-H443SU2
dmesg:
umass0: Logitec Corp. LDR USB Device, rev 2.00/1.00, addr 2, 8070i (ATAPI) over Bulk-Only
umass0:1:0:-1: Attached to scbus1 as device 0
cd0 at umass-sim0 bus 0 target 0 lun 0
cd0: <HL-DT-ST DVDRAM GSA-4040B A105> Removable CD-ROM SCSI-0 device
cd0: 650KB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present

usbdevs -v:
addr 1: low speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
 port 1 addr 2: low speed, self powered, config 1, LDR USB Device(0x0033), Logitec Corp.(0x0789), rev 1.00
 port 2 powered

-IODATA DVR-UEH8
dmesg:
umass0: I-O DATA DEVICE,INC. Optical Storage Device, rev 2.00/11.07, addr 2, 8070i (ATAPI) over Bulk-Only
umass0:0:0:-1: Attached to scbus0 as device 0
cd0 at umass-sim0 bus 0 target 0 lun 0
cd0: <HL-DT-ST DVDRAM GSA-4082B A201> Removable CD-ROM SCSI-0 device
cd0: 650KB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present

usbdevs -v:
addr 1: low speed, self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00
 port 1 powered
 port 2 addr 2: low speed, self powered, config 1, Optical Storage Device(0x0206), I-O DATA DEVICE,INC.(0x04bb), rev 11.07

>How-To-Repeat:
growisofs is used.
>Fix:
*** umass.c.ORG Thu Mar  4 16:37:57 2004
--- umass.c     Thu Mar  4 21:36:18 2004
***************
*** 24,30 ****
   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   *
!  *    $FreeBSD: src/sys/dev/usb/umass.c,v 1.11.2.29 2004/02/26 23:45:58 sanpei Exp $
   *    $NetBSD: umass.c,v 1.28 2000/04/02 23:46:53 augustss Exp $
   */

--- 24,30 ----
   * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   *
!  *    $FreeBSD: src/sys/dev/usb/umass.c,v 1.11.2.29 2004/02/26 23:45:58 sanpei +usbdvd Exp $
   *    $NetBSD: umass.c,v 1.28 2000/04/02 23:46:53 augustss Exp $
   */

***************
*** 699,707 ****
--- 699,715 ----
            UGETW(dd->idProduct) == USB_PRODUCT_IODATA_IU_CD2) {
                sc->proto =  UMASS_PROTO_SCSI | UMASS_PROTO_BBB;
        }
+       if (UGETW(dd->idVendor) == USB_VENDOR_IODATA &&
+           UGETW(dd->idProduct) == USB_PRODUCT_IODATA_DVR_UEH8) {
+               sc->proto =  UMASS_PROTO_SCSI | UMASS_PROTO_BBB;
+       }
        /* Logitec DVD multi plus unit */
        if (UGETW(dd->idVendor) == USB_VENDOR_LOGITEC &&
            UGETW(dd->idProduct) == USB_PRODUCT_LOGITEC_LDR_H443U2) {
+               sc->proto = UMASS_PROTO_SCSI;
+       }
+       if (UGETW(dd->idVendor) == USB_VENDOR_LOGITEC &&
+           UGETW(dd->idProduct) == USB_PRODUCT_LOGITEC_LDR_H443SU2) {
                sc->proto = UMASS_PROTO_SCSI;
        }
        if (UGETW(dd->idVendor) == USB_VENDOR_MELCO &&
*** usbdevs.ORG Thu Mar  4 16:37:59 2004
--- usbdevs     Thu Mar  4 21:36:09 2004
***************
*** 1,4 ****
! $FreeBSD: src/sys/dev/usb/usbdevs,v 1.11.2.54 2004/02/21 16:35:20 wilko Exp $

  /*
   * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
--- 1,4 ----
! $FreeBSD: src/sys/dev/usb/usbdevs,v 1.11.2.54 2004/02/21 16:35:20 wilko Exp +usbdvd$

  /*
   * Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
***************
*** 785,790 ****
--- 785,792 ----
  product IODATA USBETTXS               0x0913  USB ETTX
  product       IODATA USBRSAQ          0x0a03  USB serial adapter USB-RSAQ1
  product       IODATA IU_CD2           0x0204  DVD Multi-plus unit iU-CD2
+ product       IODATA DVR_UEH8         0x0206  DVD Multi-plus unit DVR-UEH8
+

  /* Iomega products */
  product IOMEGA ZIP100         0x0001  Zip 100
***************
*** 887,892 ****
--- 889,895 ----

  /* Logitec Corp. products */
  product       LOGITEC LDR_H443U2      0x00b3  DVD Multi-plus unit LDR-H443U2
+ product       LOGITEC LDR_H443SU2     0x0033  DVD Multi-plus unit LDR-H443SU2

  /* Lucent products */
  product LUCENT EVALKIT                0x1001  USS-720 evaluation kit

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->sanpei 
Responsible-Changed-By: nork 
Responsible-Changed-When: Fri Mar 5 03:47:05 PST 2004 
Responsible-Changed-Why:  
Over to USB specialist. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63793 
State-Changed-From-To: open->patched 
State-Changed-By: sanpei 
State-Changed-When: Sat Mar 6 21:33:49 PST 2004 
State-Changed-Why:  
Commited, Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63793 
State-Changed-From-To: patched->closed 
State-Changed-By: sanpei 
State-Changed-When: Thu May 6 06:16:42 PDT 2004 
State-Changed-Why:  
Commited 4-stable and RELENG_4_10(for 4.10-RELEASE) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=63793 
>Unformatted:
