PDA

View Full Version : How-To: Madwifi in FC2 (by Picomp314, updated)


STiAT
30th May 2004, 03:42 AM
Well guys and girls. I had some more steps to do than Picomp314 described in his How-To. But his way basically gets your madwifi running too. But there are things missing, as boot-time loading.

#########
# How-To

1) Install sharutils on your FC2 (you can look if you have installed it with the command rpm -qa |grep shar).
You can find a Version of sharutils on the FC2CD3

2) Install the kernel-source rpm for your particular kernel

3) Do a cvs checkout of madwifi
cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi co madwifi

4) cd /usr/src/linux-2.6.5-1.358 (adjust for your particular kernel)

5)make oldconfig
make all

6) ln -s /usr/src/linux-2.6.5-1.358/vmlinux /lib/modules/2.6.5-1.358/build/vmlinux

7)cd into the directory that you did the cvs checkout of madwifi

8)make
make install

9)insmod wlan/wlan.ko
insmod ath_hal/ath_hal.ko
insmod driver/ath_pci.ko

10) edit your /etc/modprobe.conf, add the line
alias ath0 ath_pci

11) create a file named ifcfg-ath0 in /etc/sysconfig/network-scripts

STARTMODE=hotplug
DEVICE=ath0
BOOTPROTO=dhcp
WIRELESS=yes
MODE=Managed
ESSID=any
IPV6INIT=no
ONBOOT=yes
USERCTL=no
PEERDNS=no


12)ifconfig ath0 up

13)ifup ath0

Fedora may wants to configure a ethx on the next bootup. Simply skip it.

Good luck, have fun
// STiAT

ravalox
27th August 2004, 06:55 PM
THere will be an additional step for new kernels, madwifi needs to be patched to install on 2.6.87 and 2.6.8

THis is the solution for 2.6.8 http://users.informatik.haw-hamburg.de/~gropp_v/madwifi-2.6.8_and_-mm-040821.patch.bz2

pinqkandi
30th August 2004, 05:56 PM

Hello,

I installed sharutils no problem off the FC2 CD3. However, I went to install the kernel source off the same CD, and I get this error:

error: Failed dependencies:
qt-devel is needed by kernel-source-2.6.5-1.358


Any ideas? I am somewhat new to Linux, if you can tell ;-)

Thanks so much.

-William

dragon
1st September 2004, 12:16 PM
Hi pinqkandi,

Some RPM packages require other packages to be inistalled beforehand or at the same time. The kernel-source-2.6.5-1.358 RPM requires qt-devel RPM.

To resolve this problem, install the qt-devel RPM.

It's a bit easier to install packages using the GUI tool that comes with Fedora Core 2. You can do this by:
1) clicking on the menu and selecting System Settings -> Add / Remove Applications.
2) scroll down to the heading "Development"
3) check "Kernel Development" (this selects a number of packages to install). By default all packages will be installed (including kernel source and qt-devel). If you wish to install only a subset, click on "Details" and select the packages you would like to install.
4) click "Close"
5) click "Update"

Cheers,

Dragon

poochball
26th November 2004, 02:06 AM
What Can I say but this guy is a legend. I was just about to give up on the whole wireless expedition in Linux. Fortunately I found this page and now Im typing this from my wireless card in linux. Thanks and keep up the good work!!!!

arpi
28th November 2004, 01:02 AM
are there any new howtos for FC3?

i tried FC3 and it compiles without errors but i am missing some modules (after the compile) and therefore i cannot install them

easethan
16th June 2005, 10:18 PM
I found a much easier guide to installing madwifi, in my opinion.

http://www.fedoraforum.org/forum/showthread.php?t=43718

It shows you how to use yum to install, and to keep it updated. Just thought I'd share.