Hi, error as following
*********************************************************************************************************************************
[root@linux_chdu madwifi-124]# make
for i in ./ath_hal ./wlan ./driver; do \
        (cd $i; make); \
done
make[1]: Entering directory `/home/lpw/phii/fusiv_linux/linux/drivers/net/madwifi-124/ath_hal'
make -C /home/lpw/phii/fusiv_linux/linux SUBDIRS=/home/lpw/phii/fusiv_linux/linux/drivers/net/madwifi-124/ath_hal modules
make[2]: Entering directory `/home/lpw/phii/fusiv_linux/linux'
make -C  /home/lpw/phii/fusiv_linux/linux/drivers/net/madwifi-124/ath_hal CFLAGS="-I /home/lpw/phii/fusiv_linux/linux/include/asm/gcc -D__KERNEL__ -DNEW_CONFIG -I/home/lpw/phii/fusiv_linux/linux/include -I/home/lpw/phii/fusiv_linux/linux/net/adi -I/home/lpw/phii/fusiv_linux/linux/drivers/net/inc/netpro -I/home/lpw/phii/fusiv_linux/linux/drivers/net/inc -I/home/lpw/phii/fusiv_linux/linux/drivers/net/idma -I/home/lpw/phii/fusiv_linux/linux/drivers/net/inc/cpushared -I/home/lpw/phii/fusiv_linux/linux/drivers/net/.. -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mips1 -msoft-float -march=lx4189 -fno-builtin -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
make[3]: Entering directory `/home/lpw/phii/fusiv_linux/linux/drivers/net/madwifi-124/ath_hal'
/usr/local/mips-linux/bin/mips-linux-gcc -I /home/lpw/phii/fusiv_linux/linux/include/asm/gcc -D__KERNEL__ -DNEW_CONFIG -I/home/lpw/phii/fusiv_linux/linux/include -I/home/lpw/phii/fusiv_linux/linux/net/adi -I/home/lpw/phii/fusiv_linux/linux/drivers/net/inc/netpro -I/home/lpw/phii/fusiv_linux/linux/drivers/net/inc -I/home/lpw/phii/fusiv_linux/linux/drivers/net/idma -I/home/lpw/phii/fusiv_linux/linux/drivers/net/inc/cpushared -I/home/lpw/phii/fusiv_linux/linux/drivers/net/.. -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mips1 -msoft-float -march=lx4189 -fno-builtin -pipe -DMODULE -mlong-calls -include ./../include/compat.h -I./../include -I./../hal -I./../hal/linux -I./../ath_hal -I./.. -DAH_BYTE_ORDER=AH_BIG_ENDIAN -G 0 -EB -mno-abicalls -fno-pic -mips2 -Wa,--trap -fno-strict-aliasing -fno-common -fomit-frame-pointer -mlong-calls -DKBUILD_BASENAME=ah_osdep  -DEXPORT_SYMTAB -c ah_osdep.c
*Initialization*:1: warning: `_MIPS_ISA' redefined
*Initialization*:1: warning: this is the location of the previous definition
cc1: Invalid option `arch=lx4189'
************************************************************************************************************************************
and lx4189 is a CPU option when I configed my kernel. It seems like the HAL of this driver does not support this CPU architecture, right?

So my Embed OS based MIPS, and I do not know choose which one among mips-be-elf,mipsisa32-be-elf and mipsisa32-le-elf, but I have tried each one, all have error "cc1: Invalid option `arch=lx4189'".

My kernel is 2.4.18. I guess if my kernel version is old for this driver, but lx4189 should has no relations with kernel version, ritht?

OK, suppose that the madwifi driver's hal does not support lx4189, I changed my kernel CPU option as MIPS32 and complied it, error following:

*********************************************************************************************************************************
[root@linux_chdu madwifi-124]# make
for i in ./ath_hal ./net80211 ./ath; do \
        (cd $i; make) || exit 1; \
done
make[1]: Entering directory `/home/lpw/phii/fusiv_linux/linux/drivers/net/madwifi-124/ath_hal'
cp ./../hal/linux/ah_osdep.c ah_osdep.c
uudecode ./../hal/linux/mips-be-elf.hal.o.uu
cp ./../hal/linux/mips-be-elf.opt_ah.h opt_ah.h
make -C /home/lpw/phii/fusiv_linux/linux SUBDIRS=/home/lpw/phii/fusiv_linux/linux/drivers/net/madwifi-124/ath_hal modules
make[2]: Entering directory `/home/lpw/phii/fusiv_linux/linux'
make -C  /home/lpw/phii/fusiv_linux/linux/drivers/net/madwifi-124/ath_hal CFLAGS="-I /home/lpw/phii/fusiv_linux/linux/include/asm/gcc -D__KERNEL__ -DNEW_CONFIG -I/home/lpw/phii/fusiv_linux/linux/include -I/home/lpw/phii/fusiv_linux/linux/net/adi -I/home/lpw/phii/fusiv_linux/linux/drivers/net/inc/netpro -I/home/lpw/phii/fusiv_linux/linux/drivers/net/inc -I/home/lpw/phii/fusiv_linux/linux/drivers/net/idma -I/home/lpw/phii/fusiv_linux/linux/drivers/net/inc/cpushared -I/home/lpw/phii/fusiv_linux/linux/drivers/net/.. -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls" MAKING_MODULES=1 modules
make[3]: Entering directory `/home/lpw/phii/fusiv_linux/linux/drivers/net/madwifi-124/ath_hal'
/usr/local/mips-linux/bin/mips-linux-gcc -I /home/lpw/phii/fusiv_linux/linux/include/asm/gcc -D__KERNEL__ -DNEW_CONFIG -I/home/lpw/phii/fusiv_linux/linux/include -I/home/lpw/phii/fusiv_linux/linux/net/adi -I/home/lpw/phii/fusiv_linux/linux/drivers/net/inc/netpro -I/home/lpw/phii/fusiv_linux/linux/drivers/net/inc -I/home/lpw/phii/fusiv_linux/linux/drivers/net/idma -I/home/lpw/phii/fusiv_linux/linux/drivers/net/inc/cpushared -I/home/lpw/phii/fusiv_linux/linux/drivers/net/.. -Wall -Wstrict-prototypes -Wno-trigraphs -Os -fomit-frame-pointer -fno-strict-aliasing -fno-common -G 0 -mno-abicalls -fno-pic -mcpu=r4600 -mips2 -Wa,--trap -pipe -DMODULE -mlong-calls -include ./../include/compat.h -I./../include -I./../hal -I./../hal/linux -I./../ath_hal -I./.. -DAH_BYTE_ORDER=AH_BIG_ENDIAN -G 0 -EB -mno-abicalls -fno-pic -mips2 -Wa,--trap -fno-strict-aliasing -fno-common -fomit-frame-pointer -mlong-calls -DKBUILD_BASENAME=ah_osdep  -DEXPORT_SYMTAB -c ah_osdep.c
uudecode ./../hal/linux/mips-be-elf.hal.o.uu
/usr/local/mips-linux/bin/mips-linux-ld -EB -o ath_hal.o -r ah_osdep.o hal.o
/usr/local/mips-linux/bin/mips-linux-ld.real: hal.o: uses different e_flags (0x0) fields than previous modules (0x100)
Bad value: failed to merge target specific data of file hal.o
make[3]: *** [ath_hal.o] Error 1
make[3]: Leaving directory `/home/lpw/phii/fusiv_linux/linux/drivers/net/madwifi-124/ath_hal'
make[2]: *** [_mod_/home/lpw/phii/fusiv_linux/linux/drivers/net/madwifi-124/ath_hal] Error 2
make[2]: Leaving directory `/home/lpw/phii/fusiv_linux/linux'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/lpw/phii/fusiv_linux/linux/drivers/net/madwifi-124/ath_hal'
make: *** [all] Error 1
***********************************************************************************************************************************

ATH_HAL_VERSION        "0.9.8.6"
WLAN_VERSION               "0.7.3.1"
ATH_PCI_VERSION        "0.8.5.5"

Thank for your reply!

Liu.



***********************************************
信息安全声明:本邮件包含信息归ZTE所有,
ZTE对该邮件拥有所有权利。请接收者注意
保密,未经发件人书面许可,不得向任何第
三方组织和个人透露本邮件所含信息的全部
或部分。以上声明仅适用于工作邮件。
Information Security  Notice:
The information contained in this mail is
solely property of  ZTE Corporation. 
This mail communication is confidential.
Recipients named above are obligated to
maintain secrecy and are not permitted to
disclose the contents of this communication
to others.
***********************************************