裸金属服务器 BMS-编译网卡驱动:操作步骤

时间:2025-02-12 15:09:34

操作步骤

具体编译和安装步骤如下:

例如:hinic version: 5.5.0.13

  1. Compile hinic
    1. cd hinic
    2. make
  2. Make the driver still effective after restarting
    1. cp hinic.ko /lib/modules/`uname -r`/updates/

      note: If the / lib / modules / `uname -r` / updates directory does not exist, create it manually

    2. depmod `uname -r`
    3. find the first initramfs file from system startup file /boot/grub/grub.cfg

      note: initramfs file follows command 'initrd', and file name usually contains '.img'.

    4. add hinic driver into initramfs file found in the previous step, for example, the file is initrd.img

      dracut --force-drivers hinic --force /boot/initrd.img

support.huaweicloud.com/bpicg-bms/zh-cn_topic_0000001963769029.html