Users Guide
7–Linux 驱动程序软件
安装 Linux 驱动程序软件
34 BC0054508-05 J
安装 Linux 驱动程序软件
安装 Linux 驱动程序软件的步骤包括:
安装源 RPM 包
从源 TAR 文件构建驱动程序
安装二进制 DKMS RPM 驱动程序包
安装二进制 KMOD 和 KMP 驱动程序包
安装源 RPM 包
以下为安装驱动程序源 RPM 包的指导原则。
前提条件:
Linux 内核源
C 编译器
要安装及配置源 RPM 包:
1. 安装源 RPM 包:
rpm -ivh netxtreme2-<version>.src.rpm
2. 更改目录至 RPM 路径并针对您的内核构建二进制 RPM:
对于 RHEL:
cd ~/rpmbuild
rpmbuild -bb SPECS/netxtreme2.spec
对于 SLES:
cd /usr/src/packages
rpmbuild -bb SPECS/netxtreme2.spec
3. 安装新编译的 RPM:
rpm -ivh RPMS/<arch>/netxtreme2-<version>.<arch>.rpm
请注意,如果有冲突报告,则某些 Linux 分发版上可能需要 --force 选
项。
注
如果 bnx2x、 bnx2i 或 bnx2fc 驱动程序已加载,并且 Linux 内核已更新,且
驱动程序模块使用源 RPM 或 TAR 文件包安装,则驱动程序模块必须重新编
译。此要求不适用于源 DKMS RPM。