Date: Wed, 19 Jul 2000 22:03:08 -0700 From: "Dan O'Connor" <dan@mostgraveconcern.com> To: "freebsd-questions" <freebsd-questions@freebsd.org> Subject: 'make buildkernel' revisited (uh oh!) Message-ID: <02ad01bff207$cbfe5980$0200000a@danco>
next in thread | raw e-mail | index | archive | help
Without attempting to spawn another mega-discussion, I have a (hopefully)
easy question:
First, it appears that the concensus of the last discussion was that the
*normal* kernel build method (config/make depend/make...) can be used with
much success, unless you cross a source boundary which breaks it (and which
should be indicated in /usr/src/UPDATING, as in the 20000706 and 20000501
entries). In such instances the 'make buildkernel installkernel' method must
be used.
In the procedures below (these are simplified outlines, and not all steps
are shown...), Proc 1 is the 3.x-4.x upgrade and Proc 2 is the *normal* make
world procedure.
My question is: When using buildkernel in a make world, should the kernel be
built before installworld (Proc 3) or can buildkernel be done *after*
installworld (Proc 4)?
Procedure 1: Outline of 3.x - 4.x upgrade:
make buildworld
make install in cd /usr/src/sys/modules
make install in cd /usr/src/sbin/mknod
make buildkernel installkernel KERNEL=YOURKERNEL
reboot to single user mode
make installworld
merge /etc
reboot
Procedure 2: Outline of *normal* make world:
make buildworld
drop to single user mode
make installworld
merge /etc
/usr/sbin/config YOURKERNEL
make depend && make && make install
reboot
Procedure 3: Outline of buildkernel *before* installworld:
make buildworld
make buildkernel installkernel KERNEL=YOURKERNEL
drop to single user mode
make installworld
merge /etc
reboot
Procedure 4: Outline of buildkernel *after* installworld:
make buildworld
drop to single user mode
make installworld
merge /etc
make buildkernel installkernel KERNEL=YOURKERNEL
reboot
Any clarification is welcome!
TIA,
--Dan
--
Dan O'Connor
On Matters of Most Grave Concern
http://www.mostgraveconcern.com
FreeBSD Cheat Sheets
http://www.mostgraveconcern.com/freebsd/
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02ad01bff207$cbfe5980$0200000a>
