From owner-freebsd-questions@FreeBSD.ORG Tue Nov 27 22:33:57 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2E7EF16A417 for ; Tue, 27 Nov 2007 22:33:57 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id D307C13C467 for ; Tue, 27 Nov 2007 22:33:56 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.1/8.14.1) with ESMTP id lARMXtBP027266; Tue, 27 Nov 2007 15:33:55 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.1/8.14.1/Submit) with ESMTP id lARMXt5O027263; Tue, 27 Nov 2007 15:33:55 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 27 Nov 2007 15:33:55 -0700 (MST) From: Warren Block To: Steve Franks In-Reply-To: <539c60b90711271248o6eb0b9fw757e40fbcdfdb3c2@mail.gmail.com> Message-ID: <20071127151259.H27150@wonkity.com> References: <539c60b90711271248o6eb0b9fw757e40fbcdfdb3c2@mail.gmail.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (wonkity.com [127.0.0.1]); Tue, 27 Nov 2007 15:33:55 -0700 (MST) Cc: User Questions Subject: Re: how to compile and install a new driver X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Nov 2007 22:33:57 -0000 On Tue, 27 Nov 2007, Steve Franks wrote: > I found this thread > http://lists.freebsd.org/pipermail/freebsd-stable/2006-August/027445.html > to a driver I need for my system. > > (1) The file extension > (http://www.dons.net.au/~darius/ucp-0.01.diff.gz) is .diff, not .c, so > what exactly do I do with it to compile it? It's a file produced by diff(1), which shows the differences between files. Normally, the difference is between the old files and what someone has changed or added. Also called a patch file, since you use patch(1) to apply it. patch(1) goes through the diff file and makes all the changes shown. In this case, the diff file has changes to several files. Looks like it applies to /usr/src/sys. After untarring the file, and as root: # cd /usr/src/sys # patch < ucp-0.01.diff *If* the patch applies successfully, then you can compile. Easiest would probably be to just rebuild the kernel. Slow, but you know it'll get everything. > (2) Assuming I can get it to compile, which I've never done, what do I > do with the object/driver file? Probably like other ucom(4) devices: kldload ucp and then access the serial port through /dev/cuaU0. > This driver is long overdue, the part has been in usb devices for > several years, and support is in OpenBSD and Linux already (so I'm > told by google). I'll happily document the process if someone holds > my hand. That is a good case for a PR. Particularly when you've got a patch, at least as a starting point. -Warren Block * Rapid City, South Dakota USA