LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2005, 10:49 PM   #1
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Rep: Reputation: 15
How do I install madwifi wireless drivers?


I am trying to install the MADWIFI drivers on a Red Hat Enterprise Linux 3, kernel 2.4.21-27 and I am having some trouble. I am using a Pentium M on an Intel motherboard. I've tried to read thru the instructions but they seem confusing as I'm new to Linux. I have 2 options to install:

1. download the RPMs--when I tried to install those, I got some dependency errors. (not sure how to fix them)
2. use the .TGZ file I downloaded.
Going with option 2 for now, I've read thru the Readme and Install text files and here's what I saw:

Requirements
============

o sharutils (especially uudecode tool)
o kernel sources of running kernel
o Wireless Extensions support (14 or later, 17 preferred)
o Sysctl support
o Crypto API support (AES support is used if present, otherwise the
AES-CCMP cipher module falls back to a private implementation)
o gcc in same version as the compiled kernel, or you get problems
during module load (Invalid module format)

1. How can I check to make sure I have all the requirements met? (I am running Red Hat Enterprise Linux 3 kernel 2.4.21-27)

The driver is built using the Linux kernel build mechanism. This means you must have some part of the kernel source distribution installed on the machine where you want to build the driver. In particular, the kernel include files and configuration must be available as well as the build scripts. If you built your kernel
from source then this will be present. Otherwise you may need to install some materials from your distribution.

Most people can just type:

trouble% make

at the top level to build all the modules for the system where you are building.

2. I've tried to run that but it says "command not found".
 
Old 09-24-2005, 05:51 PM   #2
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Code:
trouble %
is the prompt. Type
Code:
make
 
Old 09-25-2005, 10:56 AM   #3
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Original Poster
Rep: Reputation: 15
thank you. that worked but it gave me a different error.

/lib/modules/2.4.21-27.EL/build/.config does not exist...Stop.

I even tried to type make KERNELPATH=/usr/src/linux-2.4.21-27.EL and I get the same error. I tried to type KERNELPATH=/usr/src/linux-2.4, same thing.

I looked in /usr/src/linux2.4.21-27.EL and there's a configs directory. If I look in there I see a lot of config files named "kernel-2.4.21-i686.config, etc"

I read about changing the KERNELRELEASE variable but not exactly sure how to use it. I edited the makefile.inc in the directory where I unzipped the .TGZ file and I see the variable there but I don't know what I'm supposed to put in there. I did a google search on Kernelrelease and I did find some articles on it. However, it seems that there's extra stuff in the Kernelrelease line referencing madwifi: i.e.
KERNELRELEASE ?=$(shell echo -e 'madwifi_$$_'date +%s':\n\t@echo \044(KERNELRELEASE)\ninclude Makefile' | make -C $(KERNELPATH) -s -f-)

I found this article referencing a kernel devel update but it's for Fedora Core 3. I'm running Red Hat Enterprise Linux 3. Does it make a difference?

https://www.redhat.com/archives/fedo.../msg02167.html

Last edited by xxsubz78x; 09-25-2005 at 11:30 AM.
 
Old 09-25-2005, 10:34 PM   #4
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
I can't imagine why it would make a difference, the kernel's still Linux, and the error's the same. Get the kernel development files for your distro.
 
Old 09-25-2005, 11:23 PM   #5
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Original Poster
Rep: Reputation: 15
I copied one of the config files in the configs directory into the root of the linux source tree:

cd /usr/src/linux-2.4.21-27.EL
cp configs/kernel-2.4.21-i686.config .config

make oldconfig ; make dep


I typed make and I got this:
Checking if all requirements are met...ok.
mkdir -p ./symbols
for i in ./ath_hal ath_rate/sample ./net80211 ./ath; do \
make -C $i || exit 1; \

done
make[1]: Entering directory '/root/test/Madwifi driver/madwifi-cvs-20050814/ath_hal'
make -C /lib/modules/2.4.21-27.EL/build SUBDIRS=/root/test/Madwifi driver/madwifi-cvs-20050814/ath_hal MOVEDIR=/root/test/Madwifi driver/madwifi-cvs-20050814/ath_hal/../symbols modules
make[2]: Entering directory '/usr/src/linux-2.4.21-27.EL'
make[2]: ***No rule to make target 'driver/madwifi-cvs-20050814/ath_hal'. Stop.
make[2]: Leaving directory '/usr/src/linux-2.4.21-27.EL'
make[1]: ***[all] Error 2
make[1]: Leaving directory '/root/test/Madwifi driver/madwifi-cvs-20050814/ath_hal'
make: ***[all] Error 1
 
Old 09-26-2005, 12:52 AM   #6
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Check RedHat for a kernel development RPM and install it.

If you use yum, try
Code:
yum install kernel kernel-devel
Edit:
Read the Rute User's Tutorial and Exposition. It will help you a lot.

Last edited by Charred; 09-26-2005 at 12:57 AM.
 
Old 09-26-2005, 04:42 AM   #7
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
Curiously, I had to run make and make install as root, but I never had any problems with it. I installed it on Slackware 10.1 and 10.2. I made this tutorial for this purpose.
 
Old 09-26-2005, 04:32 PM   #8
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Nice tutorial, OSourceDiplomat.
 
Old 09-26-2005, 05:38 PM   #9
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Original Poster
Rep: Reputation: 15
I finally got it to work.

1. I installed a kernel update from RedHat ...upgraded to 2.4.21-32
2. installed MadWiFi from RPMs (i.e. rpm -iv kmdl*.rpm)
3. installed the Madwifi patches by going to the patch directory and typing
make
make install
sh install.sh /usr/src/linux-2.4
sh install.sh /usr/src/linux-2.4.21-32.el

4. ifconfig ath0 up
iwconfig ath0 mode managed
iwconfig ath0 nick "Netgear"
iwconfig ath0 channel 9
iwconfig ath0 key "hex value"
iwcofnig essid "your ssid"
dhclient
 
Old 09-26-2005, 07:58 PM   #10
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Well done!
 
Old 09-27-2005, 09:08 AM   #11
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Original Poster
Rep: Reputation: 15
I'm having a slightly different issue now. I'm trying to inject packets with Aireplay and no matter how long it runs, doesn't seem to generate IVs any faster.

I don't think I have the driver patched properly. There's a patch that I downloaded from
http://100h.org/wlan/linux/patches/m...20050814.patch

I ran this command:

patch -Np1 -i madwifi-cvs-20050814.patch (as per Aircrack readme)

Then when I tried to run MAKE, I got this error:

Makefile.inc:122: ***KERNELCONF: /lib/modules/2.4.21-32.0.1.EL/build/.config does not exist... Stop.

Also, in the Aircrack documentation it says this:
if your card appears to hang (no packets captured or injected), disable the interface, reload the drivers and re-insert the card.
All drivers must be patched so as to support injection in Monitor mode. You will need linux headers that match your current running kernel; if not, you will have to download the linux source and compile a custom kernel.


Questions
1. How can I fix that error?
2. How do I reload the drivers? (I know how to down the interface)
3. How can I check that the Linux headers match my current running kernel? (I'm running a stock kernel)
 
Old 09-27-2005, 10:18 AM   #12
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
Hmmm...

Why are you trying to crack into routers?
 
Old 09-27-2005, 10:37 AM   #13
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Original Poster
Rep: Reputation: 15
trying to see how vulnerable my home & work networks are. I read all these articles about people being able to crack your wep key in less than 20 min and they make it sound so easy...

it hasn't been that easy.
 
Old 09-27-2005, 02:01 PM   #14
Charred
Member
 
Registered: Mar 2005
Location: Utah, USA
Distribution: Slackware 11
Posts: 816
Blog Entries: 2

Rep: Reputation: 30
The authors of such articles always make it sound like any moron with 20 mins of Windows XP experience can crack a WEP code whilst juggling chainsaws, the angst thus generated leads to greater readership.

Did you
Code:
make clean
before you tried to make the new module?

What mirrored you to 100.h? I can't find any on-tree documentation for their patch; I'm downloading Slack 10.2, so I don't want to waste bandwidth slurping packages if I don't have to.

Edit:
You patched that onto madwifi, not your kernel, right?

Last edited by Charred; 09-27-2005 at 02:02 PM.
 
Old 09-27-2005, 02:23 PM   #15
xxsubz78x
Member
 
Registered: Sep 2005
Posts: 44

Original Poster
Rep: Reputation: 15
the aircrack readme referred me to the 100h website. I ran the command I mentioned above in a test directory where the madwifi files were located, so I think it patched the madwifi files.

I didn't try make clean yet but I was getting the error long before I installed the rpms. Did you look at my questions, especially 2 and 3??

btw, I have a little more than 20 min of Windows XP experience.
I'm very familiar with Microsoft, Novell and Cisco... just not any Linux experience. (MCSE, A+)

I really appreciate all of your help.

Last edited by xxsubz78x; 09-27-2005 at 04:07 PM.
 
  


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
madwifi drivers for HL W400 wireless PCI ftorcal Linux - Hardware 0 01-20-2005 09:03 AM
MadWifi drivers Nashu Linux - Newbie 1 01-16-2005 02:19 PM
madwifi wireless NIC drivers quit after kernel upgrade m_a_b Linux - Laptop and Netbook 5 08-16-2004 11:35 AM
install wireless drivers from CD alechi Linux - Wireless Networking 2 06-30-2004 07:10 PM
Loaded madwifi drivers but still can't use wireless card hecresper Fedora 7 01-28-2004 01:40 AM


All times are GMT -5. The time now is 12:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration