Fedora Linux Support Community & Resources Center
  #1  
Old 27th April 2007, 07:57 PM
baffa Offline
Registered User
 
Join Date: Feb 2007
Location: United Kingdom
Age: 27
Posts: 64
Netgear WG511v2 on Compaq Evo N610c...ndiswrapper...what now?

Hi all,

Just wondering if i could get some guidance on the hardware stated in the topic title. Im trying to use that ndiswrapper thingy to install the wireless card (again stated in tittle).

I have followed the instructions on the ndiswrapper website and on their installation instructions in section "complie and install" i get the error:

[root@mycomputer]# make
make -C driver
make[1]: Entering directory `/home/Russell/Desktop/ndiswrapper-1.42/driver'
Can't find kernel build files in /lib/modules/2.6.20-1.2312.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/Russell/Desktop/ndiswrapper-1.42/driver'
make: *** [all] Error 2


Nt gunna lie to you I have no idea what i am doing so if one of u very kind people could give me a push in the right direction that would be great!!

cheers to all readers in advance,

baffa
Reply With Quote
  #2  
Old 27th April 2007, 10:00 PM
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,509
You need to install the match rpm called kernel-devel-2.6.20-1.2312.fc5.rpm. This is the kernel source. If it the orginal installed kernel then the file should on one of the cds. If upgraded then you need to locate it from where you got the kernel-2.6.20-1.2312.fc5.rpm. Once installed then you can build the ndiswrapper modules. If kernel is upgraded then you need the kernel-devel that matches the version you have installed again and rebuild the ndiswrapper modules.

Now look this over to see if it the taiwan version that can use the prism54 module. If so then prism54 modules are built in that kernel if I am sure. If it the China version then ndiswrapper is the only choice. The taiwan version can use both prism54 and ndiswrapper. http://www.linuxquestions.org/questi...hreadid=295200

Search this site for more detail info on ndiswrapper install if not sure. It has been discuss so many times.

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #3  
Old 27th April 2007, 10:42 PM
baffa Offline
Registered User
 
Join Date: Feb 2007
Location: United Kingdom
Age: 27
Posts: 64
ok thanks for that ill have a look at that site and try and go from there. My card is made in china so ndiswrapper is the route ima have to go down.
Reply With Quote
  #4  
Old 27th April 2007, 11:52 PM
baffa Offline
Registered User
 
Join Date: Feb 2007
Location: United Kingdom
Age: 27
Posts: 64
any1 else gt anything coz i have just followed the ndiswrapper instructions to the dot, twice and it still says after i run

ndiswrapper -l

that it doesnt recognise the bash command!!! why the hell not u dumb calculator with letter buttons!
Reply With Quote
  #5  
Old 28th April 2007, 12:16 AM
baffa Offline
Registered User
 
Join Date: Feb 2007
Location: United Kingdom
Age: 27
Posts: 64
[root@** Desktop]# tar -zxvf ndiswrapper-1.42.tar.gz
ndiswrapper-1.42/
ndiswrapper-1.42/AUTHORS
ndiswrapper-1.42/ChangeLog
ndiswrapper-1.42/INSTALL
ndiswrapper-1.42/Makefile
ndiswrapper-1.42/README
ndiswrapper-1.42/ndiswrapper.spec
ndiswrapper-1.42/ndiswrapper.8
ndiswrapper-1.42/loadndisdriver.8
ndiswrapper-1.42/utils/
ndiswrapper-1.42/utils/Makefile
ndiswrapper-1.42/utils/ndiswrapper
ndiswrapper-1.42/utils/loadndisdriver.c
ndiswrapper-1.42/utils/ndiswrapper-buginfo
ndiswrapper-1.42/driver/
ndiswrapper-1.42/driver/divdi3.c
ndiswrapper-1.42/driver/hal.c
ndiswrapper-1.42/driver/iw_ndis.c
ndiswrapper-1.42/driver/iw_ndis.h
ndiswrapper-1.42/driver/loader.c
ndiswrapper-1.42/driver/loader.h
ndiswrapper-1.42/driver/longlong.h
ndiswrapper-1.42/driver/Makefile
ndiswrapper-1.42/driver/crt.c
ndiswrapper-1.42/driver/ndis.c
ndiswrapper-1.42/driver/ndis.h
ndiswrapper-1.42/driver/ndiswrapper.h
ndiswrapper-1.42/driver/ntoskernel.c
ndiswrapper-1.42/driver/ntoskernel.h
ndiswrapper-1.42/driver/ntoskernel_io.c
ndiswrapper-1.42/driver/pe_linker.c
ndiswrapper-1.42/driver/pe_linker.h
ndiswrapper-1.42/driver/pnp.c
ndiswrapper-1.42/driver/pnp.h
ndiswrapper-1.42/driver/proc.c
ndiswrapper-1.42/driver/rtl.c
ndiswrapper-1.42/driver/usb.c
ndiswrapper-1.42/driver/usb.h
ndiswrapper-1.42/driver/winnt_types.h
ndiswrapper-1.42/driver/workqueue.c
ndiswrapper-1.42/driver/wrapmem.h
ndiswrapper-1.42/driver/wrapmem.c
ndiswrapper-1.42/driver/wrapper.c
ndiswrapper-1.42/driver/wrapndis.h
ndiswrapper-1.42/driver/wrapndis.c
ndiswrapper-1.42/driver/lin2win.h
ndiswrapper-1.42/driver/win2lin_stubs.S
[root@** Desktop]# cd ndiswrapper-1.42
[root@** ndiswrapper-1.42]# make distclean
make -C driver clean
make[1]: Entering directory `/home/Russell/Desktop/ndiswrapper-1.42/driver'
rm -rf ndiswrapper.ko ndiswrapper.o crt.o hal.o iw_ndis.o loader.o ndis.o ntoskernel.o ntoskernel_io.o pe_linker.o pnp.o proc.o rtl.o wrapmem.o wrapndis.o wrapper.o usb.o divdi3.o usb.o win2lin_stubs.o \
divdi3.o workqueue.o .*.ko.cmd .*.o.cmd \
ndiswrapper.mod.[oc] *~ .tmp_versions Modules.symvers Module.symvers
make[1]: Leaving directory `/home/Russell/Desktop/ndiswrapper-1.42/driver'
make -C utils clean
make[1]: Entering directory `/home/Russell/Desktop/ndiswrapper-1.42/utils'
rm -f *~ *.o loadndisdriver
make[1]: Leaving directory `/home/Russell/Desktop/ndiswrapper-1.42/utils'
rm -f *~
rm -fr ndiswrapper-1.42 ndiswrapper-1.42.tar.gz patch-stamp
make -C driver distclean
make[1]: Entering directory `/home/Russell/Desktop/ndiswrapper-1.42/driver'
rm -rf ndiswrapper.ko ndiswrapper.o crt.o hal.o iw_ndis.o loader.o ndis.o ntoskernel.o ntoskernel_io.o pe_linker.o pnp.o proc.o rtl.o wrapmem.o wrapndis.o wrapper.o usb.o divdi3.o usb.o win2lin_stubs.o \
divdi3.o workqueue.o .*.ko.cmd .*.o.cmd \
ndiswrapper.mod.[oc] *~ .tmp_versions Modules.symvers Module.symvers
rm -f *_exports.h .\#* win2lin_stubs.h built-in.o
make[1]: Leaving directory `/home/Russell/Desktop/ndiswrapper-1.42/driver'
make -C utils distclean
make[1]: Entering directory `/home/Russell/Desktop/ndiswrapper-1.42/utils'
rm -f *~ *.o loadndisdriver
rm -f .\#*
make[1]: Leaving directory `/home/Russell/Desktop/ndiswrapper-1.42/utils'
rm -f .\#*
[root@**ndiswrapper-1.42]# make
make -C driver
make[1]: Entering directory `/home/Russell/Desktop/ndiswrapper-1.42/driver'
make -C /lib/modules/2.6.20-1.2312.fc5/build SUBDIRS=/home/Russell/Desktop/ndiswrapper-1.42/driver
make[2]: Entering directory `/usr/src/kernels/2.6.20-1.2312.fc5-i686'
LD /home/Russell/Desktop/ndiswrapper-1.42/driver/built-in.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/crt.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/hal.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/iw_ndis.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/loader.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/ndis.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/ntoskernel.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/ntoskernel_io.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/pe_linker.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/pnp.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/proc.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/rtl.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/wrapmem.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/wrapndis.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/wrapper.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/usb.o
CC [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/divdi3.o
LD [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/ndiswrapper.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/Russell/Desktop/ndiswrapper-1.42/driver/ndiswrapper.mod.o
LD [M] /home/Russell/Desktop/ndiswrapper-1.42/driver/ndiswrapper.ko
make[2]: Leaving directory `/usr/src/kernels/2.6.20-1.2312.fc5-i686'


