From owner-freebsd-net@FreeBSD.ORG Wed Oct 4 05:57:50 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 39A3216A407 for ; Wed, 4 Oct 2006 05:57:50 +0000 (UTC) (envelope-from rea@codelabs.ru) Received: from pobox.codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8178343D53 for ; Wed, 4 Oct 2006 05:57:49 +0000 (GMT) (envelope-from rea@codelabs.ru) DomainKey-Signature: a=rsa-sha1; q=dns; c=simple; s=one; d=codelabs.ru; h=Received:Date:From:To:Cc:Message-ID:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:Sender:X-Spam-Status:Subject; b=iKkKaclxG3RCujJTZBkn7FcPKY71DpYd0Ehw5svoTjh86ZwQyEjPnjQ0H2VOj9HeKEGf/1OG1qsApjNSeFaLgzo0omsYc9XiuzSH8tqelHNmCTM3Ke8nDZ+/A4fpVHtf07U2lZQ8jaMR8Uuv9yQpyr/vsjeVH/c1t8owNM1xOWc=; Received: from codelabs.ru (pobox.codelabs.ru [144.206.177.45]) by pobox.codelabs.ru with esmtpsa (TLSv1:AES256-SHA:256) id 1GUzlK-000MZD-HM (envelope-from ); Wed, 04 Oct 2006 09:57:47 +0400 Date: Wed, 4 Oct 2006 09:57:41 +0400 From: Eygene Ryabinkin To: Tim Allender Message-ID: <20061004055741.GT1491@codelabs.ru> 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> <45228BB6.9020406@goldenpath.org> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <45228BB6.9020406@goldenpath.org> Sender: rea@codelabs.ru X-Spam-Status: No, score=-3.1 required=4.0 tests=ALL_TRUSTED,AWL,BAYES_00 Cc: freebsd-net@freebsd.org 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:57:50 -0000 Tim, good day! > 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.) No, you just should do ----- # cd /sys/dev/sk # patch < patch-file ----- The patch-file that will do the job is attached to this message. > 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? > If you're using the GENERIC kernel then the device is built-in, so you should recompile the whole kernel. It is also easy: ----- # cd /usr/src # make kernel KERNCONF=GENERIC ----- But if you want module, you can get it through ----- # cd /sys/modules/sk # make ----- This should give you if_sk.ko. You can install it to /boot/kernel by doing 'make install' or can copy the file anywhere you want. >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? Newer played with pfSense or m0n0wall, so can not say for sure, sorry. If you will dig something out, drop me a message. > Eygene, I greatly appreciate your help with this. You're welcome ;)) -- Eygene