On Wed, Dec 22, 2004 at 12:19:25PM -0800, Adam Done wrote: > I just purchased and been trying to compile the source for the atheros > chip set and keep on getting errors. I found a link on the debian users > list to a guy who have made some packages for the debian system in the > atheros chip set. I have been trying to compile the code from that and > directly from madwifi and each in its own give me errors. > > compiling code from madwifi: > > 1. downloaded the tarball (I have not yet uesed cvs) > 2. cd into the madwifi directly in /usr/src > 3. make > > # make > for i in ./ath_hal ath_rate/onoe ./net80211 ./ath; do \ > (cd $i; make) || exit 1; \ > done > make: Entering directory `/usr/src/madwifi/ath_hal' > cp ./../hal/linux/ah_osdep.c ah_osdep.c > uudecode ./../hal/linux/powerpc-be-eabi.hal.o.uu > cp ./../hal/linux/powerpc-be-eabi.opt_ah.h opt_ah.h > make -C /lib/modules/2.6.9.pb2/build > SUBDIRS=/usr/src/madwifi/ath_hal modules > make: Entering directory `/usr/src/linux-2.6.9' > CC [M] /usr/src/madwifi/ath_hal/ah_osdep.o > /bin/sh: /pub/gnu/bin/powerpc-eabi-gcc: No such file or > directory > make: *** [/usr/src/madwifi/ath_hal/ah_osdep.o] Error 1 > make: *** [_module_/usr/src/madwifi/ath_hal] Error 2 > make: Leaving directory `/usr/src/linux-2.6.9' > make: *** [all] Error 2 > make: Leaving directory `/usr/src/madwifi/ath_hal' > make: *** [all] Error 1 > > > I think the error is the '/pub/gnu/bin/powerpc-eabi-gcc' I have no > such /pub directory. Before that the error was > > hal/linux/powerpc-be-eabi: No such file or directory > > so I made a link > > lrwxrwxrwx 1 root root 19 Dec 22 01:56 powerpc-be-eabi -> > powerpc-be-eabi.inc > > and now I have the above error. I have the following links in /pub/gnu/bin/: powerpc-eabi-gcc -> /usr/bin/gcc powerpc-eabi-ld -> /usr/bin/ld powerpc-eabi-strip -> /usr/bin/strip Anything works well beyond this point. You can also change stuff in hal/linux/powerpc-be-eabi.inc. > 2. using deb packages > > cd cd madwifi-1.6/ > > # fakeroot dpkg-buildpackage > dpkg-buildpackage: source package is madwifi > dpkg-buildpackage: source version is 1.6-1 > dpkg-buildpackage: source maintainer is Martin List-Petersen > <email@example.com> > dpkg-buildpackage: host architecture is powerpc > debian/rules clean > dh_testdir > #dh_testroot > rm -f build-arch-stamp build-indep-stamp patch-stamp > rm -rf madwifi > dh_clean > dpkg-source -b madwifi-1.6 > dpkg-source: building madwifi in madwifi_1.6-1.tar.gz > dpkg-source: building madwifi in madwifi_1.6-1.dsc > debian/rules build > dh_testdir > tar -xzf madwifi.tar.gz > touch patch-stamp > dh_testdir > /usr/bin/make -C madwifi/tools TARGET=powerpc-eabi > make: Entering directory `/usr/src/madwifi-1.6/madwifi/tools' > ../Makefile.inc:166: ../hal/linux/powerpc-eabi.inc: No such file > or directory > make: *** No rule to make target > `../hal/linux/powerpc-eabi.inc'. Stop. > make: Leaving directory `/usr/src/madwifi-1.6/madwifi/tools' > make: *** [build-arch-stamp] Error 2 > > I see that the error here is relitiv the same as the other step as in > the '/hal/linux/powerpc-eabi.inc: No such file or directory' but when I > go in the directory to make a link and fakeroot dpkg-buildpackage but in > doing that the directory is updated from the current cvs and my change > is lost. I do not use the Debian package. Where did you find it? > I have been reasearching the net all over the place and searching many > different ways on the debian-ppc list and debian-users list. > > Has anyone else have had some successful success in compiling the code > for the atheros chip set? If I can't get this to work I would like to > be able to return my PCMIA card before I can't. Yes, and it works well, even with BenH's PM patch. It is only a shame there is a non-free HAL in it. Cheers. -- ((__,-"""-,__)) .---. `--)~ ~(--` / \ .-'( )`-. \.@-@./ Aurélien GÉRÔME `~~`@) (@`~~` /`\_/`\ | | // _ \\ Free Software Developer | | | \ )|_ Unix Sys & Net Admin (8___8) /`\_`> <_/ \ `---` \__/'---'\__/ BOFH excuse #111: The salesman drove over the CPU board.
Description: Digital signature