LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-06-2003, 12:22 PM   #1
exodus98
LQ Newbie
 
Registered: Nov 2003
Location: Puerto Rico
Distribution: Red Hat 9
Posts: 3

Rep: Reputation: 0
Question Kernel Compile


I just recently installed Red Hat 9 and I decided to compile my own Kernel. I issued the commands
make xconfig
make dep
make clean
make bzImage
And then I passed the bzImage file to the /boot directory.
I edited grub.conf to boot that kernel, but it can never get passed the init
process call, because it says it can't find it. What do I have to add to grub.conf so it can find it?
 
Old 11-06-2003, 12:27 PM   #2
samble
LQ Newbie
 
Registered: Nov 2003
Posts: 15

Rep: Reputation: 0
You are missing few more steps after "make bzImage".

You should follow it up with

"make modules"
"make modules_install"
"make install"

Now you are ready to reboot and check if it works. You do not need to make any changes to "grub.conf".

Best of luck
 
Old 11-06-2003, 12:29 PM   #3
phekno
Member
 
Registered: May 2003
Distribution: Gentoo, Slackware
Posts: 75

Rep: Reputation: 15
You also might want to do:
/sbin/mkinitrd initrd.x.x.x.img x.x.x
where x.x.x is the kernel version

This will give you an initrd file.
 
Old 11-06-2003, 04:40 PM   #4
exodus98
LQ Newbie
 
Registered: Nov 2003
Location: Puerto Rico
Distribution: Red Hat 9
Posts: 3

Original Poster
Rep: Reputation: 0
If I do the make install, will I still be able to boot my working kernel?
 
Old 11-06-2003, 04:52 PM   #5
vasudevadas
Member
 
Registered: Jul 2003
Location: Bedford, UK
Distribution: Slackware 11.0, LFS 6.1
Posts: 519

Rep: Reputation: 30
Absolutely. It won't kill any existing kernels.

I suspect that you won't need to do mkinitd, as this should happen automatically when you make install. Did when I compiled my kernel recently on Mandrake 9.1 anyway. Good luck!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 03:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 10:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 07:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 04:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 02:40 PM


All times are GMT -5. The time now is 09:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration