Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!mel.dit.csiro.au!merlin!harbinger.cc.monash.edu.au!simtel!news.kei.com!news.mathworks.com!gatech!howland.reston.ans.net!EU.net!uunet!anshar.shadow.net!anshar.shadow.net!nobody
From: dwhite@anshar.shadow.net (Don Whiteside)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to edit & recompile the kernel????
Date: 14 Jun 1995 10:55:39 -0400
Organization: Shadow Information Services, Inc.
Lines: 38
Message-ID: <3rmt9b$eak@anshar.shadow.net>
References: <3rgde8$oif@news1.best.com> <3rjjq9$s49@bonnie.tcd-dresden.de>
NNTP-Posting-Host: anshar.shadow.net
X-Newsreader: TIN [version 1.2 PL2]
: Etienne Finet <efinet@insist.com> wrote:
: >In the FreeBSD. FAQ & 6 we talk about changing
: >the kernel. It is not explained however how
: >to change and re-compile the kernel.
: Hmm, i think section 6 explains how to rebuild a kernel. Where
: exactly do you have problems? (I don't have the FAQ text handy.)
: Basically, you need the kernel sources, you need to setup your
: own config file (e.g. by deriving it from GENERIC), to compile
: a kernel, and finally to install it and reboot.
I pulled this out of my assorted noted directory and discovered it was
written by J"org too! Heh - hope it helps.
: To rebuild a kernel, there should be a FAQ. Basically, it's
: cd /sys/i386/conf
: cp GENERIC MYFILE
: vi MYFILE # refer to LINT for the options
: config MYFILE
: cd /sys/compile/MYFILE
: make depend
: make
: mv /kernel /kernel.old
: cp kernel /kernel.new
: ln /kernel.new /kernel
: shutdown -r now 'booting new kernel'
Although I personally wouldn't ln the new kernel, I'd reboot and pick
kernel.new to boot from before I actually mde the change more permanent.....
=========================================================================
Donald Alan Whiteside MDCC Wage Slave School of Computer Science
Official Usenet Dork for the week of Jan 9-13, 1995
GCS d-- -p+(---) l u+(-) e+ m+ s !n h f g+ w+ t+(++) r- y++
"There's nothing wrong with you I can't fix with my hands..." FM's Batman
=========================================================================