Is there an easy way to update your own kernel?

Valeri Galtsev galtsev at kicp.uchicago.edu
Sat Feb 6 23:03:16 UTC 2021



> On Feb 6, 2021, at 4:57 PM, Frank Leonhardt <freebsd-doc at fjl.co.uk> wrote:
> 
> I suspect there's no answer to this, but I'll ask it anyway.
> 
> I have some tweaked drivers on my server cluster. I'd like to update FreeBSD, but obviously keep my driver tweaks. I've found two ways of doing this:
> 
> 1) Upgrade from source, copying my own driver source over the "standard" versions.
> 
> 2) To save building everything on every machine, do a source upgrade and then copy my custom kernel into /boot (using sftp) after a binary upgrade.
> 

The third way (which I would use) is composition of the two: build all the way you need on one machine; distribute result of build to all, and on each of machines do “make install[kernel]”. Just a thought.

Valeri

> I *could* split the drivers in question out of the kernel and load them dynamically, but, AFAIK, there's no way to replace an in-built kernel driver by loading an external module - you have to recompile the kernel without it or it's ignored. I'm certain this used to be the case anyway.
> 
> Has anyone got a better way than either of the above?
> 
> Thanks, Frank.
> 
> 
> 
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"



More information about the freebsd-questions mailing list