Finding the right kmod-module for NetXen NX3031

I am currently trying around with OpenWrt on a x86_64-system.
To connect to fibre I bought a NetXen dual SFP+ NIC that is supported by the linux kernel for around 16 years.

The NIC is recognized via lscpi:
01:00.0 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
01:00.1 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)

Unfortunately I don't see new interfaces for this device. It is still only eth0 the builtin RJ45.

So I set out to finding the kmod for the NetXen drivers, but could not find them.
Now my questions are the following:
How can I find out if it even exists?
How can I find this module if it exists?
And if it doesn't exists, how can I build/make/create/summon it?

I appreciate your help.

What have I done so far:

  1. read the docs
  2. searched the web and the forum
  3. reddit
  4. searched through the linux sources
  5. searched through all kmod-packages using all the search-terms I could think of, even installing some packages to try them
  6. just use the netxen_nic.ko-File from my pc (wrong kernel-version, but I gave it a try)
  7. tried to find some distro with the same linux-kernel version but couldn't find any

I assume kmod-sftp is installed?

What does lspci tell you about the card?

Though your assumption is wrong, a quick install did not help. :smiley:
The lspci-output however is already in the original post and remains unchanged after the install of kmod-sfp.
01:00.0 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
01:00.1 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)

but there's got to be more in the lspci output than what you C&P:ed, twice ?

1 Like

surely :smiley:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Root Complex
00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kabini [Radeon HD 8330E]
00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 0
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1
00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 01)
00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 40)
00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 39)
00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 39)
00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39)
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 3a)
00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 5
01:00.0 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
01:00.1 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)

ok, lspci -v then.

try the related parts in dmesg too.

lspci -v:

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Root Complex
        DeviceName: Realtek RTL8111G
        Subsystem: Fujitsu Technology Solutions Device 1202
        Flags: bus master, fast devsel, latency 0
lspci: Unable to load libkmod resources: error -12

00:01.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Kabini [Radeon HD 8330E] (prog-if 00 [VGA controller])
        Subsystem: Fujitsu Technology Solutions Device 1202
        Flags: bus master, fast devsel, latency 0, IRQ 11
        Memory at c0000000 (64-bit, prefetchable) [size=256M]
        Memory at d0000000 (64-bit, prefetchable) [size=8M]
        I/O ports at f000 [size=256]
        Memory at fe600000 (32-bit, non-prefetchable) [size=256K]
        Expansion ROM at 000c0000 [disabled] [size=128K]
        Capabilities: [48] Vendor Specific Information: Len=08 <?>
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Capabilities: [270] Secondary PCI Express

00:01.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Kabini HDMI/DP Audio
        Subsystem: Fujitsu Technology Solutions Device 1202
        Flags: bus master, fast devsel, latency 0, IRQ 10
        Memory at fe664000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [48] Vendor Specific Information: Len=08 <?>
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [a0] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>

00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 0
        Flags: fast devsel

00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1 (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 25
        Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
        I/O behind bridge: [disabled]
        Memory behind bridge: fa000000-fe4fffff [size=69M]
        Prefetchable memory behind bridge: [disabled]
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Port (Slot+), MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [b0] Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1234
        Capabilities: [b8] HyperTransport: MSI Mapping Enable+ Fixed+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Kernel driver in use: pcieport

00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Functions 5:1 (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0, IRQ 27
        Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
        I/O behind bridge: 0000e000-0000efff [size=4K]
        Memory behind bridge: fe500000-fe5fffff [size=1M]
        Prefetchable memory behind bridge: 00000000d0800000-00000000d08fffff [size=1M]
        Capabilities: [50] Power Management version 3
        Capabilities: [58] Express Root Port (Slot+), MSI 00
        Capabilities: [a0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [b0] Subsystem: Advanced Micro Devices, Inc. [AMD] Device 1234
        Capabilities: [b8] HyperTransport: MSI Mapping Enable+ Fixed+
        Capabilities: [100] Vendor Specific Information: ID=0001 Rev=1 Len=010 <?>
        Kernel driver in use: pcieport

00:10.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB XHCI Controller (rev 01) (prog-if 30 [XHCI])
        Subsystem: Fujitsu Technology Solutions Device 1202
        Flags: bus master, fast devsel, latency 0, IRQ 18
        Memory at fe668000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [50] Power Management version 3
        Capabilities: [70] MSI: Enable- Count=1/8 Maskable- 64bit+
        Capabilities: [90] MSI-X: Enable+ Count=8 Masked-
        Capabilities: [a0] Express Root Complex Integrated Endpoint, MSI 00
        Capabilities: [100] Latency Tolerance Reporting
        Kernel driver in use: xhci_hcd

00:11.0 SATA controller: Advanced Micro Devices, Inc. [AMD] FCH SATA Controller [AHCI mode] (rev 40) (prog-if 01 [AHCI 1.0])
        Subsystem: Fujitsu Technology Solutions Device 1202
        Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 28
        I/O ports at f140 [size=8]
        I/O ports at f130 [size=4]
        I/O ports at f120 [size=8]
        I/O ports at f110 [size=4]
        I/O ports at f100 [size=16]
        Memory at fe66e000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: [60] Power Management version 3
        Capabilities: [70] SATA HBA v1.0
        Capabilities: [50] MSI: Enable+ Count=1/8 Maskable- 64bit+
        Capabilities: [d0] PCI Advanced Features
        Kernel driver in use: ahci

00:12.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 39) (prog-if 10 [OHCI])
        Subsystem: Fujitsu Technology Solutions Device 1202
        Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 18
        Memory at fe66d000 (32-bit, non-prefetchable) [size=4K]
        Kernel driver in use: ohci-pci

00:12.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39) (prog-if 20 [EHCI])
        Subsystem: Fujitsu Technology Solutions Device 1202
        Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 17
        Memory at fe66c000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [c0] Power Management version 2
        Capabilities: [e4] Debug port: BAR=1 offset=00e0
        Kernel driver in use: ehci-pci

00:13.0 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB OHCI Controller (rev 39) (prog-if 10 [OHCI])
        Subsystem: Fujitsu Technology Solutions Device 1202
        Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 18
        Memory at fe66b000 (32-bit, non-prefetchable) [size=4K]
        Kernel driver in use: ohci-pci

00:13.2 USB controller: Advanced Micro Devices, Inc. [AMD] FCH USB EHCI Controller (rev 39) (prog-if 20 [EHCI])
        Subsystem: Fujitsu Technology Solutions Device 1202
        Flags: bus master, 66MHz, medium devsel, latency 32, IRQ 17
        Memory at fe66a000 (32-bit, non-prefetchable) [size=256]
        Capabilities: [c0] Power Management version 2
        Capabilities: [e4] Debug port: BAR=1 offset=00e0
        Kernel driver in use: ehci-pci

00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 3a)
        Subsystem: Fujitsu Technology Solutions Device 1202
        Flags: 66MHz, medium devsel

00:14.2 Audio device: Advanced Micro Devices, Inc. [AMD] FCH Azalia Controller (rev 02)
        Subsystem: Fujitsu Technology Solutions Device 1203
        Flags: bus master, slow devsel, latency 32, IRQ 5
        Memory at fe660000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: [50] Power Management version 2

00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 11)
        Subsystem: Fujitsu Technology Solutions Device 1202
        Flags: bus master, 66MHz, medium devsel, latency 0

00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 0
        Flags: fast devsel

00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 1
        Flags: fast devsel

00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 2
        Flags: fast devsel

00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 3
        Flags: fast devsel
        Capabilities: [f0] Secure device <?>
        Kernel driver in use: k10temp

00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 4
        Flags: fast devsel
        Kernel driver in use: fam15h_power

00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 16h Processor Function 5
        Flags: fast devsel

01:00.0 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
        Subsystem: Hewlett-Packard Company NC522SFP Dual Port 10GbE Server Adapter
        Flags: bus master, fast devsel, latency 0, IRQ 5
        Memory at fe200000 (64-bit, non-prefetchable) [size=2M]
        Memory at fc000000 (64-bit, non-prefetchable) [size=32M]
        Expansion ROM at fe400000 [disabled] [size=64K]
        Capabilities: [40] MSI-X: Enable- Count=64 Masked-
        Capabilities: [80] Power Management version 3
        Capabilities: [a0] MSI: Enable- Count=1/32 Maskable- 64bit+
        Capabilities: [c0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number 59-69-46-61-6e-48-73-75

01:00.1 Ethernet controller: NetXen Incorporated NX3031 Multifunction 1/10-Gigabit Server Adapter (rev 42)
        Subsystem: Hewlett-Packard Company NC522SFP Dual Port 10GbE Server Adapter
        Flags: bus master, fast devsel, latency 0, IRQ 5
        Memory at fe000000 (64-bit, non-prefetchable) [size=2M]
        Memory at fa000000 (64-bit, non-prefetchable) [size=32M]
        Capabilities: [40] MSI-X: Enable- Count=64 Masked-
        Capabilities: [80] Power Management version 3
        Capabilities: [a0] MSI: Enable- Count=1/32 Maskable- 64bit+
        Capabilities: [c0] Express Endpoint, MSI 00
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Device Serial Number 59-69-46-61-6e-48-73-75

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 0c)
        Subsystem: Fujitsu Technology Solutions Device 11ff
        Flags: bus master, fast devsel, latency 0, IRQ 24
        I/O ports at e000 [size=256]
        Memory at fe500000 (64-bit, non-prefetchable) [size=4K]
        Memory at d0800000 (64-bit, prefetchable) [size=16K]
        Capabilities: [40] Power Management version 3
        Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+
        Capabilities: [70] Express Endpoint, MSI 01
        Capabilities: [b0] MSI-X: Enable+ Count=4 Masked-
        Capabilities: [d0] Vital Product Data
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [140] Virtual Channel
        Capabilities: [160] Device Serial Number 01-00-00-00-00-00-00-01
        Capabilities: [170] Latency Tolerance Reporting
        Kernel driver in use: r8169

grepping in dmesg did not yield results for "Xen", "xen", "sfp", "SFP" or some other stuff, so here is most of it:
lines that contain "pci":

[    1.343283] PCI: Using host bridge windows from ACPI; if necessary, use "pci=nocrs" and report a bug
[    1.407211] pci_bus 0000:00: root bus resource [io  0x0000-0x03af window]
[    1.415209] pci_bus 0000:00: root bus resource [io  0x03e0-0x0cf7 window]
[    1.423209] pci_bus 0000:00: root bus resource [io  0x03b0-0x03df window]
[    1.427219] pci_bus 0000:00: root bus resource [io  0x0d00-0xffff window]
[    1.435219] pci_bus 0000:00: root bus resource [mem 0x000a0000-0x000bffff window]
[    1.443219] pci_bus 0000:00: root bus resource [mem 0x000c0000-0x000dffff window]
[    1.451219] pci_bus 0000:00: root bus resource [mem 0xc0000000-0xffffffff window]
[    1.459219] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.463225] pci 0000:00:00.0: [1022:1536] type 00 class 0x060000
[    1.472437] pci 0000:00:01.0: [1002:9833] type 00 class 0x030000
[    1.475233] pci 0000:00:01.0: reg 0x10: [mem 0xc0000000-0xcfffffff 64bit pref]
[    1.483219] pci 0000:00:01.0: reg 0x18: [mem 0xd0000000-0xd07fffff 64bit pref]
[    1.491224] pci 0000:00:01.0: reg 0x20: [io  0xf000-0xf0ff]
[    1.495214] pci 0000:00:01.0: reg 0x24: [mem 0xfe600000-0xfe63ffff]
[    1.503214] pci 0000:00:01.0: reg 0x30: [mem 0xfe640000-0xfe65ffff pref]
[    1.511214] pci 0000:00:01.0: enabling Extended Tags
[    1.515258] pci 0000:00:01.0: supports D1 D2
[    1.519208] pci 0000:00:01.0: PME# supported from D1 D2 D3hot
[    1.525921] pci 0000:00:01.1: [1002:9840] type 00 class 0x040300
[    1.531230] pci 0000:00:01.1: reg 0x10: [mem 0xfe664000-0xfe667fff 64bit]
[    1.539241] pci 0000:00:01.1: enabling Extended Tags
[    1.543252] pci 0000:00:01.1: supports D1 D2
[    1.547348] pci 0000:00:02.0: [1022:1538] type 00 class 0x060000
[    1.555380] pci 0000:00:02.1: [1022:1439] type 01 class 0x060400
[    1.559257] pci 0000:00:02.1: enabling Extended Tags
[    1.563264] pci 0000:00:02.1: PME# supported from D0 D3hot D3cold
[    1.573384] pci 0000:00:02.2: [1022:1439] type 01 class 0x060400
[    1.579257] pci 0000:00:02.2: enabling Extended Tags
[    1.583261] pci 0000:00:02.2: PME# supported from D0 D3hot D3cold
[    1.590939] pci 0000:00:10.0: [1022:7814] type 00 class 0x0c0330
[    1.595236] pci 0000:00:10.0: reg 0x10: [mem 0xfe668000-0xfe669fff 64bit]
[    1.603316] pci 0000:00:10.0: PME# supported from D0 D3hot D3cold
[    1.610301] pci 0000:00:11.0: [1022:7801] type 00 class 0x010601
[    1.615230] pci 0000:00:11.0: reg 0x10: [io  0xf140-0xf147]
[    1.619219] pci 0000:00:11.0: reg 0x14: [io  0xf130-0xf133]
[    1.627219] pci 0000:00:11.0: reg 0x18: [io  0xf120-0xf127]
[    1.631215] pci 0000:00:11.0: reg 0x1c: [io  0xf110-0xf113]
[    1.635220] pci 0000:00:11.0: reg 0x20: [io  0xf100-0xf10f]
[    1.643219] pci 0000:00:11.0: reg 0x24: [mem 0xfe66e000-0xfe66e3ff]
[    1.647261] pci 0000:00:11.0: PME# supported from D3hot
[    1.655506] pci 0000:00:12.0: [1022:7807] type 00 class 0x0c0310
[    1.659225] pci 0000:00:12.0: reg 0x10: [mem 0xfe66d000-0xfe66dfff]
[    1.667441] pci 0000:00:12.2: [1022:7808] type 00 class 0x0c0320
[    1.671227] pci 0000:00:12.2: reg 0x10: [mem 0xfe66c000-0xfe66c0ff]
[    1.679283] pci 0000:00:12.2: supports D1 D2
[    1.683219] pci 0000:00:12.2: PME# supported from D0 D1 D2 D3hot D3cold
[    1.691489] pci 0000:00:13.0: [1022:7807] type 00 class 0x0c0310
[    1.695224] pci 0000:00:13.0: reg 0x10: [mem 0xfe66b000-0xfe66bfff]
[    1.703438] pci 0000:00:13.2: [1022:7808] type 00 class 0x0c0320
[    1.711228] pci 0000:00:13.2: reg 0x10: [mem 0xfe66a000-0xfe66a0ff]
[    1.715283] pci 0000:00:13.2: supports D1 D2
[    1.719209] pci 0000:00:13.2: PME# supported from D0 D1 D2 D3hot D3cold
[    1.727738] pci 0000:00:14.0: [1022:780b] type 00 class 0x0c0500
[    1.735208] pci 0000:00:14.2: [1022:780d] type 00 class 0x040300
[    1.739230] pci 0000:00:14.2: reg 0x10: [mem 0xfe660000-0xfe663fff 64bit]
[    1.747272] pci 0000:00:14.2: PME# supported from D0 D3hot D3cold
[    1.754522] pci 0000:00:14.3: [1022:780e] type 00 class 0x060100
[    1.759454] pci 0000:00:18.0: [1022:1530] type 00 class 0x060000
[    1.763357] pci 0000:00:18.1: [1022:1531] type 00 class 0x060000
[    1.771353] pci 0000:00:18.2: [1022:1532] type 00 class 0x060000
[    1.779358] pci 0000:00:18.3: [1022:1533] type 00 class 0x060000
[    1.783361] pci 0000:00:18.4: [1022:1534] type 00 class 0x060000
[    1.791353] pci 0000:00:18.5: [1022:1535] type 00 class 0x060000
[    1.798180] pci 0000:01:00.0: [4040:0100] type 00 class 0x020000
[    1.803240] pci 0000:01:00.0: reg 0x10: [mem 0xfe200000-0xfe3fffff 64bit]
[    1.807240] pci 0000:01:00.0: reg 0x20: [mem 0xfc000000-0xfdffffff 64bit]
[    1.815218] pci 0000:01:00.0: reg 0x30: [mem 0xfe400000-0xfe40ffff pref]
[    1.823282] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    1.827245] pci 0000:01:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x4 link at 0000:00:02.1 (capable of 32.000 Gb/s with 5 GT/s x8 link)
[    1.845067] pci 0000:01:00.1: [4040:0100] type 00 class 0x020000
[    1.847239] pci 0000:01:00.1: reg 0x10: [mem 0xfe000000-0xfe1fffff 64bit]
[    1.855240] pci 0000:01:00.1: reg 0x20: [mem 0xfa000000-0xfbffffff 64bit]
[    1.863290] pci 0000:01:00.1: PME# supported from D0 D3hot D3cold
[    1.871243] pci 0000:00:02.1: PCI bridge to [bus 01]
[    1.875219] pci 0000:00:02.1:   bridge window [mem 0xfa000000-0xfe4fffff]
[    1.879312] pci 0000:02:00.0: [10ec:8168] type 00 class 0x020000
[    1.887240] pci 0000:02:00.0: reg 0x10: [io  0xe000-0xe0ff]
[    1.891234] pci 0000:02:00.0: reg 0x18: [mem 0xfe500000-0xfe500fff 64bit]
[    1.899224] pci 0000:02:00.0: reg 0x20: [mem 0xd0800000-0xd0803fff 64bit pref]
[    1.907318] pci 0000:02:00.0: supports D1 D2
[    1.911209] pci 0000:02:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    1.920324] pci 0000:00:02.2: PCI bridge to [bus 02]
[    1.923219] pci 0000:00:02.2:   bridge window [io  0xe000-0xefff]
[    1.931219] pci 0000:00:02.2:   bridge window [mem 0xfe500000-0xfe5fffff]
[    1.935212] pci 0000:00:02.2:   bridge window [mem 0xd0800000-0xd08fffff 64bit pref]
[    1.943225] pci_bus 0000:00: on NUMA node 0
[    2.027219] PCI: pci_cache_line_size set to 64 bytes
[    2.271783] pci 0000:00:02.1: PCI bridge to [bus 01]
[    2.276805] pci 0000:00:02.1:   bridge window [mem 0xfa000000-0xfe4fffff]
[    2.283645] pci 0000:00:02.2: PCI bridge to [bus 02]
[    2.288664] pci 0000:00:02.2:   bridge window [io  0xe000-0xefff]
[    2.296320] pci 0000:00:02.2:   bridge window [mem 0xfe500000-0xfe5fffff]
[    2.303157] pci 0000:00:02.2:   bridge window [mem 0xd0800000-0xd08fffff 64bit pref]
[    2.310966] pci_bus 0000:00: resource 4 [io  0x0000-0x03af window]
[    2.317195] pci_bus 0000:00: resource 5 [io  0x03e0-0x0cf7 window]
[    2.323425] pci_bus 0000:00: resource 6 [io  0x03b0-0x03df window]
[    2.329657] pci_bus 0000:00: resource 7 [io  0x0d00-0xffff window]
[    2.335888] pci_bus 0000:00: resource 8 [mem 0x000a0000-0x000bffff window]
[    2.342814] pci_bus 0000:00: resource 9 [mem 0x000c0000-0x000dffff window]
[    2.349739] pci_bus 0000:00: resource 10 [mem 0xc0000000-0xffffffff window]
[    2.356750] pci_bus 0000:01: resource 1 [mem 0xfa000000-0xfe4fffff]
[    2.363068] pci_bus 0000:02: resource 0 [io  0xe000-0xefff]
[    2.368693] pci_bus 0000:02: resource 1 [mem 0xfe500000-0xfe5fffff]
[    2.375009] pci_bus 0000:02: resource 2 [mem 0xd0800000-0xd08fffff 64bit pref]
[    2.445164] pci 0000:00:01.0: Video device with shadowed ROM at [mem 0x000c0000-0x000dffff]
[    2.453577] pci 0000:00:01.1: D0 power state depends on 0000:00:01.0
[    2.491562] pci 0000:00:12.0: 0xffffffff81696470 took 30449 usecs
[    2.515726] pci 0000:00:12.2: 0xffffffff81696470 took 17524 usecs
[    2.521898] pci 0000:00:12.2: PME# does not work under D3, disabling it
[    2.555550] pci 0000:00:13.0: 0xffffffff81696470 took 26338 usecs
[    2.579546] pci 0000:00:13.2: 0xffffffff81696470 took 17395 usecs
[    2.585713] pci 0000:00:13.2: PME# does not work under D3, disabling it
[    2.914062] ehci-pci: EHCI PCI platform driver
[    2.918762] ehci-pci 0000:00:12.2: EHCI Host Controller
[    2.924049] ehci-pci 0000:00:12.2: new USB bus registered, assigned bus number 1
[    2.931508] ehci-pci 0000:00:12.2: applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround
[    2.940269] ehci-pci 0000:00:12.2: debug port 1
[    2.944908] ehci-pci 0000:00:12.2: irq 17, io mem 0xfe66c000
[    2.963363] ehci-pci 0000:00:12.2: USB 2.0 started, EHCI 1.00
[    2.978410] ehci-pci 0000:00:13.2: EHCI Host Controller
[    2.983709] ehci-pci 0000:00:13.2: new USB bus registered, assigned bus number 2
[    2.991169] ehci-pci 0000:00:13.2: applying AMD SB700/SB800/Hudson-2/3 EHCI dummy qh workaround
[    2.999937] ehci-pci 0000:00:13.2: debug port 1
[    3.004559] ehci-pci 0000:00:13.2: irq 17, io mem 0xfe66a000
[    3.023400] ehci-pci 0000:00:13.2: USB 2.0 started, EHCI 1.00
[    3.044759] ohci-pci: OHCI PCI platform driver
[    3.049440] ohci-pci 0000:00:12.0: OHCI PCI host controller
[    3.055072] ohci-pci 0000:00:12.0: new USB bus registered, assigned bus number 3
[    3.062583] ohci-pci 0000:00:12.0: irq 18, io mem 0xfe66d000
[    3.140510] ohci-pci 0000:00:13.0: OHCI PCI host controller
[    3.146151] ohci-pci 0000:00:13.0: new USB bus registered, assigned bus number 4
[    3.153658] ohci-pci 0000:00:13.0: irq 18, io mem 0xfe66b000

