Tutorial Melayu

[Ubuntu] Kompil kernel menggunakan git dari 3.3-rc4 ke 3.3-rc5

Introduction

user

Fairuz

System Engineer (Texas Instruments France), Masters in Electronics , Embedded System Engineering,


LATEST POSTS

Nota: git alias yang biasa digunakan 05th December, 2013

Nota: Android .gitignore 23rd February, 2013

Ubuntu

[Ubuntu] Kompil kernel menggunakan git dari 3.3-rc4 ke 3.3-rc5

Posted on .

Untuk artikel ini, kita akan mengkompil kernel mainline 3.3-rc5 dari Linus dan saya beranggapan yang anda sudah pun mengkompil kernel 3.3-rc4 (3.3-rc4).

1) Masuk pada direktori kernel anda.

cd linux

2) Update kernel tree anda

git pull
remote: Counting objects: 1755, done.
remote: Compressing objects: 100% (462/462), done.
remote: Total 1229 (delta 941), reused 1023 (delta 759)
Receiving objects: 100% (1229/1229), 490.32 KiB | 275 KiB/s, done.
Resolving deltas: 100% (941/941), completed with 288 local objects.
From git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
   b01543d..3c761ea  master     -> origin/master
From git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux
 * [new tag]         v3.3-rc5   -> v3.3-rc5
Updating b01543d..3c761ea
Fast-forward

3) Langkah ini untuk mengemas kini fail konfigurasi kernel.

yes '' | make oldconfig

4) [tidak wajib] Anda kemudian boleh menukar konfigurasi kernel ini dengan menggunakan arahan di bawah.

make menuconfig

5) Membersihkan direktori kernel

make-kpkg clean

6) Proses kompilasi kernel. Bergantung kepada jumlah core processor anda, ia akan mengambil masa yang berbeza.

CONCURRENCY_LEVEL=`getconf _NPROCESSORS_ONLN` fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers

7)

cd ..

8 ) Instalasi kernel

sudo dpkg -i linux-image-3.3.0-rc5-custom-fairuz_3.3.0-rc5-custom-fairuz-10.00.Custom_i386.deb
sudo dpkg -i linux-headers-3.3.0-rc5-custom-fairuz_3.3.0-rc5-custom-fairuz-10.00.Custom_i386.deb
fairuz@themachine:~/build$ sudo dpkg -i linux-image-3.3.0-rc5-custom-fairuz_3.3.0-rc5-custom-fairuz-10.00.Custom_i386.deb
[sudo] password for fairuz: 
Selecting previously deselected package linux-image-3.3.0-rc5-custom-fairuz.
(Reading database ... 352714 files and directories currently installed.)
Unpacking linux-image-3.3.0-rc5-custom-fairuz (from linux-image-3.3.0-rc5-custom-fairuz_3.3.0-rc5-custom-fairuz-10.00.Custom_i386.deb) ...
Examining /etc/kernel/preinst.d/
Done.
Setting up linux-image-3.3.0-rc5-custom-fairuz (3.3.0-rc5-custom-fairuz-10.00.Custom) ...
Running depmod.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/dkms 3.3.0-rc5-custom-fairuz /boot/vmlinuz-3.3.0-rc5-custom-fairuz
run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.3.0-rc5-custom-fairuz /boot/vmlinuz-3.3.0-rc5-custom-fairuz
update-initramfs: Generating /boot/initrd.img-3.3.0-rc5-custom-fairuz
run-parts: executing /etc/kernel/postinst.d/pm-utils 3.3.0-rc5-custom-fairuz /boot/vmlinuz-3.3.0-rc5-custom-fairuz
run-parts: executing /etc/kernel/postinst.d/update-notifier 3.3.0-rc5-custom-fairuz /boot/vmlinuz-3.3.0-rc5-custom-fairuz
run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.3.0-rc5-custom-fairuz /boot/vmlinuz-3.3.0-rc5-custom-fairuz
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.3.0-rc5-custom-fairuz
Found initrd image: /boot/initrd.img-3.3.0-rc5-custom-fairuz
Found linux image: /boot/vmlinuz-3.3.0-rc4-custom-fairuz+
Found initrd image: /boot/initrd.img-3.3.0-rc4-custom-fairuz+
Found linux image: /boot/vmlinuz-3.3.0-rc3-custom+
Found initrd image: /boot/initrd.img-3.3.0-rc3-custom+
Found linux image: /boot/vmlinuz-3.3.0-rc2-custom
Found initrd image: /boot/initrd.img-3.3.0-rc2-custom
Found linux image: /boot/vmlinuz-3.0.0-16-generic-pae
Found initrd image: /boot/initrd.img-3.0.0-16-generic-pae
Found linux image: /boot/vmlinuz-3.0.0-16-generic
Found initrd image: /boot/initrd.img-3.0.0-16-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Windows 7 (loader) on /dev/sda1
Found Windows 7 (loader) on /dev/sdc1
done
fairuz@themachine:~/build$ sudo dpkg -i linux-headers-3.3.0-rc5-custom-fairuz_3.3.0-rc5-custom-fairuz-10.00.Custom_i386.deb
Selecting previously deselected package linux-headers-3.3.0-rc5-custom-fairuz.
(Reading database ... 356928 files and directories currently installed.)
Unpacking linux-headers-3.3.0-rc5-custom-fairuz (from linux-headers-3.3.0-rc5-custom-fairuz_3.3.0-rc5-custom-fairuz-10.00.Custom_i386.deb) ...
Setting up linux-headers-3.3.0-rc5-custom-fairuz (3.3.0-rc5-custom-fairuz-10.00.Custom) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.3.0-rc5-custom-fairuz /boot/vmlinuz-3.3.0-rc5-custom-fairuz

9) Reboot.

sudo reboot

Hasilnya:

fairuz@themachine:~/build$ uname -a
Linux themachine 3.3.0-rc5-custom-fairuz #2 SMP Sun Feb 26 21:48:18 CET 2012 i686 i686 i386 GNU/Linux
profile

Fairuz

http://www.tutorialmelayu.com

System Engineer (Texas Instruments France), Masters in Electronics , Embedded System Engineering,

There are no comments.

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

View Comments (0) ...
Navigation