From owner-freebsd-usb@FreeBSD.ORG Wed Dec 26 00:10:06 2007 Return-Path: Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D0D816A419 for ; Wed, 26 Dec 2007 00:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 5DE7513C442 for ; Wed, 26 Dec 2007 00:10:06 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id lBQ0A6am024150 for ; Wed, 26 Dec 2007 00:10:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id lBQ0A6TM024149; Wed, 26 Dec 2007 00:10:06 GMT (envelope-from gnats) Date: Wed, 26 Dec 2007 00:10:06 GMT Message-Id: <200712260010.lBQ0A6TM024149@freefall.freebsd.org> To: freebsd-usb@FreeBSD.org From: "Steve Franks" Cc: Subject: Re: usb/119002: add "ucp" driver support X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Steve Franks List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Dec 2007 00:10:06 -0000 The following reply was made to PR usb/119002; it has been noted by GNATS. From: "Steve Franks" To: bug-followup@FreeBSD.org, stevefranks@ieee.org Cc: Subject: Re: usb/119002: add "ucp" driver support Date: Tue, 25 Dec 2007 16:41:10 -0700 Sucess! I have built and proven that the ucp.ko driver works with all my various work and hobby projects using the Silicon Laboratories CP2101, CP2102, and CP2103 devices. There are alot of other off-the-shelf OEM devices using this chipset, which allow for different VID's & PID's (see the patch file) - I was obviously unable to test them as I only have the manufacturer's reference design style hardware, but there is no way to modify the operation of the chipset except for the VID & PID, so I assume they will work fine if FreeBSD recognizes the VID & PID - not a usb expert. Test was performed with Minicom talking to /dev/cuaU0; after kldload ucp, plugging in a CP210x yields "ucom0" in dmesg, and cuaU0 in /dev. I think my earlier problem was due to the patch mucking the system - if run from /usr/src/sys, it doesn't create the modules/ucp folder like it should, don't know why. Here's what I did that worked: 1. /usr/src/sys/dev/usb# patch < ~/ucp-0.01.diff 2. /usr/src/sys/dev/usb# mkdir /usr/src/sys/modules/ucp 3. /usr/src/sys/dev/usb# mv Makefile /usr/src/sys/modules/ucp 3a. Once you have proven it works, you might want to remove the -DEBUG line from this makefile (I did up front, never tested with debug symbols/code on my system) 4. manually edit /usr/src/sys/dev/usb/usbdevs to fix the patch collision and add all the new lines (specifically vendor SILABS 0x10c4 Silicon labs) 5. manually edit /usr/src/sys/modules/Makefile to add the line: ucp \ after the line ucom \ 6. build & install kernel Incidentally, since I cvsup'd to clean up my previous mess, I am now on 6.3-xxx, but I don't think that was a factor in making it work. Also, note that step 5 is not in the diff file at all for some reason, as opposed to step 4 which simply didn't patch in automatically. Best, Steve