Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Jun 2001 18:48:42 +0200
From:      Christoph Sold <so@server.i-clue.de>
To:        Rahul Siddharthan <rsidd@physics.iisc.ernet.in>
Cc:        doc@FreeBSD.ORG
Subject:   Re: Handbook: Build world / build kernel
Message-ID:  <3B3A0E6A.5963F798@i-clue.de>
References:  <20010627183044.A77365@lpt.ens.fr>

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


Rahul Siddharthan schrieb:
> 
> I find the handbook section
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html
> a bit confusing.  Suppose you have upgraded the sources.  In what
> order do you do the following?
> 
>  o  make buildworld
>  o  make installworld
>  o  make buildkernel
>  o  make installkernel
> 
> The section in question says
> 
>   Warning: If you have upgraded your sources since your last kernel
>                                                              ^^^^^^
>   build, you must use the make buildkernel method to build your kernel.
>   Otherwise, old utilities will be used to build the kernel, which will
>   probably fail. Do not use the config/make sequence to build your
>   kernel if you have updated the sources!
> 
> Should that be last *world* build?  I mean, what does the old kernel
> have to do with old utilities being used to build the new kernel?

No. It means if you CVSup'ed your source _after_ building a kernel, only
the buildkernel method uses the new binaries in /usr/obj to generate the
kernel. Other methods will build the kernel with userland binaries,
which will be out of sync with the sources after make buildworld.

> In that case, would the following sequence be correct?
>  o make buildworld
>  o make buildkernel
>  o make installkernel
>  o make installworld
>  o reboot
> 
> Basically, is it safe to do "make buildkernel" before "make
> installworld", ie with the old userland?  Or do you need to do "make
> installworld" before "make buildkernel"?  If the latter, then while
> you're doing "make buildkernel", your old kernel is living for a while
> with your new userland: is that a problem?
> 
> I'm willing to submit a patch if someone can clear my confusion...

It is unsafe to build a kernel before you build a world in your object
directory (usually /usr/obj).

HTH
-Christoph Sold

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3B3A0E6A.5963F798>