objektif:
-menambah support terhadap sesuatu perkakasan misalnya bagi membenarkan kernel mencapai failsistem ntfs

Compile

1) download kernel baru “linux2.X.X.tar.gz”

2) mv linux2.X.X.tar.gz /usr/src/

3) tar xpvfz linux2.X.X.tar.gz

4) cd linux2.X.X

5) make mrproper

6) make xconfig

6) make dep

7) make clean make bzImage

9) make modules

10) make modules_install

11) cd arch/i386/boot dan cp bzImage /boot/vmlinuz

12) edit /etc/lilo.conf

13) run lilo yang sudah di editkan /sbin/lilo

14) Reboot / shutdown -r now

Patch

1. letak patch-2.4.x.tar.bz2 kat /usr/src/

2. bzcat patch-2.4.x.tar.bz2 | patch -p0

3. make menuconfig (make xconfig pun bleh gak)

4. Y(untuk include) N(exclude) M(modular)

5. make dep

6. make clean

7. make bzImage

8. make modules

9. cd /lib/modules/

10. delete folder yg ada nama kernel yg lama (folder tu sebenarnya modules yg telah dicompile dan bersedia utk digunakan). kalau tak delete pun tak mengapa, but then make sure backup it first …. (utk keselamatan)…

11. cd /usr/src/linux

12. make modules_install

13. cp /usr/src/linux/arch/i386/boot/bzImage /vmlinuz-new

14. cp /usr/src/linux/System.map /boot/System.map

15. edit /etc/lilo.conf

16. run lilo(jika guna grub, edit je grub)

17. reboot kernel baru dan lihat sekiranya ada error

Kenapa nak compile kernel?

1) Latest supported hardware
– contoh cam nakkan USB support, winmodem support, TV Tuner support, SMP support… dll
2) Cutting edge features
– contoh new Virtual Memory Management (VM), more networking features, iptables, dll…
3) Closing kernel vulnerabilities
– sebarang masalah kernel yg boleh ujudkan sistem vulnerabilitis perlu dibetulkan…

More disscussion? please refer here http://www.ittutor.net/forums/index.php?showtopic=5796

By admin

Leave a Reply

Your email address will not be published. Required fields are marked *