LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1793|回复: 1

s3c2440移植rt73问题

[复制链接]
发表于 2009-4-19 12:07:19 | 显示全部楼层 |阅读模式
我在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


请问高手这是哪儿的问题啊?应该怎么解决呢??
发表于 2009-6-9 23:47:54 | 显示全部楼层
asm/arch/hardware.h: No such file or directory

都显示了是没找到这个文件啊

先确保这个文件存在吧
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表