and the part where the other NIC-drivers are loaded:

[    8.683087] urngd: v1.0.2 started.
[    8.688321] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    8.695444] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    8.702836] igb: Intel(R) Gigabit Ethernet Network Driver - version 5.6.0-k
[    8.708937] crng init done
[    8.709870] igb: Copyright (c) 2007-2014 Intel Corporation.
[    8.712622] random: 1 urandom warning(s) missed due to ratelimiting
[    8.726484] ixgbe: Intel(R) 10 Gigabit PCI Express Network Driver - version 5.1.0-k
[    8.734230] ixgbe: Copyright (c) 1999-2016 Intel Corporation.
[    8.743172] i2c /dev entries driver
[    8.754284] e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
[    8.760186] e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
[    8.782979] r8169 0000:02:00.0 eth0: RTL8168g/8111g, 90:1b:0e:c3:55:09, XID 4c0, IRQ 34
[    8.791078] r8169 0000:02:00.0 eth0: jumbo features [frames: 9200 bytes, tx checksumming: ko]
[    8.802390] xt_time: kernel timezone is -0000
[    8.819621] bnx2x: QLogic 5771x/578xx 10/20-Gigabit Ethernet Driver bnx2x 1.713.36-0 (2014/02/10)
[    8.833081] PPP generic driver version 2.4.2
[    8.837742] NET: Registered protocol family 24
[    8.844746] kmodloader: done loading kernel modules from /etc/modules.d/*
[   10.532354] Generic FE-GE Realtek PHY r8169-0-200:00: attached PHY driver [Generic FE-GE Realtek PHY] (mii_bus:phy_addr=r8169-0-200:00, irq=IGNORE)
[   10.656176] r8169 0000:02:00.0 eth0: Link is Down
[   10.660999] br-lan: port 1(eth0) entered blocking state
[   10.666287] br-lan: port 1(eth0) entered disabled state
[   10.671719] device eth0 entered promiscuous mode
[   13.236351] r8169 0000:02:00.0 eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   13.244009] br-lan: port 1(eth0) entered blocking state
[   13.249328] br-lan: port 1(eth0) entered forwarding state

Every PCI device has a vendor:product hex number much like USB; this is the best way to look for drivers. I think you use lspci -n to see the numbers.

Or in the log for the card on bus 1 we have:

2 Likes

Thnx, exactly what I was going for in my posts.

Okay, I have the numbers now, what do I do with them?
I cannot seem to find any drivers with those.

Only thing I am seeing now is in the system and kernel log:

[    1.798062] pci 0000:01:00.0: [4040:0100] type 00 class 0x020000
[    1.803383] pci 0000:01:00.0: reg 0x10: [mem 0xfe200000-0xfe3fffff 64bit]
[    1.807384] pci 0000:01:00.0: reg 0x20: [mem 0xfc000000-0xfdffffff 64bit]
[    1.815361] pci 0000:01:00.0: reg 0x30: [mem 0xfe400000-0xfe40ffff pref]
[    1.823426] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[    1.827388] pci 0000:01:00.0: 8.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x4 link at 0000:00:02.1 (capable of 32.000 Gb/s with 5 GT/s x8 link)
[    1.843876] pci 0000:01:00.1: [4040:0100] type 00 class 0x020000
[    1.847383] pci 0000:01:00.1: reg 0x10: [mem 0xfe000000-0xfe1fffff 64bit]
[    1.855384] pci 0000:01:00.1: reg 0x20: [mem 0xfa000000-0xfbffffff 64bit]
[    1.863435] pci 0000:01:00.1: PME# supported from D0 D3hot D3cold
[    1.871352] pci 0000:00:02.1: PCI bridge to [bus 01]
[    1.875359] pci 0000:00:02.1:   bridge window [mem 0xfa000000-0xfe4fffff]

NETXEN_NIC currently isn't enabled for any target and apparently not packaged either:

target/linux/generic/config-5.10:# CONFIG_NETXEN_NIC is not set
target/linux/generic/config-5.15:# CONFIG_NETXEN_NIC is not set

Adding a package for these modules shouldn't be too difficult though, but you will have to build OpenWrt from source and add your changes for the packaging (module and firmware, phanfw.bin).

Btw. lspci -knn is usually best for finding out which modules are needed/ in use for your PCI(e) hardware.

3 Likes

Okay, I'll have to look into that.

They are qlogic now.

Driver = drivers/net/ethernet/qlogic/netxen/[netxen_nic_main.c]

So just enable this is kernel makeconfig and then you also might need to enable bnx2x firmware using make menuconfig :slight_smile: