Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Redhat / Fedora Linux Help > urgent ndiswrapper help

Forgot Password?
 Redhat / Fedora Linux Help   Help and discussion related to Redhat and Fedora Linux.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 12-16-2005   #1 (permalink)
Just Joined!
 
Join Date: Feb 2005
Location: Opelika, Alabama
Posts: 49
urgent ndiswrapper help

I tried to install FC4, but only had problems with it. So I reinstalled FC3, and now I cannot get the ndiswrapper to work. I know how to install it. I have done it hundred times, but I cannot get it to work. Can someone please help me ASAP?

I have ndiswrapper 1.7 and run the following codes.
Code:
make distclean
make
make install
When I try to load my Windows driver I am told:
Quote:
bash: ndiswrapper: command not found
When I run
Code:
which ndiswrapper
I get:
Quote:
/usr/bin/which: no ndiswrapper in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/ajthornton/bin)
The following is the output from the install

Code:
[root@thorncom ndiswrapper-1.7]# make distclean
make -C driver clean
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o misc_funcs.o ndis.o ntoskernel.o ntoskernel_io.o pe_linker.o pnp.o proc.o wrapndis.o wrapper.o usb.o divdi3.o usb.o x86_64_stubs.o \
   divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
make -C utils clean
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
rm -f *~ *.o loadndisdriver
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
rm -f *~
rm -fr ndiswrapper-1.7 ndiswrapper-1.7.tar.gz *.deb patch-stamp
make -C driver distclean
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
rm -rf ndiswrapper.ko ndiswrapper.o hal.o iw_ndis.o loader.o misc_funcs.o ndis.o ntoskernel.o ntoskernel_io.o pe_linker.o pnp.o proc.o wrapndis.o wrapper.o usb.o divdi3.o usb.o x86_64_stubs.o \
   divdi3.o .*.ko.cmd .*.o.cmd ndiswrapper.mod.[oc] *~ .tmp_versions
rm -f *_exports.h .\#* x86_64_stubs.h
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
make -C utils distclean
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
rm -f *~ *.o loadndisdriver
rm -f .\#*
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
rm -f .\#*
[root@thorncom ndiswrapper-1.7]# make
make -C driver
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
make -C /lib/modules/2.6.12-1.1381_FC3/build SUBDIRS=/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver \
        DRIVER_VERSION=1.7
make[2]: Entering directory `/lib/modules/2.6.12-1.1381_FC3/build'
  LD      /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/built-in.o
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/hal.o
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/iw_ndis.o
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/loader.o
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/misc_funcs.o
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/ndis.o
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/ntoskernel.o
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/ntoskernel_io.o
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/pe_linker.o
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/pnp.o
/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/pnp.c: In function `start_pdo':
/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/pnp.c:281: warning: ignoring return value of `pci_set_power_state', declared with attribute warn_unused_result
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/proc.o
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/wrapndis.o
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/wrapper.o
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/usb.o
  CC [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/divdi3.o
  LD [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/ndiswrapper.o
  Building modules, stage 2.
  MODPOST
  CC      /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/ndiswrapper.mod.o
  LD [M]  /home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver/ndiswrapper.ko
make[2]: Leaving directory `/lib/modules/2.6.12-1.1381_FC3/build'


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


make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
make -C utils
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
gcc -g -Wall -DUTILS_VERSION=\"1.7\"  -o loadndisdriver loadndisdriver.c
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
[root@thorncom ndiswrapper-1.7]# make install
make -C driver install
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
make -C /lib/modules/2.6.12-1.1381_FC3/build SUBDIRS=/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver \
        DRIVER_VERSION=1.7
make[2]: Entering directory `/lib/modules/2.6.12-1.1381_FC3/build'
  Building modules, stage 2.
  MODPOST
make[2]: Leaving directory `/lib/modules/2.6.12-1.1381_FC3/build'


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


