From owner-freebsd-questions@FreeBSD.ORG Sun Feb 8 12:10:51 2009 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 D16E41065670 for ; Sun, 8 Feb 2009 12:10:51 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (brucec-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:c09::2]) by mx1.freebsd.org (Postfix) with ESMTP id 8E2C88FC08 for ; Sun, 8 Feb 2009 12:10:51 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id EBC7C19014; Sun, 8 Feb 2009 07:10:49 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on muon X-Spam-Level: X-Spam-Status: No, score=-2.1 required=8.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from gluon (tau.demon.co.uk [80.177.26.208]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA; Sun, 8 Feb 2009 07:10:49 -0500 (EST) Date: Sun, 8 Feb 2009 12:10:44 +0000 From: Bruce Cran To: Glen Barber Message-ID: <20090208121044.5e3be1a3@gluon> In-Reply-To: <4ad871310902080120w16235c26wcf8d214291faf79a@mail.gmail.com> References: <4ad871310902071013j63815054u76c763ed63564103@mail.gmail.com> <4ad871310902080120w16235c26wcf8d214291faf79a@mail.gmail.com> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.14.4; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Amer Alhabsi , freebsd-questions@freebsd.org Subject: Re: How to compile a network driver given source code 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: Sun, 08 Feb 2009 12:10:52 -0000 On Sun, 8 Feb 2009 04:20:48 -0500 Glen Barber wrote: > On Sat, Feb 7, 2009 at 1:13 PM, Glen Barber > wrote: > > On Sat, Feb 7, 2009 at 12:36 PM, Amer Alhabsi > > 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/ which is /boot/kernel by default. -- Bruce Cran