Please explain in detain a "manual kldload" ?
-
In reference:
[https://forum.netgate.com/topic/155264/can-t-assign-nic-aquantia-corp-aqc107](link url) (3 year old topic still being updated)
"manual kldload on the Aquantia module."
and
[https://forum.netgate.com/topic/169896/updated-realtek-nic-drivers-missing-in-pfsense-2-6-0](link url) (people adding driver, needs explanation)
I have this Aquantia chipset and have been shuffling with this problem for weeks now. Mine show up as the AQC113.
The card works in Ubuntu.
I'm willing, so can anyone please detail out how to do a "MANUAL KLDLOAD" and install this driver so I can use this purpose built computer that I cannot use?
To the more experienced: Many of the folks posting here are new to Linux/FreeBSD etc. I implore experienced members to please take a moment to detail out seemingly little things in consideration of the less experienced. For you its 2 extra sentences but for the inexperienced, its one rabbit hole after another trying to get things working and you glare over at the windows box and the red devil on your shoulder whispers... come back, we support it.
I mean this in the most polite possible way, but if someone could please help explain how to get this driver loaded, we would appreciate it. Looking at the thread, it's 3 years old so can someone in the community with deep understanding help:
No matter how hard, if someone can detail it, I will do it and report back so lots of us can get this driver working.
-
Here is some further reference info on the topic.
Can these instructions be adapted to our needs here?
https://service.chelsio.com/beta/drivers/ChelsioUwire-FBSD-3.3.0.1/README.txt
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Compiling and installing the kernel and driver
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++a) Install FreeBSD 10.X/11.x from
ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/amd64/ISO-IMAGES/b) Download ***.tar.gz http://driver
c) Untar the package.
[root@host~]# tar xvf ***.tar.gz
d) This package has the entire FreeBSD world (operating system). You need to
build entire FreeBSD world since *** core driver compiles only within
FreeBSD kernel and not separately as a module.Build the FreeBSD world (operating system) from the package as follows:
i. Add the following entry in /etc/src.conf file.
WITH_OFED='yes'
ii. Create a backup of existing kernel source.
[root@host~]# mv /usr/src /usr/src_bkp
iii. Copy the contents of driver/kernel-head to /usr/src/
iv. Build and install the world as follows:
[root@host~]# cd usr/src/ [root@host~]# make buildworld [root@host~]# make installworld
v. Build and install the kernel as follows:
[root@host~]# make buildkernel [root@host~]# make installkernel
vi. Add the following entries to /boot/loader.conf to enable capabilities:
hw.cxgbe.config_file="flash" hw.cxgbe.iscsicaps_allowed=0xf
vii. Reboot the machine for changes to take effect.
viii. After reboot, check if you have booted to the right kernel by executing
uname -a
You should see a similar output:
FreeBSD host 12.0-CURRENT FreeBSD 12.0-CURRENT #0 f061800bf4e8 (freebsd-head) tip: Thu Nov 10 20:02:53 IST 2016 root@host:/usr/obj/usr/src/sys/GENERIC amd64
Verify that the kernel supports TOE:
[root@host~]# config -x /boot/kernel/kernel | grep TCP_OFFLOAD options TCP_OFFLOAD
-
The 05-23-22_Marvell_Linux_2.5.5 download confirms the AQC-113 is included.
The readme is too long to post, but it has instructions. The instructions leave me with a ton of questions in how to adapt them to this need.
The driver in this release is compatible with ethernet adapters based on:
- AQC-100,
- AQC-107,
- AQC-108,
- AQC-109,
- AQC-111,
- AQC-112,
- AQC-113.
-
Like this:
[2.6.0-RELEASE][admin@cedev-3.stevew.lan]/root: fetch http://pkg.freebsd.org/FreeBSD:12:amd64/quarterly/All/aquantia-atlantic-kmod-0.0.5_1.pkg aquantia-atlantic-kmod-0.0.5_1.pkg 22 kB 2116 kBps 00s [2.6.0-RELEASE][admin@cedev-3.stevew.lan]/root: pkg install aquantia-atlantic-kmod-0.0.5_1.pkg Updating pfSense-core repository catalogue... pfSense-core repository is up to date. Updating pfSense repository catalogue... pfSense repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: aquantia-atlantic-kmod: 0.0.5_1 [unknown-repository] Number of packages to be installed: 1 Proceed with this action? [y/N]: y [1/1] Installing aquantia-atlantic-kmod-0.0.5_1... Extracting aquantia-atlantic-kmod-0.0.5_1: 100% [2.6.0-RELEASE][admin@cedev-3.stevew.lan]/root: kldload if_atlantic.ko [2.6.0-RELEASE][admin@cedev-3.stevew.lan]/root: kldstat Id Refs Address Size Name 1 12 0xffffffff80200000 3aed878 kernel 2 1 0xffffffff83f19000 1000 cpuctl.ko 3 1 0xffffffff83f1a000 2698 intpm.ko 4 1 0xffffffff83f1d000 b40 smbus.ko 5 1 0xffffffff83f1e000 9fa0 if_atlantic.ko
However that won't help you if you're still running the same unsupported NIC:
https://forum.netgate.com/post/1093887Steve
-
@stephenw10 said in Please explain in detain a "manual kldload" ?:
Like this:
[2.6.0-RELEASE][admin@cedev-3.stevew.lan]/root: fetch http://pkg.freebsd.org/FreeBSD:12:amd64/quarterly/All/aquantia-atlantic-kmod-0.0.5_1.pkg aquantia-atlantic-kmod-0.0.5_1.pkg 22 kB 2116 kBps 00s [2.6.0-RELEASE][admin@cedev-3.stevew.lan]/root: pkg install aquantia-atlantic-kmod-0.0.5_1.pkg Updating pfSense-core repository catalogue... pfSense-core repository is up to date. Updating pfSense repository catalogue... pfSense repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: aquantia-atlantic-kmod: 0.0.5_1 [unknown-repository] Number of packages to be installed: 1 Proceed with this action? [y/N]: y [1/1] Installing aquantia-atlantic-kmod-0.0.5_1... Extracting aquantia-atlantic-kmod-0.0.5_1: 100% [2.6.0-RELEASE][admin@cedev-3.stevew.lan]/root: kldload if_atlantic.ko [2.6.0-RELEASE][admin@cedev-3.stevew.lan]/root: kldstat Id Refs Address Size Name 1 12 0xffffffff80200000 3aed878 kernel 2 1 0xffffffff83f19000 1000 cpuctl.ko 3 1 0xffffffff83f1a000 2698 intpm.ko 4 1 0xffffffff83f1d000 b40 smbus.ko 5 1 0xffffffff83f1e000 9fa0 if_atlantic.ko
However that won't help you if you're still running the same unsupported NIC:
https://forum.netgate.com/post/1093887Steve
That other thread was mine. When I look at the readme, it shows the one I need listed.
I agree, it's not in the distribution, it's in the Marvell driver download. I need to get that driver installed in a locally updated manner. The public route is a dead end for the time being, but I need this machine up, so I am looking to try this the hard way if anyone can give me some detail on what to do.
Many thanks, Steve.
-
This is not an easy task. There is no FreeBSD driver that includes support for that hardware.
So to make that work in pfSense you need to add that hardware ID to the driver then compile it in FreeBSD and move it to pfSense.
If that hardware device has any different requirements to the other chips you will also need to add code to support that in the driver.Swapping it out for a supported NIC will be waaaaaay easier!
Steve