OPNsense Forum

English Forums => Development and Code Review => Topic started by: lucifercipher on July 09, 2015, 03:51:50 pm

Title: Custom Kernel Build
Post by: lucifercipher on July 09, 2015, 03:51:50 pm
Hey France,

I want to build a custom kernel and have it loaded by default. I tinkered around with the source and build is done but it still says OPNSense as default kernel. How do i make it to "test-kernel" from the default F1 OPNSense which shows up without secondary selection? Seondly, i want to raise the selection time limit as i might be testing 3 or 4 kernel configurations .
Title: Re: Custom Kernel Build
Post by: franco on July 10, 2015, 06:58:14 am
Hi, not sure what you mean here?

To build a new kernel according to settings in config/latest you do:

# make clean-source
# make kernel

The kernel set can be uploaded to a mirror of your choosing. opnsense-update can pick up your kernel:

# opnsense-update -kr 15.7.1_test -m https://your.mirror.com/subdir

(make sure the kernel has the name kernel-15.7.1_test-amd64.txz as the name will auto-expand using the "kernel-" prefix and "-amd64.txz" suffix (or "-i386.txz" if you build this one).