• «
  • 1
  • 2
  • »
  • Pages: 1/2     Go
主题 : 无线网卡VNT6656G 的Linux2.6.32中驱动模块+编译方法 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 13033
精华: 0
发帖: 13
金钱: 65 两
威望: 13 点
贡献值: 0 点
综合积分: 26 分
注册时间: 2010-01-17
最后登录: 2011-06-19
楼主  发表于: 2010-01-24 15:23

 无线网卡VNT6656G 的Linux2.6.32中驱动模块+编译方法

管理提醒: 本帖被 kasim 从 友善之臂官方客服中心 移动到本区(2010-01-30)
我用的是mini2440 在按照用户手册2.5.21 使用usb无线网卡一章中使用无线网卡VNT6656G 进行 
当在执行 (2)加载 USB WiFi 无线网卡
[root@FriendlyARM /]# ifconfig wlan0 up
出现错误信息 ifconfig: SIOCGIFFLAGS: No such device

插入无线网卡时信息:
usb 1-1: new full speed USB device using s3c2410-ohci and address 3
usb 1-1: New USB device found, idVendor=160a, idProduct=3184
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: VNT USB-802.11 Wireless LAN Adapter
usb 1-1: Manufacturer: VIA Networking Technologies, Inc.
usb 1-1: configuration #1 chosen from 1 choice
[ 此帖被kasim在2010-01-30 21:48重新编辑 ]
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-01-24 16:22
你用的Linux内核中并没有包含VNT6656G的驱动,这个驱动源代码可以从http://www.viaarena.com/Driver/VT6656_linux_src_v1.20.03_x86.rar下载,但需要配合你用的内核源代码编译。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
这个阶段正是我事业的上升期,我怎么能走得开呢?
级别: 精灵王
UID: 3197
精华: 3
发帖: 770
金钱: 6995 两
威望: 5398 点
贡献值: 21 点
综合积分: 1600 分
注册时间: 2008-12-30
最后登录: 2010-12-31
2楼  发表于: 2010-01-24 17:25
Linux-2.6.32.2缺省内核配置已经增加了该无线网卡驱动的支持,可以试试。
级别: 新手上路
UID: 13135
精华: 0
发帖: 49
金钱: 245 两
威望: 49 点
贡献值: 0 点
综合积分: 98 分
注册时间: 2010-01-19
最后登录: 2012-03-19
3楼  发表于: 2010-01-24 18:41
我也是这个问题,网站上说linux2.6.32里有VNT5565的驱动,但是我ifconfig之后,没有出现wlan0,是驱动没有,还是需要做进一步的配置调用?
级别: 新手上路
UID: 13033
精华: 0
发帖: 13
金钱: 65 两
威望: 13 点
贡献值: 0 点
综合积分: 26 分
注册时间: 2010-01-17
最后登录: 2011-06-19
4楼  发表于: 2010-01-24 23:12
我用的就是Linux-2.6.32.2
级别: 新手上路
UID: 13135
精华: 0
发帖: 49
金钱: 245 两
威望: 49 点
贡献值: 0 点
综合积分: 98 分
注册时间: 2010-01-19
最后登录: 2012-03-19
5楼  发表于: 2010-01-25 11:58
驱动源代码可以从http://www.viaarena.com/Driver/VT6656_linux_src_v1.20.03_x86.rar 操作起来问题^^^^^^^^^^^^^^,
参考:http://www.isongzi.com/2009/05/29/wifi-dirver/
首先,在make 的时候出现kernel not found的错误。
其次,在修改makefile的时候,找不到CC,不知怎么改成arm-linux
级别: 新手上路
UID: 13135
精华: 0
发帖: 49
金钱: 245 两
威望: 49 点
贡献值: 0 点
综合积分: 98 分
注册时间: 2010-01-19
最后登录: 2012-03-19
6楼  发表于: 2010-01-25 12:03
liinux2.6.32的新特性说,支持VNT6656是指?
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
7楼  发表于: 2010-01-25 12:34

 回 5楼(dawei3157864) 的帖子

