From owner-freebsd-questions@FreeBSD.ORG Sun Feb 8 09:20:50 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 8A058106564A for ; Sun, 8 Feb 2009 09:20:50 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from mail-bw0-f163.google.com (mail-bw0-f163.google.com [209.85.218.163]) by mx1.freebsd.org (Postfix) with ESMTP id DAFD78FC12 for ; Sun, 8 Feb 2009 09:20:49 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by bwz7 with SMTP id 7so530029bwz.19 for ; Sun, 08 Feb 2009 01:20:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=hizVDSxRV/OFD8n9hMB4f/K9JJIhPx9n64L3OM7jaa4=; b=Rhprpxl/aj4zTOIrs0qe1UBGOLnCzhf5O144gjhRlx4cPc/zCGQimQ/mgcu8ysWFm+ Hha/P/HTXAMHQKzoXouQ5MeLc+tbQcJBmv5RYzs389mdeU14W1Qhgi5Takm9DWZvQmLP REY/VJRNwDZBqWwrirpdhm6+Gw53+s6fbibIg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=OmvpCZSJW24Azzjn2fF9swBKRF/k3PA3sRbEjruECWYQor+WKSmvMdJj+qqgOtGtbf exCyfPMhtxWByrNzAxn1Xk0OsbJyep7RiU3F43tiYXCDDFIVAl5hEL6YAptwCjL9OqEv 2SuFv0kgGVN3UBJFA35z7lG16MWZ5+io+OZxw= MIME-Version: 1.0 Received: by 10.223.106.200 with SMTP id y8mr1863978fao.24.1234084848794; Sun, 08 Feb 2009 01:20:48 -0800 (PST) In-Reply-To: <4ad871310902071013j63815054u76c763ed63564103@mail.gmail.com> References: <4ad871310902071013j63815054u76c763ed63564103@mail.gmail.com> Date: Sun, 8 Feb 2009 04:20:48 -0500 Message-ID: <4ad871310902080120w16235c26wcf8d214291faf79a@mail.gmail.com> From: Glen Barber To: Amer Alhabsi Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: 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 09:20:50 -0000 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. -- Glen Barber