OPNsense Forum

English Forums => General Discussion => Topic started by: dotike on February 20, 2015, 06:37:16 pm

Title: Trying to light cxgb(4) 10Gbit Cards (Chelsio T520-CR)
Post by: dotike on February 20, 2015, 06:37:16 pm
Hi All,

I'm failing to light up cxgb(4) Chelsio T520-CR 10Gbit fiber cards, (ixgb(4) based cards are working right now).

Running:
 15.1.5-4608ae4b6 (amd64)

pfSense dmesg: (working)
http://www.nycbug.org/index.cgi?action=dmesgd&do=view&id=2656
OPNsense dmesg: (not lighting up)
http://www.nycbug.org/index.cgi?action=dmesgd&do=view&id=2657

The drivers don't seem to be compiled into the OPNSense kernel.  Looking at pfSense sources, I'm flummoxed as to where they compile them in, (they must simply be in their internal build tools).

--
I also tried 'if_cxgb_load="YES"' in /boot/loader.conf.local - to no avail, the cards still won't light.
https://www.freebsd.org/cgi/man.cgi?query=cxgb&apropos=0&sektion=4&manpath=FreeBSD+10.0-RELEASE&arch=default&format=html

--
REQUEST FOR DIRECTION FOR WHERE TO FIX THIS (and send patches?):

Are yall' opposed to including the driver in-kernel?
- Downside: if you put one in, why not put *all* network drivers in kernel... (too fat?)
- Upside: OPNSense would support a popular card, right out the box, in-kernel

Or, should I just work on finding the casue of (and resolving) my loader.conf issue, (perhaps with the next 10.1 based build)?

Best,
.ike

Title: Re: Trying to light cxgb(4) 10Gbit Cards (Chelsio T520-CR)
Post by: weust on February 20, 2015, 11:36:51 pm
Bit of a guess here, but pfSense 2.2 is based on FreeBSD 10.1 now, whereas OPNsense is based on a lower version.
You might want to give the test version a try. Link is on the blog and in a forum post here.
It runs on version 10.1.
Title: Re: Trying to light cxgb(4) 10Gbit Cards (Chelsio T520-CR)
Post by: franco on February 21, 2015, 07:08:33 am
https://github.com/opnsense/tools/blob/master/config/current/SMP#L179

We compile cxgb into the kernel. Chelsio's Terminator 5 support is relatively new. It could very well not be part of 10.0. I know I had to backport cxgb(4) driver bits for a client once to 10.0.

Please try today's stable release 15.1.6--we're upgrading from FreeBSD 10.0 to 10.1. :)
Title: Re: Trying to light cxgb(4) 10Gbit Cards (Chelsio T520-CR)
Post by: franco on February 22, 2015, 08:09:50 am
Here is the link to the announcement... good luck. https://forum.opnsense.org/index.php?topic=77.0
Title: Re: Trying to light cxgb(4) 10Gbit Cards (Chelsio T520-CR)
Post by: dotike on March 14, 2015, 04:20:17 pm
Hi All,

Took me some time, and I was hoping to close this thread, but using 15.1.7-78bdb9aef cxgb still does not appear to be there.  Here's my dmesg:

http://www.nycbug.org/index.cgi?action=dmesgd&do=view&id=2680

I'll get time with the gear after next week to spend more time finding out why, I'm sorry I had very limited time with this hardware yesterday.

Best,
.ike

Title: Re: Trying to light cxgb(4) 10Gbit Cards (Chelsio T520-CR)
Post by: franco on March 17, 2015, 09:07:34 pm
That's totally weird. Can you try this with FreeBSD 10.1 and if that does not work with 11-stable? I know that's asking a lot, but the driver is there and active. It may not recognise your card/PCI ID. :/