没人有义务帮你解决这些问题,这得靠你自己。
想要别人帮忙的话,先想办法怎么让别人对你的问题感兴趣吧。
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
贡献值: 71 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
8楼  发表于: 2010-01-30 21:47
这是友善之臂提供的2.6.32.2内核 + VNT6656 WLAN源代码 1.20.03的编译和使用方法:
1) 编译:
目前1.20.03版本的驱动源代码可以对2.6.32.2内核直接编译成功,无需修改。
1.a 从http://www.viaarena.com/Driver/VT6656_linux_src_v1.20.03_x86.rar下载VNT6656驱动源代码并解压缩.(在Linux下你需要安装"unrar");
1.b 从光盘或友善之臂下载得到2.6.32.2内核源代码并解压缩;
1.c 进入linux-2.6.32目录,按照板子的实际硬件(这里以统宝7寸屏为例)进行配置,并且为编译内核模块做好准备:
$cp config_mini2440_a70 .config && make oldconfig && make prepare && make modules_prepare
1.d 进入VT6656_linux_src_v1.20.03_x86/driver目录,执行
$make -C /path/to/source/of/linux-2.6.32.2 M=`pwd` modules
编译成功后,最终将生成驱动内核模块vntwusb.ko

2. 使用
2.a 将vntwusb.ko下载至开发板上;
2.b 将VNT6656 USB无线网卡插入开发板的USB Host端口;
2.c 加载vntwusb.ko驱动模块
#insmod /path/to/vntwusb.ko
2.d 可以看到无线网卡被识别:
usb 1-1: new full speed USB device using s3c2410-ohci and address 3
usb 1-1: New USB device found, idVendor=160a, idProduct=3184
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: VNT USB-802.11 Wireless LAN Adapter
usb 1-1: Manufacturer: VIA Networking Technologies, Inc.
usb 1-1: configuration #1 chosen from 1 choice
VIA Networking Wireless LAN USB Driver Ver. 1.20.03
VIA Networking Wireless LAN USB Driver Ver. 1.20.03
Copyright (c) 2004 VIA Networking Technologies, Inc.
usb 1-1: reset full speed USB device using s3c2410-ohci and address 3
usbcore: registered new interface driver vntwusb

2.e 无线网卡对于的网络设备接口通常是eth1(eth0是开发板上的DM9000A网卡),用ifconfig命令将其设为UP状态:
#ifconfig eth1 up
可以用ifconfig和iwconfig看到其状态
[root@FriendlyARM plg]# ifconfig eth1
eth1      Link encap:Ethernet  HWaddr 00:12:7B:43:1C:21  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:403 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:18538 (18.1 KiB)

[root@FriendlyARM plg]# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      802.11-a/b/g  ESSID:""  
          Mode:Managed  Frequency=2.437 GHz  Access Point: Not-Associated  
          Bit Rate:1 Mb/s   Sensitivity=0/255  
          Retry min limit:8   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

vntwpa    no wireless extensions.

2.f 接下来就可以使用wireless tools里面的工具对无线网卡开始操作了。

附件中是我编译的vntwusb.ko, 需要在友善之臂提供的2.6.32.2内核上加载运行。
附件: vntwusb_1.20.03_2.6.32.2-FriendlyARM.zip (138 K) 下载次数:1303
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 13135
精华: 0
发帖: 49
金钱: 245 两
威望: 49 点
贡献值: 0 点
综合积分: 98 分
注册时间: 2010-01-19
最后登录: 2012-03-19
9楼  发表于: 2010-05-04 11:43
make -C /path/to/source/of/linux-2.6.32.2 M=`pwd` modules?
请教一下这个具体怎么做?我试了好几次了,把cc=arm-linux-gcc ,makefile也改了,source也改了,但是编译出来的是x86体系的,这个是为什么呢?试了三个无线网卡,结果都是这样。
  • «
  • 1
  • 2
  • »
  • Pages: 1/2     Go