Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
madwifi complie/emerge problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
rbrouwer
n00b
n00b


Joined: 20 Oct 2004
Posts: 3

PostPosted: Sat Oct 30, 2004 10:35 pm    Post subject: madwifi complie/emerge problems Reply with quote

I am running gentoo-2.6.9 on a G4 powerbook. I am trying to install the madwifi drivers for a cardbus wireless networking card based on the Atheros 5001 chipset.

I have tried these techniques without success:

1. downloading the latest drivers and tyring to complie them leads to this error.

Quote:
for i in ./ath_hal ath_rate/onoe ./net80211 ./ath; do \
(cd $i; make) || exit 1; \
done
make[1]: Entering directory `/home/stooge/madwifi/ath_hal'
make -C /lib/modules/2.6.9-gentoo-r1/build SUBDIRS=/home/stooge/madwifi/ath_hal modules
make[2]: Entering directory `/usr/src/linux-2.6.9-gentoo-r1'
LD [M] /home/stooge/madwifi/ath_hal/ath_hal.o
ld: /home/stooge/madwifi/ath_hal/hal.o: Relocations in generic ELF (EM: 3)
/home/stooge/madwifi/ath_hal/hal.o: could not read symbols: File in wrong format
make[3]: *** [/home/stooge/madwifi/ath_hal/ath_hal.o] Error 1
make[2]: *** [_module_/home/stooge/madwifi/ath_hal] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.9-gentoo-r1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/stooge/madwifi/ath_hal'
make: *** [all] Error 1



2. Applying the advice in this thread
https://forums.gentoo.org/viewtopic.php?t=212447&highlight=madwifi+error leads to the following error.

Quote:
>>> emerge (1 of 1) net-wireless/madwifi-driver-0.1_pre20040824 to /
>>> md5 src_uri ;-) madwifi-driver-0.1_pre20040824.tar.bz2
>>> Unpacking source...
>>> Unpacking madwifi-driver-0.1_pre20040824.tar.bz2 to /var/tmp/portage/madwifi-driver-0.1_pre20040824/work
* Applying linux-2.6.8.patch ... [ ok ]>>> Source unpacked.
for i in ./ath_hal ./net80211 ./ath; do \
(cd $i; make clean); \
done
make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal'
rm -f *~ *.o *.ko *.mod.c
rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -f ah_osdep.c opt_ah.h hal.o
make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal'
make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/net80211'
rm -f *~ *.o *.ko *.mod.c
rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/net80211'
make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath'
rm -f *~ *.o *.ko *.mod.c
rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath'
for i in ./ath_hal ./net80211 ./ath; do \
(cd $i; make) || exit 1; \
done
make[1]: Entering directory `/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal'
cp ./../hal/linux/ah_osdep.c ah_osdep.c
uudecode ./../hal/linux/i386-elf.hal.o.uu
cp ./../hal/linux/i386-elf.opt_ah.h opt_ah.h
make -C /usr/src/linux SUBDIRS=/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal modules
make[2]: Entering directory `/usr/src/linux-2.6.9-gentoo-r1'
CC [M] /var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal/ah_osdep.o
In file included from /var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal/../hal/ah.h:49,
from /var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal/ah_osdep.c:58:
/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal/../hal/linux/ah_osdep.h:102:1: warning: "abs" redefined
In file included from include/linux/spinlock.h:13,
from include/linux/capability.h:45,
from include/linux/sched.h:7,
from include/linux/module.h:10,
from /var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal/ah_osdep.c:46:
include/linux/kernel.h:58:1: warning: this is the location of the previous definition
LD [M] /var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal/ath_hal.o
ld: /var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal/hal.o: Relocations in generic ELF (EM: 3)
/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal/hal.o: could not read symbols: File in wrong format
make[3]: *** [/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal/ath_hal.o] Error 1
make[2]: *** [_module_/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.9-gentoo-r1'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/tmp/portage/madwifi-driver-0.1_pre20040824/work/ath_hal'
make: *** [all] Error 1


3. Applying the patches to the kernel so Atheros apperas in the kernel config leads to this when configuring the kernel.



Quote:
CHK include/linux/version.h
make[1]: `arch/ppc/kernel/asm-offsets.s' is up to date.
CHK include/asm-ppc/offsets.h
CHK include/linux/compile.h
make[4]: *** No rule to make target `drivers/net/wireless/_ath_hal/../hal/linux/.opt_ah.h', needed by `drivers/net/wireless/_ath_hal/opt_ah.h'. Stop.
make[3]: *** [drivers/net/wireless/_ath_hal] Error 2
make[2]: *** [drivers/net/wireless] Error 2
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2


I have checked all the other things like ensuring that wireless and pcmcia/card bus support is enabled and that CONFIG_MODVERSIONS=n.

I'm kinda stumped. The problem seems to be that the driver file seems to be in the wrong format, but I've downloaded the source files from CVS, Atheros site and the card manufacturer and all cause the same issues.

Any advice much appreciated.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum