LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 03-26-2006, 03:12 PM   #1
kayoss717
LQ Newbie
 
Registered: Oct 2005
Location: College Station
Distribution: Ubuntu 9.04
Posts: 14

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

Last edited by XavierP; 03-26-2006 at 03:13 PM.
 
Old 03-28-2006, 11:48 AM   #2
kayoss717
LQ Newbie
 
Registered: Oct 2005
Location: College Station
Distribution: Ubuntu 9.04
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 03-28-2006, 04:15 PM   #3
dlennon
Member
 
Registered: Mar 2006
Posts: 41

Rep: Reputation: 15
what if you do not have a kernel directory under /usr/bin
 
Old 03-31-2006, 03:12 AM   #4
Beresford
LQ Newbie
 
Registered: Oct 2004
Location: New Zealand
Posts: 28

Rep: Reputation: 15
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>
 
Old 04-01-2006, 05:11 PM   #5
mrcheesypants
LQ Newbie
 
Registered: Feb 2006
Distribution: SuSE
Posts: 25

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

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

Last edited by mrcheesypants; 04-01-2006 at 05:17 PM.
 
Old 04-02-2006, 12:44 AM   #6
kayoss717
LQ Newbie
 
Registered: Oct 2005
Location: College Station
Distribution: Ubuntu 9.04
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mrcheesypants
OK what do you do if the kernel is not in /usr/bin or /usr/src?

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?
 
Old 04-04-2006, 11:55 PM   #7
paulx
LQ Newbie
 
Registered: Apr 2006
Posts: 10

Rep: Reputation: 0
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.
"
 
Old 04-05-2006, 04:15 PM   #8
benthad
LQ Newbie
 
Registered: Apr 2006
Posts: 5

Rep: Reputation: 0
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.
 
Old 04-06-2006, 07:37 AM   #9
Freestone
Member
 
Registered: Jan 2003
Location: Brighton, Michigan
Distribution: FC5
Posts: 114

Rep: Reputation: 15
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
 
Old 04-06-2006, 02:58 PM   #10
matt1206
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
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 04-06-2006, 05:37 PM   #11
matt1206
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
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
 
Old 04-11-2006, 11:16 AM   #12
jdtubaman
LQ Newbie
 
Registered: Apr 2006
Posts: 1

Rep: Reputation: 0
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
 
Old 04-15-2006, 05:37 AM   #13
keepertoad
LQ Newbie
 
Registered: Apr 2006
Posts: 2

Rep: Reputation: 0
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++
 
Old 04-16-2006, 09:04 PM   #14
macoklein
LQ Newbie
 
Registered: Nov 2005
Posts: 6

Rep: Reputation: 0
i cant find my kernel sources in /usr/src/kernels or in /usr/bin is there a way i can find where they are?
 
Old 04-16-2006, 09:26 PM   #15
macoklein
LQ Newbie
 
Registered: Nov 2005
Posts: 6

Rep: Reputation: 0
sry double post
 
  


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 07:51 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