LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 05-10-2010, 05:24 AM   #1
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 203

Rep: Reputation: 44
modprobe ndiswrapper (FATAL: Error inserting ndiswrapper )


I have managed to use ndiswrapper to try and use Windows XP driver (inf, sys etc) and ndiswrapper is now configured and can see the device;
I verified this with 'ndiswrapper -l'
which shows device present with correct device id as matched in 'lsusb'.

The ndiswrapper guide from the source docs then advise to 'modprobe ndiswapper' to insert and load the module to allow a wlan0 device to be configured with wireless-tools.

But I get the error:
Code:
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.29.6/misc/ndiswrapper.ko): Invalid module format
I thought the '.ko' format was correct for 2.6.x kernel and '.o' was for 2.4.x kernel.

Where am I going wrong??
 
Old 05-10-2010, 06:41 AM   #2
gold_leaf
Member
 
Registered: Sep 2009
Location: Salisbury, UK
Distribution: Peppermint OS
Posts: 64

Rep: Reputation: 20
Just to check, you wouldn't be trying to load 32 bit drivers onto a 64 bit system or vice versa? I know that trying this brings up an error like this.
 
Old 05-10-2010, 06:53 AM   #3
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 203

Original Poster
Rep: Reputation: 44
sorry, here is more system/setup info:

default hugesmp.s kernel 32-bit in use straight from install;

no kernel modding/hacking/custom-builds etc;

ndiswrapper built on same system it is being used on;

ndiswrapper built from slackbuilds.org with source & slackbuild script from slackbuilds from 32-bit source;

installed '.tgz' from consequent slackbuild from '/tmp' using 'installpkg'.


32-bit system, Slackware 13, full install from 32-bit, dvd iso;

on this box: 256MB RAM; 900MHz;

I am using same 32-bit slack on other boxes with more open-source compliant hardware without problems.

windows XP 32-bit driver is for a WinBond Usb2Wlan USB Wireless adapter (NB, for other linux users/searches, STAY AWAY FROM THIS HARDWARE VENDOR - a nightmare!!)

Last edited by dh2k; 05-10-2010 at 06:57 AM.
 
Old 05-10-2010, 01:46 PM   #4
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 109Reputation: 109
You should not be using the huge kernel. It is for install only as well as non special setups. That is, only needing it to function as is out of the box.

If you have to install any kind of your own drivers, you should be using the generic kernel.

This does require you to create an initrd image however. There is a helper script included in Slackware under /usr/share/mkinitrd??

BTW...
2.6.29.6 is for non smp systems. chances are you are running the 2.6.29.6-smp??? list the output of "uname -r"
 
Old 07-13-2010, 02:14 PM   #5
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 203

Original Poster
Rep: Reputation: 44
Quote:
Originally Posted by lumak View Post
This does require you to create an initrd image however. There is a helper script included in Slackware under /usr/share/mkinitrd??
Code:
uname -r 
2.6.29.6
I have created an initrd using generic kernel 2.6.29.6 (non-smp) but still getting same error:

Code:
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.29.6/misc/ndiswrapper.ko): Invalid module format
why can I not insert ndiswrapper as a module using modprobe?

ndiswrapper is a slackbuild after I created the initrd with generic kernel - same machine, same kernel, no additional options/parameters passed for the SBo - just a plain vanilla Slackbuild using "./ndiswrapper*.SlackBuild".

Last edited by dh2k; 07-13-2010 at 02:21 PM.
 
Old 07-13-2010, 02:43 PM   #6
bgeddy
Senior Member
 
Registered: Sep 2006
Location: Liverpool - England
Distribution: slackware64 13.37 and -current, Dragonfly BSD
Posts: 1,810

Rep: Reputation: 227Reputation: 227Reputation: 227
Check the outputs of the following
Code:
uname -r -v
/sbin/modinfo -F vermagic ndiswrapper
 
Old 07-13-2010, 06:50 PM   #7
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 203

