当前位置: 代码迷 >> 驱动开发 >> Wifi,蓝牙驱动有关问题,望大侠!
  详细解决方案

Wifi,蓝牙驱动有关问题,望大侠!

热度:291   发布时间:2016-04-28 11:02:02.0
Wifi,蓝牙驱动问题,望大侠求救!!!急
硬件芯片:Marvell 88w8787 Flip chip
系统环境是ubuntu10.10
交叉编译器:arm-none-linux-gnueabi-gcc(arm-2009q3)
用交叉编译器arm-none-linux-gnueabi-gcc编译linux2.6.35.7的内核,配置好成功编译了内核镜像。
Wifi,蓝牙驱动源码目录:wlan_src

wlan_src中Makefile文件:
内核路径:KERNELDIR ?= /root/git/linux2.6.35.7
交叉编译路径:CROSS_COMPILE ?= /opt/arm-2009q3/bin/arm-none-linux-gnueabi-

在源码目录wlan_src中执行make出现错误为:

[email protected]:~/wlan_src# make
make -C /root/git/linux2.6.35.7 M=/root/wlan_src ARCH=arm CROSS_COMPILE=/opt/arm-2009q3/bin/arm-none-linux-gnueabi- modules
make[1]: Entering directory `/root/git/android-kernel'
  CC [M] /root/wlan_src/mlan/mlan_shim.o
  CC [M] /root/wlan_src/mlan/mlan_init.o
  CC [M] /root/wlan_src/mlan/mlan_txrx.o
  CC [M] /root/wlan_src/mlan/mlan_cmdevt.o
  CC [M] /root/wlan_src/mlan/mlan_misc.o
  CC [M] /root/wlan_src/mlan/mlan_module.o
  CC [M] /root/wlan_src/mlan/mlan_wmm.o
  CC [M] /root/wlan_src/mlan/mlan_sdio.o
  CC [M] /root/wlan_src/mlan/mlan_11n_aggr.o
  CC [M] /root/wlan_src/mlan/mlan_11n_rxreorder.o
  CC [M] /root/wlan_src/mlan/mlan_11n.o
  CC [M] /root/wlan_src/mlan/mlan_11d.o
  CC [M] /root/wlan_src/mlan/mlan_11h.o
  CC [M] /root/wlan_src/mlan/mlan_meas.o
  CC [M] /root/wlan_src/mlan/mlan_cfp.o
  CC [M] /root/wlan_src/mlan/mlan_scan.o
  CC [M] /root/wlan_src/mlan/mlan_sta_ioctl.o
  CC [M] /root/wlan_src/mlan/mlan_sta_rx.o
  CC [M] /root/wlan_src/mlan/mlan_sta_tx.o
  CC [M] /root/wlan_src/mlan/mlan_sta_event.o
  CC [M] /root/wlan_src/mlan/mlan_sta_cmd.o
  CC [M] /root/wlan_src/mlan/mlan_sta_cmdresp.o
  CC [M] /root/wlan_src/mlan/mlan_join.o
  CC [M] /root/wlan_src/mlinux/moal_main.o
  CC [M] /root/wlan_src/mlinux/moal_ioctl.o
  CC [M] /root/wlan_src/mlinux/moal_shim.o
  CC [M] /root/wlan_src/mlinux/moal_priv.o
  CC [M] /root/wlan_src/mlinux/moal_wext.o
/root/wlan_src/mlinux/moal_wext.c:3844: error: unknown field 'num_private' specified in initializer
/root/wlan_src/mlinux/moal_wext.c:3844: warning: initialization makes pointer from integer without a cast
/root/wlan_src/mlinux/moal_wext.c:3845: error: unknown field 'num_private_args' specified in initializer
/root/wlan_src/mlinux/moal_wext.c:3845: warning: excess elements in struct initializer
/root/wlan_src/mlinux/moal_wext.c:3845: warning: (near initialization for 'woal_handler_def')
/root/wlan_src/mlinux/moal_wext.c:3847: error: unknown field 'private' specified in initializer
/root/wlan_src/mlinux/moal_wext.c:3847: warning: initialization makes integer from pointer without a cast
/root/wlan_src/mlinux/moal_wext.c:3847: error: initializer element is not computable at load time
/root/wlan_src/mlinux/moal_wext.c:3847: error: (near initialization for 'woal_handler_def.num_standard')
/root/wlan_src/mlinux/moal_wext.c:3848: error: unknown field 'private_args' specified in initializer
/root/wlan_src/mlinux/moal_wext.c:3848: warning: initialization from incompatible pointer type
make[2]: *** [/root/wlan_src/mlinux/moal_wext.o] Error 1
make[1]: *** [_module_/root/wlan_src] Error 2
make[1]: Leaving directory `/root/git/android-kernel'
make: *** [default] Error 2

请问这些错误如何解决????望大侠求救!!!急

------解决方案--------------------
版本不同吧
------解决方案--------------------
检查文件系统 和 交叉编译工具链表 是否与kernel 匹配……
------解决方案--------------------
不熟悉Linux,感觉还是配置问题,很多东西编译器认不出来。
------解决方案--------------------
这种driver的代码是和kernel的版本有关,比如说有的API在不同版本下的参数不同,自然也就编译不过了,如果还是不行的话,联系我吧,QQ 一八⑦01三五④⑤
  相关解决方案