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

Notices

Reply
 
Search this Thread
Old 09-22-2006, 01:49 PM   #1
nattu
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Rep: Reputation: 15
Unhappy modprobe ndiswrapper freezes


Hello,

I downloaded 1.23 source for ndiswrapper. Installed kernel-sources
from the mandriva cd (I am using the free 3 cd set) and had no
problem compiling and instaling ndiswrapper. However the command modprob ndiswrapper freezes the computer and I have to reboot...
Help!
 
Old 09-23-2006, 08:56 AM   #2
Ixthusdan
Member
 
Registered: Jun 2006
Location: Mishawaka, IN USA
Distribution: Open Suse
Posts: 194
Blog Entries: 1

Rep: Reputation: 32
Couple of things:
Which version of Mandriva are you addressing?
Why did you not use the supplied ndiswrapper rpm?
Would you precisely outline the steps you are taking?

With Mandriva 2005LE, 2006, and 2007RC2, I have used all the precompiled ndiswrapper rpm's with success. Also, MCC sets it up just fine. (I know, geeks don't use gui's!)I have a broadcom chip, which is probably most frequently requires ndiswrapper, although 2007 has a driver which I could not get to work.
 
Old 09-24-2006, 10:00 AM   #3
nattu
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Unhappy ndiswrapper freezes

1. I am using Mandriva 2006 Free edition

2. uname -a gives
Linux localhost 2.6.12-12mdk-i586-up-1GB #1 Fri Sep 9 17:51:55 CEST 2005 i686 VIA Samuel 2 unknown GNU/Linux

3. For reasons not too clear to me I could not get my
WireleLinux NIC to work with version 1.22 of ndiswrapper t supplied on the CD

4. On my other machine I had to do the same thing and it
works. The uname -a on that machine gives:
Linux localhost 2.6.12mdk #1 Fri Sep 9 18:15:22 CEST 2005 i686 Pentium II (Deschutes) unknown GNU/Linux
Note that the kernel is different. What is the difference?

5. On this machine where it does not work, ndiswrapper -l
gives:

athfmwdl driver installed, hardware present
net5523 driver installed

On the machine where it works the output is
athfmwdl driver installed
net5523 driver installed, hardware present

Why the difference?
 
Old 09-24-2006, 08:59 PM   #4
Ixthusdan
Member
 
Registered: Jun 2006
Location: Mishawaka, IN USA
Distribution: Open Suse
Posts: 194
Blog Entries: 1

Rep: Reputation: 32
Perhaps it is a different wireless card in the second machine. Have you looked in harddrake to verify what the card hardware identification is?
Also, I believe I updated the kernel in my 2006 installation, I think it was 2.6.12-18mdk.
 
Old 09-25-2006, 06:59 AM   #5
nattu
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Unhappy modprobe ndiswrapper freezing woes

It is the same card! I unplug from one and plug into the
other. I installed from the same set of 3 CD's. The only
difference I can see is that the kernels are different.
It works on my older machine but not the new one.

In both the cases, the ndiswrapper on the distro CD did
*not* work. I had to recompile.

BTW, I could not see a kernel-source that had the string
i586-up-1GB. The one I have reads
kernel-source-stripped-2.6-2.6.12-12mdk.i586.rpm
Could that be a problem? Is there a special
source I need? I could not find one.
 
Old 09-26-2006, 02:23 AM   #6
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
Quote:
modprob ndiswrapper freezes the computer
In my experience this happens when you modprobe
ndiswrapper compiled against a different kernel version
to that of the one you are using (using I mean the one you boot from,
and grub can give you various choices)

post
modinfo ndiswrapper

were you sure to delete the old ndiswrapper before compiling the new one

Quote:
Also, I believe I updated the kernel in my 2006 installation, I think it was 2.6.12-18mdk
in that case nattu you can update your kernel (and download the source)
using drakrpm (are your repositories to date?)
and try removing ndiswrapper and recompiling it
 
Old 09-26-2006, 12:46 PM   #7
nattu
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Angry ndiswrapper freezes

Yes,

The ndiswrapper 1.22 in the distro did not work. modprobe
would error out.

