翻墙论坛|翻墙党社区

 找回密码
 立即注册
查看: 168|回复: 21

[请教] openwrt下怎么给hp544+网卡安装驱动?

[复制链接]

1930

主题

0

回帖

1930

积分

金牌会员

Rank: 6Rank: 6

积分
1930
发表于 2023-5-26 07:46:21 | 显示全部楼层 |阅读模式
如题,准备折腾一个all in one 机器,esxi 下安装 openwrt,主板上插了三块hp544+ 40g网卡,主板自带两个万兆电口,这些网口都直通给了 openwrt 的虚拟机。

openwrt 安装之后,主板自带的两个万兆电口正常识别,分别为 eth0 和 eth1,我分别设置为wan和lan,目前可以正常上网使用。但是  hp544+ 40g网卡 无法识别。

我下载安装了最新的 kmod-mlx4-core_5.15.86-1_x86_64.ipk  (其他依赖包也安装了),openwrt 的接口-lan下多出来 eth2 和 eth3 (奇怪只有两个而不是三个,我其实插了三张hp544+ 40g网卡)。但是我用 ip addr 和 ifconfig -a 等命令都看不到 eth2 和 eth3。

折腾了大半天,没有搞定。过来论坛请教高人,求指点!
回复

使用道具 举报

0

主题

0

回帖

28

积分

新手上路

Rank: 1

积分
28
发表于 2023-5-26 07:51:21 | 显示全部楼层
opkg update
opkg install pciutils
lspci|grep Ether
回复 支持 反对

使用道具 举报

0

主题

0

回帖

30

积分

新手上路

Rank: 1

积分
30
发表于 2023-5-26 07:55:13 | 显示全部楼层
楼主的机器具体是啥配置啊,能不能列的详细一点参考一下,我也想整个性能高一点的all in one
回复 支持 反对

使用道具 举报

0

主题

0

回帖

16

积分

新手上路

Rank: 1

积分
16
发表于 2023-5-26 08:01:25 | 显示全部楼层
你要先检查硬件有没有被正确识别,dmesg, system boot log或lspci里可以查看(openwrt里不知道有没有这些工具,没有直接看系统启动日志)
硬件识别没有问题之后,就是修改一些配置文件了,查一下系统的配置逻辑仿照eth0什么搞一下就行
回复 支持 反对

使用道具 举报

0

主题

0

回帖

20

积分

新手上路

Rank: 1

积分
20
发表于 2023-5-26 08:06:13 | 显示全部楼层
非常感谢!

lspci|grep Ether
02:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
03:00.0 Ethernet controller: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2
0b:00.0 Ethernet controller: Aquantia Corp. AQC108 NBase-T/IEEE 802.3bz Ethernet Controller [AQtion]

第一个和第二个是主板板载的千兆网卡(emc远程控制)和万兆网卡(x540 at2双口)。第三个是我插在主板pcie槽上的aqc108 5千兆网卡,准备当2.5g网卡用连接光猫2.5g口的,暂时也没有识别,不过感觉只是驱动的问题。我稍后试试。
<strike>
三个hp544+网卡一个都没有识别,</strike>

更正,只是grep没找好关键字:


lspci | grep controller
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
00:10.0 SCSI storage controller: Broadcom / LSI 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI
02:00.0 USB controller: VMware USB1.1 UHCI Controller
02:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
02:02.0 USB controller: VMware USB2 EHCI Controller
03:00.0 Ethernet controller: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2
04:00.0 Network controller: Mellanox Technologies MT27520 Family [ConnectX-3 Pro]
0b:00.0 Ethernet controller: Aquantia Corp. AQC108 NBase-T/IEEE 802.3bz Ethernet Controller [AQtion]
13:00.0 Network controller: Mellanox Technologies MT27520 Family [ConnectX-3 Pro]
1b:00.0 Network controller: Mellanox Technologies MT27520 Family [ConnectX-3 Pro]

网卡都在了。
回复 支持 反对

使用道具 举报

0

主题

0

回帖

8

积分

新手上路

Rank: 1

积分
8
发表于 2023-5-26 08:15:41 | 显示全部楼层
我瞎玩的,主要是想搞40g内网。

主板:联想rx450d 拆机的 x99 双路主板,两个pcie16x + 4个 pcie8x 插槽,板载两个万兆电口网卡,支持 emc(带一个千兆管理网口)
cpu:开始是两颗 2666v3,安装 esxi 后发现功耗太高,换成两颗低功耗的 2650l v3
网卡:hp544+ 40g网卡 x 3,计划再加一个2.5g双口或者四口网卡,暂时先用aqc 108凑合。
内存:ddr4 ecc reg 16g x 8
硬盘:若干,等折腾好之后把下载机和nas这两台机器都取消,all in one到这台机器来。主板带两个sata口和两个 minisas(可转8个sata)

开局不利,卡在openwrt不识别 hp544+ 上。
回复 支持 反对

使用道具 举报

256

主题

1万

回帖

256

积分

中级会员

Rank: 3Rank: 3

积分
256
发表于 2023-5-26 08:22:53 | 显示全部楼层
3块 hp544+ 网卡在 esxi 中都被正确识别,也都可以设置直通。但是在 openwrt下 目前看是没有被识别。不知道问题出现在哪里,bios、efi的设置会有影响吗?我试试进虚拟机的bios看看能不能看到这三块网卡。

谢谢指点!
回复 支持 反对

使用道具 举报

257

主题

1万

回帖

257

积分

中级会员

Rank: 3Rank: 3

积分
257
发表于 2023-5-26 08:28:44 | 显示全部楼层
我估摸着你得自己编译OPWRT了,网上找驱动自己加进去。我也不会,别问我。
回复 支持 反对

使用道具 举报

257

主题

1万

回帖

257

积分

中级会员

Rank: 3Rank: 3

积分
257
发表于 2023-5-26 08:31:08 | 显示全部楼层
kmod-mlx4-core/kmod-mlx5-core op上装下这个试试了
回复 支持 反对

使用道具 举报

发表于 2023-5-26 08:38:15 | 显示全部楼层
安装了 kmod-mlx4-core,我找了很多地方都说只要安装这个就好了,但是我这里莫名其妙就是安装了也无法识别:

目前  lspci  命令可以看到这些网卡,硬件都识别了:


02:00.0 USB controller: VMware USB1.1 UHCI Controller
02:01.0 Ethernet controller: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)
02:02.0 USB controller: VMware USB2 EHCI Controller
03:00.0 Ethernet controller: Intel Corporation Ethernet Controller 10-Gigabit X540-AT2
04:00.0 Network controller: Mellanox Technologies MT27520 Family [ConnectX-3 Pro]
0b:00.0 Ethernet controller: Aquantia Corp. AQC108 NBase-T/IEEE 802.3bz Ethernet Controller [AQtion]
13:00.0 Network controller: Mellanox Technologies MT27520 Family [ConnectX-3 Pro]
1b:00.0 Network controller: Mellanox Technologies MT27520 Family [ConnectX-3 Pro]
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|翻墙党

GMT+8, 2026-9-22 06:18 , Processed in 0.067702 second(s), 31 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表