Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2007 23:11:42 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Steve Franks <stevefranks@ieee.org>
Cc:        User Questions <freebsd-questions@freebsd.org>
Subject:   Re: how to compile and install a new driver
Message-ID:  <20071127221142.GA64385@slackbox.xs4all.nl>
In-Reply-To: <539c60b90711271248o6eb0b9fw757e40fbcdfdb3c2@mail.gmail.com>
References:  <539c60b90711271248o6eb0b9fw757e40fbcdfdb3c2@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--C7zPtVaVf+AK4Oqc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Nov 27, 2007 at 01:48:28PM -0700, Steve Franks wrote:
> Hi,
>=20
> I found this thread
> http://lists.freebsd.org/pipermail/freebsd-stable/2006-August/027445.html
> to a driver I need for my system.
>=20
> (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?

First, use gunzip to extract it. This will leave a file ucp-0.01.diff.
Next, su to root and cd to /usr/src/sys.
To apply the patch, do 'patch </location/of/ucp-0.01.diff'

Note that the patch doesn't apply cleanly (/usr/src/sys/dev/usb/usbdevs)
on 7.0-BETA2. If that's also the case on the version you're using,
you'll have to look at /usr/src/sys/dev/usb/usbdevs.orig and
/usr/src/sys/dev/usb/usbdevs.rej to fix it manually.

Next, build and install a kernel according to the handbook. ('make
kernel' in /usr/src)

> (2) Assuming I can get it to compile, which I've never done, what do I
> do with the object/driver file?

The 'make kernel' command will install the module automagically.
On the next boot, you should be able to load the ucp driver module with
kldload(8).=20
=20
> 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.

If it works, submit a PR.

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--C7zPtVaVf+AK4Oqc
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHTJYeEnfvsMMhpyURAkA+AJ0TGTBTai/3BILOc2uzG8+9V7WL7QCaAjEd
6ZRSthNN6IrFsKVbo1L8TzI=
=wWbf
-----END PGP SIGNATURE-----

--C7zPtVaVf+AK4Oqc--



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