[1001] in netbsd-help mailing list archive
Re: 3c590
daemon@ATHENA.MIT.EDU (Yoav Yerushalmi)
Tue Aug 13 19:14:27 1996
To: cmh_chen@MIT.EDU
Cc: netbsd-help@MIT.EDU
In-Reply-To: Your message of "Tue, 13 Aug 1996 18:50:40 EDT."
<9608132250.AA09756@w20-575-55.MIT.EDU>
Date: Tue, 13 Aug 1996 19:10:21 EDT
From: Yoav Yerushalmi <yoav@MIT.EDU>
building a new kernel is not done in the
same way it is done for linux, but it is simple
nevertheless.
However, since you don't actually have the source
tree locally, there are a few things that need to be
done to start the procedure.
first,
attach netbsd
to find the source (it should be in
/mit/netbsd/release/netbsd-1.1/source/src
)
(do these as root:)
First, you need to make it look like the source tree
is installed on your machine, by union mounting /usr/src
on top of the source tree:
mount -t union /usr/src /mit/netbsd/release/netbsd-1.1/source/src
Next, you need to create a kernel config file. You should start with
the one that you're running (probably ATHENAADP or ATHENAOTHER).
Simply go into
/mit/netbsd/release/netbsd-1.1/source/src/sys/arch/i386/conf
and edit the appropriate file, potentially saving it with a new
name (for now, I'll call it FOOBAR). You can look at GENERIC
for a list of most options and devices.
After you've done that, you need to start compiling:
config FOOBAR
cd ../compile/FOOBAR
make depend
make
and go sleep for a while.
when it's done, you should find a file named 'netbsd' in that
directory.
Now, you should move the current kernel to make room for the new
one:
mv /netbsd /netbsd.old
and then copy the new one in:
mv ./netbsd /netbsd
sync; sync
So, theoretically, you can now reboot, BUT WAIT!
It is possible that the kernel you built sucks, and will not load.
Int his case, you need to boot with the old kernel in single-user
mode, and move the old kernel back. Should this happen,
reboot. Before the cursor starts spinning, type the following in
(as soon as you hit a char, it will wait):
/netbsd.old -s
which will boot the old kernel single-user mode. Then
fsck -p
mount -a
mv /netbsd.old /netbsd
sync; sync
reboot
and good luck.
--
------------------------------------------------------------
| Yoav Yerushalmi | My opinions are mine.. |
| M.I.T student at large | (I hope.. don't sue) |
| http://www.mit.edu/afs/sipb/user/yoav/html/homepage.html |
------------------------------------------------------------