分类: LINUX
2010-07-29 22:04:02
官方下载驱动:VT6656_Linux_src_v1.20.05_x86。
~~~命令:
root@ss-desktop:/camera/ss/ipnc/VT6656_Linux_src_v
~~~显示流程:
make: Entering directory `/camera/ss/ipnc/ti-davinci'
LD /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
/camera/ss/ipnc/VT6656_Linux_src_v
/camera/ss/ipnc/VT6656_Linux_src_v
/camera/ss/ipnc/VT6656_Linux_src_v
/camera/ss/ipnc/VT6656_Linux_src_v
/camera/ss/ipnc/VT6656_Linux_src_v
/camera/ss/ipnc/VT6656_Linux_src_v
make[1]: *** [/camera/ss/ipnc/VT6656_Linux_src_v
make: *** [_module_/camera/ss/ipnc/VT6656_Linux_src_v
make: Leaving directory `/camera/ss/ipnc/ti-davinci'
~~~修改 VT6656_Linux_src_v
//
netdev->get_wireless_stats = iwctl_get_wireless_stats;
root@ss-desktop:/camera/ss/ipnc/VT6656_Linux_src_v
make: Entering directory `/camera/ss/ipnc/ti-davinci'
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
/camera/ss/ipnc/VT6656_Linux_src_v
/camera/ss/ipnc/VT6656_Linux_src_v
/camera/ss/ipnc/VT6656_Linux_src_v
/camera/ss/ipnc/VT6656_Linux_src_v
/camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
/camera/ss/ipnc/VT6656_Linux_src_v
/camera/ss/ipnc/VT6656_Linux_src_v
make: *** [_module_/camera/ss/ipnc/VT6656_Linux_src_v
make: Leaving directory `/camera/ss/ipnc/ti-davinci'
修改VT6656_Linux_src_v
//
SET_NETDEV_DEV(pDevice->wpadev, dev->dev.parent);
root@ss-desktop:/camera/ss/ipnc/VT6656_Linux_src_v
root@ss-desktop:/camera/ss/ipnc/VT6656_Linux_src_v
make: Entering directory `/camera/ss/ipnc/ti-davinci'
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
CC [M] /camera/ss/ipnc/VT6656_Linux_src_v
LD [M] /camera/ss/ipnc/VT6656_Linux_src_v
Building modules, stage 2.
MODPOST
WARNING: "wireless_send_event" [/camera/ss/ipnc/VT6656_Linux_src_v
CC /camera/ss/ipnc/VT6656_Linux_src_v
LD [M] /camera/ss/ipnc/VT6656_Linux_src_v
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支持的不是很好。问题在查。