|
我在2440板子上移植rt73~~编译出错~~如下:
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]#
板子内核:2.6.24.4,
rt73驱动版本: RT73_Linux_STA_Drv1.0.4.0
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
请问高手这是哪儿的问题啊?应该怎么解决呢?? |
|