Custom Kernel Build

Started by lucifercipher, July 09, 2015, 03:51:50 PM

Previous topic - Next topic
July 09, 2015, 03:51:50 PM Last Edit: July 09, 2015, 04:19:52 PM by lucifercipher
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 .

July 10, 2015, 06:58:14 AM #1 Last Edit: July 10, 2015, 07:03:23 AM by franco
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).