View previous topic :: View next topic |
Author |
Message |
pappy_mcfae Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/2063135933479eedb93987b.jpg)
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Wed Jul 16, 2008 8:21 pm Post subject: Creating an ndiswrapper patch for kernels > 2.6.22.19 [mo |
|
|
EDIT: this post has been ostensibly rendered moot as the 2.6.26 kernel appears to have ndiswrapper support very close to the support in the .22 kernel family. I leave the rest here for reference. /EDIT
For anyone who uses ndiswrapper, you know that support for this supposedly this-side-of-hell-hack has seen a rather rocky road. Full support ended with the advent of the .23 kernel family. All support was removed in the .24 family. Spotty support was brought back for the .25 family.
What I want to do is to make a patch that returns full ndiswrapper support to the kernel, no matter what version I am using. If anyone knows which file (or files) I'd have to work with in order to get this done, I'd be most appreciative if you would share that information, and perhaps a kick-start as to how to get it done.
For those unfamiliar with the comings and goings of ndiswrapper in Kernel-dev-land, read this article, and this one as well.
Thanks in advance.
Blessed be!
Pappy _________________ This space left intentionally blank, except for these ASCII symbols.
Last edited by pappy_mcfae on Wed Jul 23, 2008 3:15 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
NeddySeagoon Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/3946266373f47d606a2db3.jpg)
Joined: 05 Jul 2003 Posts: 54850 Location: 56N 3W
|
Posted: Wed Jul 16, 2008 11:08 pm Post subject: |
|
|
pappy_mcfae,
Your first link contains the patch you need to get started. Thats the Code: | --- a/kernel/module.c
+++ b/kernel/module.c
@@ -1933,8 +1933,15 @@ static struct module *load_module(void __user *umod,
/* Set up license info based on the info section */
set_license(mod, get_modinfo(sechdrs, infoindex, "license"));
+ /*
+ * ndiswrapper is under GPL by itself, but loads proprietary modules.
+ * Don't use add_taint_module(), as it would prevent ndiswrapper from
+ * using GPL-only symbols it needs.
+ */
if (strcmp(mod->name, "ndiswrapper") == 0)
- add_taint_module(mod, TAINT_PROPRIETARY_MODULE);
+ add_taint(TAINT_PROPRIETARY_MODULE);
+
+ /* driverloader was caught wrongly pretending to be under GPL */
if (strcmp(mod->name, "driverloader") == 0)
add_taint_module(mod, TAINT_PROPRIETARY_MODULE);
| note that it ends with a blank line.
Its a unified diff that you can feed straight to patch. See man diff and man patch.
The header, tells what file to modify and where in the file.
+ introduces a new line
- shows a line to be removed
There are 3 lines of context ast the start and end.
What you do with your kernel is up to you. However you need to think very carefully about the licence issues discussed in your links should you wish to share it. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
pappy_mcfae Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/2063135933479eedb93987b.jpg)
Joined: 27 Dec 2007 Posts: 5999 Location: Pomona, California.
|
Posted: Thu Jul 17, 2008 4:36 am Post subject: |
|
|
Neddy,
Thanks for the reply...and for pointing out what should have been an easy thing to see.
I am aware of the legal issues, and trust me, now that I have fully legal software by the truckload, I'm not going to mess that up by distribution of anything that isn't mine to distribute.
My basic thing is, I want to move up in the kernel world, especially on this machine. While all my hardware is well supported by the kernel (except for ndiswrapper), I'd like some of the things I've noted in the .25 kernel, specifically, less memory use. AND I want full ndiswrapper support. The b43 module is still slow, doesn't take iwconfig commands, and throws up errors with wpa_supplicant, all the things that ndiswrapper doesn't do.
Well, enough of the song and dance. I'm going to check into this further. Thanks again.
Blessed be!
Pappy
EDIT: It doesn't matter, as that code is in 2.6.25-gentoor-r6. There is something else afoot here. _________________ This space left intentionally blank, except for these ASCII symbols. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|