Complete steps for upgrading the SUSELinux kernel-general Linux technology-Linux programming and kernel information. For more information, see the following. After SLED 10 is installed, the problem of "hot boot network failure" still exists. The reason is that the kernel version is low. Therefore, the problem is solved by upgrading to the 2.6.17 kernel. To benefit many cainiao, I would like to share my experience with you and welcome your criticism.
1. Copy the downloaded new core (such as linux-2.6.17.tar.bz2) to/usr/src, decompress it locally in/usr/src to generate a new directory linux-2.6.17;
2. # cd linux-2.6.17; Edit Makefile to find EXTRAVERSION:
EXTRAVERSION =-xhawk (name you give to the new kernel) (note the previous "-" symbol)
3. Copy a config file under/boot/to/usr/src/linux-2.6.17/(unzipping the new kernel directory) and rename it to. config.
4. # Make clean & make mrproper
5. # make xconfig
6. load the copied/usr/src/linux-2.6.17/. config;
7. in the "Processor type and features" column, select your CPU type. My CPU is Athlon64 3000 +, but I want to use a 32-bit SUSE Linux. Here I still choose Athlon64; select Preemptible Kernel (Low-Latency Desktop); Time Frequency select 1000Hz;
8. In the Networking column, remove IPv6 Protocol; save; and exit;
9. Edit. config file. Find CONFIG_BLK_DEV_RAM_SIZE and change the value to 128000;
10. Execute # export CHOST = "i686-pc-linux-gnu" on the command line"
11. # Export CFLAGS = "-march = athlon64-O2-pipe-funroll-all-loops-funit-at-a-time-fpeel-loops-ftracer-funswitch-loops-fomit- frame-pointer-fweb-msse3"
(If the CPU is the new version of Athlon64 ("Venice" or "San Diego")/Athlon64-X2 ("Manchester" or "Toledo"), plus-msse3, to support SSE3 functions;
12. # export CXXFLAGS = "$ {CFLAGS }"
13. # export MAKEOPTS = "-j6"
Note: MAKEOPTS = will set number of concurrent threads. I have 1 GB of memory, so my MAKEOPTS = "-j6". If the memory is small, select MAKEOPTS = "-j2 ".
------------------------------
* ** For other CPU parameters, see:
Http://gentoo-wiki.com/CFLAGS
Http://gentoo-wiki.com/Safe_Cflags#Intel_Processors
------------------------------
14. Start Compilation:
# Make bzImage
# Make modules
# Make modules_install
15. # make install automatically copy the new kernel to/boot and automatically modify Grub. (No mkinitrd is needed)
16. enable the new kernel (this step does not seem to work, because I forgot to do this step and still started to the new kernel ):
# Rm/boot/vmlinuz
# Rm/boot/initrd
# Ln-s vmlinuz-2.6.17-xhawk-default vmlinuz (note the name of the new kernel, check under/boot)
# Ln-s initrd-2.6.17-xhawk-default initrd
17. Restart the computer and run the # dmesg command to view the startup information. The first line is the current kernel version. Or use the command # uname-r
18. If IPv6 is removed from the kernel, you 'd better modify/etc/sysconfig/SuSEfirewall2,
Change FW_IPv6 = ""
FW_IPv6 = "no"
Then modify/etc/modprobe. conf
Change alias net-pf-10 ipv6 to alias net-pf-10 off
Add alias ipv6 off
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service