Why chelsio drivers are missing in openwrt

I find that there are drivers in ubuntu for Chelsio(/lib/modules/(version)/kernel/drivers/net/ethernet/chelsio/), but not in OpenWRT. I think the drivers are open source. I tried to build one, but failed due to lack of Linux knowledge. Can someone add it to openwrt?

should be pretty easy to change these to y or m, and recompile.

  Chelsio devices (NET_VENDOR_CHELSIO) [Y/n/?] y
    Chelsio 10Gb Ethernet support (CHELSIO_T1) [N/m/y/?] n
    Chelsio Communications T3 10Gb Ethernet support (CHELSIO_T3) [N/m/y/?] n
    Chelsio Communications T4/T5/T6 Ethernet support (CHELSIO_T4) [N/m/?] n
    Chelsio Communications T4/T5/T6 Virtual Function Ethernet support (CHELSIO_T4VF) [N/m/y/?] n

can you point me the menu location? I thought the settings are in Kernel modules ---> Network Devices ---> xxxxx

you know you can search menuconfig, right ?

1 Like

image

which openwrt version are you trying to build ?

latest should be fine, will run in x86 vm

can you share your config?

have a success build with chelsio drivers, but it took 2 more minutes to boot, something is wrong :smiling_face_with_tear:

any help ?

I find that there are drivers in ubuntu for Chelsio(/lib/modules/(version)/kernel/drivers/net/ethernet/chelsio/), but not in OpenWRT. I think the drivers are open source.
tried to build with kernel_menuconfig, but it took 2 more minutes to boot
can someone look into this and add the drivers correctly?

You are the only one with this hardware on the desk, you are the only one who could work on it. kmod-* packages are missing because -obviously- no one missed their absence so far. If you can provide a working/ tested PR against the main branch adding kmod packages for it, I see no reason why it wouldn't be merged - but the development/ debugging effort would be yours to do.

Plwase post rext as text?

You are trying in a VM? How that is an openwrt fault?

don't know how to correctly add it. maybe someone can write the kmod package and I'll do the testing?

You want fries with that ?

dmesg | grep cxgb4
[    1.035293] cxgb4 0000:06:11.4: Direct firmware load for cxgb4/t5fw.bin failed with error -2
[    1.036396] cxgb4 0000:06:11.4: Falling back to sysfs fallback for: cxgb4/t5fw.bin
[   64.615281] cxgb4 0000:06:11.4: unable to load firmware image cxgb4/t5fw.bin, error -110
[   64.616575] cxgb4 0000:06:11.4: Coming up as MASTER: Initializing adapter
[   65.275158] cxgb4 0000:06:11.4: Direct firmware load for cxgb4/t5-config.txt failed with error -2
[   65.277221] cxgb4 0000:06:11.4: Falling back to sysfs fallback for: cxgb4/t5-config.txt
[  126.805280] cxgb4 0000:06:11.4: Successfully configured using Firmware Configuration File "Firmware Default", version 0x0, computed checksum 0x0
[  127.295282] cxgb4 0000:06:11.4: Hash filter supported only on T6
[  127.445194] cxgb4 0000:06:11.4: max_ordird_qp 21 max_ird_adapter 387072
[  127.565113] cxgb4 0000:06:11.4: Current filter mode/mask 0x632b:0x21
[  127.751935] cxgb4 0000:06:11.4: 82 MSI-X vectors allocated, nic 16 eoqsets 16 per uld 8 mirrorqsets 16
[  127.753166] cxgb4 0000:06:11.4: 0.000 Gb/s available PCIe bandwidth (Unknown x255 link)
[  127.836723] cxgb4 0000:06:11.4 eth1: Chelsio T520-CR 1G/10GBASE-SFP
[  127.837920] cxgb4 0000:06:11.4 eth2: Chelsio T520-CR 1G/10GBASE-SFP
[  127.955279] cxgb4 0000:06:11.4: Chelsio T520-CR rev 0
[  127.956066] cxgb4 0000:06:11.4: S/N: PT38150206, P/N: 110119250B0
[  127.956894] cxgb4 0000:06:11.4: Firmware version: 1.27.5.0
[  127.957586] cxgb4 0000:06:11.4: Bootstrap version: 1.1.0.0
[  127.958233] cxgb4 0000:06:11.4: TP Microcode version: 0.1.4.9
[  127.958964] cxgb4 0000:06:11.4: Expansion ROM version: 1.0.0.68
[  127.959690] cxgb4 0000:06:11.4: Serial Configuration version: 0x1005000
[  127.960568] cxgb4 0000:06:11.4: VPD version: 0x2
[  127.961148] cxgb4 0000:06:11.4: Configuration: RNIC MSI-X, Offload capable
[  127.962974] cxgb4 0000:06:11.4 eth1: Invalid vf serial:17-1
[  127.963734] cxgb4 0000:06:11.4 eth2: Invalid vf serial:17-1
[  142.735269] cxgb4 0000:06:11.4 eth1: port module unplugged
[  142.895228] cxgb4 0000:06:11.4 eth2: port module unplugged

have no idea what you mean :question:

or some guide to write it

yes it's under pve, I'm just tring to get it work normally

So it waits 1 minute for MSI does not get any and falls back to less efficient polling mode, it is your virtualisation setup coming in the way, fix it first, like ysing fedora guest.