LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices

Reply
 
Search this Thread
Old 06-03-2006, 08:46 AM   #31
dante__182
LQ Newbie
 
Registered: Jun 2005
Posts: 6

Rep: Reputation: 0

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
 
Old 06-05-2006, 02:20 AM   #32
kwei
LQ Newbie
 
Registered: May 2006
Posts: 8

Rep: Reputation: 0
Question 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
 
Old 06-05-2006, 01:52 PM   #33
kwei
LQ Newbie
 
Registered: May 2006
Posts: 8

Rep: Reputation: 0
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
 
Old 06-06-2006, 04:50 PM   #34
YAOMK
Member
 
Registered: Apr 2006
Location: Ft. Lauderdale
Distribution: FC7 and CentOS 5
Posts: 40

Rep: Reputation: 15
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
 
Old 06-06-2006, 09:12 PM   #35
kwei
LQ Newbie
 
Registered: May 2006
Posts: 8

Rep: Reputation: 0
Smile

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
 
Old 06-08-2006, 05:06 AM   #36
gargrk72
LQ Newbie
 
Registered: Jun 2006
Posts: 10

Rep: Reputation: 0
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
 
Old 06-08-2006, 08:08 AM   #37
morganism
LQ Newbie
 
Registered: Mar 2006
Posts: 1

Rep: Reputation: 0
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
 
Old 06-08-2006, 11:51 PM   #38
gargrk72
LQ Newbie
 
Registered: Jun 2006
Posts: 10

Rep: Reputation: 0
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
 
Old 06-09-2006, 03:10 AM   #39
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 52
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.

 
Old 06-10-2006, 01:42 AM   #40
linuxnewbie1972
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
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
 
Old 06-12-2006, 04:29 PM   #41
grunbergdaniel
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Rep: Reputation: 0
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
 
Old 06-12-2006, 04:59 PM   #42
grunbergdaniel
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Rep: Reputation: 0
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
 
Old 06-13-2006, 02:57 AM   #43
drzoidberg
LQ Newbie
 
Registered: Jun 2006
Posts: 1

Rep: Reputation: 0
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
 
Old 06-14-2006, 06:27 AM   #44
gargrk72
LQ Newbie
 
Registered: Jun 2006
Posts: 10

Rep: Reputation: 0
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

Last edited by gargrk72; 09-03-2006 at 05:04 AM.
 
Old 06-15-2006, 12:12 PM   #45
grunbergdaniel
LQ Newbie
 
Registered: Jun 2006
Posts: 3

Rep: Reputation: 0
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
 
  


Reply

Tags
broadcom, fedora, hp, ndiswrapper, nx


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
DISCUSSION: How to: Simple Installation of Madwifi in Fedora Core 4 (for Atheros chipped cards) XavierP LinuxAnswers Discussion 4 06-06-2007 09:08 AM
DISCUSSION: Hardware Acceleration with ATI in Fedora Core 4 jagjitnatt LinuxAnswers Discussion 2 11-12-2005 12:15 PM
DISCUSSION: HOWTO: Install Sun's Java VM in Fedora Core 2 kevcart3 LinuxAnswers Discussion 9 10-28-2005 02:34 PM
DISCUSSION: Install KDE 3.4 in Fedora Core 3 without Applications Crashing hari_seldon99 LinuxAnswers Discussion 6 08-17-2005 05:38 PM
DISCUSSION: Fedora Core 3 on Toshiba A70 woolfrey LinuxAnswers Discussion 1 04-02-2005 07:23 PM


All times are GMT -5. The time now is 06:04 AM.

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