Hello!
I'm looking for a definitive answer on:
* what's the difference between
* where do some defaults I didn't set come from? I didn't use any
* what's going on in here (vanilla, unaltered, up-to-date FreeBSD 13):
So... Is
My ultimate goal is to have a fully statically linked kernel with only the modules that are necessary for the device. For a very specific embedded machine, that must have zero unused parts.
I'm looking for a definitive answer on:
* what's the difference between
device DEVICE
, nodevice DEVICE
and no line at all in kernelconfig.* where do some defaults I didn't set come from? I didn't use any
include
in kernel config, yet modules not specified or explicitly nodevice
are still built...* what's going on in here (vanilla, unaltered, up-to-date FreeBSD 13):
Code:
> uname -a
FreeBSD node-01 13.0-RELEASE-p4 FreeBSD 13.0-RELEASE-p4 #0: Tue Aug 24 07:33:27 UTC 2021 root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
> kldload aesni
kldload: can't load aesni: module already loaded or in kernel
> ls -al /boot/kernel/aesni*
-r-xr-xr-x 2 root wheel 67712 Apr 9 08:36 /boot/kernel/aesni.ko
> kldstat | grep aesni | wc -l
0
aesni
statically linked into kernel? If yes, then why there's aesni.ko
? What part of kernelconfig decides, if a module is statically linked into kernel or built as .ko?My ultimate goal is to have a fully statically linked kernel with only the modules that are necessary for the device. For a very specific embedded machine, that must have zero unused parts.