Tackling Tamina’s Problem
Compiled a new kernel today - 2.6.34.5-tamina
Encountered 2 errors -
Error no 1 (something to do with lguest):
make[1]: Leaving directory `/usr/src/linux’
/usr/bin/make EXTRAVERSION=.6-ast01-lw ARCH=i386 \
-C Documentation/lguest
make[1]: Entering directory `/usr/src/linux/Documentation/lguest’
cc -m32 -Wall -Wmissing-declarations -Wmissing-prototypes -O3 -I../../include -I../../arch/x86/include -U_FORTIFY_SOURCE lguest.c -o lguest
lguest.c:21:25: error: sys/eventfd.h: No such file or directory
lguest.c:37:18: error: zlib.h: No such file or directory
lguest.c: In function ‘create_thread’:
lguest.c:1021: warning: implicit declaration of function ‘eventfd’
make[1]: *** [lguest] Error 1
make[1]: Leaving directory `/usr/src/linux/Documentation/lguest’
make: *** [debian/stamp/build/kernel] Error 2
Solution :
cd /usr/src/linux
nano Documentation/lguest/MakefileChanged this line
all: lguest
to
all:
Error no 2 (something to do with the version of kernel-package):
make[1]: Entering directory `/usr/src/linux’
====== making target debian/stamp/install/linux-image-2.6.34.5-tamina [new prereqs: ]======
This is kernel package version 11.015.
echo “The UTS Release version in include/linux/version.h”; echo “ \”\” “; echo “does not match current version:”; echo “ \”2.6.34.5-tamina\” “; echo “Please correct this.”; exit 2
The UTS Release version in include/linux/version.h
“”
does not match current version:
“2.6.34.5-tamina”
Please correct this.
make[1]: *** [debian/stamp/install/linux-image-2.6.34.5-tamina] Error 2
make[1]: Leaving directory `/usr/src/linux’
make: *** [kernel_image] Error 2
Solution :
cd /usr/share/kernel-package
sudo cp -v ruleset/misc/version_vars.mk{,.orig}
sudo cp -v ruleset/targets/common.mk{,.orig}
wget http://bit.ly/krnl-pkg-ptch
sudo patch -p1 -i kernel-package-11.015.patch.txt
And all that, took me half my Sunday. But it was all worth it.
Edit :
Some users claimed that turning off “Processor type and features” and “Paravirtualized guest support” solved the lguest error above. The problem is apparenty due to the old libc-dev package that Lenny comes with.
ath5k to madwifi-ng
Reminder: ath0 is madwifi, wlan0 is ath5k (i choose the 1st one)
no crazy un-motivational pix right now. straight to business.
this is for changing wireless module for Atheros 5007EG (AR242x 802.11abg) in my Acer Aspire 4315 notebook from ath5k (originally installed by Debian Lenny) to madwifi-ng and using it for aircrack-ng.
1. do a lsmod | grep ath5k to make sure you have that ath5k module
2. move or blacklist that ath5k module. 2 ways, either:
a) locate ath5k.ko & move it to a safe place then do a depmode -ae, OR
b) blacklist it by adding “blacklist ath5k” (no quotes please) in /etc/modprobe.d/blacklist (that’s for debian)
the 1st option works for me.
3. reboot
4. ifconfig ath0 down OR ifconfig wifi0 down
5. svn -r 4073 checkout http://svn.madwifi-project.org/madwifi/trunk/ madwifi-ng
6. cd madwifi-ng
7. wget http://patches.aircrack-ng.org/madwifi-ng-r4073.patch
8. patch -N -p 1 -i madwifi-ng-r4073.patch
9. ./scripts/madwifi-unload
10. make
11. make install
12. depmod -ae
13. modprobe ath_pci
if you’re using wicd don’t forget to change your wireless interface in the preferences menu.
(i’m too lazy to type all the commands above. just copied it all from here
done.

