the problem of porting rt73 onto s3c2440
hi~~everybody~~
i am porting rt73 wirless network adapter on s3c2440,the kernel version is 2.6.24.4,and the driver version is RT73_Linux_STA_Drv1.0.4.0.tar.gz,here are the problems when corss-compiling,i dont know why??how it caused the problem?is the 2.6.24 kernel conflict with the driver?? help,please...
include/asm/hardware.h:16:31: asm/arch/hardware.h: No such file or directory
/utuLinux2.6.24/kernel-2.6.24/drivers/net/wireless/rt73/rtmp_main.c: In function `usb_rtusb_probe':
/utuLinux2.6.24/kernel-2.6.24/drivers/net/wireless/rt73/rtmp_main.c:1030: error: implicit declaration of function `SET_MODULE_OWNER'
/utuLinux2.6.24/kernel-2.6.24/drivers/net/wireless/rt73/rtmp_main.c:1048: error: structure has no member named `weight'
/utuLinux2.6.24/kernel-2.6.24/drivers/net/wireless/rt73/rtmp_main.c:1070: warning: passing arg 1 of `dev_get_by_name' from incompatible pointer type
/utuLinux2.6.24/kernel-2.6.24/drivers/net/wireless/rt73/rtmp_main.c:1070: error: too few arguments to function `dev_get_by_name'
/utuLinux2.6.24/kernel-2.6.24/drivers/net/wireless/rt73/rtmp_main.c:1060: warning: unused variable `device'
make[2]: *** [/utuLinux2.6.24/kernel-2.6.24/drivers/net/wireless/rt73/rtmp_main.o] Error 1
make[1]: *** [_module_/utuLinux2.6.24/kernel-2.6.24/drivers/net/wireless/rt73] Error 2
make[1]: Leaving directory `/utuLinux2.6.24/kernel-2.6.24'
make: *** [all] Error 2
[root@localhost rt73]#
Makefile:
WFLAGS := -Wall -Wstrict-prototypes -Wno-trigraphs
## Comment/uncomment the following line to enable/disable debugging
#CFLAGS += -DDBG
CFLAGS += $(WFLAGS)
obj-m := rt73.o
rt73-objs := rtmp_main.o mlme.o connect.o rtusb_bulk.o rtusb_io.o sync.o assoc.o auth.o auth_rsp.o rtusb_data.o rtmp_init.o sanity.o rtmp_wep.o rtmp_info.o rtmp_tkip.o wpa.o md5.o
## Configuration files on SuSE
#NDDIR=/etc/sysconfig/network
#MOD_CONF=/etc/modprobe.d/module-renames
## NDDIR/ifcfg-rausb0
KDIR := /utuLinux2.6.24/kernel-2.6.24
all:
make -C $(KDIR) SUBDIRS=$(shell pwd) modules
clean:
rm -rf *.o *~ .*.cmd *.ko *.mod.c .tmp_versions built-in.o
|