LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   LinuxAnswers Discussion (http://www.linuxquestions.org/questions/linuxanswers-discussion-27/)
-   -   DISCUSSION: Ndiswrapper in Fedora Core 5 (http://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


All times are GMT -5. The time now is 11:33 AM.