modprobe problem: Error inserting ndiswrapper.ko Invalid module format
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
modprobe problem: Error inserting ndiswrapper.ko Invalid module format
Hey all, this is an exact copy of a thread I posted on www.fedoraforum.org. I thought I could get some help here since nobody has replied over there yet. Here's the thread I posted over there:
Hey all, I'm trying to help a friend of mine get wireless Internet working on her computer and we seem to have run into a problem. She is running Fedora Core 5 and has the Netgear MA101 wireless USB Adapter. At one time I tried running modprobe ndiswrapper and the computer froze. So I looked at the FAQ on NdisWrapper's Wiki and it told me to download the 16K stack kernel for her system since some cards have issues with Fedora Core's 4K stack size. Well, during that time I was searching, she formatted her computer and tried to install Windows 2000 but encountered an error. So, I formatted her computer and installed again Fedora Core 5. Since she has no Internet on her computer, she has to rely solely on wireless Internet through her Netgear MA101 wireless USB adapter. By the way, I'm not sure which revision it is. So, I went through the following process to get Internet working on her computer.
I installed kernel-2.6.15-1.2054.stk16.i686_FC5.rpm
I then installed kernel-devel-2.6.15-1.2054.stk16.i686_FC5.rpm to her computer.
I compiled and installed in order the following programs by running ./configure, make, and make install: libusb-0.1.12, usbutils-0.72, and wireless_tools.28.
Next, after making a symbolic link to the kernel source, I compiled and installed ndiswrapper-1.23 by running only make and make install.
After installing ndiswrapper, we created a directory called /ndisdrivers, and copied the Windows XP drivers for the MA101 device from the original CD to /ndisdrivers.
We then installed the MA101 driver and checked the device to see if the driver is installed and that the hardware is present by running ndiswrapper -l. All went successful.
Following the tutorial on MANIX-Place , I ran depmod -a.
Then I ran modprobe ndiswrapper and received the following output:
FATAL: Error inserting ndiswrapper
(/lib/modules/2.6.15-1.2054_FC5/misc/ndiswrapper.ko): Invalid module format
I've searched around the Internet for a while and cannot seem to find anyone with a similar problem for Fedora Core 5 and a 16K stack size kernel. The only thing that I could probably do is recompile or upgrade GCC with the 16K stack kernel or upgrade her kernel and kernel-devel to the 2.6.17-1.stk16.i686_FC5 kernel and start over. Can anyone help us please?
I think you need to know if you have version A or B of the MA101. Run lsusb -v and see what it says about it. If there's anything about atmel it's the B. A quick Google search shows a lot of people have similar problems and I found this on another forum
atmel driver works, not ndiswrapper
Submitted by brsnstck on Wed, 05/25/2005 - 11:25.
Yeah, I knew the version would be a big difference, but I didn't know where to begin. Now, I told my friend to run dmesg and she got a long list of output. She emailed me the output, and at the very bottom (the last line), it reads
ndiswrapper: version magic '2.6.15-1.2054_FC5.stk16 686 REGPARM 16KSTACKS gcc-4.1' should be '2.6.15-1.2054_FC5 686 REGPARM 4KSTACKS gcc-4.1'
So, I'm thinking that I need to recompile gcc-4.1 and any dependencies with the 16K stack kernel. Do you think that will fix the problem?
Looks to me like it's saying ndiswrapper is compiled with 16k stacks but it should've been compiled with 4k. If that's the case then it's a kernel issue because that's where 4k or 16k is set. I use a kernel with 4k and ndiswrapper always tells me 4k kernel support might not work right but mine, version 1.21, is fine. Before changing kernel stuff (or gcc stuff) have you tried modprobe -f? The -f is the force option to [hopefully] override errors such as this. You might also try a different ndiswrapper version. Myself and many others have had cases when a new version won't install or work properly but the version prior works like a champ.
Hey all, thanks for your help. I asked my friend to go into GRUB and boot into the new kernel, but she told me that she saw only one kernel: 2.6.15-1.2054_FC5. I'm not sure, but isn't she supposed to see another kernel, 2.6.15-1.2054.stk16_FC5? When I was at her house, I installed the 16K stack kernel and the 16K stack kernel-devel from Linuxant. I could ask her to reinstall those two. Also, we used the RPMs to install the kernels. Maybe we could try building them from source?
By the way, the version of ndiswrapper we compiled and installed from source is 1.23, so it's a fairly recent version.
Anyway, like I said before, I installed the 16K stack kernels because modprobe ndiswrapper froze when we used the 4K stack kernels, and the Fedora page of the NdisWrapper Wiki told me to use the 16K stack kernels on Fedora Core 5 if the computer froze.
I'll tell my friend to use modprobe -f ndiswrapper and see if that works. Thanks in advance for all your help. Wish us luck!
I've found out, with help from dracolich, that I need to use the atmel driver instead of ndiswrapper since my friend is using the MA101 wireless USB device, rev B. The latest version she downloaded was from the top of the Atmel site, which was atmelwlandriver-22.214.171.124.tar.bz2. She extracted it and opened the terminal. Then she changed to the atmelwlandriver directory and ran make install. I tried to get her to run make, but that wouldn't work for some reason. I'm out of luck here. Can somebody show me how to get the Atmel driver working for Fedora Core 5? Perhaps, if you want, you could show me a recent tutorial? Thanks in advance.