From owner-freebsd-current@FreeBSD.ORG Tue Oct 5 00:58:27 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5DCC016A4CE for ; Tue, 5 Oct 2004 00:58:27 +0000 (GMT) Received: from out001.verizon.net (out001pub.verizon.net [206.46.170.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id E765243D46 for ; Tue, 5 Oct 2004 00:58:26 +0000 (GMT) (envelope-from Alex.Kovalenko@verizon.net) Received: from [10.0.3.231] ([141.153.167.39]) by out001.verizon.net (InterMail vM.5.01.06.06 201-253-122-130-106-20030910) with ESMTP id <20041005005826.DBQN24594.out001.verizon.net@[10.0.3.231]>; Mon, 4 Oct 2004 19:58:26 -0500 From: "Alexandre \"Sunny\" Kovalenko" To: Sean McNeil In-Reply-To: <1096869926.6566.1.camel@server> References: <16736.17211.132754.898091@ran.psg.com> <16736.57638.524126.37243@roam.psg.com> <1096869926.6566.1.camel@server> Content-Type: text/plain Message-Id: <1096937887.50081.22.camel@RabbitsDen> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Mon, 04 Oct 2004 20:58:13 -0400 Content-Transfer-Encoding: 7bit X-Authentication-Info: Submitted using SMTP AUTH at out001.verizon.net from [141.153.167.39] at Mon, 4 Oct 2004 19:58:25 -0500 cc: Randy Bush cc: FreeBSD Current Subject: Re: usb serial confuddlement X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Tue, 05 Oct 2004 00:58:27 -0000 On Mon, 2004-10-04 at 02:05, Sean McNeil wrote: > On Sun, 2004-10-03 at 22:35, Randy Bush wrote: > > > You need 'ubsa' module loaded or device 'ubsa' in you kernel > > > configuration. > > > > # kldstat > > Id Refs Address Size Name > > 1 18 0xc0400000 3a42f4 kernel > > 2 1 0xc07a5000 6eb8 linprocfs.ko > > 3 2 0xc07ac000 1fa44 linux.ko > > 4 1 0xc07cc000 bc08 ipfw.ko > > 5 1 0xc07d8000 5f84 snd_ich.ko > > 6 2 0xc07de000 204fc sound.ko > > 7 1 0xc07ff000 5418 acpi_video.ko > > 8 15 0xc0805000 5d6f4 acpi.ko > > 9 1 0xc0863000 38e8 ubsa.ko > > 10 2 0xc0867000 36c8 ucom.ko > > > > > > ugen0: Belkin USB PDA Adapter Belkin Components, rev 1.10/1.02, addr 2 > > > > # ls /dev/u* > > /dev/ugen0 /dev/ugen0.2 /dev/usb /dev/usb1 > > /dev/ugen0.1 /dev/urandom@ /dev/usb0 /dev/usb2 > > > > > > so, still no device, and, of course, a crash some time after > > usb device removal > > Don't you also need to load uplcom.ko? I do for my serial-usb > converter. I had to load it in the boot loader to have it actually > work, though. You will also find that the device name has changed. It > is no longer ucom0 but ttyU0. > > Cheers, > Sean > uplcom is for Prolific serial dongle (at least theoretically). It does not necessary mean that it is a wrong driver for the piece of hardware in question, though ;) First, proof that ubsa does indeed support some Belkin USB-to-serial hardware. sunny:RabbitsDen>dmesg | grep ucom ucom0: Belkin Components USB-232 Adapter, rev 1.10/2.07, addr 5 ucom1: Prolific Technology PL2303 Serial adapter (ATEN/IOGEAR UC232A), rev 1.10/2.02, addr 3 Next step would be to do usbdevs -v and see vendor/product values. RabbitsDen# usbdevs -v | grep Belkin port 5 addr 5: full speed, power 100 mA, config 1, USB-232 Adapter(0x1203), Belkin Components(0x050d), rev 2.07 Vendors and products are listed in /usr/src/sys/dev/usb/usbdevs. If yours is not there, you can add it, add pair to the ubsa_products array in /usr/src/sys/dev/ubsa.c, recompile the ubsa module and keep your fingers crossed. If it works, I am sure somebody would appreciate the patch. One thing, I have noticed about my USB devices, is that driver needs to be loaded *before* device is plugged in. And, as Sean rightfully pointed out USB serial devices are represented by /dev/ttyUnn and /dev/cuaUnn pair in -current. I do not run 5.3, so I could not speak to that. HTH. --- Alexandre "Sunny" Kovalenko.