Original Poster
Rep: Reputation: 44
Code:
root@eva-earth:~/Projects/W2kXP# uname -r -v
2.6.29.6 #1 Mon Aug 17 01:16:02 CDT 2009
root@eva-earth:~/Projects/W2kXP#
Code:
root@eva-earth:~/Projects/W2kXP# /sbin/modinfo -F vermagic ndiswrapper
2.6.29.6-smp SMP mod_unload 686 
root@eva-earth:~/Projects/W2kXP#
Ah - I see the 'smp' - but why? The kernel I have built ndiswrapper is with is non-smp - so does that mean the slackbuild version of ndiswrapper is an smp build version? - I have read the readme and also gone through the slackbuild script in 'ndiswrapper.tar.gz' and there is no mention of 'smp' or any method of passing smp (or non-smp) as a parameter/option when building the slackbuild package.

Last edited by dh2k; 07-13-2010 at 06:53 PM.
 
Old 07-13-2010, 07:22 PM   #8
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,291

Rep: Reputation: 708Reputation: 708Reputation: 708Reputation: 708Reputation: 708Reputation: 708Reputation: 708
From CHANGES_AND_HINTS.TXT:
Code:
Use one of the provided generic kernels for daily use.  Do not report
  bugs until/unless you have reproduced them using one of the stock 
  generic kernels.  You will need to create an initrd in order to boot
  the generic kernels - see /boot/README.initrd for instructions.
  The huge kernels are primarily intended as "installer" and "emergency" 
  kernels in case you forget to make an initrd.  For most systems, you 
  should use the generic SMP kernel if it will run, even if your system is 
  not SMP-capable.  Some newer hardware needs the local APIC enabled in the 
  SMP kernel, and theoretically there should not be a performance penalty 
  with using the SMP-capable kernel on a uniprocessor machine, as the SMP 
  kernel tests for this and makes necessary adjustments.  Furthermore, the 
  kernel sources shipped with Slackware are configured for SMP usage, so you 
  won't have to modify those to build external modules (such as NVidia or 
  ATI proprietary drivers) if you use the SMP kernel.

  If you decide to use one of the non-SMP kernels, you will need to follow the
  instructions in /extra/linux-2.6.33.4-nosmp-sdk/README.TXT to modify your
  kernel sources for non-SMP usage.  Note that this only applies if you are
  using the Slackware-provided non-SMP kernel - if you build a custom kernel,
  the symlinks at /lib/modules/$(uname -r)/{build,source} will point to the
  correct kernel source so long as you don't (re)move it.
You need to reconfigure your kernel sources for the non-smp kernel or you will not be able to properly build any out-of-tree kernel modules.

Last edited by T3slider; 07-13-2010 at 07:23 PM.
 
Old 08-03-2010, 06:29 AM   #9
dh2k
Member
 
Registered: Jan 2006
Distribution: Slackware 13.0 (KDE 3.5.10 from 12.2; Xfce 4.6; Fluxbox); Slackware 13.1 (KDE 4.5)
Posts: 203

Original Poster
Rep: Reputation: 44
mkinitrd'ed with generic-2.6.29.6-smp, then lilo bootloader configured appropriately and 'modprobe ndiswrapper' is working perfectly.
Thank you for all support.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.29.6/misc/ndiswrapper.ko): eraosso Slackware 2 11-03-2009 09:44 PM
Modprobe fatal error using ndiswrapper Zach Dehnert Linux - Wireless Networking 5 12-18-2007 12:11 PM
FATAL: Error inserting ndiswrapper raxxal Mandriva 7 07-06-2007 02:27 PM
FATAL: Error inserting ndiswrapper derfaust Slackware 11 06-03-2006 03:41 PM
ndiswrapper - Fatal error when modprobe badboyben3000 Linux - Software 9 12-11-2005 08:40 AM


All times are GMT -5. The time now is 09:57 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration