
可通过以下方式在Linux上面安装Atheros网卡驱动:
1、在Linux里边判断网卡是什么芯片,可通过在系统里使用命令查看或在机器上面查看硬件信息;
2、下载这个文件到系统里,下载到U盘复制到系统,复制到/tmp目录下,先解压,源码包里有说明文件的,涉及到如何安装的过程。
cd src
make install
这样就可以安装;
3、如安装过程中没有什么提示错误就可以正常安装完成了。会显示网卡的驱动模块位置。这样就可以使用设置IP上网了。如出现错误,可修改里边的一些文件,注释某些行即可。如网卡型号正确,网卡装不上,可尝试另外一个网卡驱动。
1Linux下驱动无线网卡需要先安装网卡驱动,这里以BCM4310无线网卡为例
2解压无线网卡驱动压缩包
1
[root@test ~]#tar -xf ndiswrapper-152targz
3命令cd进入ndiswrapper-152解压目录
1
[root@test ~]#cd ndiswrapper-152
4编译安装驱动配置文件
1
2
[root@test ~]#/configure
[root@test ~]#make
5安装无线网卡驱动
1
[root@test ~]#make install
6查看驱动是否安装
1
2
[root@test ~]#ndiswrapper -l
#会输出当前已经安装过的驱动
7加载无线网卡驱动
1
[root@test ~]#modprobe ndiswrapper
8写入网卡配置文件
1
2
3
[root@test ~]#ndiswrapper -m
[root@test ~]#ndiswrapper -ma
[root@test ~]#ndiswrapper -mi
9启动后模块自动加载无线网卡
1
[root@test ~]#modprobe ndiswrapper
10重启下就成功驱动无线网卡了
1
[root@test ~]#reboot
Linux下查看网卡驱动和版本信息
查看网卡生产厂商和信号
查看基本信息:lspci
查看详细信息:lspci -vvv # 3个小写的v
查看网卡信息:lspci | grep Ethernet
查看网卡驱动
查看网卡驱动信息:lspci -vvv # 找到网卡设备的详细信息,包括网卡驱动
# lsmod 列出加载的所有驱动,包括网卡驱动
查看网卡驱动版本
查看模块信息:modifo<module name> # 其中包含version信息
或 # ethtool-i <device name>
RHEL 63中的网卡驱动版本:
# modinfo igb
filename: /lib/modules/2632-279el6x86_64/kernel/drivers/net/igb/igbko
version: 3210-k
license: GPL
description: Intel(R) Gigabit Ethernet Network Driver
# modinfo e1000e
filename: /lib/modules/2632-279el6x86_64/kernel/drivers/net/e1000e/e1000eko
version: 195-k
license: GPL
description: Intel(R) PRO/1000 Network Driver
author: Intel Corporation,<linuxnics@intelcom>
# modinfo e1000
filename: /lib/modules/2632-279el6x86_64/kernel/drivers/net/e1000/e1000ko
version: 8035-NAPI
license: GPL
description: Intel(R) PRO/1000 Network Driver
# modinfo ixgbe
filename: /lib/modules/2632-279el6x86_64/kernel/drivers/net/ixgbe/ixgbeko
version: 367-k
license: GPL
description: Intel(R) 10 Gigabit PCI Express NetworkDriver
# modinfo r8169
filename: /lib/modules/2632-279el6x86_64/kernel/drivers/net/r8169ko
version: 23LK-NAPI
license: GPL
description: RealTek RTL-8169 Gigabit Ethernet driver
查看网络接口队列数
查看网卡接口的中断信息:#cat /proc/interrupts | grep eth0
或 # ethtool-S eth0
查看网卡驱动源码的版本号
解压Intel网卡驱动源码,打开解压缩目录下的spec文件查看驱动的版本。
例如:解压e1000-8035targz网卡驱动后,查看e1000spec文件。
Name:e1000
Summary:Intel(R) Gigabit Ethernet Connection
Version: 8035
Release:1
Source:%{name}-%{version}targz
Vendor:Intel Corporation
License:GPL
ExclusiveOS:linux
Group:System Environment/Kernel
在驱动源码src目录中查找:
#grep DRV_VERSION # forLinux
#findstr DRV_VERSION # for Windows
在e1000_mainc中也能找到定义驱动版本的一行:
#define DRV_VERSION"8035" DRV_NAPI DRV_DEBUG DRV_HW_PERF
在e1000e中src目录下netdevc文件:
#define DRV_VERSION"3041" DRV_EXTRAVERSION
igb_mainc:
#define MAJ 5
#define MIN 2
#define BUILD 94
#define DRV_VERSION__stringify(MAJ) "" __stringify(MIN) ""\
ixgbe_mainc:
#define DRV_VERSION __stringify(3223) DRIVERIOVDRV_HW_PERF FP GA \
以上就是关于如何在Linux上面安装Atheros网卡驱动全部的内容,包括:如何在Linux上面安装Atheros网卡驱动、如何在Linux下写无线网卡的驱动、linux下如何查看网卡驱动版本信息等相关内容解答,如果想了解更多相关内容,可以关注我们,你们的支持是我们更新的动力!
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)