Chinaunix首页 | 论坛 | 博客
  • 博客访问: 563751
  • 博文数量: 109
  • 博客积分: 2300
  • 博客等级: 大尉
  • 技术积分: 810
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-02 13:11
文章分类

全部博文(109)

文章存档

2012年(1)

2011年(17)

2010年(62)

2009年(29)

我的朋友

分类: LINUX

2010-07-29 22:04:02

使用的wifi是威盛的VT6656。

官方下载驱动:VT6656_Linux_src_v1.20.05_x86。

~~~命令:

root@ss-desktop:/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86# make -C /camera/ss/ipnc/ti-davinci/ M=/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/ ARCH=arm CROSS_COMPILE=arm_v5t_le-

~~~显示流程:

make: Entering directory `/camera/ss/ipnc/ti-davinci'

  LD      /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/built-in.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.o

/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c: In function 鈥榲ntwusb_found1?

/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c:1212: error: struct net_devicehas no member named get_wireless_stats /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c: In function 鈥榙evice_open?

/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c:1735: warning: assignment makes pointer from integer without a cast

/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c:1736: warning: assignment makes pointer from integer without a cast

/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c:1737: warning: assignment makes pointer from integer without a cast

/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c:1739: warning: assignment makes pointer from integer without a cast

make[1]: *** [/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.o] Error 1

make: *** [_module_/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver] Error 2

make: Leaving directory `/camera/ss/ipnc/ti-davinci'

 

~~~修改 VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c  1212

//      netdev->get_wireless_stats = iwctl_get_wireless_stats;

 

root@ss-desktop:/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86# make -C /camera/ss/ipnc/ti-davinci/ M=/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/ ARCH=arm CROSS_COMPILE=arm_v5t_le-

 

make: Entering directory `/camera/ss/ipnc/ti-davinci'

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.o

/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c: In function 鈥榙evice_open?

/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c:1735: warning: assignment makes pointer from integer without a cast

/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c:1736: warning: assignment makes pointer from integer without a cast

/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c:1737: warning: assignment makes pointer from integer without a cast

/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c:1739: warning: assignment makes pointer from integer without a cast

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/card.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/mac.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/baseband.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/wctl.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/80211mgr.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/wcmd.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/wmgr.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/bssdb.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/rxtx.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/dpc.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/power.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/datarate.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/mib.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/rc4.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/tether.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/tcrc.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/ioctl.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/hostap.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/wpa.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/key.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/tkip.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/michael.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/rf.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/iwctl.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/wpactl.o

/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/wpactl.c: In function 鈥榳pa_init_wpadev?

/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/wpactl.c:133: error: struct net_devicehas no member named dev make[1]:***[/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/wpactl.o] Error 1

make: *** [_module_/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver] Error 2

make: Leaving directory `/camera/ss/ipnc/ti-davinci'

 

修改VT6656_Linux_src_v1.20.05_x86/driver/wpactl.c 133

//      SET_NETDEV_DEV(pDevice->wpadev, dev->dev.parent);

 

root@ss-desktop:/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86# vi driver/wpactl.c

root@ss-desktop:/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86# make -C /camera/ss/ipnc/ti-davinci/ M=/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/ ARCH=arm CROSS_COMPILE=arm_v5t_le-

make: Entering directory `/camera/ss/ipnc/ti-davinci'

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/wpactl.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/wpa2.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/aes_ccmp.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/usbpipe.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/channel.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/control.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/firmware.o

  CC [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/int.o

  LD [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/vntwusb.o

  Building modules, stage 2.

  MODPOST

WARNING: "wireless_send_event" [/camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/vntwusb.ko] undefined!

  CC      /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/vntwusb.mod.o

  LD [M]  /camera/ss/ipnc/VT6656_Linux_src_v1.20.05_x86/driver/vntwusb.ko

make: Leaving directory `/camera/ss/ipnc/ti-davinci'

 

得到 vntwusb.ko

编译成功vntwusb.ko
root@ss-desktop:/camera/workdir/VT6656_Linux_src_v1.20.05_x86/driver#
file vntwusb.ko
vntwusb.ko: ELF 32-bit LSB relocatable, ARM, version 1 (SYSV), not stripped


增加内核支持wifi的ko文件:

Device Drivers --> Network device support -->Wireless LAN (non-hamradio) --> Wirwless LAN drivers

  │ │[*] Wireless LAN drivers (non-hamradio) & Wireless Extensions        │ │  

如果不增加内核支持会出现:
# insmod vntwusb_arm120.ko
insmod: cannot insert `vntwusb_arm120.ko': Unknown symbol in module (-1): No such file or directory

增加内核支持后:
insmod vntwusb.ko
dmesg可显示:
<6>/camera/workdir/VT6656_Linux_src_v1.20.05_x86/driver/main_usb.c: VIA Networki
ng Wireless LAN USB Driver 1.20.05
<6>usbcore: registered new driver vntwusb
可以insmod上,没问题。

但是,当插入WIFI时显示:
# usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: device descriptor read/64, error -71
usb 1-1: device not accepting address 4, error -71
usb 1-1: device not accepting address 5, error -71

dmesg里显示:
<6>usb 1-1: new high speed USB device using musb_hdrc and address 2
<3>usb 1-1: device descriptor read/64, error -71
<3>usb 1-1: device descriptor read/64, error -71
<6>usb 1-1: new high speed USB device using musb_hdrc and address 3
<3>usb 1-1: device descriptor read/64, error -71
<3>usb 1-1: device descriptor read/64, error -71
<6>usb 1-1: new high speed USB device using musb_hdrc and address 4
<3>usb 1-1: device not accepting address 4, error -71
<6>usb 1-1: new high speed USB device using musb_hdrc and address 5
<3>usb 1-1: device not accepting address 5, error -71

可能是USBHOST支持的不是很好。问题在查。
阅读(4769) | 评论(2) | 转发(0) |
0

上一篇:DM365 USB HOST

下一篇:总结linux清理垃圾命令

给主人留下些什么吧!~~

chinaunix网友2010-11-26 20:22:24

你好 请问你在IPNC上解决了USB host吗?我的QQ 154808833

chinaunix网友2010-11-08 15:15:55

你好 请问你在IPNC上解决了USB host问题吗??谢谢 可以交流下吗