making world and kernel

making world and kernel

Post by haloflightleade » Sun, 09 Mar 2003 19:38:11



What are the steps when going through make buildworld and make buildkernel?

I have a vanilla 4.7 installation.  I cvsup'ed my ports and src, then I did:

#make buildworld

It went on for a while, and then...  I did a:

#make installworld

After that, it would boot only into single user mode.  Should I have gone
through make buildkernel first, then make install kernel, then go through
the buildworld and installworld process?

Thanks.

 
 
 

making world and kernel

Post by Kris Kennawa » Sun, 09 Mar 2003 21:04:21



> What are the steps when going through make buildworld and make buildkernel?

Read the handbook.

Kris

 
 
 

making world and kernel

Post by David Vidal RodrĂ­gue » Sun, 09 Mar 2003 21:17:45



> What are the steps when going through make buildworld and make buildkernel?

> I have a vanilla 4.7 installation.  I cvsup'ed my ports and src, then I did:

> #make buildworld

> It went on for a while, and then...  I did a:

> #make installworld

Have you read the handbook? You can learn there what the exact steps are
to perform such an important task like upgrading your base system. Now
what you probably have is a "new world" with an old kernel, which has
probably lead to an unusable system. Because you have done only two of
the FOUR* steps (I count 14 subsections in the *chapter* dedicated to
upgrading the world).

Don't get me wrong if my tone is somewhat rude, but there are so many
people (many coming from Linux) who ask questions answered in the
handbook, that they make me think they haven't read it at all. When you
buy a new camera, you certainly read the instructions, then why won't
one read the instructions for his/her new operating system?

I have read it and never had a serious problem, and that includes some
-RELEASE and -STABLE switches, and a major release switch (4->5).

David.

 
 
 

making world and kernel

Post by Erik Nygre » Mon, 10 Mar 2003 00:12:11



> What are the steps when going through make buildworld and make buildkernel?

> I have a vanilla 4.7 installation.  I cvsup'ed my ports and src, then I did:

> #make buildworld

> It went on for a while, and then...  I did a:

> #make installworld

> After that, it would boot only into single user mode.  Should I have gone
> through make buildkernel first, then make install kernel, then go through
> the buildworld and installworld process?

> Thanks.

As others already told you, the handbook is a very good tool, but right
now, that might be of little help to you.
Please tell us what version you used to have, and what version your source
are (or if you don't know the version of your source, include your
cvsup-file, and we will be able to see what it was you fetched).
There ARE of course solutions to almost anything you might have done.

--
Erik Nygren
e r i k { a t } s w i p { d o t } n e t
Linux - If you hate Microsoft, FreeBSD - If you love Unix

 
 
 

making world and kernel

Post by haloflightleade » Mon, 10 Mar 2003 00:31:51


I read the handbook after the fact...  if the order in which the handbook is
an indicator of how to proceed, then it goes something like this...

make buildworld
make buildkernel

drop to single user

make installkernel
make installworld

Am I getting this wrong?


Quote:> What are the steps when going through make buildworld and make
buildkernel?

> I have a vanilla 4.7 installation.  I cvsup'ed my ports and src, then I
did:

> #make buildworld

> It went on for a while, and then...  I did a:

> #make installworld

> After that, it would boot only into single user mode.  Should I have gone
> through make buildkernel first, then make install kernel, then go through
> the buildworld and installworld process?

> Thanks.

 
 
 

making world and kernel

Post by ta.. » Mon, 10 Mar 2003 00:55:25


: I read the handbook after the fact...  if the order in which the handbook is
: an indicator of how to proceed, then it goes something like this...

: make buildworld
: make buildkernel

: drop to single user

: make installkernel
: make installworld

: Am I getting this wrong?

:
No it is not correct. One more proof that the handbook is confusing
in this issue. You missed the paragraph asking to reboot before
make installworld and after make installkernel.

--

Michel TALON

 
 
 

making world and kernel

Post by haloflightleade » Mon, 10 Mar 2003 01:09:25


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thanks, Michel,

I am rebuilding the box from the ground up.  Restarting as if I just
got a blank box.

I'm thinking of installing it on my other laptop.  Thoughts?



> : I read the handbook after the fact...  if the order in which the
> handbook is : an indicator of how to proceed, then it goes
> something like this...

> : make buildworld
> : make buildkernel

> : drop to single user

> : make installkernel
> : make installworld

> : Am I getting this wrong?

> :
> No it is not correct. One more proof that the handbook is confusing
> in this issue. You missed the paragraph asking to reboot before
> make installworld and after make installkernel.

> --

> Michel TALON

-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>

iQA/AwUBPmoVABPkRaPd1GwMEQIddwCcCzWUxPfdWHyVnHY27UxqZF3dn8sAoNeF
1O3Shi77SE0wZBRd4y98IIH5
=mSJG
-----END PGP SIGNATURE-----

 
 
 

