[uClinux-dev] madwifi with snapgear-3.4.0

Assaf Harel AssafH at metalinkBB.com
Mon Jan 29 07:31:58 EST 2007


It works! Thanks!

-----Original Message-----
From: uclinux-dev-bounces at uclinux.org
[mailto:uclinux-dev-bounces at uclinux.org] On Behalf Of Sangsu Baek
Sent: Friday, January 19, 2007 04:34
To: uClinux development list
Subject: Re: [uClinux-dev] madwifi with snapgear-3.4.0

Hi Assaf

modify  your command line make options (add CROSS_COMPILE) make
KERNELPATH=/home/assafh/snapgear/snapgear-3.4.0/snapgear/linux-2.6.x/
TARGET=xscale-be-elf TOOLPRFEIX=/usr/local/bin/arm-linux- V=1

=>
make
KERNELPATH=/home/assafh/snapgear/snapgear-3.4.0/snapgear/linux-2.6.x/
TARGET=xscale-be-elf TOOLPRFEIX=/usr/local/bin/arm-linux-
CROSS_COMPILE=/usr/local/bin/arm-linux- V=1

this works for me !

Regards

Sangsu Baek


----- Original Message -----
From: "Assaf Harel" <AssafH at metalinkBB.com>
To: <uclinux-dev at uclinux.org>
Sent: Thursday, January 18, 2007 9:37 PM
Subject: [uClinux-dev] madwifi with snapgear-3.4.0



Hi,

I'm porting my snapgear with MonteJade (IXP425) platform from
snapgear-3.3.0 to 3.4.0 and from kernel 2.4 to 2.6
I stumbled into a problem while compiling madwifi (Atheros Wifi modules)
for the new distribution.
Needless to say everything works fine with 2.4, but I really want to
port to 2.6...

I'm adding a dump of the error I get when building for 2.6 vs. the
beginning of the 2.4 compilation that doesn't break.
(Notice that the error happens when using snapgear/linux-2.6.x'
makefile):

I'd appreciate any help I can get. I'm stuck on this for more then a
week now...

<compiling for 2.6 (with V=1)>

