From owner-freebsd-net@FreeBSD.ORG Tue Sep 4 01:16:00 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22BA316A417 for ; Tue, 4 Sep 2007 01:16:00 +0000 (UTC) (envelope-from bsd@lordcow.org) Received: from srvbsdsmt002.uct.ac.za (srvbsdsmt002.uct.ac.za [137.158.153.104]) by mx1.freebsd.org (Postfix) with ESMTP id BD0D813C46A for ; Tue, 4 Sep 2007 01:15:59 +0000 (UTC) (envelope-from bsd@lordcow.org) Received: from mail.uct.ac.za ([137.158.153.100]) by srvbsdsmt002.uct.ac.za with esmtp (Exim 4.63 (FreeBSD)) (envelope-from ) id 1ISMcJ-00086t-RD for freebsd-net@freebsd.org; Tue, 04 Sep 2007 02:50:07 +0200 Received: from lhc.phy.uct.ac.za ([137.158.92.134]) by mail.uct.ac.za with esmtp (Exim 4.44 (FreeBSD)) id 1ISMcI-000CVS-3o for freebsd-net@freebsd.org; Tue, 04 Sep 2007 02:50:06 +0200 Received: from lordcow by lhc.phy.uct.ac.za with local (Exim 4.67) (envelope-from ) id 1ISMcM-000670-DG for freebsd-net@freebsd.org; Tue, 04 Sep 2007 02:50:10 +0200 Date: Tue, 4 Sep 2007 02:50:10 +0200 From: gareth To: freebsd-net@freebsd.org Message-ID: <20070904005010.GA23347@lordcow.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.16 (2007-06-11) Subject: Re: re0 - D-Link DGE-528T not recognised 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, 04 Sep 2007 01:16:00 -0000 hey guys, sorry about the break in thread, i've just joined the mailing list and am copy/pasting from pipermail on the web. i have the same problem as MaXX in his mail dated 'Sun May 6 11:53:56 UTC 2007' (http://lists.freebsd.org/pipermail/freebsd-net/2007-May/014117.html). Denis replied with a patch on 'Sat May 19 10:08:02 UTC 2007' (http://lists.freebsd.org/pipermail/freebsd-net/2007-May/014195.html) which read as: --- /usr/src/sys/dev/re/if_re.c Wed Jan 24 03:57:50 2007 +++ /usr/src/sys/dev/re/if_re.c.new Sat May 19 04:08:32 2007 @@ -168,6 +168,8 @@ static struct rl_type re_devs[] = { { DLINK_VENDORID, DLINK_DEVICEID_528T, RL_HWREV_8169S, "D-Link DGE-528(T) Gigabit Ethernet Adapter" }, + { DLINK_VENDORID, DLINK_DEVICEID_528T, RL_HWREV_8169_8110SB, + "D-Link DGE-528(T) Rev.B1 Gigabit Ethernet Adapter" }, { RT_VENDORID, RT_DEVICEID_8139, RL_HWREV_8139CPLUS, "RealTek 8139C+ 10/100BaseTX" }, { RT_VENDORID, RT_DEVICEID_8101E, RL_HWREV_8101E, i did this but on compiling the kernel it stopped with error in if_re.c, line 168: 'RL_HWREV_8169_8110SB' undeclared here (not in a function). i found the corresponding declaration in /usr/src/sys/pci/if_rlreg.h and did: #define RL_HWREV_8169SB 0x10000000 + #define RL_HWREV_8169_8110SB 0x10000000 and looking around in the /usr/src/sys/pci/if_rl.c file i did this just in case: - hwrev == RL_HWREV_8110S) { + hwrev == RL_HWREV_8110S || + hwrev == RL_HWREV_8169_8110SB) { the kernel then recompiles without error and the network card comes up and i can join a network. i have no idea what i was doing though, and would like to know if i've done the right thing, eg. setting the #define to 0x10000000 and not 0x04000000 etc.? ps. i notice nothing else has been said on http://www.freebsd.org/cgi/query-pr.cgi?pr=112774