PDA

View Full Version : hot hot kernel



15-03-2004, 10:28 AM
xin chào các bạn mình có thắc mắc về kernel không biết làm thế nào để install một kernel mới,và không biết kernel mới có tương thích ngược với kernel cũ hay không,mình đang xài redhat as 2.1 nhưng không biết làm sao để update từ kernel-2.4.9-e.3 lên 2.4.18-e.41.Một thắc mắc nữa là những file có đuôi là.src thì mình làm thế nào để compile thành file để chạy trong linux được.Với lại trong kernel có kernel-enterprise,kernel-smp,kernel-boot xin nói rõ cho mình biết chức năng của từng cái được không.
xin giúp giùm cám ơn nhiều lắm :cry:

18-03-2004, 11:16 AM
Kernel mới nhất là 2.6.4, bạn lên trang kernel.org để download về và upgrade.

Kernel mới thì có nhiều tính năng hơn kernel cũ. VD kernel 2.4.2 (trong các phiên bản Red Hat 9.0) ko hỗ trợ IPv6, muốn thử IPv6 features phải cài thêm USAGI packet hay upgrate lên kernel 2.6.


Các bước upgrade: (example)

1.Install Redhat Linux 9 (kernel 2.4.20-8SMP).

2.Download the 2.6.2 kernel from ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.2.tar.gz

3.Save the downloaded file into /usr/src directory

4.Run the following commands to make kernel menu system
tar -xzvf linux-2.6.2.tar.gz
cd linux-2.6.2
make menuconfig

5. Compile the kernel using the following commands:
make bzImage
make modules
make modules_install

6. Problems encountered
Problem 1
After step 5, try to boot the system with 2.6.2 kernel, it failed with the following error:
mount:error 19 mounting ext3
pivotroot : pivot_root (/sysroot, /sysroot/initrd) failed :2
umount /initrd/proc failed :2
Freeing unused kernel memory : 216 k freed
kernel panic : no init found. Try passing init = option to kernel.

Solution to problem 1
a. Reboot the OS with Linux kernel 2.4.2.
b. Find and edit grub.conf file,
# cat /etc/grub.conf
Title New RH linux (2.6.2)
root (hd0,0)
kernel /vmlinuz-2.6.2 ro root=LABEL=/
initrd /initrd-2.6.2.img

Replace these two yellow line with one green line as below
# vi /etc/grub.conf
Title New RH linux (2.6.2)
root (hd0,0)
kernel /vmlinuz-2.6.2

c. Reboot the OS with Linux kernel 2.6.2 and it boots successfully

Problem 2

After fixing problem 1, system boots successfully with some errors and all networks interfaces could not be activated.

Searching the boot log file (/var/log/boot.log), found the related error:

“modprobe: QM_modules: Function not implemented”

Solution to problem 2

Get module-init-tools
ftp://ftp.kernel.org/pub/linux/kernel/people/rusty/modules/module-init-tools-3.0-pre9.tar.gz

Compile and install successfully!!!

Cheers,