This repository is about experimenting with the FreeBSD network stack. Development is done with FreeBSD 13.5. It may work with later versions of FreeBSD.
Ensure that you have the Kernel sources at /usr/src.
$ git clone ssh://bitbucket/qnx/fbsd-netmod
$ cd fbsd-netmod/srcThe file build.sh in the src directory does the work to build everything in
the obj folder. Any arguments you give it are passed on to the make command.
-
To build the sources:
build.sh
In the
objfolder you'll find the fileshowifn.ko. -
To clean the sources
build.sh clean
I'm testing on a Raspberry Pi 4. I have sudo installed and configured. I'm
testing on the same machine that I build on to make it faster. This is however
dangerous, as a crash in the kernel can result in data loss.
$ sync
$ sudo kldload ./obj/showifn.ko
$ sudo dmesgAnd then uninstall, so it can be rebuilt and tested again.
$ sudo kldunload ./obj/showifn.ko