Linux - EnterpriseThis forum is for all items relating to using Linux in the Enterprise.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need some help in compiling a new kernel. I am using RHEL 5 with kernel version 2.6.18.
I have downloaded a kernel from link [HTML]http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.6.tar.bz2[/HTML]
Code:
1. cd /usr/src
2. wget -c http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2
3. tar xvfj linux-2.6.20.tar.bz2
4. cd linux-2.6.20
5. make clean && make mrproper
6. make menuconfig
7 make clean
8. make bzImage
9. make modules
10. make modules_install
11. mkinitrd /boot/initrd-2.6.20.img 2.6.20
I am following this article [HTML]http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html#CONFIGURATION-2-6[/HTML]
I have completed these steps (till 10) with no errors, BUT when I am trying the 11 th step, no new kernel img file is found.
It only has the old file i.e initrd-2.6.18.img.
Also, few parameters in the make menuconfig are bit confusing, it would be really great if someone has any ebook regarding the parameters.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
Well you been reading old information, the steps in order are;
make mrproper
make oldconfig (this will get you very close to a working kernel as supplied by Red Hat)
make menuconfig (or config or xconfig);this is where one can tweak the configuration
make
make modules_install
make install
Sorry, no ebook but one can download the 'Linux kernel in a netshell" here (direct link);
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
This is no biggie to me, I just letting you know for the future.
I asked why because in many cases one does not need to re-build or build the kernel from the src.rpm file as supplied from Red Hat. This may be of interest to you;
1. cd /usr/src
2. wget -c http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.tar.bz2
3. tar xvfj linux-2.6.20.tar.bz2
4. cd linux-2.6.20
5. make clean && make mrproper
6. make oldconfig (this will get you very close to a working kernel as supplied by Red Hat)
7. make menuconfig (or config or xconfig);this is where one can tweak the configuration
8. make
9. make modules_install
10. make install
11. mkinitrd /boot/initrd-2.6.20.img 2.6.20
12. cp .config /boot/config-2.6.20
13. cp arch/i386/boot/bzImage /boot/vmlinuz-2.6.20
14. cp System.map /boot/System.map-2.6.20
15. ln -s /boot/System.map-KERNEL_VERSION /boot/System.map
These steps worked fine for me.
I am not an expert, but this brought two kernel options for me in the GRUB menu. May be you can get an idea from this.
Well you been reading old information, the steps in order are;
make mrproper
make oldconfig (this will get you very close to a working kernel as supplied by Red Hat)
make menuconfig (or config or xconfig);this is where one can tweak the configuration
make
make modules_install
make install
Sorry, no ebook but one can download the 'Linux kernel in a netshell" here (direct link);
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.