Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Sep 2019 03:47:40 -0700
From:      vm finance <vm.finance2@gmail.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: rebuilding from latest and kernel versions
Message-ID:  <CAKy-8=jQGcvQgWEVG5kfxuVv2qb3UmE8tEbWf-U_vPn7WzbZCw@mail.gmail.com>
In-Reply-To: <20190916143928.5a65a188.freebsd@edvax.de>
References:  <CAKy-8=guv8kBHxJXfzLeVwbq%2BHkYuPWDPJ6rDg_ACrkdZcFL1A@mail.gmail.com> <20190916143928.5a65a188.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

I checked /usr/src/Makefile and it seems need to do:
cd /usr/src
#Define HISTORICAL_MAKE_WORLD
make world

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@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
> and
> > 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
>
> Sidenote:
>
> 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
> update.
>
>
>
> > After reboot, kernel version is still the same, except its has
> osboxes.org:
> >
> > 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.
>
>
> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKy-8=jQGcvQgWEVG5kfxuVv2qb3UmE8tEbWf-U_vPn7WzbZCw>