Build FreeBSD Kernel

Make sure kernel source is installed. If it is not installed, use ‘sysinstall’ command.
Copy kernel GENERIC configuration:

# cd /usr/src/sys/i386/conf/
# cp GENERIC KERNELNEW

Edit KERNELNEW configuration as your needed:

# ee KERNELNEW

And then, build the kernel:

# cd /usr/src
# make buildkernel KERNCONF=KERNELNEW
# make installkernel KERNCONF=KERNELNEW

Finish. Reboot PC.

To build modules, add this line into /etc/make.conf file:

MODULES_OVERRIDE=linux usb sound/pcm

In the other hand, to remove modules, add this line into /etc/make.conf file:

WITHOUT_MODULES=linux sound

Leave a Reply

Your email address will not be published. Required fields are marked *