making world and kernel

Post by casav.. » Mon, 10 Mar 2003 01:21:32



> : I read the handbook after the fact...  if the order in which the handbook is
> : an indicator of how to proceed, then it goes something like this...

> : make buildworld
> : make buildkernel

> : drop to single user

> : make installkernel
> : make installworld

> : Am I getting this wrong?

here's what I do..

cd /usr/src
make buildworld
make buildkernel KERNCONF=MYKERNEL
make installkernel KERNCONF=MYKERNEL
shutdown now
cd /usr/src
make installworld
mergemaster
reboot

then I clean out the cruft..

cd /usr/src
make cleandir && make cleandir
cd /usr
rm -r obj/

works fine everytime. :-)

 
 
 

making world and kernel

Post by Steven G. Kar » Mon, 10 Mar 2003 01:38:59





>: I read the handbook after the fact...  if the order in which the handbook is
>: an indicator of how to proceed, then it goes something like this...

>: make buildworld
>: make buildkernel

>: drop to single user

>: make installkernel
>: make installworld

>: Am I getting this wrong?

>:
> No it is not correct. One more proof that the handbook is confusing
> in this issue. You missed the paragraph asking to reboot before
> make installworld and after make installkernel.

The source for the Handbook is available.  You
can rewrite that section and submit a patch.

--
Steve

 
 
 

making world and kernel

Post by haloflightleade » Mon, 10 Mar 2003 03:01:58


can make buildkernel and make buildworld done concurrently on the same box?
Will there be any ill effects?


Quote:> What are the steps when going through make buildworld and make
buildkernel?

> I have a vanilla 4.7 installation.  I cvsup'ed my ports and src, then I
did:

> #make buildworld

> It went on for a while, and then...  I did a:

> #make installworld

> After that, it would boot only into single user mode.  Should I have gone
> through make buildkernel first, then make install kernel, then go through
> the buildworld and installworld process?

> Thanks.

 
 
 

making world and kernel

Post by Steven G. Kar » Mon, 10 Mar 2003 03:28:11




Quote:> can make buildkernel and make buildworld done concurrently on the same box?
> Will there be any ill effects?

The kernel built during buildkernel is built with the
binaries created during buildworld.  Trying to run
buildkernel and buildworld concurrently leads to some
potential races.  The toolchain of the current system
builds a "temporary" toolchain, which is used to rebuild
the system.

--
Steve

 
 
 

making world and kernel

Post by Eric P. McC » Mon, 10 Mar 2003 03:33:05



> can make buildkernel and make buildworld done concurrently on the same box?
> Will there be any ill effects?

It _should_ be possible, but considering there's zero benefit and the
process is more than twice as slow, I don't see why you'd want to do
it.

--

"Last I checked, it wasn't the power cord for the Clue Generator that
was sticking up your ass." - John Novak, rasfwrj

 
 
 

making world and kernel

Post by haloflightleade » Mon, 10 Mar 2003 03:39:40


The question is it a safe practice to compile world and kernel concurrently.
Not why anyone would do it.

On my machine...  quad PIII 800MHz with 8GB of RAM and (fiber channel
connection to the SAN) 1.2TB of space, I don't think I'll notice it too
much.  So it might be slow on your machine, but not necessarily on everyone
else's.




> > can make buildkernel and make buildworld done concurrently on the same
box?
> > Will there be any ill effects?

> It _should_ be possible, but considering there's zero benefit and the
> process is more than twice as slow, I don't see why you'd want to do
> it.

> --

> "Last I checked, it wasn't the power cord for the Clue Generator that
> was sticking up your ass." - John Novak, rasfwrj

 
 
 

making world and kernel

Post by Eric P. McC » Mon, 10 Mar 2003 03:47:23



> The question is it a safe practice to compile world and kernel
> concurrently.

I answered that question.

Quote:> Not why anyone would do it.

And I asked this because there may be a better way to accomplish your
goal.  For example, the `-jN' option to make.

--

"Last I checked, it wasn't the power cord for the Clue Generator that
was sticking up your ass." - John Novak, rasfwrj

 
 
 

making world and kernel

Post by ta.. » Mon, 10 Mar 2003 05:01:15


: The question is it a safe practice to compile world and kernel concurrently.
: Not why anyone would do it.

: On my machine...  quad PIII 800MHz with 8GB of RAM and (fiber channel
: connection to the SAN) 1.2TB of space, I don't think I'll notice it too
: much.  So it might be slow on your machine, but not necessarily on everyone
: else's.

Anyways i think it is not safe. The new kernel needs to be built with the new
tools under /usr/obj, for example the new config and perhaps a new compiler.
This is the whole pupose of "building in a sandbox" as is done in FreeBSD.

--

Michel TALON