Skip to content

igb 系列 · Intel 千兆网卡

网卡驱动库 / Intel / igb

igb 系列

Intel · PCIe 千兆 · i210 / i211 / i350

···Armory 获取
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 设备,按顺序创建 eth0eth1...

支持型号

i210Intel
稳定
速率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-T11 GbERJ45PTP、WoL、MSI-X
I210-AT1 GbERJ45同上,附带 Flash
I211-AT1 GbERJ45精简版,4 队列
I350-T21 GbE ×2RJ45SR-IOV、EEE
I350-T41 GbE ×4RJ45SR-IOV、EEE
I350-F21 GbE ×2SFP光纤版

已知问题

已知i211 在部分 PCIe 主控下上电枚举偶发失败,重启后恢复,根因待查

翼辉信息 · 网络技术部