Appearance
igb 系列 · Intel 千兆网卡
1 GbE网口速率
PCIe总线接口
PTP硬件时间戳
SR-IOV虚拟化
安装与加载
igb 系列支持两种使用方式,根据 BSP 类型选择:
方式一:静态库
将驱动编译为静态库 libintel.a,随 BSP 一起编译链接。
在 BSP Makefile 中添加链接依赖:
makefile
LOCAL_DEPEND_LIB := \
... \
-lintel \
-Wl,--whole-archive \
-llinuxcompat \
-Wl,--no-whole-archive \
...在 BSP 启动函数中调用一次入口函数:
c
VOID bspBoardNetifAttch(VOID)
{
extern int netcard_intel_attach(void);
netcard_intel_attach();
}方式二:内核模块(.ko)
将驱动编译为独立内核模块 igb.ko,运行时动态加载:
bash
# 加载驱动模块
insmod igb.ko
# 卸载
rmmod igb加载后驱动自动枚举 PCIe 总线上的 i210/i211/i350 设备,按顺序创建 eth0、eth1...
支持型号
稳定
速率1 GbE
总线PCIe Gen2 x1
接口RJ45 / SFP
PTP支持
特殊说明
- 支持 Copper(RJ45)、Fiber(SFP)、SerDes、SGMII 多种物理层
- 支持 IEEE 1588 PTP 硬件时间戳
- 支持 Wake-on-LAN、MSI-X 中断
网卡设备树配置
/* PCIe 设备由驱动自动枚举,无需手动配置基地址 */
/* 驱动加载后按 PCI BDF 顺序创建 eth0, eth1... */
netcard_intel_attach();支持设备列表
igb 驱动支持以下 Intel 以太网控制器:
| 型号 | 速率 | 接口 | 特性 |
|---|---|---|---|
| I210-T1 | 1 GbE | RJ45 | PTP、WoL、MSI-X |
| I210-AT | 1 GbE | RJ45 | 同上,附带 Flash |
| I211-AT | 1 GbE | RJ45 | 精简版,4 队列 |
| I350-T2 | 1 GbE ×2 | RJ45 | SR-IOV、EEE |
| I350-T4 | 1 GbE ×4 | RJ45 | SR-IOV、EEE |
| I350-F2 | 1 GbE ×2 | SFP | 光纤版 |
已知问题
已知i211 在部分 PCIe 主控下上电枚举偶发失败,重启后恢复,根因待查