How to compile a network driver given source code

Bruce Cran bruce at cran.org.uk
Sun Feb 8 04:10:52 PST 2009


On Sun, 8 Feb 2009 04:20:48 -0500
Glen Barber <glen.j.barber at gmail.com> wrote:

> On Sat, Feb 7, 2009 at 1:13 PM, Glen Barber <glen.j.barber at gmail.com>
> wrote:
> > On Sat, Feb 7, 2009 at 12:36 PM, Amer Alhabsi
> > <amer.alhabsi at gmail.com> wrote:
> >> Hi,
> >>
> >> I have Benq Joybook R43 notebook. It has network interface based
> >> on SiS 191. However, I can't configure it as it does not show up
> >> in ifconfig nor in sysinstall/configure/networking/interfaces.
> >> Dmesg says: No Driver Attached.
> >>
> >> After some search I found that someone has written a driver but it
> >> hasn't been put int the official FreeBSD release. I want to try my
> >> luck with the driver. My question is where to place the source code
> >> files? and how to compile it (I assume it can be part of a kernel
> >> rebuild if placed in the right directory)
> >>
> >> The source code for the driver consists of the 3 files:
> >> if_sis19x.c, if_sis19xreg.h and Makefile.
> >>
> >
> > Edit the Makefile to match the standard installation directories
> > that FreeBSD uses (/usr/local), and use `make'.  Depending on what
> > the drivers needs are, you may have to edit more.
> >
> 
> Erm... I must've had a synaptic misfire.  Not /usr/local,
> but /boot/modules.

/boot/modules doesn't seem to be used any more: modules are put
into /boot/<kerneldir> which is /boot/kernel by default.

-- 
Bruce Cran


More information about the freebsd-questions mailing list