From owner-freebsd-questions@FreeBSD.ORG Tue Jan 17 07:15:31 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 CF9D616A41F for ; Tue, 17 Jan 2006 07:15:31 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from jengal.datamax.bg (jengal.datamax.bg [82.103.104.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15CA743D45 for ; Tue, 17 Jan 2006 07:15:30 +0000 (GMT) (envelope-from vd@datamax.bg) Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2]) by jengal.datamax.bg (Postfix) with SMTP id F3347B832 for ; Tue, 17 Jan 2006 09:15:29 +0200 (EET) Received: (nullmailer pid 86607 invoked by uid 1002); Tue, 17 Jan 2006 07:15:29 -0000 Date: Tue, 17 Jan 2006 09:15:29 +0200 From: Vasil Dimov To: freebsd-questions@freebsd.org Message-ID: <20060117071529.GA86528@qlovarnika.bg.datamax> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Delivered-To: vd@jengal.datamax.bg Received: from mail.datamax.bg (mail.datamax.bg [82.103.104.130]) by jengal.datamax.bg (Postfix) with ESMTP id C5381B857 for ; Tue, 3 Jan 2006 19:32:40 +0200 (EET) Received: (qmail 9123 invoked by uid 7797); 3 Jan 2006 17:32:36 -0000 Delivered-To: vd@datamax.bg Received: (qmail 9116 invoked by uid 7798); 3 Jan 2006 17:32:36 -0000 Received: from vd@datamax.bg by mail.datamax.bg by uid 7797 with qmail-scanner-1.22 (clamdscan: 0.81. spamassassin: 2.63. Clear:RC:0(82.103.104.21):SA:0(?/?):. Processed in 6.884334 secs); 03 Jan 2006 17:32:36 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on mail.datamax.bg X-Spam-Status: No, score=-3.1 required=5.0 tests=ALL_TRUSTED, AWL, BAYES_00, IMPRONONCABLE_2 autolearn=ham version=3.1.0 Received: from unknown (HELO jengal.datamax.bg) (82.103.104.21) by mail.datamax.bg with SMTP; 3 Jan 2006 17:32:29 -0000 Received: from qlovarnika.bg.datamax (qlovarnika.bg.datamax [192.168.10.2]) by jengal.datamax.bg (Postfix) with SMTP id 53584B832; Tue, 3 Jan 2006 19:32:33 +0200 (EET) Received: (nullmailer pid 945 invoked by uid 1002); Tue, 03 Jan 2006 17:32:33 -0000 X-OS: FreeBSD 6.0-STABLE User-Agent: Mutt/1.5.11 Subject: 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 Reply-To: vd@datamax.bg List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jan 2006 07:15:31 -0000 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 -- Vasil Dimov