From owner-freebsd-usb@FreeBSD.ORG Mon Apr 28 13:35:04 2008 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D5D0C106564A for ; Mon, 28 Apr 2008 13:35:04 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id AFAB08FC23 for ; Mon, 28 Apr 2008 13:35:04 +0000 (UTC) (envelope-from xiaofanc@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so7348801waf.3 for ; Mon, 28 Apr 2008 06:35:04 -0700 (PDT) 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= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=goaQLXxvqZa+nMIrSj284G1mcbVEcnktPYIrZFkBBLuy+QcNq/OjiFgHq5/IdJ7TAGjR6mOvR8eO0fj9cob+r6W2a5rkoAu5P9Ykh0mC1A0IGGSeROVLIz5KkSgY5uCClM2HrRdqr73223AqALFJUwRcvps4dhBghmfbcUuGjF0= Received: by 10.114.148.2 with SMTP id v2mr587786wad.173.1209389704249; Mon, 28 Apr 2008 06:35:04 -0700 (PDT) Received: by 10.114.39.14 with HTTP; Mon, 28 Apr 2008 06:35:04 -0700 (PDT) Message-ID: Date: Mon, 28 Apr 2008 21:35:04 +0800 From: "Xiaofan Chen" To: "Hans Petter Selasky" In-Reply-To: <200804281052.35658.hselasky@c2i.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <18451.35663.21335.553446@gromit.timing.com> <200804281052.35658.hselasky@c2i.net> Cc: freebsd-usb@freebsd.org Subject: Re: USB CDC-ACM device under FreeBSD and HPS stack X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Apr 2008 13:35:04 -0000 On Mon, Apr 28, 2008 at 4:52 PM, Hans Petter Selasky 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: 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