usb serial confuddlement
Alexandre "Sunny" Kovalenko
Alex.Kovalenko at verizon.net
Mon Oct 4 17:58:27 PDT 2004
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.
More information about the freebsd-current
mailing list