ATLS21QGE NIC help!

Started by shimo, February 18, 2022, 09:46:18 AM

Previous topic - Next topic
Hey! I recently picked up an Oracle ATLS21QGE  7055021 NIC to use for my OPNSense router. I know it has BSD support since it's listed in the PDF manual for it. But for the life of me I cannot figure out how to install the drivers for it. Any assistance would be greatly appreciated.

So far I've tried installing the drivers from em-7.7.8.tar.gz that it linked me to, but when I try to run make it just errors saying it can't find my kernal base code.

From what I understand and please correct me if I'm wrong, I need the igb drivers installed but pkg install doesn't know what I'm talking about either. ¯\_(ツ)_/¯ REALLY hoping I didn't waste my money on this NIC.

google is your friend....

https://forums.freebsd.org/threads/driver-support-for-sun-quad-gigabit-cards.51000/

looks like yours may be an Oracle chipset rather than the intel one (nxge)... it probably won't work but you can test it out and let us know.

Hey. I did google it, and found that page. But that post didn't really help me to get it running. Excuse me for being a noob. But how is it possible to use a windows driver on BSD? And if I have to install the windows drivers on a BSD based OS why are there BSD drivers mentioned in the cards documentation?  Why am I getting this error when I try to make said driver? I'm used to linux where when I run make the most I'll get for an error is a missing dependency. I'm very confused and not really sure where to start. I'm not a complete beginner, but I'm also out of my depth here.

So for all intents and purposes. Please. Treat me like I'm a complete moron and walk me through where to begin, because clearly I've expended the limits of my knowledge.

not sure it will work, but the page states to use ndisgen to generate the driver...

ndisgen [/path/to/INF /path/to/SYS]

Where's the sys path in opnsense? Can't fiddle with it now since I'm at work. But when I get a chance I'll try it.

INF and SYS are the files in your windows driver directory that you downloaded.

February 19, 2022, 11:06:55 PM #6 Last Edit: February 19, 2022, 11:10:49 PM by shimo
Appreciate the help. Finally getting around to trying at this again. https://www.intel.com/content/www/us/en/support/articles/000005504/ethernet-products/gigabit-ethernet-adapters-up-to-2-5gbe.html

I also still don't understand why I can't just make the BSD drivers.


make: "/usr/share/mk/bsd.sysdir.mk" line 15: Unable to locate the kernel source tree. Set SYSDIR to override.


EDIT: Everything I find for this card points me to that page for the drivers, so unless I'm illiterate it should have BSD drivers right? ¯\_(ツ)_/¯

Also trying to get the Windows drivers all I can find are .exe's and when  I try running the installer on my VM because it doesn't have the card installed it just gives up and doesn't extract any of the driver files from it....

Seriously. There has to be a way to make those official BSD drivers. But I can't find ANYTHING about how to declare the SYSDIR. I tried editing the Makefile to have SYSDIR=/sys and it still gave me that error.
Legit, if this doesn't work is there a Linux based firewall that is similar? I'm not familiar enough with BSD to screw around with this.

Just adding these in case it makes things more clear. REALLY hoping I didn't waste my money and time waiting for this card to arrive.

[2.6.0-RELEASE][admin@pfSense.home.arpa]/root/driver/igb-2.5.19/src: make
make: "/usr/share/mk/bsd.kmod.mk" line 16: Unable to locate the kernel source tree. Set SYSDIR to override.


And output of pciconf -lv

none6@pci0:1:0:0: class=0x020000 card=0x0000108e chip=0xabcd108e rev=0x01 hdr=0x00
    vendor     = 'Oracle/SUN'
    device     = 'Multithreaded 10-Gigabit Ethernet Network Controller'
    class      = network
    subclass   = ethernet
none7@pci0:1:0:1: class=0x020000 card=0x0000108e chip=0xabcd108e rev=0x01 hdr=0x00
    vendor     = 'Oracle/SUN'
    device     = 'Multithreaded 10-Gigabit Ethernet Network Controller'
    class      = network
    subclass   = ethernet
none8@pci0:1:0:2: class=0x020000 card=0x0000108e chip=0xabcd108e rev=0x01 hdr=0x00
    vendor     = 'Oracle/SUN'
    device     = 'Multithreaded 10-Gigabit Ethernet Network Controller'
    class      = network
    subclass   = ethernet
none9@pci0:1:0:3: class=0x020000 card=0x0000108e chip=0xabcd108e rev=0x01 hdr=0x00
    vendor     = 'Oracle/SUN'
    device     = 'Multithreaded 10-Gigabit Ethernet Network Controller'
    class      = network
    subclass   = ethernet

Your output clearly shows that you have the Oracle Chip as opposed to Intel chipset NIC. If it's not working then I recommend getting an Intel NIC version which it does work with BSD. :)

Quote from: shimo on February 20, 2022, 01:46:55 AM

[2.6.0-RELEASE][admin@pfSense.home.arpa]/root/driver/igb-2.5.19/src: make
make: "/usr/share/mk/bsd.kmod.mk" line 16: Unable to locate the kernel source tree. Set SYSDIR to override.


I imagine you have left the hostname from a previous installation and are in the correct forum :)
In either case it seems you are attempting to build a driver but it requires the kernel sources. The OPN distro might not have them by default. I would install a vanilla freebsd VM and attempt to build there. It could be done in a jail but it might be too complicated for the purpose if you're not familiar with them.