Hi all!
After trying lots of different versions of madwifi (trunk, 0.9.4, with and
without new hal, etc.) and always getting errors and malfunctions on an Alix
board (all voyage versions) with two CM9 in ad-hoc mode and running OLSR
daemon, I've tried an experiment. I've download the sources of the dd-wrt (
http://www.dd-wrt.com/dd-wrtv2/downloads/others/sourcecode/v23/dd-wrt.v23.SP1-RC6.src.tar.bz2)
and I've tried to extract the wireless drivers and compile them.
I've copied the ./DD-WRT/src/router/madwifi-ng/ dir to
/usr/src/modules/madwifi and added the debian dir. Although .svnversion.h
says that DD-WRT madwifi-ng is 1443 release, diff shows a lot of differences
between both sources (madwifi svn and DD-WRT). When I've tried make-kpkg
modules, I've got a lot of errors (attached file)...
Anyone could give advice on how to make the deb package for the DD-WRT
driver?
Xevi
for module in /usr/src/modules/madwifi ; do \
if test -d $module; then \
(cd $module; \
if ./debian/rules KVERS="2.6.23-486-voyage"
KSRC="/home/xevi/guifibages/voyage/usr/src/linux-source-2.6.23-voyage" \
KMAINT="Unknown Kernel Package Maintainer"
KEMAIL="[EMAIL PROTECTED]" \
KPKG_DEST_DIR="/home/xevi/guifibages/voyage/usr/src/linux-source-2.6.23-voyage/.."
\
KPKG_MAINTAINER="Unknown Kernel Package
Maintainer" \
ARCH=i386 \
KPKG_EXTRAV_ARG="" \
KDREV="5.0-2" kdist; then \
echo "Module $module processed fine"; \
else \
echo "Module $module failed."; \
if [ "X" != "X" ]; then \
echo "Perhaps $module does not understand --rootcmd?"; \
echo "If you see messages that indicate that it is not"; \
echo "in fact being built as root, please file a bug "; \
echo "against $module."; \
fi; \
echo "Hit return to Continue?"; \
read ans; \
fi; \
); \
else \
echo "Module $module does not exist"; \
echo "Hit return to Continue?"; \
fi; \
done
make[1]: Entering directory `/usr/src/modules/madwifi'
/usr/bin/make -w -f debian/rules kdist_clean kdist_config binary-modules
make[2]: Entering directory `/usr/src/modules/madwifi'
dh_testdir
dh_testroot
dh_clean
/usr/bin/make -C /usr/src/modules/madwifi clean \
KERNELPATH=/home/xevi/guifibages/voyage/usr/src/linux-source-2.6.23-voyage
KERNELRELEASE=2.6.23-486-voyage
KERNELCONF=/home/xevi/guifibages/voyage/usr/src/linux-source-2.6.23-voyage/.config
make[3]: Entering directory `/usr/src/modules/madwifi'
for i in ./ath_hal ./net80211 ath_rate/sample ./ath; do \
/usr/bin/make -C $i clean; \
done
make[4]: Entering directory `/usr/src/modules/madwifi/ath_hal'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
rm -f ah_osdep.c opt_ah.h hal.o
make[4]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
make[4]: Entering directory `/usr/src/modules/madwifi/net80211'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[4]: Leaving directory `/usr/src/modules/madwifi/net80211'
make[4]: Entering directory `/usr/src/modules/madwifi/ath_rate/sample'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[4]: Leaving directory `/usr/src/modules/madwifi/ath_rate/sample'
make[4]: Entering directory `/usr/src/modules/madwifi/ath'
rm -f *~ *.o *.ko *.mod.c
rm -f .depend .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
make[4]: Leaving directory `/usr/src/modules/madwifi/ath'
/usr/bin/make -C ./tools clean
make[4]: Entering directory `/usr/src/modules/madwifi/tools'
rm -f athstats 80211stats athkey athchans athctrl athdebug 80211debug
wlanconfig regdomain core a.out
make[4]: Leaving directory `/usr/src/modules/madwifi/tools'
rm -rf ./symbols
rm -f svnversion.h
make[3]: Leaving directory `/usr/src/modules/madwifi'
for templ in ; do \
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.23-486-voyage/g'` ; \
done
for templ in `ls debian/*.modules.in` ; do \
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in}
${templ%.modules.in}.backup 2>/dev/null || true; \
sed -e 's/##KVERS##/2.6.23-486-voyage/g ;s/#KVERS#/2.6.23-486-voyage/g ;
s/_KVERS_/2.6.23-486-voyage/g ; s/##KDREV##/5.0-2/g ; s/#KDREV#/5.0-2/g ;
s/_KDREV_/5.0-2/g ' < $templ > ${templ%.modules.in}; \
done
dh_testdir
dh_testroot
dh_clean -k
# Build modules
/usr/bin/make -C /usr/src/modules/madwifi modules \
KERNELPATH=/home/xevi/guifibages/voyage/usr/src/linux-source-2.6.23-voyage
KERNELRELEASE=2.6.23-486-voyage
KERNELCONF=/home/xevi/guifibages/voyage/usr/src/linux-source-2.6.23-voyage/.config
make[3]: Entering directory `/usr/src/modules/madwifi'
Checking requirements... ok.
Checking kernel configuration... ok.
echo -n '#define SVNVERSION "' > svnversion.h
if [ -d .svn ]; then \
echo -n "xported" >> svnversion.h; \
elif [ -s SNAPSHOT ]; then \
echo -n "" >> svnversion.h; \
else \
echo -n "2008-07-16" >> svnversion.h; \
fi
echo '"' >> svnversion.h
mkdir -p ./symbols
for i in ./ath_hal ./net80211 ath_rate/sample ./ath; do \
/usr/bin/make -C $i || exit 1; \
done
make[4]: Entering directory `/usr/src/modules/madwifi/ath_hal'
cp -f ./../hal/public/i386-elf.opt_ah.h opt_ah.h
cp -f ./../hal/linux/ah_osdep.c ah_osdep.c
/usr/bin/uudecode ./../hal/public/i386-elf.hal.o.uu
/usr/bin/make -C
/home/xevi/guifibages/voyage/usr/src/linux-source-2.6.23-voyage
SUBDIRS=/usr/src/modules/madwifi/ath_hal
MODVERDIR=/usr/src/modules/madwifi/ath_hal/../symbols modules
make[5]: Entering directory
`/home/xevi/guifibages/voyage/usr/src/linux-source-2.6.23-voyage'
CC [M] /usr/src/modules/madwifi/ath_hal/ah_osdep.o
make[5]: Leaving directory
`/home/xevi/guifibages/voyage/usr/src/linux-source-2.6.23-voyage'
make[4]: Leaving directory `/usr/src/modules/madwifi/ath_hal'
make[3]: Leaving directory `/usr/src/modules/madwifi'
make[2]: Leaving directory `/usr/src/modules/madwifi'
make[1]: Leaving directory `/usr/src/modules/madwifi'
Module /usr/src/modules/madwifi failed.
Hit return to Continue?
_______________________________________________
Voyage-linux mailing list
[email protected]
http://list.voyage.hk/mailman/listinfo/voyage-linux