Driver HP NC523SFP DUAL PORT 10Gb SERVER ADAPTER

Started by mattejacob, March 04, 2021, 09:31:46 PM

Previous topic - Next topic
Can anyone point me in the right direction here? I have an HP NC523SFP DUAL PORT 10Gb SERVER ADAPTER i threw in an old computer, the bios recognizes it but opnsense does not. Is there a driver that will work with it and if so... can someone walk me through or point me how to get it installed? I have fiber pulled between 3 buildings in my network and would love to get this working.

the other alternative is to somehow get opnsense working on mikrotik hardware but I haven't had any luck getting someone to respond to that question so maybe this can be an option. I do have a new microtik router with two sfp+ ports but from what i understand they are running ARM processors so I don't know how opnsense will cooporate with them.

Hi

IMHO, you need to search for freeBSD support od the card first.

Data sheet says QLogic cLOM8214.
So I googled just for curiosity a there it is:

https://www.freebsd.org/cgi/man.cgi?query=qlxgb&apropos=0&sektion=4&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html

Then the question is whether this driver is included in Opnsense...

Yeah, i don't think it's been ported to opnsense because it won't recognize it when i try to configure interfaces. So the question is how would one go about porting it from BSD over to opnsense? I'm just trying to get 10g fiber ports working without breaking the bank. I had the card already and i have a microtik router that's brand new.  (i'm just not fond of routerOS and I really don't want to reconfigure everything in that OS). I really don't care which way I go with it, I just want to get it working. But I need some help to get there.

I wander if pfsense already has it? I've just been migrating away from them because of how they treated opnsense. we run it at work and i'm used to it but I'd rather stay with opnsense. if the driver is already in pfsense it may be easier to pull it and port it over.

so i did a little experimenting. I threw pfsense on this box and it recognized the NICs. it through some errors but i can configure them. so that's a start. I'm going to just go ahead and buy a supported NIC for this though just in case. they aren't all that expensive to get a supported one. then at least i can stay with opnsense.

Quote from: mattejacob on March 05, 2021, 03:59:49 PM
Yeah, i don't think it's been ported to opnsense because it won't recognize it when i try to configure interfaces. So the question is how would one go about porting it from BSD over to opnsense? I'm just trying to get 10g fiber ports working without breaking the bank. I had the card already and i have a microtik router that's brand new.  (i'm just not fond of routerOS and I really don't want to reconfigure everything in that OS). I really don't care which way I go with it, I just want to get it working. But I need some help to get there.

I wander if pfsense already has it? I've just been migrating away from them because of how they treated opnsense. we run it at work and i'm used to it but I'd rather stay with opnsense. if the driver is already in pfsense it may be easier to pull it and port it over.

Quote from: mattejacob on March 06, 2021, 05:22:59 AM
so i did a little experimenting. I threw pfsense on this box and it recognized the NICs. it through some errors but i can configure them. so that's a start. I'm going to just go ahead and buy a supported NIC for this though just in case. they aren't all that expensive to get a supported one. then at least i can stay with opnsense.

I see the driver in my 21.1:

root@OPNsense:/boot/kernel # uname -a
FreeBSD OPNsense.localdomain 12.1-RELEASE-p13-HBSD FreeBSD 12.1-RELEASE-p13-HBSD #0  5a415173060(stable/21.1)-dirty: Fri Feb  5 16:41:22 CET 2021     root@sensey:/usr/obj/usr/src/amd64.amd64/sys/SMP  amd64
root@OPNsense:/boot/kernel # ls -1 /boot/kernel | grep -i qlxgb
if_qlxgb.ko
if_qlxgbe.ko


Since you mention sort of "recognition" of the card , I rather ask:  Did you try to load the driver manually ?


kldload if_qlxgb


T.


I'm working on that as we speak. I'll post back in here and let you know what i find. I think the issue will be, if it loads, is weather or not i get a ton of errors like it did with pfsense running. it has to be reliable. Thanks for the input, that's what i was looking for. But i figured if pfsense saw it, then opnsense should theroretically see it too. just didn't know how to load it.

Well, I'll be dipped.... I manually loaded the driver and poof, it showed right up. and no errors at all. at least not so far. Thank you! now the question is, how do i get this driver to load on startup so i don't have to go in and manually fire it up everytime?

Quote from: mattejacob on March 08, 2021, 01:20:04 AM
Well, I'll be dipped.... I manually loaded the driver and poof, it showed right up. and no errors at all. at least not so far. Thank you! now the question is, how do i get this driver to load on startup so i don't have to go in and manually fire it up everytime?


