如何通过vid、did查看内核是否原生支持某设备

如何通过vid、did查看内核是否原生支持某设备

上面扫出来不兼容的2块板卡为例,查看当前的内核是否支持

  • 在openEuler20.03-LTS-sp3上查看:

[root@ecs-cd1c ~]# cat /etc/os-release
NAME=“openEuler”
VERSION=“20.03 (LTS-SP3)”
ID=“openEuler”
VERSION_ID=“20.03”
PRETTY_NAME=“openEuler 20.03 (LTS-SP3)”
ANSI_COLOR=“0;31”

[root@ecs-cd1c ~]# uname -a
Linux ecs-cd1c 4.19.90-2305.4.0.0203.oe1.x86_64 #1 SMP Wed May 31 03:56:13 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

[root@ecs-cd1c ~]# cd /lib/modules/4.19.90-2003.4.0.0036.oe1.x86_64/
[root@ecs-cd1c 4.19.90-2003.4.0.0036.oe1.x86_64]# grep -i -r 14e4 . |grep -i 165f
./modules.alias:alias pci:v000014E4d0000165Fsvsdbcsci* tg3
[root@ecs-cd1c 4.19.90-2003.4.0.0036.oe1.x86_64]# grep -i -r 1000 . |grep -i 005b
./modules.alias:alias pci:v00001000d0000005Bsvsdbcsci* megaraid_sas

有输出表示以上2块版卡,在openEuler20.03-LTS-sp3上是兼容的。

  • 在openEuler22.03-LTS上查看:

[root@quanag ~]# cat /etc/os-release
NAME=“openEuler”
VERSION=“22.03 LTS”
ID=“openEuler”
VERSION_ID=“22.03”
PRETTY_NAME=“openEuler 22.03 LTS”
ANSI_COLOR=“0;31”

[root@quanag ~]# uname -a
Linux quanag 5.10.0-60.18.0.50.oe2203.x86_64 #1 SMP Wed Mar 30 03:12:24 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

[root@quanag ~]# cd /lib/modules/5.10.0-60.18.0.50.oe2203.x86_64
[root@quanag 5.10.0-60.18.0.50.oe2203.x86_64]# grep -r -i 1000 .|grep 005B
grep: ./modules.symbols.bin: binary file matches
grep: ./modules.alias.bin: binary file matches
./modules.alias:alias pci:v00001000d0000005Bsvsdbcsci* megaraid_sas
[root@quanag 5.10.0-60.18.0.50.oe2203.x86_64]# grep -i -r 14e4 |grep -i 165f
grep: modules.alias.bin: binary file matches
modules.alias:alias pci:v000014E4d0000165Fsvsdbcsci* tg3

有输出表示以上2块版卡,在openEuler22.03-LTS上也是兼容的。

1 个赞

赞一个!

此话题已在最后回复的 24 小时后被自动关闭。不再允许新回复。