From owner-freebsd-questions@FreeBSD.ORG Tue Jan 17 15:07:00 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 069AC16A41F for ; Tue, 17 Jan 2006 15:07:00 +0000 (GMT) (envelope-from micahjon@ywave.com) Received: from relay3.av-mx.com (relay3.av-mx.com [137.118.16.123]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7AAED43D7F for ; Tue, 17 Jan 2006 15:06:59 +0000 (GMT) (envelope-from micahjon@ywave.com) X-Virus-Scan-Time: 0 Received: from [137.118.16.60] (HELO mx2.av-mx.com) by relay3.av-mx.com (CommuniGate Pro SMTP 4.2.10) with SMTP id 147383389 for freebsd-questions@freebsd.org; Tue, 17 Jan 2006 10:06:58 -0500 Received: (qmail 3082 invoked from network); 17 Jan 2006 15:06:57 -0000 Received: from dsl-12-178-99-200.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@12.178.99.200) by 0 with SMTP; 17 Jan 2006 15:06:57 -0000 X-CLIENT-IP: 12.178.99.200 X-CLIENT-HOST: dsl-12-178-99-200.ywave.com Message-ID: <43CD0810.40200@ywave.com> Date: Tue, 17 Jan 2006 07:06:56 -0800 From: Micah User-Agent: Thunderbird 1.5 (X11/20060113) MIME-Version: 1.0 To: vd@datamax.bg References: <20060117071529.GA86528@qlovarnika.bg.datamax> In-Reply-To: <20060117071529.GA86528@qlovarnika.bg.datamax> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: how to force ucom driver to create /dev/cuaU? for some device? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2006 15:07:00 -0000 Vasil Dimov wrote: > Hi all, > > I have a device (GPS) that connects to the PC via the USB interface > and I have a software (comms/garmin-utils) that wishes to talk to the > device. > > The problem is that the software expects a serial port device, not a USB > one. > > The question is how can I make the ucom(4) create a cuaU? entry for my > device? > > When I plug the device I get: > > ehci_pcd: change=0x20 > uhub_explore: status change hub=1 port=5 > ehci after reset, status=0x00001801 > ehci_disown: index=5 lowspeed=0 > uhub_explore: status change hub=1 port=1 > ehci_pcd: change=0x20 > uhub_explore: status change hub=1 port=5 > usbd_new_device bus=0xffffffff80ad7000 port=1 depth=1 speed=2 > usbd_new_device: adding unit addr=2, rev=110, class=255, subclass=255, protocol=255, maxpacket=8, len=18, speed=2 > usbd_new_device: new dev (addr 2), dev=0xffffff0000b06b00, parent=0xffffff0000aff400 > usbd_probe_and_attach: trying device specific drivers > usbd_probe_and_attach: no device specific driver found > usbd_probe_and_attach: looping over 1 configurations > usbd_set_config_index: status=0x0001, error=NORMAL_COMPLETION > usbd_set_config_index: (addr 1) cno=2 attr=0xc0, selfpowered=1, power=0 > usbd_set_config_index: set config 1 > usbd_probe_and_attach: no interface drivers found > ugen0: vendor 0x091e product 0x0003, rev 1.10/0.01, addr 2 > usbd_set_config_index: free old config > usbd_set_config_index: status=0x0001, error=NORMAL_COMPLETION > usbd_set_config_index: (addr 1) cno=2 attr=0xc0, selfpowered=1, power=0 > usbd_set_config_index: set config 1 > > This (ofcourse) does not work: > # gardump -p /dev/ugen0 > gardump: TIOCGETA: Invalid argument > > ucom is loaded: > # kldstat -v |grep ucom > 85 ucom > I don't suppose you tried symlinking ucom to ugen? If that works it's just a matter of setting up devfs.rules. HTH Micah