LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 02-09-2007, 11:04 AM   #1
valaskialf
LQ Newbie
 
Registered: Feb 2007
Location: Ottawa
Distribution: Fedora Core 6
Posts: 5

Rep: Reputation: 0
different ndiswrapper prob on FC6


Hello guys! I am having a strange issue with the installation of ndiswrapper. I am using FC6 (kernel-2.6.19.1-2895.fc6.i686 which is the latest FC6 kernel)

I am following setup instructions from
http://ndiswrapper.sourceforge.net/m...p/Installation
And
http://ndiswrapper.sourceforge.net/m...dex.php/Fedora

Everything works well up to this point:

[root@localhost ndiswrapper-1.37]# make install
make -C driver install
make[1]: Entering directory `/home/chnova/ndiswrapper-1.37/driver'
make -C /lib/modules/2.6.19-1.2895.fc6/build SUBDIRS=/home/chnova/ndiswrapper-1.37/driver
make[2]: Entering directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'
Building modules, stage 2.
MODPOST 1 modules
make[2]: Leaving directory `/usr/src/kernels/2.6.19-1.2895.fc6-i686'


*** WARNING: This kernel seems to use 4K stack size option (CONFIG_4KSTACKS); many Windows drivers will not work with this option enabled. Disable CONFIG_4KSTACKS option, recompile and install kernel


echo /lib/modules/2.6.19-1.2895.fc6/misc
/lib/modules/2.6.19-1.2895.fc6/misc
mkdir -p /lib/modules/2.6.19-1.2895.fc6/misc
install -m 0644 ndiswrapper.ko /lib/modules/2.6.19-1.2895.fc6/misc
/sbin/depmod -a 2.6.19-1.2895.fc6 -b /
make[1]: Leaving directory `/home/chnova/ndiswrapper-1.37/driver'
make -C utils install
make[1]: Entering directory `/home/chnova/ndiswrapper-1.37/utils'
install -D -m 755 loadndisdriver /sbin/loadndisdriver
install -D -m 755 ndiswrapper /usr/sbin/ndiswrapper
install -D -m 755 ndiswrapper-buginfo /usr/sbin/ndiswrapper-buginfo

NOTE: Windows driver configuration file format has changed since 1.5. You must re-install Windows drivers if they were installed before.
make[1]: Leaving directory `/home/chnova/ndiswrapper-1.37/utils'
mkdir -p -m 0755 /usr/share/man/man8
install -m 644 ndiswrapper.8 /usr/share/man/man8
install -m 644 loadndisdriver.8 /usr/share/man/man8

[root@localhost ndiswrapper-1.37]# ndiswrapper
bash: ndiswrapper: command not found
[root@localhost ndiswrapper-1.37]# exit
exit
[chnova@localhost ndiswrapper-1.37]$ ndiswrapper
bash: ndiswrapper: command not found
[chnova@localhost ndiswrapper-1.37]$ ndiswrapper -i
bash: ndiswrapper: command not found
[chnova@localhost ndiswrapper-1.37]$ rpm -qa | grep ndis
[chnova@localhost ndiswrapper-1.37]$

ok ok, I know of the 4K/16K stack kernel thing, my driver doesn’t need it to work. Even if it NEEDED it to work, why after installing ndiswrapper its as if I hadn’t installed it? Not working after restarting computer either. Also, when I do a
sudo updatedb
locate ndis
I DO see ndiswrapper files in system folders, as well as on the folder I am installing from. I even see the .ko file (which is supposed to be the kernel of ndiswrapper) but STILL, when I try to enter any ndiswrapper command it just tells me
bash: ndiswrapper: command not found

W H A T am I doing wrong, help please, any hints?
 
Old 02-09-2007, 11:54 AM   #2
0perand
LQ Newbie
 
Registered: Feb 2007
Location: San Diego CA
Distribution: opensuse 10.3
Posts: 9

Rep: Reputation: 0
I forget the command but there is a command that can reset the stack size in fc6. It will allow you to up it to 8k without any hassle. It basically allows you to reset all of the isntallation settings. I had a similar problem with FC6 and thats what I did to fix it. Also this could be caused because you dont have all of the kernel packages installed. Do you have the kernel-devel package installed? In my experience you need both the source and the header package of your kernel to work properly.
 
Old 02-09-2007, 11:58 AM   #3
valaskialf
LQ Newbie
 
Registered: Feb 2007
Location: Ottawa
Distribution: Fedora Core 6
Posts: 5

Original Poster
Rep: Reputation: 0
argh!

hi! thanks for replying

I Did install the kernel-devel and kernel-header Before trying to install ndiswrapper, Problem still there. Help please~!
 
Old 02-09-2007, 12:02 PM   #4
0perand
LQ Newbie
 
Registered: Feb 2007
Location: San Diego CA
Distribution: opensuse 10.3
Posts: 9

Rep: Reputation: 0
It has to be the stack size then. I was exactly where you were at when I found that command ;o. I can't remember what the command is... sorry. I didn't think it would be the problem either but when I upped the stack it ran perfect... So this is the only advice I can give you. I did get it to work fine on fedora and slackware, but I did need an 8k stack.
 
Old 02-10-2007, 07:47 AM   #5
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Quote:
Originally Posted by 0perand
I forget the command but there is a command that can reset the stack size in fc6. It will allow you to up it to 8k without any hassle. It basically allows you to reset all of the isntallation settings.
Um, not to cast doubt on your assertion here, but the stack size is something that is set when the kernel is compiled. I don't believe it can be reset unless you either recompile a kernel or install a new one that has larger stack. If you've got something to the contrary, please post links as it will save people a ton of trouble.

Also, the stack problem usually rears its ugly head when you try to load the ndiswrapper module and the usual symptom is a total system lock-up. Not being able to find the ndiswrapper command almost certainly isn't a stack problem.


@valaskialf

Instead of running just ndiswrapper, try using the full path:

/usr/sbin/ndiswrapper

It could be something simple like /usr/sbin isn't in root's path. This could be particularly true if you use su to become root. If you are using su, make sure you use su - (note the -). That causes root's PATH to be loaded.

Last edited by Hangdog42; 02-10-2007 at 07:49 AM.
 
Old 02-10-2007, 09:02 AM   #6
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
You don't mention the device you're trying to set up, but, if it's a Brodcom one, FC6 installs the bcm43xx driver by default is a Broadcom card is detected during installation. (I mention that one specifically because it bit me. )

Other drivers for many devices are also installed during FC6 installation if there is a FOSS driver for the device available. (e.g., The FOSS nv driver for nVidia displays is used in place of the propitiatory nvidia driver.)

My point: ndiswrapper (and the device) will fail if there is more than one driver loaded for the device.

Look through your dmesg output (I use dmesg | less to page through it.) to see what drivers are loaded for your device. And to make sure the device was detected during the boot process. There may also be some useful ndiswrapper messages in the dmesg output.
 
  


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
prob with ndiswrapper on FC6 valaskialf Linux - Wireless Networking 1 02-08-2007 01:19 PM
Ndiswrapper on FC6 Sam Liu Linux - Wireless Networking 32 12-05-2006 11:45 AM
ndiswrapper on FC6 x86_64 Nomadic Logic Fedora 3 11-08-2006 06:47 PM
From one problem to another, ndiswrapper, FC6 THOR_Fedora Linux - Wireless Networking 9 10-29-2006 07:48 AM
Ndiswrapper, fedora fc6 THOR_Fedora Linux - Wireless Networking 3 10-28-2006 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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