*** WARNING: This kernel seems to use 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/Russell/Desktop/ndiswrapper-1.42/driver'
make -C utils
make[1]: Entering directory `/home/Russell/Desktop/ndiswrapper-1.42/utils'
gcc -g -Wall -I../driver -o loadndisdriver loadndisdriver.c
make[1]: Leaving directory `/home/Russell/Desktop/ndiswrapper-1.42/utils'
[root@** ndiswrapper-1.42]# make install
make -C driver install
make[1]: Entering directory `/home/Russell/Desktop/ndiswrapper-1.42/driver'
make -C /lib/modules/2.6.20-1.2312.fc5/build SUBDIRS=/home/Russell/Desktop/ndiswrapper-1.42/driver
make[2]: Entering directory `/usr/src/kernels/2.6.20-1.2312.fc5-i686'
Building modules, stage 2.
MODPOST 1 modules
make[2]: Leaving directory `/usr/src/kernels/2.6.20-1.2312.fc5-i686'


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


echo /lib/modules/2.6.20-1.2312.fc5/misc
/lib/modules/2.6.20-1.2312.fc5/misc
mkdir -p /lib/modules/2.6.20-1.2312.fc5/misc
install -m 0644 ndiswrapper.ko /lib/modules/2.6.20-1.2312.fc5/misc
/sbin/depmod -a 2.6.20-1.2312.fc5 -b /
make[1]: Leaving directory `/home/Russell/Desktop/ndiswrapper-1.42/driver'
make -C utils install
make[1]: Entering directory `/home/Russell/Desktop/ndiswrapper-1.42/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/Russell/Desktop/ndiswrapper-1.42/utils'
mkdir -p -m 0755 /usr/share/man/man8
install -m 644 ndiswrapper.8 /usr/share/man/man8
install -m 644 loadndisdriver.8 /usr/share/man/man8
[root@** ndiswrapper-1.42]#






ok right thats what ive done so far, the next step on the ndiswrapper website is to install the windows driver?? but i dont understand how from what it says?

Any help would be great! first time wireless in linux, infact first ever wireless card!!! lol networking n00b!!


cheers guys
Reply With Quote
  #6  
Old 28th April 2007, 01:02 PM
Brian1 Offline
Registered User
 
Join Date: Nov 2004
Location: Seymour, Indiana
Posts: 2,509
Oh I see the 4k stack issue. You have the i386 version of the kernel installed. You need to install the i686 version with kernel-devel that matches it. Why they would compile the precompiled kernels like that is beyond me.

For the not command found is because the path to ndiswrapper command is in /usr/sbin. That directory is not part of a users enviroment path values. You have to be full root to use the command like that. To goto full root from the command line use the command ' su - ' and root's password. Then you can use the command like that. Now if you just use " su " it makes you root but you are still using the users enviroment variables. So here you must provide the full path to the command to run it. " /usr/sbin/ndiswrapper -l ".

But first thing change the kernel out. Rebuild ndiswrapper for that kernel. Then try again.

Brian
__________________
Distribution: RHEL 5.1 with Pieces of this and that.
Kernel 2.6.23.9, KDE 3.5.8 and KDE 4.0 beta, Plus Development src.rpm, ATI fglrx64_7_1_0-8.433-1 rpm with 3D and DRI working.
Acer 5100-5840 with webcam, ati, sdcard reader, sound, atheros based wireless, all working. Only thing not working is the memory stick reader.
Reply With Quote
  #7  
Old 28th April 2007, 04:36 PM
baffa Offline
Registered User
 
Join Date: Feb 2007
Location: United Kingdom
Age: 27
Posts: 64
Ok i tried what you said about changing the kernel version and i did:

yum install kernel-devel.i686

and

[I]yum install kernel.i686

but both returned that there was nothing to do. Im guessing from that then that I already have the i686 kernel installed with the i686 kernel-devel? Im totally lost with this now!
Reply With Quote
  #8  
Old 28th April 2007, 09:00 PM
alpha645 Offline
Registered User
 
Join Date: Jul 2006
Posts: 740
You are messing things up, I recommend you first clean everything and then give us some info so we can help. cd into the ndiswrapper directory and try:

make uninstall

This should clean everything. Next, give us some info by:

yum list kernel*

And whether you compiled the kernel yourself or not.
Reply With Quote
  #9  
Old 28th April 2007, 09:01 PM
alpha645 Offline
Registered User
 
Join Date: Jul 2006
Posts: 740
And we need the specs of your wireless card (more info about it).
Reply With Quote
  #10  
Old 30th April 2007, 09:16 AM
baffa Offline
Registered User
 
Join Date: Feb 2007
Location: United Kingdom
Age: 27
Posts: 64
Ah ha!! I was being a total n00b! When i was copying the windows driver from the cd, it needed the other files in there not just the .INF and .sys. That was my problem. Ive configued it in the networking devices thing now and am jacking-up peoples wireless as we speak lol!

Any one got any software that will display what wireless networks are available and show who they are from?
Reply With Quote
  #11  
Old 30th April 2007, 10:16 AM
alpha645 Offline
Registered User
 
Join Date: Jul 2006
Posts: 740
Quote:
Originally Posted by baffa
Ah ha!! I was being a total n00b! When i was copying the windows driver from the cd, it needed the other files in there not just the .INF and .sys. That was my problem. Ive configued it in the networking devices thing now and am jacking-up peoples wireless as we speak lol!

Any one got any software that will display what wireless networks are available and show who they are from?
Well, there is a program for it.

iwlist scan wlan0

Or you can use a GUI from KDE.

yum install wlassistant

The program will be listed under system in your menu. It works well, if you want WPA you need to install the wpa_supplicant as well.

yum install wpa_supplicant

Good luck
Reply With Quote
  #12  
Old 17th June 2007, 04:33 PM
manin Offline
Registered User
 
Join Date: Jun 2007
Posts: 45
Hi, I run the command make distclean and i get this:

make -C driver clean
make[1]: Entering directory `/usr/src/kernels/2.6.20-1.2952.fc6-i686/ndiswrapper-1.45rc3/driver'
rm -rf ndiswrapper.ko ndiswrapper.o crt.o hal.o iw_ndis.o loader.o ndis.o ntoskernel.o ntoskernel_io.o pe_linker.o pnp.o proc.o rtl.o wrapmem.o wrapndis.o wrapper.o divdi3.o usb.o win2lin_stubs.o \
divdi3.o workqueue.o .*.ko.cmd .*.o.cmd \
ndiswrapper.mod.[oc] *~ .tmp_versions Modules.symvers Module.symvers
make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2952.fc6-i686/ndiswrapper-1.45rc3/driver'
make -C utils clean
make[1]: Entering directory `/usr/src/kernels/2.6.20-1.2952.fc6-i686/ndiswrapper-1.45rc3/utils'
rm -f *~ *.o loadndisdriver
make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2952.fc6-i686/ndiswrapper-1.45rc3/utils'
rm -f *~
rm -fr ndiswrapper-1.45rc3 ndiswrapper-1.45rc3.tar.gz patch-stamp
make -C driver distclean
make[1]: Entering directory `/usr/src/kernels/2.6.20-1.2952.fc6-i686/ndiswrapper-1.45rc3/driver'
rm -rf ndiswrapper.ko ndiswrapper.o crt.o hal.o iw_ndis.o loader.o ndis.o ntoskernel.o ntoskernel_io.o pe_linker.o pnp.o proc.o rtl.o wrapmem.o wrapndis.o wrapper.o divdi3.o usb.o win2lin_stubs.o \
divdi3.o workqueue.o .*.ko.cmd .*.o.cmd \
ndiswrapper.mod.[oc] *~ .tmp_versions Modules.symvers Module.symvers
rm -f *_exports.h .\#* win2lin_stubs.h built-in.o
make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2952.fc6-i686/ndiswrapper-1.45rc3/driver'
make -C utils distclean
make[1]: Entering directory `/usr/src/kernels/2.6.20-1.2952.fc6-i686/ndiswrapper-1.45rc3/utils'
rm -f *~ *.o loadndisdriver
rm -f .\#*
make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2952.fc6-i686/ndiswrapper-1.45rc3/utils'
rm -f .\#*

I suppose that so far it's ok.

Then I run make and I get this :

make -C driver
make[1]: Entering directory `/usr/src/kernels/2.6.20-1.2952.fc6-i686/ndiswrapper-1.45rc3/driver'
Can't find kernel build files in /lib/modules/2.6.18-1.2798.fc6/build;
give the path to kernel build directory with
KBUILD=<path> argument to make
make[1]: *** [prereq_check] Error 1
make[1]: Leaving directory `/usr/src/kernels/2.6.20-1.2952.fc6-i686/ndiswrapper-1.45rc3/driver'
make: *** [all] Error 2


I think I have 2 kernels (I don't know if this is stupid).

[root@noname modules]# ls
2.6.18-1.2798.fc6 2.6.20-1.2952.fc6

I think that 2.6.18-1.2798fc6 is the older one. Should I delete it? If yes how should I do this without creating other problems?
Reply With Quote
  #13  
Old 17th June 2007, 08:59 PM
alpha645 Offline
Registered User
 
Join Date: Jul 2006
Posts: 740
Redownload the source from ndiswrapper, get the latest version as well. Don't run that weird distclean command. Just do:

yum install kernel-devel kernel-headers

And inside the ndiswrapper source dir:

make
make install

Optionally, you can add DISABLE_USB=1 to both commands to remove needless USB support.
Reply With Quote
Reply

Tags
compaq, evo, n610cndiswrapperwhat, netgear

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
compaq N610c + W200 alongwor Hardware & Laptops 3 13th November 2007 11:18 AM
Help! Compiz/Beryl for FC6 on a Compaq Evo n610c fox29 Hardware & Laptops 0 11th September 2007 10:17 PM
Ndiswrapper and Netgear ajinxa Servers & Networking 5 6th June 2007 07:02 PM
Netgear WG511v2 on Fedora 5 leonard Hardware & Laptops 4 14th March 2007 09:54 PM
Correct Driver for Compaq Evo N610c Display? gandalf2041 Hardware & Laptops 2 26th March 2006 02:32 AM


Current GMT-time: 08:17 (Monday, 28-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat