[Avila] Madwifi

Tim Harvey tim_harvey at yahoo.com
Tue Jun 20 10:40:19 EDT 2006


no problems here.  Note the following changes I've always used against
madwifi-svn:

[tharvey at devel ng-svn]$ svn diff
Index: tools/Makefile
===================================================================
--- tools/Makefile      (revision 1648)
+++ tools/Makefile      (working copy)
@@ -53,7 +53,8 @@
 all:   ${ALL}
 
 INCS+= -I. -I${HAL} -I${DEPTH}
-CFLAGS=        -g -O2 -Wall
+#CFLAGS=       -g -O2 -Wall
+CFLAGS=        -mbig-endian
 ALL_CFLAGS= ${CFLAGS} ${INCS}
 LDFLAGS=
 
Index: hal/public/xscale-be-elf.inc
===================================================================
--- hal/public/xscale-be-elf.inc        (revision 1648)
+++ hal/public/xscale-be-elf.inc        (working copy)
@@ -65,7 +65,7 @@
 endif
 #
 CC=    ${TOOLPREFIX}gcc
-LD=    ${TOOLPREFIX}ld
+LD=    ${TOOLPREFIX}ld -EB
 STRIP= ${TOOLPREFIX}strip
 OBJCOPY=${TOOLPREFIX}objcopy
 NM=    ${TOOLPREFIX}nm
@@ -77,5 +77,5 @@
 
 LDOPTS=        -EB
 COPTS+=        -DAH_BYTE_ORDER=AH_BIG_ENDIAN
-COPTS+= -march=armv4 -mbig-endian -fno-strict-aliasing -fno-common -mapcs-32 \
+COPTS+= -mbig-endian -fno-strict-aliasing -fno-common -mapcs-32 \
        -mtune=xscale  -mshort-load-bytes -msoft-float -mfp=2

and the build:

make: Entering directory `/home/tharvey/avila/madwifi/src/ng-svn'
The following settings will be used for compilation:
TARGET       : xscale-be-elf
OS           : linux
ARCH         : arm
BUS          : PCI
KERNELRELEASE: 2.6.15-uc0
KERNELPATH   : /home/tharvey/avila/avila/linux-2.6.x/
KERNELCONF   : /home/tharvey/avila/avila/linux-2.6.x//.config
KMODPATH     : /lib/modules/2.6.15-uc0/net
KMODSUF      : ko
...

and the compiler:

[tharvey at devel ng-svn]$ arm-linux-gcc -v
Reading specs from /usr/local/lib/gcc-lib/arm-linux/3.3.2/specs
Configured with: ../configure --target=arm-linux --disable-shared
--with-headers=/home/gerg/new-wave.xscale/linux-2.4.x/include --with-gnu-as
--with-gnu-ld --enable-multilib
Thread model: posix
gcc version 3.3.2

--- Support <Support at powernoc.net> wrote:

> 
> Is anyone else having an isssue compiling madwifi r1645 with the 
> snapgear 3.3.0 toolchain?
> Is it possible to fix this or will i have to figure out another method 
> to link this?
> does anyone have a toolchain they want to share if its working for you..
> 
> thanks
> 
> 
> 
> 
> aliosa27:/powernoc/madwifi-ng-r1645-20060615# make 
> KERNELPATH=/root/snapgear/linux-2.6.x/ TARGET=xscale-be-elf 
> TOOLPREFIX=/usr/local/bin/arm-linux- DESTDIR=/root/snapgear/romfs/ ARCH=arm
> Checking requirements... ok.
> Checking kernel configuration... ok.
> make -C /root/snapgear/linux-2.6.x/ 
> SUBDIRS=/powernoc/madwifi-ng-r1645-20060615 modules
> make[1]: Entering directory `/root/snapgear/linux-2.6.x'
>   CC [M]  /powernoc/madwifi-ng-r1645-20060615/ath/ah_osdep.o
> cc1: error: invalid option `abi=apcs-gnu'
> make[3]: *** [/powernoc/madwifi-ng-r1645-20060615/ath/ah_osdep.o] Error 1
> make[2]: *** [/powernoc/madwifi-ng-r1645-20060615/ath] Error 2
> make[1]: *** [_module_/powernoc/madwifi-ng-r1645-20060615] Error 2
> make[1]: Leaving directory `/root/snapgear/linux-2.6.x'
> make: *** [modules] Error 2
> aliosa27:/powernoc/madwifi-ng-r1645-20060615#
> 
> 
> 
> 
> Loft wrote:
> > Loft wrote:
> >> Chris Lang wrote:
> >>
> >> Thanks for the up-to-the-second update with revision number! That's 
> >> good to know.
> >>
> >> Anyone wanting to build previous versions of madwifi-ng with a later 
> >> gcc that barfs on the  -mshort-load-bytes can just edit/sed that to 
> >> -malignment-traps.
> >>
> > Ok 5:31 AM is still a little early on the East Coast.
> >
> > That's in the file hal/public/xscale-le-elf.inc or xscale-be-elf.inc 
> > if building Big Endian.
> >
> >> Cheers,
> >>
> >> Tom
> >>
> >>
> >>> You are right in seeing that the option "-short-load-bytes" is 
> >>> decprecated, however it has not been removed from the makefile by 
> >>> madwifi until today. My suggestion would be to either use the 
> >>> madwifi from the BSP or if you would like to build the bleeding edge 
> >>> version use the latest revision witch is r1644 which was just fixed 
> >>> today in the morning.
> >>>
> >>> Thanks,
> >>> Chris L
> >>>
> >>>
> >>> ----- Original Message ----- From: "Support" <Support at powernoc.net>
> >>> To: "Avila" <avila at lists.unixstudios.net>
> >>> Sent: Tuesday, June 13, 2006 10:52 AM
> >>> Subject: [Avila] Madwifi
> >>>
> >>>
> >>>> Hi list,
> >>>> If any of you are using madwifi for the Avila boards.. What version 
> >>>> of gcc are you using to compile it for arm. I have ran into this 
> >>>> error..
> >>>>
> >>>> cc1: error: invalid option `short-load-bytes'
> >>>>
> >>>> I googled it and found that it was depreciated...but still
> >>>>
> >>>> aliosa27:/powernoc/madwifi-ng-r1526-20060424/madwifi-ng-r1526-20060424# 
> >>>> make KERNELPATH=/root/snapgear/linux-2.6.x/ CC=arm-linux-gcc
> >>>> Checking requirements... ok.
> >>>> Checking kernel configuration... ok.
> >>>> if [ -d .svn ]; then \
> >>>>        ver=`svnversion -nc . | sed -e 's/^[^:]*://;s/[A-Za-z]//'`; \
> >>>> elif [ -s SNAPSHOT ]; then \
> >>>>        ver=`sed -e '/^Revision: */!d;s///;q' SNAPSHOT`; \
> >>>> else \
> >>>>        ver=`date +%F`; \
> >>>> fi; \
> >>>> echo "#define SVNVERSION \"$ver\"" > svnversion.h
> >>>> mkdir -p ./symbols
> >>>> for i in ./ath_hal ./net80211 ath_rate/sample ./ath; do \
> >>>>        make -C $i || exit 1; \
> >>>> done
> >>>> make[1]: Entering directory 
> >>>> `/powernoc/madwifi-ng-r1526-20060424/madwifi-ng-r152 
> >>>> 6-20060424/ath_hal'
> >>>> make -C /root/snapgear/linux-2.6.x/ 
> >>>> SUBDIRS=/powernoc/madwifi-ng-r1526-20060424/ 
> >>>> madwifi-ng-r1526-20060424/ath_hal 
> >>>> MODVERDIR=/powernoc/madwifi-ng-r1526-20060424/ 
> >>>> madwifi-ng-r1526-20060424/ath_hal/../symbols modules
> >>>> make[2]: Entering directory `/root/snapgear/linux-2.6.x'
> >>>>  CC [M] 
> >>>> /powernoc/madwifi-ng-r1526-20060424/madwifi-ng-r1526-20060424/ath_hal/ 
> >>>> ah_osdep.o
> >>>> cc1: error: invalid option `short-load-bytes'
> >>>> make[3]: *** 
> >>>> [/powernoc/madwifi-ng-r1526-20060424/madwifi-ng-r1526-20060424/ath_ 
> >>>> hal/ah_osdep.o] Error 1
> >>>> make[2]: *** 
> >>>> [_module_/powernoc/madwifi-ng-r1526-20060424/madwifi-ng-r1526-20060 
> >>>> 424/ath_hal] Error 2
> >>>> make[2]: Leaving directory `/root/snapgear/linux-2.6.x'
> >>>> make[1]: *** [all] Error 2
> >>>> make[1]: Leaving directory 
> >>>> `/powernoc/madwifi-ng-r1526-20060424/madwifi-ng-r1526              
> >>>> -20060424/ath_hal'
> >>>> make: *** [modules] Error 1
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: avila-unsubscribe at lists.unixstudios.net
> >>>> For additional commands, e-mail: avila-help at lists.unixstudios.net
> >>>>
> >>>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: avila-unsubscribe at lists.unixstudios.net
> >>> For additional commands, e-mail: avila-help at lists.unixstudios.net
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: avila-unsubscribe at lists.unixstudios.net
> >> For additional commands, e-mail: avila-help at lists.unixstudios.net
> >>
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: avila-unsubscribe at lists.unixstudios.net
> > For additional commands, e-mail: avila-help at lists.unixstudios.net
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: avila-unsubscribe at lists.unixstudios.net
> For additional commands, e-mail: avila-help at lists.unixstudios.net
> 
> 





More information about the Avila mailing list