usb/115933: RATOC REX-USB60F (usb serial converter) is working

HAGIMORI 'buggy' Masashige buggy at sm.sony.co.jp
Wed Aug 29 16:50:04 PDT 2007


>Number:         115933
>Category:       usb
>Synopsis:       RATOC REX-USB60F (usb serial converter) is working
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 29 23:50:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     HAGIMOR 'buggy' Masasige
>Release:        FreeBSD 6.2-RELEASE i386
>Organization:
n/a
>Environment:
System: FreeBSD xxxxxxxx 6.2-RELEASE FreeBSD 6.2-RELEASE #1: Tue Aug 28 08:26:12 JST 2007 buggy at xxxxxxxx:/usr/src/sys/i386/compile/xxxxxxxxx i386



>Description:
	
>How-To-Repeat:
	
>Fix:

	the RATOC REX-USB60F serial convert is probed the ugen usb
        device. but it is not working. i checked its document and
        it has "ftdi" spell. so the probe() and the attach() in the uftid.c
        is added the vendor id and the product id on the REX-USB60F
        which are 0x0584 (RATOC) and 0xb020 (REX-USB60F).
        now, it works fine on the ucom usb with the uftdi.

        # cd /usr/src/sys
        # patch -p1 < /someware/ratoc_rex-usb60f_for_FreeBSD6.2R.patch
        # cd modules/uftdi
        # make
        # kldunload -i [uftdi.ko kld-id]
        # kldload ./uftdi.ko

# cat /var/log/messages
        Aug 28 09:40:57 xxxxxxxx kernel: ucom0: RATOC Systems,Inc. USB-Serial Converter, rev 2.00/4.00, addr 2

# usbdevs -v
        port 2 addr 2: full speed, power 100 mA, config 1, USB-Serial Converter(0xb020), RATOC Systems,Inc.(0x0584), rev 4.00


--- ratoc_rex-usb60f_for_FreeBSD6.2R.patch begins here ---
diff -crN sys.orig/dev/usb/uftdi.c sys/dev/usb/uftdi.c
*** sys.orig/dev/usb/uftdi.c	Wed Apr  6 07:09:18 2005
--- sys/dev/usb/uftdi.c	Tue Aug 28 09:26:04 2007
***************
*** 180,185 ****
--- 180,189 ----
  	    (uaa->product == USB_PRODUCT_BBELECTRONICS_USOTL4))
  		return (UMATCH_VENDOR_PRODUCT);
  
+ 	if (uaa->vendor == USB_VENDOR_RATOC &&
+ 	    (uaa->product == USB_PRODUCT_RATOC_REXUSB60F))
+ 		return (UMATCH_VENDOR_PRODUCT);
+ 
  	return (UMATCH_NONE);
  }
  
***************
*** 230,235 ****
--- 234,240 ----
  	ucom->sc_iface = iface;
  	switch( uaa->vendor ){
  	case USB_VENDOR_FTDI:
+ 	case USB_VENDOR_RATOC:
  		switch( uaa->product ){
  		case USB_PRODUCT_FTDI_SERIAL_8U100AX:
  			sc->sc_type = UFTDI_TYPE_SIO;
***************
*** 247,252 ****
--- 252,258 ----
  		case USB_PRODUCT_FTDI_MX4_5:
  		case USB_PRODUCT_FTDI_LK202:
  		case USB_PRODUCT_FTDI_LK204:
+ 		case USB_PRODUCT_RATOC_REXUSB60F:
  			sc->sc_type = UFTDI_TYPE_8U232AM;
  			sc->sc_hdrlen = 0;
  			break;
diff -crN sys.orig/dev/usb/usbdevs sys/dev/usb/usbdevs
*** sys.orig/dev/usb/usbdevs	Tue Nov 14 21:54:38 2006
--- sys/dev/usb/usbdevs	Tue Aug 28 08:24:54 2007
***************
*** 1462,1467 ****
--- 1462,1468 ----
  
  /* RATOC Systems products */
  product RATOC REXUSB60		0xb000	REX-USB60
+ product RATOC REXUSB60F		0xb020	REX-USB60F
  
  /* Samsung products */
  product SAMSUNG ML6060		0x3008	ML-6060 laser printer
--- ratoc_rex-usb60f_for_FreeBSD6.2R.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-usb mailing list