Building new kernel help

Darryl Hoar darryl at osborne-ind.com
Fri Mar 12 07:19:25 PST 2004


I was following the handbook (/usr/share/doc).
There are two methods in 5.1-release of building
a kernel.

Method 1.  
    The /usr/sbin/config MYKERNEL
    cd ../compile/MYKERNEL
    make depend
    make
    make install

Method 2.  
    cd /usr/src
    make buildkernel KERNCONF=MYKERNEL
    make installkernel KERNCONF=MYKERNEL

the handbook recommended method 1 if you had not
cvsup.  So, I did method 1.

The thing that's throwing me is in 5.1-release, it
brings up a character menu of choices when booting
(complete with ascii art of the mascot).  What option
do I choose so I can do:
boot kernel.old ?

thanks,
Darrl

> -----Original Message-----
> From: Robert Downes [mailto:nullentropy at lineone.net]
> Sent: Friday, March 12, 2004 8:43 AM
> To: darryl at osborne-ind.com; FreeBSD Questions
> Subject: Re: Building new kernel help
> 
> 
> Darryl Hoar wrote:
> 
> >How do I boot the old kernel ?  I built the new one with the
> >/usr/sbin/config, make depend, make,make install sequence.
> >  
> >
> make depend?
> 
> I'm afraid I'm not familiar with that method of kernel building. 
> (However, I've never used Linux.)
> 
> I use the
> 
>     make buildkernel
>     make installkernel
> 
> method.
> 
> If your method has built a kernel in the same manner, though, 
> you might 
> be alright. When a new kernel is installed, the old one is renamed 
> kernel.old.
> 
> If this is the case, then you should still be able to boot from the 
> previous kernel. When the loader prompt appears (press Enter to skip 
> countdown, any other key to get the loader propmt... hit any key but 
> Enter), type the following:
> 
>     boot /boot/kernel.old
> 
> and if you do have the old kernel, it should boot, and 
> everything should 
> work as before. Then you should read the Handbook about 
> building kernels 
> in FreeBSD, and rebuild and install the GENERIC kernel.
> 
> -- 
> Bob
> 
> 


More information about the freebsd-questions mailing list