centos安装lspci工具
来源:互联网 发布:开票软件升级最新 编辑:程序博客网 时间:2024/05/04 06:23
背景:由于centos6.3迷你安装版上没有带lspci工具,在定制内核时,无法用此工具查询硬件相关信息
具体步骤如下:
1.下载 pci包:http://www.kernel.org/pub/software/utils/pciutils/pciutils-3.1.4.tar.bz2
具体步骤如下:
1.下载 pci包:http://www.kernel.org/pub/software/utils/pciutils/pciutils-3.1.4.tar.bz2
2.解压:tar xvjf pciutils-3.1.4.tar.bz2
3.修改Makefile参数 :
1.CROSS_COMPILE=arm-none-linux-gnueabi- (如果GCC报错改回原样)
2. ZLIB=no
3. DNS=no
2. ZLIB=no
3. DNS=no
4.直接执行make 编译安装
5.查看是否正确安装:
[root@localhost pciutils-3.1.4]# file lspci
lspci: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped
lspci: ELF 32-bit LSB executable, ARM, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.14, not stripped
6.执行/root/pciutils-3.1.4/lspci 命令看是否能读取到PCI信息
7.如果不能读取到,这里需要更新一下:/root/pciutils-3.1.4/update-pciids
8.再一次执行:/root/pciutils-3.1.4/lspc
9.这里命令太长了,使用别名方便使用:
alias lspci='/root/pciutils-3.1.4/lspci'
在root/.bashrc文件中添加上面一行,保存并永久生效。
0 2
- centos安装lspci工具
- centos安装lspci工具
- centos 6.4 安装lspci
- centos 6.5 使用lsusb 和lspci 安装
- lspci 安装
- 使用yum查看工具lspci所在包并安装的方法
- lspci
- lspci
- lspci
- lspci
- lspci
- lspci
- lspci
- lspci
- lspci
- 虚拟机lspci工具包安装步骤
- CentOS bash: lspci: command not found解决方法
- centos 安装 webmin工具
- 如何使用IBM Rational Software Architect实现模型驱动的软件开发
- 英语总结-14年7月
- exportDISPLAY=:0.0的解释
- 疯狂安卓实训 第13.2.3讲 HTTPClient的简易用法
- c++ 析构函数的执行
- centos安装lspci工具
- 分词问题;及最大乘积分析
- 使用POWERDESIGNER设计数据库的20条技巧
- 用_beginthreadex创建线程
- Android NFC近场通信03----读写MifareClassic卡
- Hibernate中多对多
- poj 3009
- SQL 左外连接,右外连接,全连接,内连接
- 常用ASP中变量转换函数