assafh at linux-assafh:~/madwifi/madwifi-0.9.2$
<mailto:assafh at linux-assafh:~/madwifi/madwifi-0.9.2$>  make
KERNELPATH=/home/assafh/snapgear/snapgear-3.4.0/snapgear/linux-2.6.x/
TARGET=xscale-be-elf TOOLPRFEIX=/usr/local/bin/arm-linux- V=1
Checking requirements... ok.
Checking kernel configuration... ok.
make -C /home/assafh/snapgear/snapgear-3.4.0/snapgear/linux-2.6.x/
SUBDIRS=/home/assafh/madwifi/madwifi-0.9.2 modules
make[1]: Entering directory
`/home/assafh/snapgear/snapgear-3.4.0/snapgear/linux-2.6.x'
mkdir -p /home/assafh/madwifi/madwifi-0.9.2/.tmp_versions
rm -f /home/assafh/madwifi/madwifi-0.9.2/.tmp_versions/*
make -f scripts/Makefile.build obj=/home/assafh/madwifi/madwifi-0.9.2
make -f scripts/Makefile.build
obj=/home/assafh/madwifi/madwifi-0.9.2/ath
  /usr/local/bin/arm-linux-gcc
-Wp,-MD,/home/assafh/madwifi/madwifi-0.9.2-dongle/ath/.ah_osdep.o.d
-nostdinc -isystem /usr/lib/gcc/i486-linux-gnu/3.4.5/include
-D__KERNEL__ -Iinclude  -include include/linux/autoconf.h -mbig-endian
-Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
-fno-common -Os -fno-omit-frame-pointer -fno-optimize-sibling-calls
-fno-omit-frame-pointer -mapcs -mno-sched-prolog -mabi=apcs-gnu
-D__LINUX_ARM_ARCH__=5 -march=armv4 -mtune=strongarm110 -Wa,-mcpu=xscale
-msoft-float -Uarm   -include
/home/assafh/madwifi/madwifi-0.9.2-dongle/ath/../include/compat.h
-I/home/assafh/madwifi/madwifi-0.9.2-dongle/ath/../include
-I/home/assafh/madwifi/madwifi-0.9.2-dongle/ath/../hal
-I/home/assafh/madwifi/madwifi-0.9.2-dongle/ath
-I/home/assafh/madwifi/madwifi-0.9.2-dongle/ath/../hal/linux
-I/home/assafh/madwifi/madwifi-0.9.2-dongle/ath/../net80211
-I/home/assafh/madwifi/madwifi-0.9.2-dongle/ath/.. -DATH_PCI -Werror
-DAH_BYTE_ORDER=AH_BIG_ENDIAN -DAH_REGOPS_FUNC -mbig-endian
-fno-strict-aliasing -fno-common -mapcs-32 -mtune=xscale -msoft-float
-mfp=2 -DATH_SUPERG_FF=1 -DATH_SUPERG_DYNTURBO=1 -DATH_TURBO_SCAN=1
-DATH_SUPERG_XR=1
-DOPT_AH_H=\"/home/assafh/madwifi/madwifi-0.9.2-dongle/ath/../hal/public
/xscale-be-elf.opt_ah.h\"  -DMODULE -D"KBUILD_STR(s)=#s"
-D"KBUILD_BASENAME=KBUILD_STR(ah_osdep)"
-D"KBUILD_MODNAME=KBUILD_STR(ath_hal)" -c -o
/home/assafh/madwifi/madwifi-0.9.2-dongle/ath/ah_osdep.o
/home/assafh/madwifi/madwifi-0.9.2/ath/ah_osdep.c
cc1: error: invalid option `abi=apcs-gnu'
make[3]: *** [/home/assafh/madwifi/madwifi-0.9.2/ath/ah_osdep.o] Error 1
make[2]: *** [/home/assafh/madwifi/madwifi-0.9.2/ath] Error 2
make[1]: *** [_module_/home/assafh/madwifi/madwifi-0.9.2] Error 2
make[1]: Leaving directory
`/home/assafh/snapgear/snapgear-3.4.0/snapgear/linux-2.6.x'
make: *** [modules] Error 2

<compiling for 2.4>

assafh at linux-assafh:~/madwifi/madwifi-0.9.2$
<mailto:assafh at linux-assafh:~/madwifi/madwifi-0.9.2$>  make
KERNELPATH=/home/assafh/snapgear/snapgear/linux-2.4.x/
TARGET=xscale-be-elf TOOLPRFEIX=/usr/local/bin/arm-linux-
Checking requirements... ok.
Checking kernel configuration... ok.
for i in ./ath ath_rate/sample ./net80211; do \
        make -C $i || exit 1; \
done
make[1]: Entering directory `/home/assafh/madwifi/madwifi-0.9.2/ath'
make -C /home/assafh/snapgear/snapgear/linux-2.4.x/
SUBDIRS=/home/assafh/madwifi/madwifi-0.9.2/ath modules
make[2]: Entering directory `/home/assafh/snapgear/snapgear/linux-2.4.x'
make -C  /home/assafh/madwifi/madwifi-0.9.2/ath CFLAGS="-D__KERNEL__
-I/home/assafh/snapgear/snapgear/linux-2.4.x/include  -Wall
-Wstrict-prototypes -Wno-trigraphs -O -fno-strict-aliasing -fno-common
-Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=5 -mcpu=xscale
-mtune=xscale -malignment-traps -msoft-float -Uarm -DMODULE "
MAKING_MODULES=1 modules
make[3]: Entering directory `/home/assafh/madwifi/madwifi-0.9.2ath'
/usr/local/bin/arm-linux-gcc -D__KERNEL__
-I/home/assafh/snapgear/snapgear/linux-2.4.x/include  -Wall
-Wstrict-prototypes -Wno-trigraphs -O -fno-strict-aliasing -fno-common
-Uarm -fno-common -pipe -mapcs-32 -D__LINUX_ARM_ARCH__=5 -mcpu=xscale
-mtune=xscale -malignment-traps -msoft-float -Uarm -DMODULE  -include
./../include/compat.h -I./../include -I./../hal -I. -I./../hal/linux
-I./../net80211 -I./.. -DATH_PCI -Werror -DAH_BYTE_ORDER=AH_BIG_ENDIAN
-DAH_REGOPS_FUNC -mbig-endian -fno-strict-aliasing -fno-common -mapcs-32
-mtune=xscale -msoft-float -mfp=2 -DATH_SUPERG_FF=1
-DATH_SUPERG_DYNTURBO=1 -DATH_TURBO_SCAN=1 -DATH_SUPERG_XR=1
-DOPT_AH_H=\"./../hal/public/xscale-be-elf.opt_ah.h\" -nostdinc
-iwithprefix include -DKBUILD_BASENAME=if_ath  -c -o if_ath.o if_ath.c





-- Disclaimer: --
This e-mail is intended solely for the person to whom it is addressed
and may contain confidential or legally privileged information. Access
to this e-mail by anyone else is unauthorized. If an addressing or
transmission error has misdirected this e-mail, please notify the author
by replying to this e-mail and destroy this e-mail and any attachments.
E-mail may be susceptible to data corruption, interception, unauthorized
amendment, viruses and delays or the consequences thereof. If you are
not the intended recipient, be advised that you have received this email
in error and that any use, dissemination, forwarding, printing or
copying of this email is strictly prohibited.


------------------------------------------------------------------------
--------


> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev

-- Disclaimer: --
This e-mail is intended solely for the person to whom it is addressed and may contain confidential or legally privileged information. Access to this e-mail by anyone else is unauthorized. If an addressing or transmission error has misdirected this e-mail, please notify the author by replying to this e-mail and destroy this e-mail and any attachments.
E-mail may be susceptible to data corruption, interception, unauthorized amendment, viruses and delays or the consequences thereof. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing or copying of this email is strictly prohibited.



More information about the uClinux-dev mailing list