PDA

View Full Version : Madwifi....and the ever famous config.h


sabrelinux
19th January 2007, 03:56 PM
System :

fedora core 6
kernels:
2.6.18-1.2868
2.6.19-1.2895

On my 1.2868 kernel i was able to install Madwifi with rpms, no problem. However with the new kernel and all updates, i can not find .rpm's for it. So my only choice is to build it from a tarball. When i go to do this it comes up with the error of missing config.h. I've read several how to docs. on how to work around this problem. None of them really seemed to work. What HAS worked for you guys and this problem or should i just wait till .rpms come out? I fail to see that as the only options. Thanks guys, one of you gurus out there has to know.

Thanks
SabreLinux

sideways
19th January 2007, 04:00 PM
you just delete the line refering to linux/config.h from the source files and then make/make install, or put a dummy config.h file there with 'touch /lib/modules/<kernel version>/source/include/config.h'

wenis
24th January 2007, 03:25 PM

you just delete the line refering to linux/config.h from the source files and then make/make install, or put a dummy config.h file there with 'touch /lib/modules/<kernel version>/source/include/config.h'

Can you explain this a little mor for a newbie like me. I keep trying to install the madwifi-ng drivers and use the patch so I can get Kismet running. It always fails because of missing folders. Is this the fix for that?

BTW, Will the Livna madwifi drivers work with Kismet at all? Do they need to be patched?

sideways
24th January 2007, 05:08 PM
Download madwifi-0.9.2.1.tar.bz2 from here http://sourceforge.net/project/downloading.php?group_id=82936&use_mirror=puzzle&filename=madwifi-0.9.2.1.tar.bz2&23517138

Ensure you have kernel source installed (sufficient for the compile to work)

su -
yum install kernel-devel

make a symbolic link from /usr/src/linux to your linux source

ln -s /usr/src/kernels/`uname -r`-`uname -m` /usr/src/linux

create a dummy config.h file

touch /usr/src/linux/include/linux/config.h

Now you can unroll the madwifi source tarball and compile it

su -
cd /tmp
tar xvf madwifi-0.9.2.1.tar.bz2
cd madwifi-0.9.2.1
make


This will create the various modules for your kernel you now need to install and configure the relevant ones which is another howto, explained in the INSTALL document, or I'll serach for a post on this and post a link

sideways
24th January 2007, 05:17 PM
btw, madwifi is available from the lina repository so why not do this instead


su -
rpm -Uvh http://rpm.livna.org/livna-release-6.rpm
yum install kmod-madwifi madwifi

wenis
24th January 2007, 05:54 PM
btw, madwifi is available from the lina repository so why not do this instead


su -
rpm -Uvh http://rpm.livna.org/livna-release-6.rpm
yum install kmod-madwifi madwifi



Yes, but are the sources the same as madwifi-ng, which seems to be what Kismet wants? I can't get Kismet to work with the Livna packages. Thanks for the the help on this other issue.