Kompilasi Kernel Fedora 8 (2.6.23) di patch dengan MPLS dan IPv6

1
Alhamdulillah selesai juga Tugas Akhirnya......
Sebenarnya sudah lama mau saya posting nih artikel, cuman nunda-nunda terus. Disini akan coba sharing ilmu saja, tentang kompilasi kernel atau istilahnya biasa disebut update kernel, tapi disini ditambahkan dengan patching MPLS kernel. Sebelum memulai kompilasi kita siapkan dulu kernel-kernel yang dibutuhkan seperti :
1. Vanilla kernel untuk update kernel linux (linux­2.6.26.6.tar.gz) 
2. Vanilla kernel untuk patch MPLS (mpls­linux­1.962.tar.gz) 

Sebelum melakukan kompilasi ini ada beberapa depencies kernel yang harus di install atau di lengkapi dulu, adpun beberapa kernel tersebut adalah sebagai berikut :
gcc­4,kernel­headers,glibc­headers,glibc­devel,elfutils­libs,elfutils­libelf­devel,elfutils­libelf­devel­static,elfutils­libelf,elfutils­-libelf,rpm­build,ncurses­devel,yum­utils,fakeroot,redhat­rpm­config.

Vanilla kernel adalah kernel linux yang tidak di spesifikasikan untuk distro linux tertentu artinya untuk semua jenis distro. Biasanya kernel ini berekstensi (.tar.gz) atau (.tar.bz2) sebelum mengompile vanilla kernel perlu diinstall dulu kernel depencies seperti : gcc-4, kernel-headers, glibc-headers, glibc-devel, elfutils-libs, elfutils-libelf-devel, elfutils-libelf-devel-static, elfutils-libelf, elfutils-libelf, rpm-build, ncurses-devel, yum-utils, fakeroot, redhat-rpm-config. Setelah semua depencies kernel sudah diinstall baru setelah itu lakukan kompile dan patching kernel.
1)Memindahkan kernel yang akan dikompile ke direktori /usr/src.
[root@localhost labitumm]# cp /media/kernel-MPLS/kernel /tar/linux-.6.26.6.tar.gz /usr/src
[root@localhost llabitumm]# cp /media/kernel-MPLS/kernel/tar/mpls-linux-1.962.tar.gz /usr/src
2)Ekstrak kernel
[root@localhost src]# tar -xvf linux-2.6.26.6.tar.gz
[root@localhost src]# tar -xvf mpls-linux-1.962.tar.gz
3)Pindah ke direktori linux-2.6.26.6 dan lakukan update kernel serta buatsoftlinknya.
[root@localhost src]# cd /usr/src/linux-2.6.26.6
[root@localhost linux-2.6.26.6]# make mrproper
[root@localhost linux-2.6.24.5]# cd /usr/src
[root@localhost linux-2.6.24.5]# pwd /usr/src
[root@localhost linux-2.6.24.5]# ln -s linux-2.6.26.6 linux
[root@localhost linux-2.6.24.5]# cp /usr/src/linux/.config /usr/src/linux/.config.old
[root@localhost linux-2.6.24.5]# nano /usr/src/linux/Makefile
Untuk konfigurasi Makefilenya iskan seperti berikut ini :
Untuk kernel RPM
EXTRAVERSION = - mpls
Untuk vanilla kernel
EXTRAVERSION = .1

4)Konfigurasi kernel linux dengan kernel MPLS-linux agar mendukung Ipv6 dan juga MPLS
[root@localhost linux-2.6.24.5]# patch -p1 < ../mpls-linux-1.950/patches/linux-kernel.diff
[root@localhost linux-2.6.24.5]# make menuconfig
[root@localhost linux-2.6.24.5]# make
5)Melakukan konfigurasi pada Network Options seperti berikut
Code maturity level options --->
[*] Prompt for development and/or incomplete code/drivers
Networking options --->
[*] Multi Protocol Label Switching - MPLS
For more advanced traffic mappings (in addition to Standard config):
[*] Network packet filtering (replaces ipchains)
IP: Netfilter Configuration --->
<*> IP tables support (required for filtering/masq/NAT)
[*] IPv6 Protocol – MPLS


Tampilan konfigurasi kernel linux-2.6.26.6

Kernel yang sudah di update dan di patching dengan kernel mpls-linux

Penyetingan IPv6 pada kernel yang sudah di compile

Bridge Netfilter configuration

6)Setelah selesai konfigurasi Ipv6 dengan MPLS maka melakukan compile lagi
[root@localhost linux-2.6.24.5]# make clean ; make vmlinux
[root@localhost linux-2.6.24.5]# make all ; make module_install
[root@localhost linux-2.6.24.5]# make install
7)Edit grub nano /etc/grub.conf
8)Restart sistem
[root@localhost linux-2.6.24.5]# reboot
9)Setelah log in lagi cek kernel MPLS yang sudah di konfigurasi
[root@localhost labitumm]# dmesg | grep -i MPLS
Linux version 2.6.26.6-49.fc8.mpls.1.962 (jleu@dev8-1) (gcc version 4.1.2 20070925 (Red Hat 4.1.2-33)) #1 SMP Mon Nov 17 22:10:38 CST 2008
MPLS: version 1.962
MPLS: protocol driver interface -
usb usb1: Manufacturer: Linux 2.6.26.6-49.fc8.mpls.1.962
usb usb2: Manufacturer: Linux 2.6.26.6-49.fc8.mpls.1.962
usb usb3: Manufacturer: Linux 2.6.26.6-49.fc8.mpls.1.962
usb usb4: Manufacturer: Linux 2.6.26.6-49.fc8.mpls.1.962
usb usb5: Manufacturer: Linux 2.6.26.6-49.fc8.mpls.1.962
[root@localhost labitumm]#

Di tulis oleh : lamone
Tags

Posting Komentar

1 Komentar
  1. mas,, bisa di jelaskan dari awal,,
    cara dapatkan file kernel tar.gz sma mplslinux tar.gz,,

    help mas,, :(

    BalasHapus
Posting Komentar
To Top