Compile Kernel

February 26, 2007 at 3:33 pm | In FreeBSD |

 Compile kernel biasanya dilakukan bila kita menambahkan hardware baru atau saat menginstalasi software tertentu yang membutuhkan penyesuaian pada kernel. Berikut sekilas tentang compile dan install kernel FreeBSD.

Pertama cek dulu apakah sudah ada source kernel FreeBSD nya, yaitu dalam /usr/src/sys yang berisi berbagai sub-direktori yang merupakan bagian-bagian dari kernel. Apabila source kernel-nya belum ada maka kita dapat menginstallnya terlebih dulu :

          root@bsd > /stand/sysinstall

Kemudian pilih menu “Configure” –> “Distributions” –> “src” –> “sys” . Baru kita akan diberi pilihan media instalasinya, lewat CD , FTP dan lain-lain. Pilih sesuai keinginan kita, then tunggu sampai selesai. Setelah install selesai :

root@bsd > cd /usr/src/sys/i386/conf/

backup dulu file konfigurasi kernel nya :

          root@bsd /usr/src/sys/i386/conf > cp GENERIC KERNELBARU

Kemudian Edit file konfigurasi KERNELBARU sesuai kebutuhan, Jangan lupa mengganti baris “ident” dari GENERIC menjadi KERNELBARU (sesuaikan dengan nama file konfigurasinya). Setelah itu :

root@bsd /usr/src/sys/i386/conf > config KERNELBARU

root@bsd /usr/src/sys/i386/conf > cd ../../compile/KERNELBARU
root@bsd /usr/src/sys/compile/KERNELBARU > make depend
root@bsd /usr/src/sys/compile/KERNELBARU > make
root@bsd /usr/src/sys/compile/KERNELBARU > make install

Setelah Install selesai, reboot system.
Untuk dokumentasi lebih detil nya ada di
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html dan untuk troubleshooting bisa melihat di http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-trouble.html#KERNELCONFIG-NOBOOT

 

G-net Pekalongan, May 23 2002

 

No Comments yet »

RSS feed for comments on this post.

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.