About Unix and Linux

Monday, March 20, 2006

Compiling kernel in FreeBSD

cd /usr/src/sys/i386/conf
cp GENERIC MYKERN
vi MYKERN <--- edit MYKERN file for other options. In addition change the ident option from GENERIC to something else like MYKERNEL
config MYKERN
cd ../compile/MYKERN
make cleandepend;make depend;make;make install

Apparently there is a newer way to do this
cd /usr/src
make buildkernel KERNCONF=MYKERN
make installkernel KERNCONF=MYKERN

0 Comments:

Post a Comment

<< Home