Error Inserting Ndiswrapper Invalid Module Format
Wiki Search Tutorials/Articles Search HCL Search Reviews Search ISOs Go to Page... LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware modprobe problem: Error inserting ndiswrapper.ko Invalid module format User Name Remember Me? Password insmod error inserting invalid module format Linux - Hardware This forum is for Hardware issues. Having trouble installing a piece of insmod error inserting 1 invalid module format hardware? Want to know if that peripheral is compatible with Linux? Notices 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. Are you new to LinuxQuestions.org? Visit the following links: Site Howto | Site FAQ | Sitemap | Register Now 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. Search this Thread 10-17-2006, 04:41 PM #1 Antarctica Member Registered: Aug 2006 Location: South Mississippi Distribution: Fedora Core 5 Posts: 36 Rep: 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
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up insmod http://www.linuxquestions.org/questions/linux-hardware-18/modprobe-problem-error-inserting-ndiswrapper-ko-invalid-module-format-493287/ error: inserting './hello.ko': -1 Invalid module format" up vote 3 down vote favorite I have just made my first driver module, the hello world module following LDD3. However unfortunately encountered this error: insmod: error inserting './hello.ko': -1 Invalid module format. I am doing this on Ubuntu 11.04, and my environment: $ uname -r 2.6.38-8-generic I get the kernel source like this: sudo apt-cache search http://stackoverflow.com/questions/34379013/insmod-error-inserting-hello-ko-1-invalid-module-format linux-source linux-source - Linux kernel source with Ubuntu patches linux-source-2.6.38 - Linux kernel source for version 2.6.38 with Ubuntu patches $sudo apt-get install linux-source-2.6.38 my /usr/src: $ls /usr/src/ linux-headers-2.6.38-8 linux-source-2.6.38 vboxguest-5.0.10 linux-headers-2.6.38-8-generic linux-source-2.6.38.tar.bz2 and then I compile the kernel $sudo cp /boot/config-2.6.38-8-generic ./.config $sudo make menuconfig -- load the .config file $make $make modules and then I compile my kernel module $make -C /usr/src/linux-source-2.6.38/linux-source-2.6.38 M=`pwd` modules with Makefile: obj-m := hello.o and then finally when I insert the module: $sudo insmod hello_world.ko insmod: error inserting 'hello_world.ko': -1 Invalid module format what I found in dmesg: hello: disagrees about version of symbol module_layout So what's the problem? I have also noticed that the linux-header is -2.26.38-generic and source code version is -2.26.38, is this the problem? but I have really not found a linux-source-2.26.38-generic package on web. status update: I have found that the file /lib/moduels/$(name -r)/build/Makefile indicate my running kernel version: VERSION = 2 PATCHLEVEL = 6 SUBLEVEL = 38 EXTRAVERSION = .2 So I download the linux-2.6.38.2 and compile, but still the same error. I have also found that there is a line in /boot/config-$(uname -r): CONFIG_VERSION_SIGNATURE="Ubuntu 2.6.38-8.42-generic 2.6.38.2
I've tried both 1.5 and 1.6rc2 with the same results,modprobe ndiswrapperFATAL: http://alt.os.linux.redhat.narkive.com/odtFoYmR/ndiswrapper-invalid-module-format-problem Error inserting ndiswrapper(/lib/modules/2.6.13.2/misc/ndiswrapper.ko): Invalid module formatI did the https://lists.debian.org/debian-user/2005/02/msg03551.html standardmake distcleanmakemake installAnd I did a couple of make uninstalls to clean out previous version before doing the make install.Doesn't anyone know what's causing it to build improperly? Lenard 2005-11-26 23:20:00 UTC PermalinkRaw error inserting Message Post by General SchvantzkophI've been trying to install Ndiswrapper on a FC4 system with a custom2.6.13.2 kernel. I've tried both 1.5 and 1.6rc2 with the same results,modprobe ndiswrapperFATAL: Error inserting ndiswrapper(/lib/modules/2.6.13.2/misc/ndiswrapper.ko): Invalid module formatDid you perhaps forget to install the Windows invalid module format driver and run depmod???http://ndiswrapper.sourceforge.net/mediawiki/index.php/Installation#Install_Windows_driver--"A personal computer is called a personal computer because it's yours,Anything that runs on that computer, you should have control over."Andrew Moss, Microsoft's senior director of technical policy, 2005 General Schvantzkoph 2005-11-27 03:01:02 UTC PermalinkRaw Message Post by LenardPost by General SchvantzkophI've been trying to install Ndiswrapper on a FC4 system with a custom2.6.13.2 kernel. I've tried both 1.5 and 1.6rc2 with the same results,modprobe ndiswrapperFATAL: Error inserting ndiswrapper(/lib/modules/2.6.13.2/misc/ndiswrapper.ko): Invalid module formatDid you perhaps forget to install the Windows driver and run depmod???http://ndiswrapper.sourceforge.net/mediawiki/index.php/Installation#Install_Windows_driverNo I installed the Windows driver and I ran depmod. Lenard 2005-11-27 06:14:18 UTC PermalinkRaw Message General Schvantzkoph wrote:
26 Feb 2005 21:45:07 +0000 Message-id: <[🔎]a3b91ea005022613456379de87@mail.gmail.com> Reply-to: Joe Freeman