In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-12-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces how to compile the RHEL kernel, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to understand it.
RHEL kernel compilation steps:
1. To prepare the kernel to be compiled, the version must be more advanced than the version number currently in use. It can be downloaded from www.kernel.org/pub/RHEL/.
The kernel version number 2.6.26 used in this compilation
two。 RHEL-2.6.26.tar.gz cp / usr/src
3.tar-xzvf RHEL.2.6.26.tar.gz
4.ln-s RHEL.2.6.26 RHEL builds soft links
Pwd determines that it is in the / usr/src/RHEL directory
5.make mrproper determines that there are no. * and .o files in the system. If the kernel has been compiled before, the above files will be generated and the compilation will fail.
6.make config traditional text kernel compilation mode, but cannot be returned after an error.
Make menuconfig text-based kernel compilation mode, error can be returned, it is recommended to use these modes.
Make xconfig kernel compilation mode based on graphics
Make oldconfig makes only minor changes to the current kernel
7.make dep determines dependencies,
8.make clean determines that there are no files in the kernel source file
9.make modules compiles kernel module
10.make modules_install installs the compiled kernel module
11.depmod-a create module link
twelve。 Make a new link:
Cd / usr/src/RHEL
Cp System.map / boot/System.map-2.6.26
Cp arch/i386/boot/bzImage / boot/vmlinuz
Cd / boot
New-kernel-pkg-mkinitrd-depmod-install 2.6.26
13.vi / boot/grub/menu.lst modifies the configuration file booted with grub
Vi / boot/lilo.conf modifies the configuration file booted with LILO
Cd / usr/src/RHEL/
Make install
14. Init 6 restarts the system.
Note: because it is installed in a virtual machine, it is important to pay attention to the kernel support for scsi when compiling the RHEL kernel.
Thank you for reading this article carefully. I hope the article "how to compile the RHEL Kernel" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.