Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Sep 2003 19:27:43 -0400
From:      Jud <judmarc@fastmail.fm>
To:        Charles Howse <chowse@charter.net>, 'Nathan Kinkade' <nkinkade@fastmail.fm>, 'Mark Luxton' <markluxton@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Rebuilding the Kernel
Message-ID:  <oprvl8sh0b0cf2rk@mail.messagingengine.com>
In-Reply-To: <003601c37c8f$cfe8e4a0$04fea8c0@moe>
References:  <003601c37c8f$cfe8e4a0$04fea8c0@moe>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 16 Sep 2003 15:19:20 -0500, Charles Howse <chowse@charter.net> 
wrote:

>> > So I can get it right in my head (now there's a challenge).
>>  The correct
>> > steps for building a custom kernel is:
>> >
>> >   1) update sources
>> >   2) rm -rf /usr/obj/*
>> >   3) make buildworld
>> >   4) edit kernel config file
>> >   5) make buildkernel
>> >   6) make installkernel
>> >   7) reboot
>> >   8) make installworld
>> >   9) mergemaster
>> >
>> > Many Thanks
>> >
>> > Mark.
>>
>> I believe that's mostly it, but there are smaller steps that may be
>> important inbetween, like doing `chflags' on /usr/obj/*
>> before removing
>> the files - all this is in the manual, though.  The steps outlined
>> above are in the handbook - in that order.  Take another look at the
>> handbook and if you still have problem reply with specific issues.
>
> Here's a real good article.
> http://bsdvault.net/sections.php?op=viewarticle&artid=21

# cd /usr/obj

# chflags -R noschg *

# rm -rf *

One other step between removing the old /usr/obj and making buildworld:

# mergemaster -p

Jud



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