From owner-freebsd-net@FreeBSD.ORG Tue Oct 3 16:12:03 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DBF1F16A61D for ; Tue, 3 Oct 2006 16:12:03 +0000 (UTC) (envelope-from freebsd-net@goldenpath.org) Received: from mail.sbsnet.com (mail.sbsnet.com [63.147.233.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1595443D55 for ; Tue, 3 Oct 2006 16:12:01 +0000 (GMT) (envelope-from freebsd-net@goldenpath.org) Received: from [10.0.0.59] [68.236.191.215] by mail.sbsnet.com with ESMTP (SMTPD-8.22) id AB4202BC; Tue, 03 Oct 2006 12:09:38 -0400 Message-ID: <45228BB6.9020406@goldenpath.org> Date: Tue, 03 Oct 2006 12:11:34 -0400 From: Tim Allender User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: freebsd-net@freebsd.org References: <4520695C.9060302@goldenpath.org> <20061002125254.GC25883@codelabs.ru> <4522655B.90507@goldenpath.org> <20061003134415.GP1491@codelabs.ru> <45227AD4.8060506@goldenpath.org> <20061003152034.GQ1491@codelabs.ru> In-Reply-To: <20061003152034.GQ1491@codelabs.ru> Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: D-Link DGE-530T X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2006 16:12:03 -0000 Eygene Ryabinkin wrote: >> I'm eyeing these lines from dmesg suspiciously: >> pci0: at device 8.0 (no driver attached) >> pci0: at device 9.0 (no driver attached) >> > The last one is your NIC. > > >> I'm posting the entire results you requested below. >> > <...cleared all but relevant lines...> > >> # uname -r >> 6.1-RELEASE >> >> # pciconf -lv >> none1@pci0:9:0: class=0x020000 card=0x4b011186 chip=0x4b011186 rev=0x11 >> hdr=0x00 >> vendor = 'D-Link System Inc' >> class = network >> subclass = ethernet >> > This is the so-called revision-B1 chip, it is newer than the A1 that > is included to the 6.1-RELEASE. > > So you have two routes: > 1) upgrade to the RELENG-6 (currently it is 6.2-PRERELEASE), > or > 2) apply the patch given in the PR99903, > http://www.freebsd.org/cgi/query-pr.cgi?pr=99903 > > The latter patch is very simple, so probably it is the simplest thing > to do: it just adds the new PCI-ID for the chip, chip description and > 4 extra lines of code. Do you need directions how to apply the patch > or how to upgrade to RELENG-6? > I've done that sort of upgrade a few times. I don't think the whole system upgrade would be suitable, though, when what I really want to accomplish is getting these NICs to work on pfSense. It might turn out to be a good upgrade for pfSense. Or, it might start breaking things. Or worse, ~look~ like it's good with breakage laying-in-wait. I'm probably better off doing the patch. Though, honestly, I've done very little actual 1 on 1 patching. If I remember right its: # patch src-file < patch-file (Maybe this'll be a good chance for me to sneak a peak at some real NIC driver code to get an idea how it's done.) I'll back up the original, read the man page and give it a shot. After patching it, though, can I just compile that kernel module again? # cc if_sk.c (Would that be right?) Or do I need to rebuild the whole kernel? And, then, building it on one machine, would "transplanting" the newly compiled driver to the pfSense router be as simple as coping the new .ko file into place (assuming I can just do the module) Or, what if I'd need to transplant the whole kernel? Eygene, I greatly appreciate your help with this. I find this all incredibly fascinating. If I can make this leap into competence of patching fbsd source files, I'll be that much closer to being able to actually contribute something worth while. I'm about 1/4 of the way through McKusick's "Design and Implementation" and sometimes I just grit my teeth and keep plowing through it when it starts getting crazy. Little by little, it's all starting to make a little more sense each day =D