linux系统下安装驱动方法
1. 检测新硬件
root@localhost ~]# less /etc/sysconfig/hwconf
注:hwconf中,会有检测到的所有硬件名字(在driver一栏还有所用驱动名字,驱动存放在/lib/modules/`uname -r`/kernel/drivers目录下)。使用dmesg|grep xx 也可以在启动自检日志中发现硬件信息。
2. 使用modprobe/lsmod,查看驱动安装情况
[root@localhost ~]# lsmod (或者modprobe -l)
3.下载驱动并安装。
[root@localhost ~]# tar -xvf xxxx
[root@localhost ~]# make clean
[root@localhost ~]# make modules
[root@localhost ~]# make install
[root@localhost ~]# depmod -a
[root@localhost ~]# insmod xxx.ko
注:使用depmod -a 自动生成模块依赖关系, 再使用insmod 安装模块.
文章评论