From owner-freebsd-questions@FreeBSD.ORG Sat Feb 7 18:13:33 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 4D0681065675 for ; Sat, 7 Feb 2009 18:13:33 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.188]) by mx1.freebsd.org (Postfix) with ESMTP id D0EF58FC21 for ; Sat, 7 Feb 2009 18:13:32 +0000 (UTC) (envelope-from glen.j.barber@gmail.com) Received: by fk-out-0910.google.com with SMTP id f40so1131432fka.11 for ; Sat, 07 Feb 2009 10:13:31 -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=LNmx+TFgHFtnGizA+qC8S1igpt5RjHHtfW7aXUbJFMU=; b=NgLqylRBYdpI4NN9E/VM0J5QViC0mblWEkTA+15UIVI4oOcG4PY+Ed20g+noPqxnHp sI9RWG/7sSiMI9BxotKtYgYvKFeo9NVnpxJJRYVkTqfdWWVO6SFP12J/dWmG+VooeB55 6NHdiLd9TNSKc6axFPNyQDWrozcTyMofTp/cY= 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=l35vfEz/SlUGiMeBkVDO5LuLFgFf3vCV/NlTuBhrPBhApaiRhGDC6VsEyL+wz7b6YX DFm+04ZR8HKifr2V79egeaTqxeMc/YKUAAa+SZ0xhI1rRd2tayeAXLoNOpsQrRcIOv+X 2wfxZRn/8ULfrO8Cwv9YgUhYWzaa4eZh3VOhs= MIME-Version: 1.0 Received: by 10.223.108.75 with SMTP id e11mr2064286fap.97.1234030411666; Sat, 07 Feb 2009 10:13:31 -0800 (PST) In-Reply-To: References: Date: Sat, 7 Feb 2009 13:13:31 -0500 Message-ID: <4ad871310902071013j63815054u76c763ed63564103@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: Sat, 07 Feb 2009 18:13:33 -0000 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. -- Glen Barber