LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-26-2006, 10:26 PM   #1
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Rep: Reputation: 15
Unable to use ndistrwrap with WPC54GS


Hello,

I've been trying and trying and trying and just getting more and more frustrated. I'm sure there is some stupid thing I just don't understand, but I'm kind of new at this so any advice will be gladly taken.

As I understand it my system needs to have a 16k stack size enabled in order to be able to use the ndistwrapper with the drivers for my wireless network card.

As per the instructions I have installed the RPM that is supposed to increase the stack size then I reboot and recieved no errors.

Per instructions[http://ndiswrapper.sourceforge.net/m.../Installation], I run make distclean. Everything works fine. When I run make however, I get the following output:

make -C driver
make[1] Entering directory '/home/jon23d/Desktop/ndiswrapper-1.16/driver'
Can't find kernel build files in /lib/modules/2.6.11-1.1369_FC.stk16/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/jon23d/Desktop/ndiswrapper-1.16/driver'
make: *** [all] Error 2

/lib/modules/2.6.11-1.1369_FC.stk16/build is a link to /usr/src/kernels/2.6.11-1.1369_FC4.stk16-i686, which does not exist.... /usr/src/kernels/2.6.11-1.1369_FC4-i686 is the only thing there.

Everything after this step works just fine. I guess my real problem/question is how do I recompile my kernel with a 16k stack size the right way so that make wil work. .....

This is too frustrating.

Thanks!
 
Old 05-26-2006, 11:10 PM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You need to install the kernel-source package for your kernel. If there is also a kernel-syms or kernel-symbols package, it may help to install that also.

I would recommend installing ndiswrapper and ndiswrapper.ko using "rpmbuild"
copy the source tarball to /usr/src/redhat/SOURCES/
cd to /usr/src/redhat/SOURCES/

extract the ndiswrapper.spec file and move it to the SPECS directory:
sudo tar xvzf ndiswrapper-<version>.tar.gz ndiswrapper.spec
sudo mv ndiswrapper.spec ../SPECS/

cd to the SPECS directory and build that packages:
cd ../SPECS/
sudo rpmbuild -bb ndiswrapper.spec

Now there are 2 RPMs in the ../RPMS/<arch>/ directory, where <arch> is i586 or x86_64 or whatever the architecture of your computer is. ( I don't know if it will be the same as "uname -p" or "uname -m" because those are the same on my computer ).
On my laptop, this produced these two RPMs.
kernel-module-ndiswrapper-2.6.16.13-4-default-1.8-1.x86_64.rpm
kernel-module-ndiswrapper-2.6.16.13-4-xen-1.8-1.x86_64.rpm

I leave the source package where it is and rerun rpmbuild after updating my kernel, as in a security update.
A remote update might not download the ndiswrapper-kernel rpm for you, especially since you installed from source, so you need to remake the ndiswrapper.ko module before you can get back on the internet. This makes it possible to avoid a catch 22 situation.
 
Old 05-27-2006, 12:01 AM   #3
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Original Poster
Rep: Reputation: 15
Thanks for the response.

Keep in mind that I've already run the kernel patch from linuxant to get the 16k stack size. I have gotten to the point of running rpmbuild -bb ndiswrapper.spec and get the following error:

error: Failed build dependencies:
/lib/modules/2.6.11-1.1369_FC4.stk15/build/Makefile is needed by ndiswrapper-1.16-1.i386

Argggggghhh.. So much confusion
 
Old 05-27-2006, 03:33 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Oh, I missed the part about installing a patched kernel. I think that the rpm your referred to installed a new kernel, and now the kernel and the source don't match.
What directories do you have in /lib/modules?
Does a directory match the output of "uname -r".
If not you also need to install the source code, and/or the kernel-symbols package that matches your kernel version. If you build a new kernel, I don't think the kernel-symbols rpm is needed, as it is provided by the build process. ( At least that is how I understand it )
 
Old 05-27-2006, 01:40 PM   #5
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Original Poster
Rep: Reputation: 15
Okay, what you are saying makes sense. This would explain the error I am getting. Uname -r gives 2.6.11-1.1369_FC4.stk16, the same as the outpout of ls /lib/modules. When It comes time to compile and install ndistwrapper though it says that it is missing /lib/modules/2.6.11-1.1369_FC4.stk16/build; so, I think that you are right that there need to be more files there. So... errr.. where do I get them from?!?! I upgraded the kernel by applying the linuxant patch which came as a .rpm.zip - are the files located in there somehow? How do I locate them and move em over? I think I've found the correct files, which include a kernel folder [which has arch, crypto, drivers, fs, lib, net, and sound folders], a build link, and a source link. The build link points to /usr/src/kernels/2.6.11-1.1369_FC4.stk16-i686. Unfortunately this folder does not exist, only the old one. The source link points to the build link (go figure)....

I feel like I'm getting close!
 
Old 05-28-2006, 03:04 PM   #6
jon23d
Member
 
Registered: May 2006
Location: Kennewick, WA - USA
Distribution: Ubuntu
Posts: 129

Original Poster
Rep: Reputation: 15
I give up. This is too frustrating. I've switched to mandrake, it worked fine on the first shot.

Now if I only I could get X to not crash when I change to a reasonable resolution...
 
  


Reply


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
Linksys WPC54GS and Redhat Linux 9 HELP PLEASE! no clue Linux - Wireless Networking 1 04-03-2006 07:23 AM
Linksys WPC54GS and Redhat Linux 9 HELP PLEASE! no clue Linux - Wireless Networking 1 04-02-2006 02:10 PM
linksys wpc54gs suse 9.1 problems LucidParody Linux - Wireless Networking 1 09-08-2005 08:01 PM
Linksys WPC54GS Help aruiz21 Linux - Wireless Networking 1 05-12-2005 03:05 AM
Linksys WPC54GS installation on Mandrake 10.1 rud17100 Linux - Wireless Networking 5 04-12-2005 12:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:07 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration