LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 06-30-2005, 01:04 PM   #1
linuxcam
LQ Newbie
 
Registered: Dec 2001
Distribution: Debian Sarge
Posts: 25

Rep: Reputation: 15
need help with kernel source and madwifi


Hello, I could very much use some help in figuring out what is wrong when I try to install the madwifi drivers on my debian sarge thinkpad. I've been searching around google and here for the past 3 hours slowly making some headway but I've reached a wall and need your help! Let me explain what I have done (learned) so far.

I installed the madwifi drivers from CVS source:

As su root:

cvs -z3 -dserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi co madwifi
cd madwifi
make

At this point when I try to make I get the following error:
Makefile.inc:94: *** KERNELPATH must be defined. Stop.

So after some researching I realized that it needed the path where my kernel source is so I tried:

make KERNELPATH=/usr/src/linux

which gave:
Makefile.inc:101: *** KERNELPATH: /usr/src/linux does not exist. Stop.

I realized that everyone's kernel source is not necessarily there (that folder did not even exist for me) so I hunted around and found a folder that looked like it was it at: /usr/include/linux. This gave the following error:
Makefile.inc:122: *** KERNELCONF: /usr/include/linux/.config does not exist.. Stop.

So I then I thought that I actually needed to download the source and header files so I did
apt-get install kernel-source 2.4.27 and apt-get install kernel-headers 2.4.27. I unzipped and untarred them so now I have two new folders, /usr/src/kernel-source-2.4.27 and /usr/src/kernel-headers-2.4.27.
Now I wanted to see what was inside the source folder and after going into: /usr/src/kernel-source-2.4.27/include/linux
lo and behold and is the exact same looking thing as /usr/include/linux ! So I tried using this directory (/usr/src/kernel-source-2.4.27/include/linux) which gave me the same error as /usr/include/linux and this is where I am. Any help is greatly appreciated as I feel google and searching here aren't helping anymore.

Last edited by linuxcam; 06-30-2005 at 01:23 PM.
 
Old 06-30-2005, 02:01 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
try it with KERNELPATH=/usr/src/kernel-source-2.4.27
 
Old 07-05-2005, 06:50 AM   #3
linuxcam
LQ Newbie
 
Registered: Dec 2001
Distribution: Debian Sarge
Posts: 25

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Matir
try it with KERNELPATH=/usr/src/kernel-source-2.4.27
Didn't work.
 
Old 07-05-2005, 02:52 PM   #4
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Have you configured the kernel in that location? It seems to be looking for the kernel configuration (.config).
 
Old 07-05-2005, 02:55 PM   #5
linuxcam
LQ Newbie
 
Registered: Dec 2001
Distribution: Debian Sarge
Posts: 25

Original Poster
Rep: Reputation: 15
No, I don't think I have. I'm a noob so if you could elaborate on how to go about that or point me to a reference that would be awesome.
 
Old 07-05-2005, 03:03 PM   #6
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Well, you might be lucky and your distro's default kernel has enabled /proc/config.gz support, in which case you can just do:
Code:
# cd /usr/src
# ln -s kernel-source-2.4.27 linux
# zcat /proc/config.gz > linux/.config
Then try to build madwifi again.
 
Old 07-06-2005, 07:29 AM   #7
linuxcam
LQ Newbie
 
Registered: Dec 2001
Distribution: Debian Sarge
Posts: 25

Original Poster
Rep: Reputation: 15
When I tried the command:
in -s kernel-source-2.4.27 linux

I get the error:
bash: syntax error near unexpected token 'in'
 
Old 07-06-2005, 12:19 PM   #8
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Yeah, that was 'ln'. As in ell-en. "LN" (but in lower case).
 
Old 07-06-2005, 01:22 PM   #9
linuxcam
LQ Newbie
 
Registered: Dec 2001
Distribution: Debian Sarge
Posts: 25

Original Poster
Rep: Reputation: 15
Ahhhh.
I went back and tried the first command (this time with the 'l'!) and it worked. I then entered the second command and I got: No such file or directory

I did a "locate config.gz" to see if it was anywhere on my system and it was not. However, I went back into the madwifi directory and just tried a standard make and got: Please enable sysctl support.
This is much better than what I was getting earlier which was that it couldn't find the kernel source.

Last edited by linuxcam; 07-06-2005 at 01:23 PM.
 
Old 07-06-2005, 01:43 PM   #10
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 128Reputation: 128
That is getting better. Unfortunately, my guess is that it wants you to configure the kernel, using make [x|menu||old]config.
 
Old 07-06-2005, 03:16 PM   #11
linuxcam
LQ Newbie
 
Registered: Dec 2001
Distribution: Debian Sarge
Posts: 25

Original Poster
Rep: Reputation: 15
mmm, ok, I will look into this with google and some documentations but thank you for all of your help so far!
 
  


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
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
Kernel source and installing madwifi, also startup screen prob hedrat Linux - Newbie 1 06-29-2005 04:01 PM
madwifi for SMP kernel mimithebrain Mandriva 0 04-06-2005 01:38 PM
regarding kernel-module-madwifi pranith Linux - Software 0 01-28-2005 08:53 PM
madwifi and kernel 2.6.8 ravalox Linux - Wireless Networking 2 08-27-2004 01:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 12:57 AM.

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