Slackware This Forum is for the discussion of Slackware 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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
05-10-2008, 05:20 AM
|
#1
|
|
Member
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 263
Rep:
|
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.
|
|
|
|
05-10-2008, 09:27 AM
|
#2
|
|
Senior Member
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,357
Rep: 
|
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
|
|
|
|
05-10-2008, 10:11 AM
|
#3
|
|
Member
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 263
Original Poster
Rep:
|
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.
|
|
|
|
05-10-2008, 10:28 AM
|
#4
|
|
Senior Member
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,357
Rep: 
|
/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
|
|
|
|
05-10-2008, 10:41 AM
|
#5
|
|
Member
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 263
Original Poster
Rep:
|
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.
|
|
|
|
05-10-2008, 10:50 AM
|
#6
|
|
Senior Member
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,357
Rep: 
|
So what does "grep ndiswrapper.ko /var/log/packages/ndiswrapper_package_version" show?
Brian
|
|
|
|
05-10-2008, 11:10 AM
|
#7
|
|
Member
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 263
Original Poster
Rep:
|
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?
|
|
|
|
05-10-2008, 11:14 AM
|
#8
|
|
Senior Member
Registered: Sep 2005
Distribution: Slackware
Posts: 1,439
Rep:
|
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?
|
|
|
|
05-10-2008, 11:20 AM
|
#9
|
|
Member
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 263
Original Poster
Rep:
|
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.
|
|
|
|
05-10-2008, 12:14 PM
|
#10
|
|
Senior Member
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,357
Rep: 
|
Quote:
Originally Posted by Bazzaah
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
|
|
|
|
05-10-2008, 02:11 PM
|
#11
|
|
Member
Registered: Jul 2003
Distribution: Slackware
Posts: 79
Rep:
|
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.
|
|
|
|
05-10-2008, 03:35 PM
|
#12
|
|
Member
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 263
Original Poster
Rep:
|
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.
|
|
|
|
05-10-2008, 04:11 PM
|
#13
|
|
Member
Registered: Jul 2003
Distribution: Slackware
Posts: 79
Rep:
|
[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.
|
|
|
|
05-17-2008, 02:31 AM
|
#14
|
|
Member
Registered: Mar 2007
Distribution: Slackware64-current, Slackware64 14
Posts: 263
Original Poster
Rep:
|
nothing to see here, all sorted.
Last edited by Bazzaah; 05-17-2008 at 09:24 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:50 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|