compile a new kernel in RHEL 5


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users compile a new kernel in RHEL 5
# 1  
Old 02-04-2008
Data compile a new kernel in RHEL 5

Hi all,

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 Code:
http://kernel.org/pub/linux/kernel/v2.6/linux-2.6.20.6.tar.bz2
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 Code:
http://www.digitalhermit.com/linux/Kernel-Build-HOWTO.html#CONFIGURATION-2-6
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.

Pls help !!

Thanks in Adv.
Vikas
# 2  
Old 02-05-2008
mkinitrd creates new initrd file which you have to keep inside /boot directory.
Which will be use by kernel while booting.

"file not found" indicates file created by mkinitrd is not present in /boot directory.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

can i get UNIX kernel and compile it like Linux ?

I am not a newbie to Linux, i have been using Linux as my desktop for 4 years, but i am just an end user to Linux, no advanced knowledge to it. I knew that, i can download generic linux kernel and compile it by myself, but how about Unix? how can i get an Unix kernel and compile it ? or no this... (5 Replies)
Discussion started by: wong.sie.ung
5 Replies

2. Ubuntu

Kernel compile error

Hi I'm compiling a real-time kernel in linux, but after I type make bzImage things end with this: (Things going well doing CC and things).... CC arch/x86/kernel/kgdb.o CC arch/x86/kernel/vm86_32.o CC arch/x86/kernel/early_printk.o CC arch/x86/kernel/ipipe.o... (2 Replies)
Discussion started by: mdop
2 Replies

3. Red Hat

How to compile httpd using gcc in RHEL?

Hi All, I am trying to compile httpd2.2.19 in RHEL5.5 using gcc version 4.1.2. This is first time I am trying to compile httpd in RHEL. I ran configure with below option ./configure --prefix=/usr/local/apache --enable-rewrite --enable-ssl=shared... (0 Replies)
Discussion started by: kalpeer
0 Replies

4. Linux

Howto compile my own module into the kernel

Hi there, I'm currently writing a program/module which makes use of the Linux Security Modules (LSM), which provide hooks for some security . The bad thing about it is: The function to set the hook to the LSM is not exported. That means, I can't just write a loadable kernel module, but have to... (3 Replies)
Discussion started by: disaster
3 Replies

5. UNIX for Dummies Questions & Answers

Compile most recent kernel on older distro ?

Debian lenny uses the 2.6.26 kernel by default. Can I compile the most recent kernel from kernel.org and use it instead ? Will the new kernel be incompatible with other installed softwares ? (1 Reply)
Discussion started by: cyler
1 Replies

6. Slackware

Compile Leanest Slackware Kernel

My goal is to make the leanest Slackware kernel possible for my machine specifically. I'm not exactly a newbie to unix, but I'm not an expert. I tried this tutorial Chapter*18.*Building a kernel , but I would like something in more depth to really make a lean slack machine. Where should I go? (2 Replies)
Discussion started by: darkstarxor
2 Replies

7. Linux

kernel compile

Dear experts, How can compile the kernel as application mode? Thanks in advance. (2 Replies)
Discussion started by: Zaxon
2 Replies

8. Debian

compile kernel with OFED

Hello Friends, I know how to compile the kernel . But I don't know how to compile the kernel with OFED. Can any one assist me on that. Or can anyone send me the link. Thank you. (0 Replies)
Discussion started by: pradeepreddy
0 Replies

9. Linux

Compile new kernel in Fedora 5

Hi All, I try to compile new kernel in FC5. New kernel version - 2.6.20.21 Operating System - Fedora 5 I have followed these steps, make menuconfig make make modules make modules_install make install Then i have changed the grub.cong and reboot the system with new kernel. The... (0 Replies)
Discussion started by: viveksnv
0 Replies

10. UNIX for Dummies Questions & Answers

how to compile linux kernel on redhat

Hello, Please let me know how to compile a linux kernel on redhat. I am relatively new in this area so please be a little patient with me. Here is the file I was consulting with the following details: Compiling the Linux Kernel on Redhat 7.1 This page describes how to install... (2 Replies)
Discussion started by: bhattbonny
2 Replies
Login or Register to Ask a Question