*BSD News Article 40337


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mira.net.au!otis.apana.org.au!serval.net.wsu.edu!netnews.nwnet.net!oracle.pnl.gov!osi-east2.es.net!lll-winken.llnl.gov!uwm.edu!news.alpha.net!solaris.cc.vt.edu!swiss.ans.net!gatech!bloom-beacon.mit.edu!news.kei.com!ub!csn!qwerty.fsl.noaa.gov!woody.fsl.noaa.gov!kelly
From: kelly@woody.fsl.noaa.gov (Sean Kelly)
Subject: Re: Rebuilding the Kernel in FreeBSD ... how?
Message-ID: <1995Jan3.211436.6991@fsl.noaa.gov>
Sender: news@fsl.noaa.gov (USENET News System)
Organization: Forecast Systems Laboratory
References: <D1tJ4w.5K2@ecf.toronto.edu>
Date: Tue, 3 Jan 1995 21:14:36 GMT
Lines: 33

In article <D1tJ4w.5K2@ecf.toronto.edu>,
FICNAR  FRANK G <ficnar@ecf.toronto.edu> asks:
  [ How to config, compile, and install the kernel? ]

First, don't modify the LINT or the GENERIC* files.  Use a copy
instead:

	cd /usr/src/sys/i386/conf
	cp GENERIC MYKERNEL

And edit MYKERNEL, removing unnecessary lines, pulling in lines you
need from LINT, and customizing everything.  Then, type

	config MYKERNEL
	cd ../../compile/MYKERNEL
	make depend
	make
	make install

The last step---``make install''---does the equivalent of ``mv /kernel
/kernel.old; copy ./kernel /''.  You can then reboot, and you'll be
using the new kernel.

If the new kernel doesn't work, boot with the old kernel:

	boot hd(0,a)/kernel.old

and edit your MYKERNEL file again until it works.

Oh, and customize these instructions for your hard disk, favorite
editor, aliases, environment, moon phase, etc.

--k