Ndiswrapper on a 2.6.19(-rc4) Kernel

  |   Source

Has anyone ever tried to use the ndiswrapper module under a 2.6.19-rc4 kernel? This is the sad message appearing in `dmesg`:

Symbol usb_register_driver is being used by a non-GPL module,
which will not be allowed in the future Please see the file
Documentation/feature-removal-schedule.txt in the kernel
source tree for more details.
ndiswrapper: Unknown symbol destroy_workqueue
Symbol usb_deregister is being used by a non-GPL module,
which will not be allowed in the future Please see the file
Documentation/feature-removal-schedule.txt in the kernel
source tree for more details.
ndiswrapper: Unknown symbol __create_workqueue
ndiswrapper: Unknown symbol queue_work

How to solve this? You just need to edit a file, ./kernel/module.c, commenting the lines 1720-1:

if (strcmp(mod->name, "ndiswrapper") == 0) add_taint_module(mod,

System Message: WARNING/2 (<string>, line 22)

Block quote ends without a blank line; unexpected unindent.

TAINT_PROPRIETARY_MODULE);

These lines just "block" a "proprietary" module which is using GPLed components (usb_register_driver and usb_deregister, as we can see from `dmesg`). Ndiswrapper, in fact, is not proprietary on his own, but it uses proprietary drivers developed for Microsoft Windows platforms. Same thing for the other program present at the same lines, driverloader.

This "hack" should work also for the stable version of the kernel.

Happy WiFi-ing!

Comments powered by Disqus
Contents © 2013 David Paleino - Powered by Nikola