mkdir -p /lib/modules/2.6.12-1.1381_FC3/misc
install -m 0644 ndiswrapper.ko /lib/modules/2.6.12-1.1381_FC3/misc
/sbin/depmod -a
make[1]: Leaving directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/driver'
make -C utils install
make[1]: Entering directory `/home/ajthornton/Downloads/wireless/ndiswrapper-1.7/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/ajthornton/Downloads/wireless/ndiswrapper-1.7/utils'
mkdir -p -m 0755 /usr/share/man/man8
install -m 644 ndiswrapper.8 /usr/share/man/man
I know there is a blurb about the 4kb stack, but I have never had any problems with this in the past/

thanks
thornaj
thornaj is offline  


Reply With Quote
Old 12-16-2005   #2 (permalink)
Linux Engineer
 
spencerf's Avatar
 
Join Date: Jan 2005
Location: Syracuse, NY
Posts: 1,144
it looks like it installed it in /usr/sbin for some reason instead of /usr/bin so just try. /usr/sbin/ndiswrapper

Code:
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
and see if that works. Or edit your .bashrc and put /usr/sbin in your path.

Code:
PATH=$PATH:/usr/sbin
make sure you restart your shell/terminal before you try command if trying the path method.

Hope this helps.
__________________
All right, brain. You don't like me and I don't like you, but let's just do this and I can get back to killing you with beer. All New Users Read This!!! If you have a grub problem please look at GRUB MANUAL
spencerf is offline   Reply With Quote
Old 12-16-2005   #3 (permalink)
Just Joined!
 
Join Date: Feb 2005
Location: Opelika, Alabama
Posts: 49
Thanks for the quick response. Yes I think it installed to the sbin instead of bin, but the other code,
Code:
install -D -m 755 loadndisdriver /sbin/loadndisdriver
,did not work. See output below.
Code:
[root@thorncom ndiswrapper-1.7]# /usr/sbin/ndiswrapper
Usage: ndiswrapper OPTION

Manage ndis drivers for ndiswrapper.
-i inffile        Install driver described by 'inffile'
-d devid driver   Use installed 'driver' for 'devid'
-e driver         Remove 'driver'
-l                List installed drivers
-m                Write configuration for modprobe


where 'devid' is either PCIID or USBID of the form XXXX:XXXX
[root@thorncom ndiswrapper-1.7]#
[root@thorncom ndiswrapper-1.7]# install -D -m 755 loadndisdriver /sbin/loadndisdriver
install: cannot stat `loadndisdriver': No such file or directory
What next? Do I need to edit the .bashrc? Is there any problem with doing this?

Thanks again
thornaj
thornaj is offline   Reply With Quote
Old 12-16-2005   #4 (permalink)
Just Joined!
 
Join Date: Feb 2005
Location: Opelika, Alabama
Posts: 49
if I have to edit the .bashrc, how do I do it? Where is it located?

thornajj
thornaj is offline   Reply With Quote
Old 12-16-2005   #5 (permalink)
Linux User
 
Join Date: Jan 2005
Location: Florida
Posts: 414
Have you tried running ndiswrapper as root? I recently installed 1.7 and the only way I can access it is as root (I'm lazy and haven't gotten around to changing the permissions yet)
You seem to have it installed
Code:
[root@thorncom ndiswrapper-1.7]# /usr/sbin/ndiswrapper
Usage: ndiswrapper OPTION

Manage ndis drivers for ndiswrapper.
-i inffile        Install driver described by 'inffile'
-d devid driver   Use installed 'driver' for 'devid'
-e driver         Remove 'driver'
-l                List installed drivers
-m                Write configuration for modprobe
use the -i option to install the driver and then the -l option to check that it is the right driver.
Then
Code:
depmod -a
modprobe ndiswrapper
__________________
registered linux user: 387197
jimbaloo is offline   Reply With Quote
Old 12-17-2005   #6 (permalink)
Just Joined!
 
Join Date: Feb 2005
Location: Opelika, Alabama
Posts: 49
I have tried the [code]/usr/sbin/ndiswrapper[\code]

However, when I run the depmod and modprobe commands, I get the following.

[code][root@unknown ndiswrapper-1.7]# /usr/sbin/ndiswrapper -l
Installed drivers:
bcmwl5a driver present, hardware present
[root@unknown ndiswrapper-1.7]# depmod -a
bash: depmod: command not found
[root@unknown ndiswrapper-1.7]# modprobe ndiswrapper
bash: modprobe: command not found[/code]

Someone please help me make this work.

thanks
thornaj
thornaj is offline   Reply With Quote
Old 12-17-2005   #7 (permalink)
Just Joined!
 
Join Date: Jun 2005
Posts: 30
you might want to make sure your PATH and ROOTPATH variables are all in order. My guess is that everything is installed correctly, but it's not looking in the right places. I know that in Gentoo things like this are located in /etc/env.d/ but FC3 might be different. Best of luck.
TauLepton is offline   Reply With Quote
Old 12-17-2005   #8 (permalink)
Just Joined!
 
Join Date: Feb 2005
Location: Opelika, Alabama
Posts: 49
Can anyone tell me how to check if the PATH and ROOTPATH variables are right in FC3?

thanks
thornaj
thornaj is offline   Reply With Quote
Old 12-17-2005   #9 (permalink)
Trusted Penguin
 
Cabhan's Avatar
 
Join Date: Jan 2005
Location: Boston, MA, USA
Posts: 2,691
Login as root and execute:
Code:
echo $PATH
echo $ROOTPATH
These will give you a number of directories. For example:
Code:
tux ~ # echo $PATH
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
__________________
DISTRO=Gentoo
Registered Linux User #388732
Gentoo Linux, 410 GB HD, 1.2 GB RAM, Fluxbox, These are a Few of my Favorite Things
Cabhan is offline   Reply With Quote
Old 12-17-2005   #10 (permalink)
Just Joined!
 
Join Date: Feb 2005
Location: Opelika, Alabama
Posts: 49
Here is the output from my path and rootpath
Code:
[root@unknown ajthornton]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin :/home/ajthornton/bin
[root@unknown ajthornton]# echo $PATH
/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/ajthornton/bin
[root@unknown ajthornton]# echo $ROOTPATH

[root@unknown ajthornton]#
This is the exact output. (The blank was between the $ROOTPATH and the prompt.) I do not think things are right with these.

Reason look below:
Quote:
[root@unknown ajthornton]# locate modprobe
/sbin/modprobe
/sbin/generate-modprobe.conf
/etc/log.d/scripts/services/modprobe
/etc/log.d/conf/services/modprobe.conf
/etc/modprobe.conf
/etc/modprobe.conf.dist
/etc/modprobe.conf~
/usr/share/doc/irda-utils-0.9.16/modprobe.conf.irda
/usr/share/man/ja/man8/modprobe.8.gz
/usr/share/man/pl/man8/modprobe.8.gz
/usr/share/man/pl/man1/modprobe.1.gz
/usr/share/man/man5/modprobe.conf.5.gz
/usr/share/man/man8/modprobe.8.gz
/usr/share/man/fr/man8/modprobe.8.gz
[root@unknown ajthornton]# locate ndiswrapper
...
/usr/sbin/ndiswrapper
/usr/share/man/man8/ndiswrapper.8
[root@unknown ajthornton]# locate ifconfig
/sbin/ifconfig
/etc/selinux/targeted/src/policy/file_contexts/program/ifconfig.fc
/etc/selinux/strict/src/policy/file_contexts/program/ifconfig.fc
/etc/selinux/strict/src/policy/domains/program/ifconfig.te
/usr/share/man/ja/man8/ifconfig.8.gz
/usr/share/man/it/man8/ifconfig.8.gz
/usr/share/man/pt/man8/ifconfig.8.gz
/usr/share/man/pl/man8/ifconfig.8.gz
/usr/share/man/de/man8/ifconfig.8.gz
/usr/share/man/man8/ifconfig.8.gz
/usr/share/man/fr/man8/ifconfig.8.gz
/usr/share/zsh/4.2.0/functions/_ifconfig
[root@unknown ajthornton]# /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:0F:1F:24:82D
inet addr:192.168.2.5 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::20f:1fff:fe24:82dd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:541 errors:0 dropped:0 overruns:0 frame:0
TX packets:588 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:356981 (348.6 KiB) TX bytes:114553 (111.8 KiB)
Interrupt:11

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2335 errors:0 dropped:0 overruns:0 frame:0
TX packets:2335 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2944002 (2.8 MiB) TX bytes:2944002 (2.8 MiB)

wlan0 Link encap:Ethernet HWaddr 00:11:F5:01:7B4
inet addr:192.168.2.2 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::211:f5ff:fe01:7bd4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:650 (650.0 b) TX bytes:774 (774.0 b)
Interrupt:7 Memory:faff6000-faff8000
After some working I was able to get the ndiswrapper installed and the windows drivers working. However, I am not sure if this is caused by the paths not being correct, I cannot get on the internet with the wireless. I have an ip, but not able to connect to the web. I do not keep the eth0 and wlan0 running at the same time, only done to for obvious reasons.

What is my next course of action?

Thanks for all of the fast responses.
thornaj
thornaj is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 04:33 PM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2