Page 1 of 1

Change embeded NIC driver

Posted: 16 Dec 2014 13:58
by laurens
Hi

Looks like I can't get my network card working on the official release builds.
The network card I have is this one: "C2000 SoC I354 Quad GbE Controller (MACs)".

What does work:
- I have Pfsense running on a comparable motherboard with the same NIC. This is FreeBSD 8.3. But they have updated/backported the igb driver (https://forum.pfsense.org/index.php?topic=69181.25;wap2).
- This build does work: viewtopic.php?f=69&t=5365&start=200

What I tried:
- I compiled the latest igb driver on FreeBSD 9.2 and I have a if_igb.ko as a result.
- I tried this: http://blog.hani-ibrahim.de/nic-on-embe ... eenas.html but I can't load the driver because it's already loaded in the kernel
- I tried this: http://blog.hani-ibrahim.de/en/netzwerk ... ieren.html but the /cf has no boot directoy and copyng to /boot/kernel didn't work. I can't load the driver because it's included in the kernel

Is their a way I can run the official builds in embedded mode (prefered) or official full install without compyling my own kernel?

Thanks
Laurens

Re: Change embeded NIC driver

Posted: 16 Dec 2014 16:01
by raulfg3
do you test latest version based on BSD 9.3?: viewtopic.php?f=78&t=7860

Re: Change embeded NIC driver

Posted: 16 Dec 2014 16:19
by laurens
I have to try the LiveUSB, that one wasn't availble this weekend, but I found the embeded which didn't work. But that was an older build.
Will try the LiveUSB with this build one of these days.

Re: Change embeded NIC driver

Posted: 16 Dec 2014 17:08
by raulfg3

Re: Change embeded NIC driver

Posted: 21 Dec 2014 09:55
by laurens
Didn't work either, but build 300 of the BSD 10 test version does.
I did the "full" install of build 1190 and I could find the /boot/kernel/if_igb.ko. But I guess it's no use overwriting it because when I do kldstat -v I see the igb driver is in the /boot/kernel/kernel file. So I guess without compiling my own kernel I'm not able to run the stable version?
Can I do a feature request somewhere to backport the igb driver to the current stable release as they did in pfsense (= freebsd 8.x)? Or can I do something else to exclude the igb part from the kernel so I can load my own?

Re: Change embeded NIC driver

Posted: 23 Dec 2014 16:25
by laurens
Can I do something else to exclude the igb part from the kernel so I can load my own?

Re: Change embeded NIC driver

Posted: 27 Dec 2014 19:00
by laurens
*bump*

Re: Change embeded NIC driver

Posted: 30 Dec 2014 09:24
by Predictor
Hi Laurens, you need to download the latest intel drivers for the c2000/354 chipset. You can compile them on a stock 9.3 freebsd. Afterward you need to copy the if_igb.ko to /cf/boot/kernel, replacing the old driver. You also need to edit the /cf/boot/loader.conf and add the line: if_igb_load="YES"
Before you can edit or copy you need to mount the /cf dir read/write with: mount -uw /cf
After a reboot you should see your nics.
btw, this is for the embedded version, the full version is similar to this one except that the root is mounted read/write

Re: Change embeded NIC driver

Posted: 30 Dec 2014 09:28
by Predictor
attached the intel 2.4.2 igb driver compiled on freebsd 9.3

Re: Change embeded NIC driver

Posted: 06 Jan 2015 12:55
by laurens
Thanks!