compiling kernel in freebsd

From WebHostingNeeds.com
Revision as of 13:33, 22 May 2008 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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#