[SOLVED] - OCE drivers and freebsd

Started by romain, September 01, 2017, 09:41:23 AM

Previous topic - Next topic
September 01, 2017, 09:41:23 AM Last Edit: September 01, 2017, 11:53:37 AM by romain
Hello,

I'm trying to update my firewalls and I would like to install my Emulex network card (OCE1102NT).

Based on the editor website, the default driver given in the FreeBSD image should do the job.

How can I included them on my OPNsense installation ?

Thank you
Romain

OPNsense is FreeBSD with HardenedBSD Patches. If the driver is in FreeBSD, it should be in OPNsense as well.

Thank for the quick answer.

That's strange my out of box installed version of Opnsense didn't see my extra network card.

If I go on the manufacturer (https://www.broadcom.com/products/ethernet-connectivity/network-adapters/oce11102-nt#downloads), it says:

Use the inbox Ethernet driver included with FreeBSD 11.0.

Do I need to include/load a special module ?

Thank you

I don't know but you should check the boot output - maybe a boot parameter is missing (some drivers needs a boot parameter to tell that you accept a license).

J'avais pensé à regardé mais je n'ai pas d'erreur:

Sep  1 07:39:08 OPNsense kernel: pcib4: <ACPI PCI-PCI bridge> mem 0xdf4a0000-0xdf4bffff irq 20 at device 3.0 on pci0
Sep  1 07:39:08 OPNsense kernel: pci4: <ACPI PCI bus> on pcib4
Sep  1 07:39:08 OPNsense kernel: pci4: <network, ethernet> at device 0.0 (no driver attached)
Sep  1 07:39:08 OPNsense kernel: pci4: <network, ethernet> at device 0.1 (no driver attached)


J'ai des cartes Intel qui sont par contre correctement détectées:


Sep  1 07:39:08 OPNsense kernel: pci0: <processor> at device 11.0 (no driver attached)
Sep  1 07:39:08 OPNsense kernel: pci0: <base peripheral, IOMMU> at device 15.0 (no driver attached)
Sep  1 07:39:08 OPNsense kernel: igb0: <Intel(R) PRO/1000 Network Connection, Version - 2.5.3-k> port 0xe0c0-0xe0df mem 0xdf460000-0xdf47ffff,0xdf50c000-0xdf50ffff irq 20 at device 20.0 on pci0
Sep  1 07:39:08 OPNsense kernel: igb0: Using MSIX interrupts with 9 vectors
Sep  1 07:39:08 OPNsense kernel: igb0: Ethernet address: 0c:c4:7a:32:63:f4
Sep  1 07:39:08 OPNsense kernel: igb0: Bound queue 0 to cpu 0
Sep  1 07:39:08 OPNsense kernel: igb0: Bound queue 1 to cpu 1
Sep  1 07:39:08 OPNsense kernel: igb0: Bound queue 2 to cpu 2
Sep  1 07:39:08 OPNsense kernel: igb0: Bound queue 3 to cpu 3
Sep  1 07:39:08 OPNsense kernel: igb0: Bound queue 4 to cpu 4
Sep  1 07:39:08 OPNsense kernel: igb0: Bound queue 5 to cpu 5
Sep  1 07:39:08 OPNsense kernel: igb0: Bound queue 6 to cpu 6
Sep  1 07:39:08 OPNsense kernel: igb0: Bound queue 7 to cpu 7
Sep  1 07:39:08 OPNsense kernel: igb0: netmap queues/slots: TX 8/1024, RX 8/1024
Sep  1 07:39:08 OPNsense kernel: igb1: <Intel(R) PRO/1000 Network Connection, Version - 2.5.3-k> port 0xe0a0-0xe0bf mem 0xdf440000-0xdf45ffff,0xdf508000-0xdf50bfff irq 21 at device 20.1 on pci0
Sep  1 07:39:08 OPNsense kernel: igb1: Using MSIX interrupts with 9 vectors
Sep  1 07:39:08 OPNsense kernel: igb1: Ethernet address: 0c:c4:7a:32:63:f5
Sep  1 07:39:08 OPNsense kernel: igb1: Bound queue 0 to cpu 0
Sep  1 07:39:08 OPNsense kernel: igb1: Bound queue 1 to cpu 1
Sep  1 07:39:08 OPNsense kernel: igb1: Bound queue 2 to cpu 2
Sep  1 07:39:08 OPNsense kernel: igb1: Bound queue 3 to cpu 3
Sep  1 07:39:08 OPNsense kernel: igb1: Bound queue 4 to cpu 4
Sep  1 07:39:08 OPNsense kernel: igb1: Bound queue 5 to cpu 5
Sep  1 07:39:08 OPNsense kernel: igb1: Bound queue 6 to cpu 6
Sep  1 07:39:08 OPNsense kernel: igb1: Bound queue 7 to cpu 7
Sep  1 07:39:08 OPNsense kernel: igb1: netmap queues/slots: TX 8/1024, RX 8/1024
Sep  1 07:39:08 OPNsense kernel: igb2: <Intel(R) PRO/1000 Network Connection, Version - 2.5.3-k> port 0xe080-0xe09f mem 0xdf420000-0xdf43ffff,0xdf504000-0xdf507fff irq 22 at device 20.2 on pci0
Sep  1 07:39:08 OPNsense kernel: igb2: Using MSIX interrupts with 9 vectors
Sep  1 07:39:08 OPNsense kernel: igb2: Ethernet address: 0c:c4:7a:32:63:f6
Sep  1 07:39:08 OPNsense kernel: igb2: Bound queue 0 to cpu 0
Sep  1 07:39:08 OPNsense kernel: igb2: Bound queue 1 to cpu 1
Sep  1 07:39:08 OPNsense kernel: igb2: Bound queue 2 to cpu 2
Sep  1 07:39:08 OPNsense kernel: igb2: Bound queue 3 to cpu 3
Sep  1 07:39:08 OPNsense kernel: igb2: Bound queue 4 to cpu 4
Sep  1 07:39:08 OPNsense kernel: igb2: Bound queue 5 to cpu 5
Sep  1 07:39:08 OPNsense kernel: igb2: Bound queue 6 to cpu 6
Sep  1 07:39:08 OPNsense kernel: igb2: Bound queue 7 to cpu 7
Sep  1 07:39:08 OPNsense kernel: igb2: netmap queues/slots: TX 8/1024, RX 8/1024
Sep  1 07:39:08 OPNsense kernel: igb3: <Intel(R) PRO/1000 Network Connection, Version - 2.5.3-k> port 0xe060-0xe07f mem 0xdf400000-0xdf41ffff,0xdf500000-0xdf503fff irq 23 at device 20.3 on pci0
Sep  1 07:39:08 OPNsense kernel: igb3: Using MSIX interrupts with 9 vectors
Sep  1 07:39:08 OPNsense kernel: igb3: Ethernet address: 0c:c4:7a:32:63:f7
Sep  1 07:39:08 OPNsense kernel: igb3: Bound queue 0 to cpu 0
Sep  1 07:39:08 OPNsense kernel: igb3: Bound queue 1 to cpu 1
Sep  1 07:39:08 OPNsense kernel: igb3: Bound queue 2 to cpu 2
Sep  1 07:39:08 OPNsense kernel: igb3: Bound queue 3 to cpu 3
Sep  1 07:39:08 OPNsense kernel: igb3: Bound queue 4 to cpu 4
Sep  1 07:39:08 OPNsense kernel: igb3: Bound queue 5 to cpu 5
Sep  1 07:39:08 OPNsense kernel: igb3: Bound queue 6 to cpu 6
Sep  1 07:39:08 OPNsense kernel: igb3: Bound queue 7 to cpu 7
Sep  1 07:39:08 OPNsense kernel: igb3: netmap queues/slots: TX 8/1024, RX 8/1024

Hi Romain,

In /boot/loader.conf.local add:

if_oce_load="YES"

and reboot.


Cheers,
Franco

I tired to update the firmware but nothing works.

here the result of the command: pciconf -lveV

none4@pci0:4:0:0:       class=0x020000 card=0xe72310df chip=0x071019a2 rev=0x01 hdr=0x00
    vendor     = 'Emulex Corporation'
    device     = 'OneConnect 10Gb NIC (be3)'
    class      = network
    subclass   = ethernet
  PCI-e errors = Correctable Error Detected
                 Unsupported Request Detected
     Corrected = Advisory Non-Fatal Error
    VPD ident  = 'OCe11102-NT 2P 10GbE Tomcat Enterprise CNA, NIC PF'
    VPD ro PN  = 'OCe11102-NT'
    VPD ro SN  = 'FC50938137'
    VPD ro V0  = 'FC50938137'
    VPD ro VB  = 'PW=25W; PCIe 2.0 x8 5GT/s'
    VPD ro V1  = 'Emulex OneConnect OCe11102-NT 2-port PCIe 10Gbase-T CNA'
    VPD ro V2  = 'OCe11102-NT'
    VPD ro V4  = '0'
none5@pci0:4:0:1:       class=0x020000 card=0xe72310df chip=0x071019a2 rev=0x01 hdr=0x00
    vendor     = 'Emulex Corporation'
    device     = 'OneConnect 10Gb NIC (be3)'
    class      = network
    subclass   = ethernet
  PCI-e errors = Correctable Error Detected
                 Unsupported Request Detected
     Corrected = Advisory Non-Fatal Error
    VPD ident  = 'OCe11102-NT 2P 10GbE Tomcat Enterprise CNA, NIC PF'
    VPD ro PN  = 'OCe11102-NT'
    VPD ro SN  = 'FC50938137'
    VPD ro V0  = 'FC50938137'
    VPD ro VB  = 'PW=25W; PCIe 2.0 x8 5GT/s'
    VPD ro V1  = 'Emulex OneConnect OCe11102-NT 2-port PCIe 10Gbase-T CNA'
    VPD ro V2  = 'OCe11102-NT'
    VPD ro V4  = '1'

@Franco you're a god to me.
Thank you. I now see my network card :-)

Quick question, can I use my 16.7.14 backup file to import in my new 17.7.1 box ?

Thank you again

Hi Romain,

Yes, that works.


Cheers,
Franco


Sure thing. :)

Does oce(4) still need a newer driver or is this fixed now in FreeBSD 11.0?


Cheers,
Franco

I will make my tests in the coming days.

If I don't post anything, it means it work like this. At least for my usage.

Keep you posted.