[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: USB CDC-ACM device under FreeBSD and HPS stack
- To: "Hans Petter Selasky" <hselasky_(_at_)_c2i_(_dot_)_net>
- Subject: Re: USB CDC-ACM device under FreeBSD and HPS stack
- From: "Xiaofan Chen" <xiaofanc_(_at_)_gmail_(_dot_)_com>
- Date: Mon, 28 Apr 2008 21:35:04 +0800
- Cc: freebsd-usb_(_at_)_freebsd_(_dot_)_org
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=+4X1YtyRomCv7+sSsR5gPWvVltnlXfScbvDRpivSKOo=; b=tjyS5ng6CL8WHiuN9q1duy8iVUvRE1oIdMjjS8vBjJXKJXnME4ETJijo5BNg6Rn6ehsTtddtVpIS0yo07dmQZXCUVnFjIWsvmdSyl7X3BCl53s4Zx12fvzce6/rKeMYv9U60TFkykGTuMxQhylLLiDDlEocsYICQoF3Gj9pxSc0=
On Mon, Apr 28, 2008 at 4:52 PM, Hans Petter Selasky <hselasky_(_at_)_c2i_(_dot_)_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_(_at_)_freebsd7 ~]$ sudo kldload ucom
[mcuee_(_at_)_freebsd7 ~]$ sudo kldload umodem
[mcuee_(_at_)_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
_______________________________________________
freebsd-usb_(_at_)_freebsd_(_dot_)_org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-usb
To unsubscribe, send any mail to "freebsd-usb-unsubscribe_(_at_)_freebsd_(_dot_)_org"
Visit your host, monkey.org