[TriLUG] hostap help?
Cristobal Palmer
cristobalpalmer at gmail.com
Sun Oct 30 19:33:12 EST 2005
First off, thanks very much for taking a look at all the mess I wrote.
Very much a mess. I shouldn't have posted to the list so tired, so
late into the night. I'll avoid that next time.
> [Why is installing linux-source-2.6.12 necessary? Installing
> linux-headers-$(uname -r) suffices. Moreover, you should use
> KVERS=$(uname -r)
I tried using the headers first. I tried it again after seeing your
email and here is what I got:
for templ in ; do \
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.12-9-k7/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.12-9-k7/g ;s/#KVERS#/2.6.12-9-k7/g ;
s/_KVERS_/2.6.12-9-k7/g ; s/##KDREV##//g ; s/#KDREV#//g ;
s/_KDREV_//g' < $templ > ${templ%.modules.in}; \
done
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs lib/modules/2.6.12-9-k7
# build and install the module
/usr/bin/make KERNEL_PATH=/lib/modules/2.6.12-9-k7/build
DESTDIR=/usr/src/modules/hostap-source/debian/hostap-modules-2.6.12-9-k7
OLDMAKE=
make[1]: Entering directory `/usr/src/modules/hostap-source'
/usr/bin/make -C /lib/modules/2.6.12-9-k7/build
SUBDIRS=/usr/src/modules/hostap-source/driver/modules \
MODVERDIR=/usr/src/modules/hostap-source/driver/modules modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.12-9-k7'
make[2]: Makefile: No such file or directory
make[2]: *** No rule to make target `Makefile'. Stop.
make[2]: Leaving directory `/usr/src/linux-headers-2.6.12-9-k7'
make[1]: *** [2.6] Error 2
make[1]: Leaving directory `/usr/src/modules/hostap-source'
make: *** [binary-modules] Error 2
Furthermore, when I try using fakeroot instead of sudo I get:
for templ in ; do \
cp $templ `echo $templ | sed -e 's/_KVERS_/2.6.12-9-k7/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.12-9-k7/g ;s/#KVERS#/2.6.12-9-k7/g ;
s/_KVERS_/2.6.12-9-k7/g ; s/##KDREV##//g ; s/#KDREV#//g ;
s/_KDREV_//g' < $templ > ${templ%.modules.in}; \
done
/bin/sh: debian/control: Permission denied
/bin/sh: debian/postinst: Permission denied
make: *** [prep-deb-files] Error 1
I tried putting the hostap-source directory somewhere else and got the
same thing.
> The culprit is that you specified wireless-key TWICE. You must use it
> only once, as the error below indicates...
Here is the new /etc/network/interfaces (now with something closer to
my real key):
iface wlan0 inet dhcp
wireless-essid "soymilk latte"
wireless-key ee:ee:be:de:ad:ee:aa:ee:ed:ad:aa:aa:aa
(key edited in case somebody on the list lives next door ;)
And here is what I get when I try sudo ifup wlan0:
Error for wireless request "Set Encode" (8B2A) :
SET failed on device wlan0 ; No such device.
Error for wireless request "Set ESSID" (8B1A) :
SET failed on device wlan0 ; No such device.
Internet Systems Consortium DHCP Client V3.0.2
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
sit0: unknown hardware address type 776
SIOCSIFADDR: No such device
wlan0: ERROR while getting interface flags: No such device
wlan0: ERROR while getting interface flags: No such device
sit0: unknown hardware address type 776
Bind socket to interface: No such device
Failed to bring up wlan0.
Thanks much,
CMP
> Daniel T. Chen crimsun at ubuntu.com
> GPG key: www.sh.nu/~crimsun/pubkey.gpg.asc
>
>
> --
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG Organizational FAQ : http://trilug.org/faq/
> TriLUG Member Services FAQ : http://members.trilug.org/services_faq/
>
>
>
--
Cristobal M. Palmer
UNC-CH SILS Student
cristobalpalmer at gmail.com
cmpalmer at ils.unc.edu
ils.unc.edu/~cmpalmer
"Television-free since 2003"
More information about the TriLUG
mailing list