Subject: Re: Recompiling the kernel
To: Calum Mackay <cmackay@alconemg.com>
From: Manuel Bouyer <bouyer@antioche.lip6.fr>
List: port-i386
Date: 08/13/1998 10:50:14
On Aug 13, Calum Mackay wrote
> How do I recompile the kernel to recognise new devices such as ps/2
> mouse driver, etc.
0) extract the syssrc.tgz set in '/'.
1) cd /usr/src/sys/arch/i386/conf
2) cp GENERIC MYCONFIG
3) vi MYCONFIG
here you can add/remove drivers, filesystems, or kernel compile-time
options. You may want to have a look at the man pages in section 4,
especially options(4).
4) config MYCONFIG
if config complains, goto 3)
5) cd ../compile/MYCONFIG
6) make depend && make
this will produce you a binary called 'netbsd'. It's the kernel.
If make fails, 'rm *.o' and goto 3)
7) mv /netbsd /netbsd.old #just in case ...
8) cp netbsd /
9) reboot
Hum ... any volunter to clean up/complete this and put it on a www page ? :)
--
Manuel Bouyer, LIP6, Universite Paris VI. Manuel.Bouyer@lip6.fr
--