From owner-freebsd-current@FreeBSD.ORG Mon May 18 13:02:34 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 58BEF106564A for ; Mon, 18 May 2009 13:02:34 +0000 (UTC) (envelope-from saifi.khan@twincling.org) Received: from s217.sureserver.com (s217.sureserver.com [203.194.200.22]) by mx1.freebsd.org (Postfix) with ESMTP id D90318FC18 for ; Mon, 18 May 2009 13:02:33 +0000 (UTC) (envelope-from saifi.khan@twincling.org) Received: (qmail 14682 invoked by uid 1002); 18 May 2009 13:02:31 -0000 Received: from unknown (HELO ?10.10.10.8?) (saifi.khan@twincling.org@59.92.165.253) by s217.sureserver.com with ESMTPA; 18 May 2009 13:02:31 -0000 Date: Mon, 18 May 2009 18:34:58 +0000 (GMT) From: Saifi Khan X-X-Sender: saifi@localhost To: Ruben de Groot In-Reply-To: <20090518112739.GA97602@ei.bzerk.org> Message-ID: References: <20090518112739.GA97602@ei.bzerk.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Cc: freebsd-current@freebsd.org, freebsd-questions@freebsd.org Subject: Re: USB-to-serial adapter configuration X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2009 13:02:34 -0000 On Mon, 18 May 2009, Ruben de Groot wrote: > On Mon, May 18, 2009 at 04:07:09PM +0000, Saifi Khan typed: > > Hi all: > > > > How does one configure settings for USB-to-serial adapter in FreeBSD ? > > > > The one i have purchased is > > http://www.usbgear.com/computer_cable_details.cfm?sku=CHEAP-SERIAL&cats=199&catid=482%2C1303%2C199%2C461%2C106%2C1009%2C601 > > > > On the Gentoo box, 'lsusb' displays it as: > > Bus 002 Device 003: ID 067b:2303 > > Prolific Technology, Inc. PL2303 Serial Port > > Your adapter should be recognised by the uplcom driver. put uplcom_load="YES" in loader.conf > or load manually. Check dmesg for the device name. > Also, I think cu is "good enough" ;) > > Ruben > This is the error shown in 'dmesg' log ugen0.2: at usbus0 uplcom0: on usbus0 uplcom0: init failed! device_attach: uplcom0 attach returned 6 uplcom0: on usbus0 uplcom0: init failed! device_attach: uplcom0 attach returned 6 Scenarios: 1. kldstat -v | grep uplcom shows 303 uhub/uplcom 2. uplcom_load="YES" in /boot/loader.conf with a reboot In both the scenarios, 'dmesg' shows the same error. On re-attaching the device, the following error is shown. usb2_alloc_device:1574: set address 2 failed (USB_ERR_STALLED, ignored) usb2_alloc_device:1612: getting device descriptor at addr 2 failed, USB_ERR_STALLED! ugen0.2: <> at usbus0 (disconnected) uhub_reattach_port:417: could not allocate new device! The output from 'usbconfig dump_info' shows ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: at usbus4, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.1: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON The 'dmesg' extract of USB is as follows: usbus0: 12Mbps Full Speed USB v1.0 usbus1: 12Mbps Full Speed USB v1.0 usbus2: 12Mbps Full Speed USB v1.0 uhub0: on usbus3 ugen4.1: at usbus4 uhub1: on usbus4 ugen0.1: at usbus0 uhub2: on usbus0 ugen1.1: at usbus1 uhub3: on usbus1 ugen2.1: at usbus2 uhub4: on usbus2 Root mount waiting for: usbus4 usbus3 usbus2 usbus1 usbus0 uhub0: 2 ports with 2 removable, self powered uhub2: 2 ports with 2 removable, self powered uhub3: 2 ports with 2 removable, self powered uhub4: 2 ports with 2 removable, self powered Root mount waiting for: usbus4 Root mount waiting for: usbus4 Root mount waiting for: usbus4 uhub1: 8 ports with 8 removable, self powered Here is the system information. FreeBSD bsd 8.0-CURRENT-200905 FreeBSD 8.0-CURRENT-200905 #0: Mon May 4 23:25:09 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 Any suggestions on how i can get uplcom drive to work ? thanks Saifi.