Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2008 21:35:04 +0800
From:      "Xiaofan Chen" <xiaofanc@gmail.com>
To:        "Hans Petter Selasky" <hselasky@c2i.net>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: USB CDC-ACM device under FreeBSD and HPS stack
Message-ID:  <a276da400804280635j74f780f2x84a47bda6ea0fe4a@mail.gmail.com>
In-Reply-To: <200804281052.35658.hselasky@c2i.net>
References:  <a276da400804260051h4f5eb13ew92a13cd91457c703@mail.gmail.com> <a276da400804260116g2f3249f5q9e8c2f506efc387f@mail.gmail.com> <18451.35663.21335.553446@gromit.timing.com> <200804281052.35658.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Apr 28, 2008 at 4:52 PM, Hans Petter Selasky <hselasky@c2i.net> wrote:
>
>  I found it:
>
>  Edit /sys/dev/usb/ucycom.c and change:
>
>  --- src/sys/dev/usb/ucycom.c    (revision 711)
>  +++ src/sys/dev/usb/ucycom.c    (working copy)
>  @@ -167,8 +167,8 @@
>   };
>
>   DRIVER_MODULE(ucycom, uhub, ucycom_driver, ucycom_devclass, usbd_driver_load,
>  0);
>  -MODULE_VERSION(ucycom, 1);
>   MODULE_DEPEND(ucycom, usb, 1, 1, 1);
>  +MODULE_DEPEND(ucycom, ucom, UCOM_MINVER, UCOM_PREFVER, UCOM_MAXVER);
>
>  Then recompile the ucycom module.

Thanks, this works for ucycom.

I also just learned how to build the module only
thanks to the help from a list member:
cd /sys/modules/ucycom (or ugen); make; make install.

But as I said, ucycom is actually not what I wanted. I'd like to
use Silabs CP210x (which is only supported by 8-Current)
and generic cdc-acm.

For example, even if I load ucom and umodem, the generic
CDC device (LPC-P2148 example from http://jcwren.com/arm/)
still show up as ugen device.

[mcuee@freebsd7 ~]$ sudo kldload ucom
[mcuee@freebsd7 ~]$ sudo kldload umodem
[mcuee@freebsd7 ~]$ dmesg
ugen2: <LPCUSB USBSerial, class 2/0, rev 2.00/1.00, addr 3> on usb0

The same steps seem to work under NetBSD 4.0. The Silicon Labs
CP2101 device I have seems to work under NetBSD 4.0 as well.
But PICkit 2 and PICDEM FS USB demo work under FreeBSD 7.0-Release
and HPS USB stack Revision 711 but not NetBSD 4.0 (libusb related
problem). So I might want to try out the HPS stack with NetBSD 4.0
but I am too new to NetBSD.

Xiaofan



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a276da400804280635j74f780f2x84a47bda6ea0fe4a>