From owner-freebsd-net@FreeBSD.ORG Wed Oct 4 05:55:17 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 847E116A40F for ; Wed, 4 Oct 2006 05:55:17 +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 EED8B43D55 for ; Wed, 4 Oct 2006 05:55:16 +0000 (GMT) (envelope-from freebsd-net@goldenpath.org) Received: from [192.168.254.148] [24.199.124.213] by mail.sbsnet.com with ESMTP (SMTPD-8.22) id AC400160; Wed, 04 Oct 2006 01:53:04 -0400 Message-ID: <45234CB5.1010500@goldenpath.org> Date: Wed, 04 Oct 2006 01:55:01 -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: multipart/mixed; boundary="------------060408060909060604090306" 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: Wed, 04 Oct 2006 05:55:17 -0000 This is a multi-part message in MIME format. --------------060408060909060604090306 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit 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? > Ok, his patch didn't "line up." The line numbers were off (Maybe he was fixing comments earlier or something) and he did some weird backward insertion thing. Like you said, very simple. So I did it by hand. Patch files attached. These patch files should work to allow any fresh install of FreeBSD 6.1 Release to use the sk network driver for the "revision B1" (Revision 2?) D-Link DGE-530T Gigabit Ethernet adapter. I say ~should~ because, I'm not 100% sure how to install it. What all do I need to rebuild? How should I install the binaries after they're recompiled? --------------060408060909060604090306 Content-Type: text/plain; name="if_sk.c.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="if_sk.c.patch" --- sk_orig/if_sk.c Wed Oct 4 04:16:56 2006 +++ sk_new/if_sk.c Wed Oct 4 04:37:03 2006 @@ -176,4 +176,9 @@ "D-Link DGE-530T Gigabit Ethernet" }, + { + VENDORID_DLINK, + DEVICEID_DLINK_DGE530T_REV2, + "D-Link DGE-530T Gigabit Ethernet" + }, { 0, 0, NULL } }; @@ -1742,4 +1747,8 @@ pname = sc->sk_vpd_prodname; break; + case DEVICEID_DLINK_DGE530T_REV2: + /* Stay with VPD PN. */ + pname = sc->sk_vpd_prodname; + break; case DEVICEID_SK_V2: /* YUKON VPD PN might bear no resemblance to reality. */ --------------060408060909060604090306 Content-Type: text/plain; name="if_skreg.h.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="if_skreg.h.patch" --- sk_orig/if_skreg.h Wed Oct 4 04:17:06 2006 +++ sk_new/if_skreg.h Wed Oct 4 04:48:02 2006 @@ -120,4 +120,9 @@ /* + * D-Link gigabit ethernet rev 2 device ID + */ +#define DEVICEID_DLINK_DGE530T_REV2 0x4b01 + +/* * GEnesis registers. The GEnesis chip has a 256-byte I/O window * but internally it has a 16K register space. This 16K space is --------------060408060909060604090306--