rebuilding from latest and kernel versions
vm.finance2 at gmail.com
Tue Sep 17 10:47:52 UTC 2019
I checked /usr/src/Makefile and it seems need to do:
But I'm unable to find what to set for HISTORICAL_MAKE_WORLD - there is no
description in README (or any other file). I would like to build a new
kernel and have an option to load it during boot time.
Thanks for any pointers.
On Mon, Sep 16, 2019 at 5:39 AM Polytropon <freebsd at edvax.de> wrote:
> On Mon, 16 Sep 2019 02:25:18 -0700, vm finance wrote:
> > Hello,
> > I downloaded pre-built VM image of FreeBSD 12.0 STABLE from osboxes.org
> > using that vmdk, I was able to get FreeBSD running under VMPlayer.
> > Kernel version (uname -a):
> > FreeBSD osboxes 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC amd64
> > I wanted to try latest TCP code so downloaded latest codebase on this VM:
> > *svn co svn://svn.freebsd.org/base/head /usr/src*
> > built a new kernel:
> > cd /usr/src;
> > make buildworld buildkernel
> > make installkernel
> > reboot
> Have a look at the comment header of /usr/src/Makefile where you
> will find the correct order of commands to do a successful source-based
> > After reboot, kernel version is still the same, except its has
> > FreeBSD 12.0-RELEASE FreeBSD 12.0-RELEASE r341666 GENERIC amd64.
> > Questions:
> > 1. kernel version (r341666) hasn't changed after building latest...is
> > that expected?
> That is at least possible. The kernel version returned of "uname -a"
> will only change when the _kernel_ changed, not when something in the
> OS has been patched. Use "freebsd-version" to find out more. The
> information in "uname -a" should contain the version timestamp and
> your kernel configuration filename if you did build yourself.
> > 2. Is it possible to label it differently and allow bootloader to pick
> > latest vs 12.0 published kernel?
> Yes, you can specify a custom kernel in /boot/loader.conf:
> kernel="kernel.prev" # where you saved your previous kernel
> bootfile="kernel" # should work -> /boot/kernel.prev/kernel
> kernel_options="" # if needed
> See "man 5 loader.conf" and /boot/defaults/loader.conf for details.
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
More information about the freebsd-questions