1. Skip to Menu
  2. Skip to Content
  3. Skip to Footer>
Image 1

WE Solutions / Our services

  • Previous
  • Next
  • Stop
  • Play

SAMBA/LDAP

Thin Client Server

Postfix Mail Server

Postfix Mail Server

HA Clustering

Compile Kernel

PDF Print E-mail

Written by Mr. Sontaya Photibut Saturday, 02 May 2009 15:39

การ Compile Kernel 2.6.24 และ Patch Kernel

1. Yast > Software Install > Search " ncurses, ncurses-devel, php5-ncurses"

2. cd /usr/src/
Links:
Kernel Sources ->
# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.tar.bz2

Kernel Patch ->
# wget http://www.kernel.org/pub/linux/kernel/v2.6/patch-2.6.24.3.bz2

3. Compile A Kernel 2.6.24.3
# cd /usr/src/
# tar -xjf linux-2.6.24.tar.bz2
# ln -s linux-2.6.24.tar.bz2 linux
# cd /usr/src/linux

4. Apply Patches
# bzip2 -dc /usr/src/patch-2.6.24.3.bz2 | patch -p1 --dry-run
# bzip2 -dc /usr/src/patch-2.6.24.3.bz2 | patch -p1

6. Conigure The Kernel
# cd /usr/src/linux
# make mrproper
# cp /boot/config-2.6.16.46-0.12-default ./.config
# make menuconfig

--Linux Kernel Configuration--

Load an Alternate Configuration File <Select>

Kernel 2.6.24.3

Kernel 2.6.24.3

<Ok>

General serup <Select>

Kernel 2.6.24.3

(default)Local version - append to kernel release

Kernel 2.6.24.3

<Ok> -> <Exit> -> <Yes>

Kernel 2.6.24.3

7. Build The Kernel
# cd /usr/src/linux
# make rpm

Kernel-build

8. Install The New Kernel
# cd /usr/src/packages/RPMS/i386/
# rpm -ivh kernel-2.6.24.3default.i386.rpm

9. Generating initrd
# mkinitrd

10. Configure The GRUB Boot Loader
# yast -> Systerm -> Boot Loader (Add)

Boot Loader

Boot Loader

Boot Loader

- Kernel Image คลิก Browse...

Boot Loader

- Initial RAM Disk คลิก Browse..

Boot Loader

Boot Loader

Boot Loader

Boot Loader

Boot Loader

Boot Loader

11. Reboot the system
# shutdown -r now

12. Check kernel version running
# uname -r
2.6.24.3-default

# cat /proc/version

 

เป็นอันสำเร็จครับ สำหรับ Kernel 2.6.24.3

 


Comments (1)Add Comment
0
ขอบคุณครับ
written by Kernellog, November 18, 2012
ขอบคุณที่แบ่งปั่นใ

Write comment

security code
Write the displayed characters


busy