LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-2008, 05:20 AM   #1
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Rep: Reputation: 50
ndiswrapper and generic smp kernel


I have been trying to get ndiswrapper to work with generic smp kernel on Slack 12.

Ndiswrapper seemed to install just fine but as soon as I try and load the module

# modprobe ndiswrapper

I get

FATAL: module ndiswrapper not found

Wireless works well on the (patched) non-smp kernel.

I am struggling to understand where to start looking for a solution with SMP, which I gather, Slackware supports by default.

Any thoughts/guidance please?

Thanks in advance.

Last edited by Bazzaah; 05-10-2008 at 08:33 AM.
 
Old 05-10-2008, 09:27 AM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
How did you install ndiswrapper? ndiswrapper is both an application and a kernel module. The module needs to be rebuilt for a new kernel. So if you changed from one kernel to another you will need to rebuild and reinstall ndiswrapper.

Brian
 
Old 05-10-2008, 10:11 AM   #3
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Original Poster
Rep: Reputation: 50
Thanks.

What I did was follow the un/install routine in the ndiswrapper Install notes. Drivers uninstalled etc.

I thought perhaps I had made a mistake so I uninstalled and redid through the ndiswrapper SlackBuild.

I then

reinstalled the drivers.

depmod -a

modprobe ndiswrapper

Still the same error.

/etc/ndiswrapper
/usr/sbin/ndiswrapper

are present so both aspects of ndiswrapper seem to have been installed.

Luckily, the generic kernel works fine.

Still it would be nice to have net access on the most appropriate kernel for my CPU.
 
Old 05-10-2008, 10:28 AM   #4
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
/usr/sbin/ndiswrapper is the application part. /etc/ndiswrapper is the configuration part. The module will be installed in /lib/modules/your_kernel. To see whether the module exists for the kernel you are running you can "modprobe -l | grep ndiswrapper". If it's not there (which it won't be, because you couldn't modprobe it), you can see where the package you made put it by doing "grep ndiswrapper.ko /var/log/packages/ndiswrapper_version_number".

Actually, looking at your post, I want to be clear about one thing. When you used the SlackBuild, you used it while running the smp kernel, and installed it using installpkg/upgradepkg, correct?

Brian
 
Old 05-10-2008, 10:41 AM   #5
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Original Poster
Rep: Reputation: 50
Thanks again.

To answer the last part of your post first, yes I was in the smp kernel and I installed the .tgz that the SlackBuild output with

installpkg filename.tgz

There were no error messages but it's not 'taking'.

Something has changed as in the generic kernel my Local IP is 192.128.0.3 but it was 192.128.0.2 this morning before I started on this.

Last edited by Bazzaah; 05-10-2008 at 10:42 AM.
 
Old 05-10-2008, 10:50 AM   #6
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
So what does "grep ndiswrapper.ko /var/log/packages/ndiswrapper_package_version" show?

Brian
 
Old 05-10-2008, 11:10 AM   #7
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Original Poster
Rep: Reputation: 50
It shows

/lib/modules/2.6.21.5/misc/ndiswrapper.ko

but there are of course two entries in /lib/modules

Presumably the solution lies in getting grep etc to point to the 2.6.21.5-smp entry?
 
Old 05-10-2008, 11:14 AM   #8
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,443

Rep: Reputation: 73
If you used the SlackBuild from SlackBuilds.org and your package doesn't have smp in its name, then it is obvious it was built for a non-smp kernel. $(uname -r | tr '-' '_') goes into the package name, so it would be named something like:
ndiswrapper-1.47_2.6.21.5_smp-i486-SBo.tgz
Did you mess with your kernel sources at all?
 
Old 05-10-2008, 11:20 AM   #9
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Original Poster
Rep: Reputation: 50
nope, haven't touched anything at all (unless patching the huge kernel counts)

I get the error both with Slackbuild and the tar.gz from NDISwrapper.

The NDISwrapper did not indicate that it couldn't be used for a smp kernel. Anyway....

Last edited by Bazzaah; 05-10-2008 at 11:33 AM.
 
Old 05-10-2008, 12:14 PM   #10
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by Bazzaah View Post
It shows

/lib/modules/2.6.21.5/misc/ndiswrapper.ko

but there are of course two entries in /lib/modules

Presumably the solution lies in getting grep etc to point to the 2.6.21.5-smp entry?
Perhaps you could try the SlackBuild again. The installed package was not built for the smp kernel, which means it was not compiled on the smp kernel. You can look at the SlackBuild yourself to see that it determines the running kernel with uname, and will name the package accordingly (as well as installing in the correct /lib/modules tree). You can check yourself after you rebuild the package that the kernel names (both in the package name and in the module path) match uname.


Brian
 
Old 05-10-2008, 02:11 PM   #11
Alstare
Member
 
Registered: Jul 2003
Location: Ontario, Canada
Distribution: Slackware
Posts: 79

Rep: Reputation: 15
Just to verify...

I used the slackbuild ndiswrapper script on a vanilla 12.1 install running the generic-smp kernel and it worked fine out of the box.

Here's how it should go...
Code:
Install the Slackbuilds ndiswrapper package.

ndiswrapper -i <yourdriver.inf>
ndiswrapper -m
ndiswrapper -ma
ndiswrapper -mi

Edit rc.inet1.conf & rc.wireless.conf as required
Here's the output of "ndiswrapper -v"
Code:
root@Server:/home/alstare# ndiswrapper -v
utils version: '1.9', utils version needed by module: '1.9'
module details:
filename:       /lib/modules/2.6.24.5-smp/misc/ndiswrapper.ko
version:        1.52
vermagic:       2.6.24.5-smp SMP mod_unload 686

Last edited by Alstare; 05-10-2008 at 02:18 PM.
 
Old 05-10-2008, 03:35 PM   #12
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Original Poster
Rep: Reputation: 50
Something is definitely amiss and I know that in Slackware that almost certainly equates to my error (you know where you stand with Slackware, even if you don't know how you got there, lol).

I think the thing to do is to compile a fresh kernel. I've been thinking about it anyway so perhaps I should break my duck and just do it!

In the meantime, thanks for your help and comments, I appreciate the help.
 
Old 05-10-2008, 04:11 PM   #13
Alstare
Member
 
Registered: Jul 2003
Location: Ontario, Canada
Distribution: Slackware
Posts: 79

Rep: Reputation: 15
[QUOTE=Bazzaah;3149381]Something is definitely amiss and I know that in Slackware that almost certainly equates to my error (you know where you stand with Slackware, even if you don't know how you got there, lol).[/QUOTED]

Hah, so true, so very very true...

Good luck on your battle.
 
Old 05-17-2008, 02:31 AM   #14
Bazzaah
Member
 
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 331

Original Poster
Rep: Reputation: 50
nothing to see here, all sorted.

Last edited by Bazzaah; 05-17-2008 at 09:24 AM.
 
  


Reply



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
smp oops in kernel 2.6.20-16-generic anirudhvij Linux - Kernel 0 08-19-2007 06:02 AM
Switch from huge-smp-2.6.21.5 to generic-2.6.21.5 tronayne Slackware 1 07-30-2007 08:34 AM
SMP vs Non-SMP Kernel questions paulsiu Linux - Kernel 1 05-29-2007 03:58 PM
Hyperthread server goes to kernel panic with SMP kernic, boots ok with non SMP kernel abefroman Linux - Kernel 1 09-15-2006 05:43 PM
Any reason to keep a non-smp kernel installed on a smp FC3 machine? jim-j Fedora 2 03-12-2006 07:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 04:22 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration