LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxAnswers Discussion (https://www.linuxquestions.org/questions/linuxanswers-discussion-27/)
-   -   DISCUSSION: Ndiswrapper in Fedora Core 5 (https://www.linuxquestions.org/questions/linuxanswers-discussion-27/discussion-ndiswrapper-in-fedora-core-5-a-428731/)

kayoss717 03-26-2006 03:12 PM

DISCUSSION: Ndiswrapper in Fedora Core 5
 
This thread is to discuss the article titled:
Ndiswrapper in Fedora Core 5

Quote:

To install and run ndiswrapper on Fedora Core 5, it take a little tweaking above and beyond what is in the official installation wiki. The first think you need to do is go to http://people.redhat.com/davej/kerne...5/RPMS.kernel/ and get the latest kernel AND kernel-devel. If you are using firefox, when you click on the download, just open them with the default package installer, and they will be installed. Otherwise, save them and install them with yum. Be sure that you are using the most recent kernel when you start installing ndiswrapper. IMPORTANT: Make sure you have the right kernel-devel file installed for whatever kernel you are using!!!

kayoss717 03-28-2006 11:48 AM

Ok I made one mistake. On Step 5, you need to run:
make install KSRC=/usr/bin/kernels/(your kernel directory here)

You have to make sure and add the kernel directory after /kernels. It will not work if you dont. The idea is that you are telling ndiswrapper where to look for your kernels sources, so be sure to tell it the right directory, as it is likely that there are multiple ones. To find out which kernel you are using, type uname -r.

dlennon 03-28-2006 04:15 PM

what if you do not have a kernel directory under /usr/bin

Beresford 03-31-2006 03:12 AM

Quote:

Originally Posted by dlennon
what if you do not have a kernel directory under /usr/bin

He made a mistake, it's actually /usr/src/kernels/<your kernel>

mrcheesypants 04-01-2006 05:11 PM

OK what do you do if the kernel is not in /usr/bin or /usr/src? :newbie:

I swear if I get wireless on my linux partition on my laptop, I'll learn linux.

kayoss717 04-02-2006 12:44 AM

Quote:

Originally Posted by mrcheesypants
OK what do you do if the kernel is not in /usr/bin or /usr/src? :newbie:

I swear if I get wireless on my linux partition on my laptop, I'll learn linux.


Then you need to replace the /usr/bin or /usr/src part with the part where your kernel sources are. For instance, my kernel sources are in /usr/bin/kernels/[kernel name]. Unless you moved the kernel sources to another directory, or manually installed them somewhere else, this is where they should be. What happens when you try to enter the folder I mentioned, does it give you an error, or are you sure that you kernel sources are not installed there?

paulx 04-04-2006 11:55 PM

Hi there,

Thanks. Finally a great step-by-step tuturial, after testing and trying others tips on the web.

I failed as exactly forseen as described in the item 2. I use out of box Fedora Core 5, download from fedora/redhat the kernel-devel-2.6.15-1.2054_FC5 (rpm kerenl-2.6.15-1.2054_FC5 installed)

Ndiswrapper-1.12 :
make rpm or make install seem fine after correcting/linking the kernel source path, but it fails at 'modprobe'

Thanks for any idea for any more things i can do to correct it.


Cheers



"2. It says I have an "invaid module format" when I type modprobe ndiswrapper
Solution:
You do not have the proper kernel-devel file installed for the kernel that you are using. Type uname -r to get your kernel version and go to people.redhat.com/davej/kernels/Fedora/FC5/RPMS.kernel
and download the corresponding kernel-devel file and install it.
"

benthad 04-05-2006 04:15 PM

bcmwl5a.inf
 
I'm having trouble installing the driver.

ndiswrapper -l bcmwl5a(with or without extension)

says:

couldn't copy bcmwl5a at /usr/sbin/ndiswrapper line 139.

Freestone 04-06-2006 07:37 AM

I was having the same problem but discovered why it wasn't working.

My ndiswrapper directory for now is: /temp/ndiswrapper-1.11
The directory for the drivers is : /ndis
/ndis is where I placed bcmwl5a.inf, bcmwl5.inf, etc.

To install the drivers, make sure you tell ndiswrapper where the drivers are located.
So what I used is the following: ndiswrapper -i /ndis/bcmwl5.inf
Make sure when you attempt to install the drivers that you tell ndiswrapper the directory of where the drivers are at.
You can put the drivers in your ndiswrapper-1.11(or whatever version you are using)directory,
just be sure to tell ndiswrapper that they are there. Ex: ndiswrapper -i /ndiswrapper-1.11/bcmwl5.inf
After you install them, make sure that they are installed with the ndiswrapper -l command. That is a lower case l, not the number one.

Hope you have success.
Freestone

matt1206 04-06-2006 02:58 PM

Hi,

I've having truouble getting this to work. I've installed the latest kernel and kernel-devel, but when I run the make install KSRC.... I get the below error:

Code:

[root@localhost ndiswrapper-1.12]# make install KSRC=/usr/src/kernels/2.6.16-1.2084_FC5-i686
make -C driver install
make[1]: Entering directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make -C /lib/modules/2.6.16-1.2084_FC5/build SUBDIRS=/home/Ndiswrapper/ndiswrapper-1.12/driver \
        DRIVER_VERSION=1.12
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 12: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
  LD      /home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o
/bin/sh: ar: command not found
make[3]: *** [/home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o] Error 127
make[2]: *** [_module_/home/Ndiswrapper/ndiswrapper-1.12/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make: *** [install] Error 2

Can anyone point out where I'm going wrong?

Thanks

Matt

matt1206 04-06-2006 05:37 PM

Quote:

Originally Posted by matt1206
Hi,

I've having truouble getting this to work. I've installed the latest kernel and kernel-devel, but when I run the make install KSRC.... I get the below error:

Code:

[root@localhost ndiswrapper-1.12]# make install KSRC=/usr/src/kernels/2.6.16-1.2084_FC5-i686
make -C driver install
make[1]: Entering directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make -C /lib/modules/2.6.16-1.2084_FC5/build SUBDIRS=/home/Ndiswrapper/ndiswrapper-1.12/driver \
        DRIVER_VERSION=1.12
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 12: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
  LD      /home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o
/bin/sh: ar: command not found
make[3]: *** [/home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o] Error 127
make[2]: *** [_module_/home/Ndiswrapper/ndiswrapper-1.12/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make: *** [install] Error 2

Can anyone point out where I'm going wrong?

Thanks

Matt

I managed to sort this by installing binutils and gcc. I've now got the problem that I can connect to my router, but can't get external connection

jdtubaman 04-11-2006 11:16 AM

new problem
 
Hello everyone.

Been following this thread for a while. I have never had this much problems before w/ the other versions of FC, but this one is proving difficult. Now I am encountering something totally new, and never really heard of. here's the output for my make install

[root@localhost ndiswrapper-1.13]# make install KSOURCE=/usr/src/kernels/2.6.16-1.2088_FC5-i686
make -C driver install
make[1]: Entering directory `/home/jadavis1/ndiswrapper-1.13/driver'
make -C /lib/modules/2.6.16-1.2080_FC5/build SUBDIRS=/home/jadavis1/ndiswrapper-1.13/driver \
DRIVER_VERSION=1.13
make[2]: Entering directory `/usr/src/kernels/2.6.16-1.2080_FC5-i686'
LD /home/jadavis1/ndiswrapper-1.13/driver/built-in.o
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/hal.o
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/iw_ndis.o
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/loader.o
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/misc_funcs.o
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/ndis.o
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/ntoskernel.o
/home/jadavis1/ndiswrapper-1.13/driver/ntoskernel.c: In function ‘KeClearEvent’:/home/jadavis1/ndiswrapper-1.13/driver/ntoskernel.c:1738: warning: value computed is not used
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/ntoskernel_io.o
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/pe_linker.o
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/pnp.o
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/proc.o
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/wrapndis.o
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/wrapper.o
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/usb.o
CC [M] /home/jadavis1/ndiswrapper-1.13/driver/divdi3.o
LD [M] /home/jadavis1/ndiswrapper-1.13/driver/ndiswrapper.o
Building modules, stage 2.
MODPOST
CC /home/jadavis1/ndiswrapper-1.13/driver/ndiswrapper.mod.o
LD [M] /home/jadavis1/ndiswrapper-1.13/driver/ndiswrapper.ko
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2080_FC5-i686'


*** 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.16-1.2080_FC5/misc
install -m 0644 ndiswrapper.ko /lib/modules/2.6.16-1.2080_FC5/misc
/sbin/depmod -a 2.6.16-1.2080_FC5
make[1]: Leaving directory `/home/jadavis1/ndiswrapper-1.13/driver'
make -C utils install
make[1]: Entering directory `/home/jadavis1/ndiswrapper-1.13/utils'
gcc -g -Wall -DUTILS_VERSION=\"1.8\" -o loadndisdriver loadndisdriver.c
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/jadavis1/ndiswrapper-1.13/utils'
mkdir -p -m 0755 /usr/share/man/man8
install -m 644 ndiswrapper.8 /usr/share/man/man8



As you can see, it lists something about a 4K stack size option w/ CONFIG_4KSTACKS, but I do not know where that is. it also warns that a value is not used. If anyone can help, please do. I really am starting to miss my wireless on my laptop :)

-Jeff

keepertoad 04-15-2006 05:37 AM

Quote:

Originally Posted by matt1206
Hi,

I've having truouble getting this to work. I've installed the latest kernel and kernel-devel, but when I run the make install KSRC.... I get the below error:

Code:

[root@localhost ndiswrapper-1.12]# make install KSRC=/usr/src/kernels/2.6.16-1.2084_FC5-i686
make -C driver install
make[1]: Entering directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make -C /lib/modules/2.6.16-1.2084_FC5/build SUBDIRS=/home/Ndiswrapper/ndiswrapper-1.12/driver \
        DRIVER_VERSION=1.12
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 12: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
  LD      /home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o
/bin/sh: ar: command not found
make[3]: *** [/home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o] Error 127
make[2]: *** [_module_/home/Ndiswrapper/ndiswrapper-1.12/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make: *** [install] Error 2

Can anyone point out where I'm going wrong?

Thanks

Matt


yum install gcc

yum install gcc++

macoklein 04-16-2006 09:04 PM

i cant find my kernel sources in /usr/src/kernels or in /usr/bin is there a way i can find where they are?

macoklein 04-16-2006 09:26 PM

sry double post

keepertoad 04-17-2006 07:59 AM

Are they installed?

rpm -q kernel-devel

kayoss717 04-17-2006 09:58 AM

macoklein, try updating the database with 'updatedb', then try 'locate (kernel name here)'
Get your kernel name with 'uname -r'. Look for entries that refer to directories.

Simon Bridge 04-17-2006 10:19 PM

ndiswrapper is supposed to be available via yum, so are the kernel and kernel-devel packages in the howto.

from FedoraForum.org

Quote:

Please make sure kernel-devel is installed to make the install easy and painless
If you have FC4 and have /etc/yum.repo.d/livna.repo configured
Code:

[livna-stable] name=Livna.org Fedora Compatible Packages (stable)
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/RPMS.lvn
enabled=0 gpgcheck=1

Code:

# yum --enablerepo=livna-stable install ndiswrapper kernel-module-ndiswrapper-$(uname -r)
or for FC5 do this
Code:

# yum -y install kmod-ndiswrapper-$(uname -r)
For my case, I have a Broadcom BCM9306 chipset and the windows driver needed is bcmwl5.inf and bcmwl5.sys. Move both files to a folder in your home directory called bcmwl. I hope you know you first have to creat the folder bcmwl
Code:

mkdir bcmwl
Do the "make install" only if you have the source file. I will strongly recommend the rpm file from livna
Open a terminal and uncompress ndiswrapper.

Go to the ndiswrapper folder and as root
Code:

#make install
--do this if you downloaded the source file or skip this if you used the livna rpm
Code:

# /usr/sbin/ndiswrapper -i <your home directory>/bcmwl/bcmwl5.inf
    ...this command will create a folder in /etc/ndiswrapper/bcmwl5/bcmwl5.inf
# /usr/sbin/ndiswrapper -l
    -- make sure it says "bcmwl5 present"
# /sbin/depmod -a
#/sbin/modprobe ndiswrapper
# dmesg
    --you will see a log about the driver been loaded if you do then
# /usr/sbin/ndiswrapper -m
    --create an alias in /etc/modprobe.conf

Here comes the easy part
close terminal and point your cursor to Desktop -->System Settings -->Network Configuration and type in the root's password when prompted.
In Network Configuration, click on New and then "Select Device type box" shows, highlight Wireless connection and click on "Forward".
This brings up the "Select Wireless Device box" window, which has ndiswrapper(wlan0) highlighted, then click "Forward".
This bring up the "Configure Wireless Connection box" which allows you to set the mode, ssid, channel, rate and hex key. After you are done, click "Forward"
This brings up the "Configure Network Settings box" which allows you to set the dhcp, dns and ip address. When you are done, then click forward.
The next box "Create Wireless Device box" has all you settings for you to double check before hitting apply.
When you hit apply, it should take you back to Network Configuration, highlight the created wlan0 and click "Edit" which allows you to fine tune the configuration, like if you want all users to be able to enable wlan0, if you want wlan0 to start on boot etc. Go though the tabs and check everything and make sure it is up to your specification, then click "Ok" and then the final thing
on "Network Configuration", click on "File" and then "Save"

If every is correct, you can then click on activate to activate wlan0

aschreiber1 05-14-2006 06:00 PM

Fedora 5 - ndiswrapper - Belkin Pre-N Wireless Card
 
OK. So I did not heed the age old saying "leave well enough alone".

I installed FC5 like 6 weeks ago and after a few days of learning all about linux and ndiswrapper I was able to get WiFi working. The problem was that I also wanted to run Oracle 10g AS on this box and at least at the time it was not supported. Technically it's still not supported but I did find an article or two written by known Oracle gurus that have claimed successful installations on FC5 although I have yet to replicate it.

Anyhow, much to my dismay I decided to downgrade to FC4 only to find that I was not able to get Wifi working so I upgraded back to FC5 and now it's been like 2 weeks and I can't for the life of me figure out what I did to get it to work the first time around.

I know that most of my setup is correct. I am using a Belkin Pre-n Wireless card in my Dell Dimension 4700 SMP computer. I have the latest kernel installed (and yes I even tried formatting my hard drive and using the kernel that I first used to successfully get wifi working 6 weeks ago and that did not work either) which is currently version 2.6.16-1.2111_FC5.stk16smp. I recently patched the 2.6.16-1.2111_FC5smp version to incorporate the 16k stack (even though I was able to use the 4k one in my successful attempt several weeks ago b/c after so many failed attempts I figured it couldn't hurt).

So this is where I stand now:

1. Installed Fedora Core 5
2. Updated all packages, kernel etc. so I am running 2.6.16-1.2111_FC5.stk16smp
3. Downloaded and installed kernel-smp-devel-2.6.16-1.2111_FC5.stk16.i686.rpm
4. Installed latest version of ndiswrapper using the src files from the package noted above and got no errors during compilation/installation
5. Installed Windows "inf" driver (made sure to use the Netgear one instead of the Belkin one located on the CD just like I did the first time around when I successfully got WiFi to work).
6. Ran all the necessary commands (i.e. ndiswrapper -i /u01/wifi_drivers/NetAni.inf, ndiswrapper -l, ndiswrapper -m etc.)
7. Added necessary alias entry to etc/modprobe.conf file (i.e. alias wlan0 Belkin)
8. Added pci=assign-busses as new parameter to grub.conf
9. Ran command "iwconfig wlan0 essid gonzo" and witnessed that the device had bound itself to my AP (it had the MAC address for my Wifi router) and it also had the correct SSID name which is "gonzo".
10. Checked to make sure I could actually "see" Access Points by running iwlist wlan0 scan and it returned 4 nearby AP so I know the card is technically "working".

This is where the problem occurs:

11. I either run "dhclient wlan0" or I click on my Wifi card in the Network section under "System => Configuration => Network" and click "Activate" and it never gets an IP address from the router.

I have the correct channel set (my router is using 11) and I tried using both "managed" and "auto" for the wifi card configuration type.

So as you can see I have become somewhat of an "expert" on this subject. The REALLY irritating thing was that although configuring WiFi on FC5 was no picnic the first time around (it did take me like 2 days) it's absolutely driving me UP THE FREAKING WALL now that I can't figure it out the second, third, fourth etc. time around.

I basically need another set of eyes. The thing I don't get is that when I check my router's log it shows that this wifi card has made multiple "successful" connection attempts. The problem is it never actually assigns it an IP. I even have encryption disabled for the time being just to avoid any issues that could complicate communication between the router and the NIC card.

If there is anyone out there that could help me figure out what the heck I am doing wrong I would GREATLY appreciate it.

Thanks in advance.

Simon Bridge 05-14-2006 07:02 PM

If you've done all this on a completely fresh FC5 install, then the problem is probably not on the FC5 machine - maybe on the router.

There's a wee niggle in the back of my minds saying that your card's mac address (or whatever) is recorded against the previous time it was able to connect - so the router won't accept this "new" client claiming to be the old card ... or something.

This is clumsily explained - there is a particular word for what I want but it escapes me right now. But sometimes some data gets cached somewhere and you need to change the details (or empty to cache) or there will be conflicts.

Anyway - I'd hunt through all the stuff the router stores about it's sessions and look for anything to do with your card - and reset it. (Or reset the whole router?)

Of course, if the FC4-5 step was one of Anaconda's "upgrades" ... this is probably your problem. It has kept whatever didn't work in FC4 ... possibly a kernel configuration (though I see iwtools is installed). In which case, the simplest workaround is to reinstall.

You had it working from a virgin install that the router had never seen. Restore these conditions and the system will work.

Simon Bridge 05-14-2006 07:05 PM

On another point: I take it you had a howto for FC4 - which is the reason for the downgrade?

In general, howto's can be intellegently applied to the next release up anyway. There is a small matter of reading through the entire howto carefully and comparing with the release notes (and/or changelog) to make sure that things you are told to install are not present by default. rpm -q is good for this too.

And the lesson: do your experimenting on another machine.

(You could run another nix in a dual boot or Xen (VM) and do your experimenting there - you can then port successful results to your more "mission-critical" machine)

jonwatson 05-17-2006 11:07 AM

Quote:

Originally Posted by matt1206
Hi,

I've having truouble getting this to work. I've installed the latest kernel and kernel-devel, but when I run the make install KSRC.... I get the below error:

Code:

[root@localhost ndiswrapper-1.12]# make install KSRC=/usr/src/kernels/2.6.16-1.2084_FC5-i686
make -C driver install
make[1]: Entering directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make -C /lib/modules/2.6.16-1.2084_FC5/build SUBDIRS=/home/Ndiswrapper/ndiswrapper-1.12/driver \
        DRIVER_VERSION=1.12
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 12: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
  LD      /home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o
/bin/sh: ar: command not found
make[3]: *** [/home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o] Error 127
make[2]: *** [_module_/home/Ndiswrapper/ndiswrapper-1.12/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make: *** [install] Error 2

Can anyone point out where I'm going wrong?

Thanks

Matt

I suppose you've moved on by now, but the problem is that you don't have the GCC compiler installed. See the 'make[2]: gcc: Command not found line? That's the culprit.

einstein_linux 05-23-2006 05:06 PM

Quote:

Originally Posted by Simon Bridge
ndiswrapper is supposed to be available via yum, so are the kernel and kernel-devel packages in the howto.

from FedoraForum.org

Everything above went fine, but the card isn't showing up in the Network section by eth0. The light on the laptop indicates that the wifi is on, but no IP and no configuration through the menu in FC5 Gnome.

Any ideas on what I am doing wrong?

Simon Bridge 05-23-2006 06:19 PM

the cli tool is called iwconfig - (wireless eqiv for ifconfig) have a look what it says... should be a clue.

I'm not clear on what you've done... you installed ndiswrapper et al as per the fedorafaq? You installed the network device via the internet configuration wizard?

einstein_linux 05-23-2006 08:23 PM

Quote:

Originally Posted by Simon Bridge
the cli tool is called iwconfig - (wireless eqiv for ifconfig) have a look what it says... should be a clue.

I'm not clear on what you've done... you installed ndiswrapper et al as per the fedorafaq? You installed the network device via the internet configuration wizard?


lo no wireless extensions.

eth0 no wireless extensions.

sit0 no wireless extensions.

wlan0 IEEE 802.11g ESSID:"WIFI"
Mode:Managed Frequency:2.462 GHz Access Point: 00:0F:B5:5B:12:DC
Bit Rate:54 Mb/s Tx-Power:25 dBm
RTS thr:2347 B Fragment thr:2346 B
Encryption key:off
Power Management:off
Link Quality:100/100 Signal level:-50 dBm Noise level:-256 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

is what it says. It is seeing my AP and recognizing wlan0 but not getting ip info etc.

einstein_linux 05-23-2006 08:56 PM

[QUOTE=You installed the network device via the internet configuration wizard?[/QUOTE]

Where is this?

Simon Bridge 05-23-2006 09:57 PM

main menue > system tools > internet configuration wizard (same place as the network device control)...

You should also read the iwconfig man page.

leenuxius 05-25-2006 04:31 AM

Hi everyone

I' using RHEL 4 in my compaq nx9010 with Broadcom wireless card and kernel 2.6.9. I've followed the installation steps until step no. 8.

According to the list in ndiswrapper( listed in B, no. 42), nx9010 uses driver bcmwl5.inf. I've managed to get the driver after following the steps given in the ndiswrapper list.

I tried:
ndiswrapper -i bcmwl5.inf

but it says invalid driver. So, i tried with bcmwl5a.inf. Also invalid driver. I am using the correct driver and I am sure because my wireless card works fine in Windows XP.

I tried unintall ndiswrapper and reinstall it. But, i still got the same problem of invalid driver. One more thing, when I reinstall, I realised that I've also gotten the 4K size stack warning.....

Could anyone help me with this? Please.....

mate16 05-31-2006 06:20 PM

What's wrong? You have no gcc (compiler) installed, so you cannot compile ndiswrapper kernel module.
But in fact it's not necessary: type as root "yum install ndiswrapper kmod-ndiswrapper" and skip all compilation-installation steps. It works for me (on FC5).

Good luck! :)

leenuxius 06-01-2006 08:00 PM

I've managed to solve the problems already. What i did was instead of only copying the *.inf file, i also copied the *.sys file and another bin file into the ndiswrapper directory. Then, all my problem has been solved. My driver is now present and working fine.

dante__182 06-03-2006 08:46 AM

Ok, I've been following the steps that have been posted, and it all goes well, until i get to step 7: ndiswrapper-l, i get the error message bash: ndiswrapper: command not found I'm total linux newb, and would love to know what I've done wrong
hope to hear something soon
Dante__182

kwei 06-05-2006 02:20 AM

ndiswrapper loads but no connections
 
Quote:

Originally Posted by kayoss717
Ok I made one mistake. On Step 5, you need to run:
make install KSRC=/usr/bin/kernels/(your kernel directory here)

You have to make sure and add the kernel directory after /kernels. It will not work if you dont. The idea is that you are telling ndiswrapper where to look for your kernels sources, so be sure to tell it the right directory, as it is likely that there are multiple ones. To find out which kernel you are using, type uname -r.

Nice how-to article you wrote there. I tried to follow the steps and got kind of close but still no bananas. Got the ndiswrapper to load at boot time only after editing /etc/rc.d/rc.local, but still not connecting to any AP, as if iwconfig loses its settings. I can scan APs around my place, but would have to set essid and key manually in order to connect to my AP. Even then the signal level is way down: -32 db.

I have a Dell e1705 with a wireless 1390 mini-card and am running 2.6.16-1.2122_FC5smp with a matching kernel devel package (via yum).

I'll be very grateful if you can shed light on:
1. Why iwconfig settings seem missing?
2. If I go to Network Configuration, only eth0 shows up as net device. wlan0 does show up in Hardware pane with status 'configured'. Why?

TIA,

Kwei

kwei 06-05-2006 01:52 PM

ndiswrapper: command not found
 
Quote:

Originally Posted by dante__182
Ok, I've been following the steps that have been posted, and it all goes well, until i get to step 7: ndiswrapper-l, i get the error message bash: ndiswrapper: command not found I'm total linux newb, and would love to know what I've done wrong
hope to hear something soon
Dante__182

I'm running FC5, and you can find ndiswrapper in /usr/sbin

In general, you can use 'find' command on Linux to find things.

Kwei

YAOMK 06-06-2006 04:50 PM

Dante,

Before you run the ndiswrapper -l command make sure you do su -c 'bash -l' (this will log the shell so that you can run the aforementioned command).

And Kwei - I have stored my configurations commands in the /etc/rc.local and they run everytime I start my box, I also included intermitent pauses such as: ping -c3 127.0.0.1 > /dev/null between my commands so that it will run more stable and wont crash. If you wish to not have Eth0 start upon boot you can edit the /etc/sysconfig/network-scripts/ifcfg-eth0 file and set the following value ONBOOT=no

kwei 06-06-2006 09:12 PM

Quote:

Originally Posted by YAOMK
Dante,

Before you run the ndiswrapper -l command make sure you do su -c 'bash -l' (this will log the shell so that you can run the aforementioned command).

And Kwei - I have stored my configurations commands in the /etc/rc.local and they run everytime I start my box, I also included intermitent pauses such as: ping -c3 127.0.0.1 > /dev/null between my commands so that it will run more stable and wont crash. If you wish to not have Eth0 start upon boot you can edit the /etc/sysconfig/network-scripts/ifcfg-eth0 file and set the following value ONBOOT=no

Yaomk,

Thanks for the tips. I ended up creating a wireless device named wlan0 via System/Admin/Network (GUI), where I entered the wireless settings, and then add the following line to /etc/rc.d/rc.local:
ifup wlan0

The wireless connection now goes up at boot time. I might try your trick of inserting pauses if it starts crashing.

thx again. I'm gonna fix display resolution and sound next.

Kwei

gargrk72 06-08-2006 05:06 AM

Success setting Broadcom Driver bcmwl5.inf on HP nx9010
 
Hi.

I got a lot of tips from this thread. After struggling for a week or so I could set up Broadcom Wireless Adaptor version bcmwl5.inf on HP nx9010. Great!!!

Other useful webpage from Technetra is ndis_wrapper_wifi_html

Thanks..

RKGarg

morganism 06-08-2006 08:08 AM

gcc location
 
type: which gcc
There error[s] indicates that you can't see the GNU dev tools (gcc, ar, etc...)
Put them in the path, or install them .



Quote:

Originally Posted by matt1206
Hi,

I've having truouble getting this to work. I've installed the latest kernel and kernel-devel, but when I run the make install KSRC.... I get the below error:

Code:

[root@localhost ndiswrapper-1.12]# make install KSRC=/usr/src/kernels/2.6.16-1.2084_FC5-i686
make -C driver install
make[1]: Entering directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make -C /lib/modules/2.6.16-1.2084_FC5/build SUBDIRS=/home/Ndiswrapper/ndiswrapper-1.12/driver \
        DRIVER_VERSION=1.12
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 12: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
  LD      /home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o
/bin/sh: ar: command not found
make[3]: *** [/home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o] Error 127
make[2]: *** [_module_/home/Ndiswrapper/ndiswrapper-1.12/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make: *** [install] Error 2

Can anyone point out where I'm going wrong?

Thanks

Matt


gargrk72 06-08-2006 11:51 PM

Hi.
My kernel is 2.6.16-1.2122_FC5 686 REGPARM 4KSTACKS gcc-4.1
Kernel ver 2054 was autoupdated on internet (using cable connection for eth0) while installing ndiswrapper 1.13 using yum command.
The driver used is bcmwl5.inf from c:\windows\drivers directory. 2.6.16-1.2122_FC5 686 REGPARM 4KSTACKS gcc-4.1

I hope this may be helpful.
RKGarg

nx5000 06-09-2006 03:10 AM

Hello everyone,
Before trying to use this ndiswrapper hack that taints your kernel, have some considered trying this:
http://bcm43xx.berlios.de/
Which is a true linux driver that is being heavily maintained and waiting for feedback from users with newer laptop models. There is a compatibility list but more hardware is supported. This driver is stable enough so that it is integrated in 2.6.17 kernel. Worth trying!?

If it really doesn't work, then go with ndiswrapper.

:twocents:

linuxnewbie1972 06-10-2006 01:42 AM

don't use KSRC... The new version I got, I have to use KBUILD.

Quote:

Originally Posted by matt1206
Hi,

I've having truouble getting this to work. I've installed the latest kernel and kernel-devel, but when I run the make install KSRC.... I get the below error:

Code:

[root@localhost ndiswrapper-1.12]# make install KSRC=/usr/src/kernels/2.6.16-1.2084_FC5-i686
make -C driver install
make[1]: Entering directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make -C /lib/modules/2.6.16-1.2084_FC5/build SUBDIRS=/home/Ndiswrapper/ndiswrapper-1.12/driver \
        DRIVER_VERSION=1.12
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 11: gcc: command not found
/usr/src/kernels/2.6.16-1.2084_FC5-i686/scripts/gcc-version.sh: line 12: gcc: command not found
make[2]: gcc: Command not found
make[2]: Entering directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
  LD      /home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o
/bin/sh: ar: command not found
make[3]: *** [/home/Ndiswrapper/ndiswrapper-1.12/driver/built-in.o] Error 127
make[2]: *** [_module_/home/Ndiswrapper/ndiswrapper-1.12/driver] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2084_FC5-i686'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/Ndiswrapper/ndiswrapper-1.12/driver'
make: *** [install] Error 2

Can anyone point out where I'm going wrong?

Thanks

Matt


grunbergdaniel 06-12-2006 04:29 PM

dear all,
i have a similar problem as matt's.
i've installed fedora core 5 with kernel version 2.6.15-1.2054_FC5 and went on to install the latest kernel, viz 2.6.16-1.2129_FC5-i686 together with its devel file, like kayoss717 suggested. trouble in step 5, as he's confused between the two kernels:

[grunberg@dhcppc2 ndiswrapper-1.17]$ make install KSRC=/usr/src/kernels/2.6.16-1.2129_FC5-i686
make -C driver install
make[1]: Entering directory `/home/grunberg/Ndiswrapper/ndiswrapper-1.17/driver'Can't find kernel build files in /lib/modules/2.6.15-1.2054_FC5/build;
give the path to kernel build directory with
KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/home/grunberg/Ndiswrapper/ndiswrapper-1.17/driver'
make: *** [install] Error 2

he's still using the old kernel despite rebooting, as i see from uname -r. how can i solve this ?
thanks,
dan

grunbergdaniel 06-12-2006 04:59 PM

well, linuxnewbie1972 was right to point out that one should use KBUILD instaed of KSRC.
however, my problem somewhat persists:
after several succesfull steps of
make install KBUILD=/usr/src/kernels/2.6.16-1.2129_FC5-i686
i face the following error, suggesting he's still confused between the two kernels:
thanks for any help,
dan

make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2129_FC5-i686'
*** 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.15-1.2054_FC5/misc
mkdir: cannot create directory `/lib/modules/2.6.15-1.2054_FC5/misc': Permission denied
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/grunberg/Ndiswrapper/ndiswrapper-1.17/driver'
make: *** [install] Error 2

drzoidberg 06-13-2006 02:57 AM

Hi Guys,

I have been able to follow this post up until now.

I have installed the correct kernel source and devel rpms. I then installed ndiswrapper and all went well. I was able to install the driver and when I type ndiswrapper -l I can see that it is installed and the hardware is present.

When I move on to the next step which is modprobe ndiswrapper I get the following error:

FATAL: Error inserting ndiswrapper (/lib/modules/2.6.15-1.2054_FC5smp/misc/ndiswrapper.ko): Invalid module format.

I know that this means I have the wrong kernel-devel installed but I double checked and it is the correct one.

What do I do to fix this?

Thanks

gargrk72 06-14-2006 06:27 AM

Hi.
I had installed ndiswrapper and bcmwl5 driver for my laptop HP nx 9010. I am giving sequence here. Original kernel ver was 2054_FC5. I straightway followed these steps which have been updated and correct.
(1) Update kernel to 2.6.16-1.2129_FC5.i586 with sources by downloading following three files.
(i) kernel-2.6.16-1.2129_FC5.i586.rpm
(ii) kernel-devel-2.6.16-1.2129_FC5.i586.rpm
(iii) kernel-2.6.16-1.2129_FC5.src.rpm

Make a directory as
(i) mkdir /usr/src/redhat/
(ii) mkdir /usr/src/redhat/SOURCES

Install all as
rpm -i *.rpm --aid --force

(2) After installation boot the system in new kernel version that is 2.6.16-1.2129

(3) Go to http://sourceforge.net/projects/ndiswrapper/ and download ndiswrapper-1.16.tar.gz file. Extract it to /tmp/ndiswrapper-1.16 folder and install it following the instructins written in the document INSTALL which is supplied in above folder.

(4) find out your bcmwl5.inf and .sys files in windows and copy them to /usr/broadcom folder. I am mentioning in windows because you are sure that this driver works fine with the hardware.

(5) In root terminal, change to this directory cd /usr/broadcom

(6) Type following command

ndiswrapper -i bcmwl5.inf

You should be 100% sure of your bcmwl5 driver which works on notebook else no success.

(7) Verify proper installation and hardware compatibility by typing command
ndiswrapper -l
(8) It should display:
"bcmwl5 driver installed, hardware present"
If you don't get it then problem with driver.

(9) Place a line in /etc/modprobe.conf at top using editor:
alias wlan0 ndiswrapper

(10) Now you can reboot to have it activated, or you can run following two commands:

(i) depmod -a
(ii) modprobe ndiswrapper

(11) Deactivate the ethernet port by command

ifconfig eth0 down

(12) Activate the wireless port by command

ifconfig wlan0 up

(13) To see wlan0 details to be used in next step type command

(i) iwconfig
(ii) iwlist wlan0 scan shows the Access points and details

(14) run command sytem-config-network for configuring the network. I have configured only static IPs option and left everything to default.

(15) You may ping your gateway to confirm the wireless connectivity.


I hope this is helpful.
RKGarg

grunbergdaniel 06-15-2006 12:12 PM

thanx gargrk72. now in the meantime, i've removed the 2.6.16 kernel and kept my 2.6.15 one, then installed ndiswrapper. things went ok, including modprobe. now i'm trying to use the access point of my the neighbourhood (some neighbours using windows XP tell me they can use several APs without encryption key). with
$ /sbin/iwlist wlan0 scan
i see 6 APs, of which 3 have their encryption key on and 3 have it off. with
$ /sbin/iwconfig wlan0 essid "NETGEAR"
i choose one of the 3 that has the key off. then i do
$ /sbin/iwconfig wlan0 key open
and get the following error msg:
Error for wireless request "Set Encode" (8B2A): SET failed on device wlan0; Invalid argument.
if i do
$ /sbin/iwconfig wlan0 key off
$ /sbin/ifconfig wlan0 up
no error msg but then i still have no connection, and netstat -rn doesnt show any result for wlan0.
what's wrong ? thanks for helping that hapless newbie... :(
cheers,
dan

gargrk72 06-15-2006 11:35 PM

Hi, grunbergdaniel
Sorry, No experience to guide you.

However, i have found that
$ifup wlan0

generaly works fine instead of
$ifconfig wlan0 up

for my wireless. Pl update if you succeed.
RKGarg

dazonic 06-20-2006 06:41 AM

I can't find anyone who's had the problem I'm getting.
After a seemingly perfect install I end up with:

Quote:

# /sbin/modprobe ndiswrapper
FATAL: Error inserting ndiswrapper (/lib/modules/2.6.15-1.2054_FC5/misc/ndiswrapper.ko): Invalid argument
kernel-devel installed, finding source fine. ndiswrapper appears to install properly.

Any help greatly appreciated.

Bill Gatz 06-20-2006 12:06 PM

Maybe I am the slowest learner of all...
 
I keep getting the same error as I am being asked to try KBUILD/KSRC/KSOURCE (don't know, I have tried them all) and I apparently don't know where my kernel files are installed. I have tried to work with the statement "Then you need to replace the /usr/bin or /usr/src part with the part where your kernel sources are" and used both usr/bin and usr/src but rather than try to monkey copy every possible combination, isn't there a way I can tell where my kernel files are installed?

I do uname -r and I have the exact kernel name, but that does me no good. I have used that in all of the machinations to no avail. I have searched for that exact name in the file browser just to see what turns up (nothing). I figured that would lead me to something that would enable me to make sure my file path to the kernel is correct.

So I assume that whatever I need to find, I don't know what name to search for. Isn't there a file that is always in the kernel that will find this elusive location for me right away? I was going to blow this off and just put ndiswrapper on SUSE 10, but it is giving me the same error. Ndiswrapper installed on MEPIS installed right off the bat, and even works with WPA. I don't remember wrestling with anything like this at all. That is why I loaded these other distros on the laptop too.

dazonic 06-20-2006 11:21 PM

bill:
don't know if this will help you, but..
if you've installed kernel-devel, try /lib/modules/build/<version>/ check if build link is broken- mine was. if not, it might point you in the right direction.

jrod2008 06-21-2006 10:03 PM

Quote:

Originally Posted by grunbergdaniel
i face the following error, suggesting he's still confused between the two kernels:
thanks for any help,
dan

make[2]: Leaving directory `/usr/src/kernels/2.6.16-1.2129_FC5-i686'
*** 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.15-1.2054_FC5/misc
mkdir: cannot create directory `/lib/modules/2.6.15-1.2054_FC5/misc': Permission denied
make[1]: *** [install] Error 1
make[1]: Leaving directory `/home/grunberg/Ndiswrapper/ndiswrapper-1.17/driver'
make: *** [install] Error 2

I had the same error, and I read on an earlier thread that the ways to fix the bolded error are to A. get a kernel from the linux-ntfs site, I would post the site, but the forums won't let me, so just Google it,
or B. compile your own kernel. I'm trying A. I'll post and say how it went.

BTW, the ndiswrapper has a wiki that answers many questions brought up here.

UPDATE: I already installed the new kernel suggested int the article, and now I can't install the 16k version. I get the error "Can't install a different arch of /home/jrod/Desktop/kernel-2.6.16-1.2133 than already installed." Does anyone know how to uninstall a kernel?

UPDATE2: I figured it out. I used yum remove. Also, instead of the linux-ntfs, I used the kernel and kernel-devel suggested in the wiki.


All times are GMT -5. The time now is 10:03 AM.