compiling kernel in freebsd

From WebHostingNeeds.com
Jump to: navigation, search

Before kernel compilation

server1# uname -a
FreeBSD server1.hosthat.com 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8 10:21:06 UTC 2005
[email protected]:/usr/obj/usr/src/sys/GENERIC  i386
server1#


Use following command to compile kernel. HOSTHAT is just name of kernel configuration file i give, you can change it to what ever you need.

cd /usr/src/sys/i386/conf
cp GENERIC HOSTHAT
/usr/sbin/config HOSTHAT
cd ../compile/HOSTHAT
make depend
make
make install

After compilation

server1# uname -a
FreeBSD server1.hosthat.com 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Wed Jul 26 13:42:03 GMT 2006
[email protected]:/usr/src/sys/i386/compile/HOSTHAT  i386
server1#