The answer to "howto load the driver automatically at system startup?" is right at the beginning of the driver's manpage ;)
https://www.freebsd.org/cgi/man.cgi?query=qlxgb&apropos=0&sektion=4&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html

And since the loader.conf file gets overwritten by the system updates, this driver load directive should rather be placed in loader.conf.local file.

https://www.freebsd.org/cgi/man.cgi?query=loader.conf&apropos=0&sektion=0&manpath=FreeBSD+12.1-RELEASE+and+Ports&arch=default&format=html

Cheers,
T.

Hi fellows.

I'm new to opnsense and more generally to the bsd universe.
It's very different from the linux world and i feel like i have a long road in front of me.

So i try to have thic NIC working on a home router to do some bsd lab.

I got issue with OPNsense-22.7

I installed it on a box.

I tried to load the module with :

kldload if_qlxgb

as testo_cz suggested

It seems the module can't load properly  :

my dmesg :

ql0: <Qlogic ISP 80xx PCI CNA Adapter-Ethernet Function v1.1.36> mem 0xf7a00000-0xf7bfffff,0xf7c90000-0xf7c9ffff at device 0.0 on pci1
ql0: qla_init_from_flash: func[0] Q8_PEG_HALT_STATUS1[0x00000000] STATUS2[0x00000000] HEARTBEAT[0x00000000] RCVPEG_STATE[0xffffffff] CMDPEG_STATE[0x00000000]
ql0: qla_pci_attach: qla_init_hw failed
device_attach: ql0 attach returned 6


I need a little hint here.

Found posts on other forums telling to compile module from older bsd version .
Can someone please help me to confirm this ?


Than you very much.

Regards.


December 26, 2023, 04:51:41 PM #9 Last Edit: December 26, 2023, 05:00:03 PM by snoopy78
hi there,

just want to share my findings....if it's obsolete, so be it...

using latest opnsense OPNsense 23.7.10_1 i installed my HP NF523SFP dual nic and tested initally with "kldload if_qlxgb"

in DMESG i then could see the adaptor comming up manually

"
ql0: <Qlogic ISP 80xx PCI CNA Adapter-Ethernet Function v1.1.36> mem 0xdf400000-0xdf5fffff,0xdf690000-0xdf69ffff at device 0.0 on pci2
ql0: qla_pci_attach: firmware[4.12.10.1348448512]
ql0: Ethernet address: 00:0e:1e:05:70:50
ql1: <Qlogic ISP 80xx PCI CNA Adapter-Ethernet Function v1.1.36> mem 0xdf200000-0xdf3fffff,0xdf680000-0xdf68ffff at device 0.1 on pci2
ql1: qla_pci_attach: firmware[4.12.10.1348448512]
ql1: Ethernet address: 00:0e:1e:05:70:54
"

after that, i then made it into the tunables to auto-load the driver after every startup
(as decribed here https://github.com/opnsense/core/issues/5491)

tunable " if_qlxgb_load "
description "Load kldload if_qlxgb QLE3242 driver" (here you can enter whatever you want)
value   "YES"


now the driver is always loaded after bootup or upgrade

ql0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
        ether 00:0e:1e:05:70:50
        media: Ethernet autoselect
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
root@sense:~ # ifconfig ql1
ql1: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
        ether 00:0e:1e:05:70:54
        media: Ethernet autoselect
        status: no carrier
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>


dmesg | grep ql
ql0: <Qlogic ISP 80xx PCI CNA Adapter-Ethernet Function v1.1.36> mem 0xdf400000-0xdf5fffff,0xdf690000-0xdf69ffff at device 0.0 on pci2
ql0: qla_pci_attach: firmware[4.12.10.1348448512]
ql0: Ethernet address: 00:0e:1e:05:70:50
ql1: <Qlogic ISP 80xx PCI CNA Adapter-Ethernet Function v1.1.36> mem 0xdf200000-0xdf3fffff,0xdf680000-0xdf68ffff at device 0.1 on pci2
ql1: qla_pci_attach: firmware[4.12.10.1348448512]
ql1: Ethernet address: 00:0e:1e:05:70:54

using a DAC cable, it shows as follows

root@sense:~ # ifconfig ql0
ql0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=80028<VLAN_MTU,JUMBO_MTU,LINKSTATE>
        ether 00:0e:1e:05:70:50
        media: Ethernet autoselect (10Gbase-SR <full-duplex>)
        status: active
        nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>