September 9, 2008

Compile dan Install Kernel

Filed under: Linux

Compile dan install 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

2 Comments »

The URI to TrackBack this entry is: http://jeky466.blogsome.com/2008/09/09/compile-dan-install-kernel/trackback/

  1. weik…ganti klambi rek..

    Comment by koti — October 17, 2008 @ 4:55 pm

  2. Injeh mas ben penak di sawang ganti swasana :D

    Comment by jeky — October 30, 2008 @ 5:32 pm

RSS feed for comments on this post.

allow a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>



Anti-spam measure: please retype the above text into the box provided.