So I recompiled it. I am trying 3 machines with and
I recompile in each machine so /boot/kernel.h reflects the
machine in question... The 3 machines have intel - pentium II,
intel - celeron(coppermine) and C3 Eden (VIA).
In the first two machines ndiswrapper works. In the third
it freezes.

The third has a memory space of less than 1 GB and the
kernel is different because of this... I checked /boot/kernel.h
and it reflects this correctly. Also, when I compiled ndiswrapper
it shows that it is compiling to a processor "i586-up-1GB".
So there is nothing that seems to be wrong with the compilation.

I am at my wits end
 
Old 09-26-2006, 02:59 PM   #8
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
uname -a gives Linux localhost 2.6.12-12mdk-i586-up-1GB
can you post modinfo ndiswrapper so we can compare to uname -a

also try tail -f /var/log/syslog in terminal
then modprobe ndiswrapper
maybe we will learn something

I believe there can be a problem if the stack options are too small in the kernel

Are you sure sure sure you have the right kernel sources
 
Old 09-27-2006, 10:32 AM   #9
nattu
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Original Poster
Rep: Reputation: 15
Did that! Right now uname reads
#uname -a
Linux localhost 2.6.12-25mdk-i586-up-1GB #1 Fri Aug 18 13:26:47 MDT 2006 i686 VIA Samuel 2 unknown GNU/Linux

rebuilt ndiswrapper and can modprobe as long as the device is not plugged in
(indicating that ndiswrapper was compiled for the right kernel version).

Stil freezes when I inserted the device. Happens for more than 1 device so
I don't think its the specific windows drivers either....

What gives? Is there any thing special about via epia hardware and ndiswrapper
that I should know about?
 
Old 09-27-2006, 12:33 PM   #10
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
modinfo ndiswrapper ?
I do not think I have the answer to your problem,
but if you do not post what you are asked, I cannot help
it is not because you start a given kernel that this the one
configured for compilation, so please post
modinfo ndiswrapper

In the meatime I will have a think
 
Old 09-27-2006, 10:41 PM   #11
nattu
LQ Newbie
 
Registered: Aug 2006
Posts: 21

Original Poster
Rep: Reputation: 15
THE PROBLEM SOLVED!!!!!!!!!
Sorry for shouting, but hey, after banging my head on the keyboard for 7 days nonstop
I have earned the right to it....


Problem: The ndiswrapper in the distro is not compiled for this kernel and had to be
recompiled. The compiled version worked great on all machines except the C3 processor.

Solution: GCC has a bug!!!!!!!!!! The fix is to add CFLAGS += -march=i586 to the
Makefile.

Source of inspiration: http://linuxfromscratch.org/pipermai...ry/003289.html

Yes you read it right it is Febraury 2002!


Thanks to all of you who took the trouble to reply.

I am not sure where I should post this solution so others may not have to go through what I did.
Perhaps one of you can do it.
 
Old 09-28-2006, 01:09 AM   #12
Emmanuel_uk
Senior Member
 
Registered: Nov 2004
Distribution: Mandriva mostly, vector 5.1, tried many.Suse gone from HD because bad Novell/Zinblows agreement
Posts: 1,604

Rep: Reputation: 47
well done, congrats.
At least the board worked as a sounding board

Quote:
I am not sure where I should post this solution so others may not have to go through what I did.
Thanks for the feedback. Here in this thread was very fine.
If you want to enhance searches, you could edit one of your
post and add cat /proc/cpu (or something like that)
 
  


Reply

Tags
ndiswrapper


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
Trying to load module "ndiswrapper" with modprobe; modprobe ndiswrapper doesn't work! Benjamin Linux - Wireless Networking 30 05-25-2008 07:04 AM
Broadcom Wireless (BCM4306) Wireless problems: modprobe ndiswrapper freezes HP Laptop shthap3ns Linux - Hardware 11 02-11-2007 12:53 PM
Modprobe Freezes leokent Linux - Wireless Networking 5 05-12-2005 01:57 PM
My system freezes after I issue the "modprobe ndiswrapper" command. markjc Linux - Wireless Networking 1 08-24-2004 09:47 AM
freezes when modprobe orinoco_cs richcm Linux - Networking 1 07-21-2004 08:50 PM


All times are GMT -5. The time now is 11:21 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