Date: Wed, 4 Oct 2006 09:57:41 +0400 From: Eygene Ryabinkin <rea-fbsd@codelabs.ru> To: Tim Allender <freebsd-net@goldenpath.org> Cc: freebsd-net@freebsd.org Subject: Re: D-Link DGE-530T Message-ID: <20061004055741.GT1491@codelabs.ru> In-Reply-To: <45228BB6.9020406@goldenpath.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> <45228BB6.9020406@goldenpath.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061004055741.GT1491>