LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2003, 11:20 AM   #1
kramk2
LQ Newbie
 
Registered: Aug 2003
Location: Lexington, KY - 40508
Distribution: Fedora Core 3
Posts: 10

Rep: Reputation: 0
Compiling and Installing Linux Kernel 2.4.18


Hello Everyone

I have Redhat 9 (linux kernel 2.4.20 I guess) installed on my pc.

I've taken a "Linux Source Code" class this semester and this involves playing with Linux Kernel, making modifications to it and compiling the modified kernel and booting it. However the kernel we are supposed to use is 2.4.18 (I have downloaded the necessary kernel files from kernel.com).

Is there a way I can compile and install this version (2.4.18) of kernel and add it up to by grub conf file so that I can boot into it without making changes to the existing kernel? Like... can I create a new partition and format it in ext2, mount it to the existing linux kernel and install 2.4.18 on it??

Does anyone have any experience in this? It would be great if someone can help me out
 
Old 09-04-2003, 11:42 AM   #2
Hooded™
LQ Newbie
 
Registered: Sep 2003
Location: Canada
Distribution: REDHAT
Posts: 2

Rep: Reputation: 0
1) MAN Pages
2) http://www.freebsd.org/doc/en_US.ISO...-building.html
 
Old 09-04-2003, 05:35 PM   #3
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Since you propose to compile a kernel version which is different from the original, the process is fairly easily. When you compile the 2.4.18 kernel, you will have 2.4.18 in it's own directory, with it's own /lib/modules. Then copy /usr/src/linux-2.4.18/vmlinux (the compressed kernel image) to the /boot directory. Rename it: something like vmlinuz-2.4.18. This is the compressed kernel image you'll boot into. DON'T NAME IT VMLINUZ!. If you do, you'll overwrite the original which is in the boot directory.
This will give you two kernels to boot into, the original and the new addition. Then, edit grub.conf (or whatever RH uses) to add the new entry to the bootloader menu (just copy-paste the one that's there and edit to give it a new name on the menu, and to have it point to vmlinuz-2.4.18).
 
Old 09-04-2003, 06:00 PM   #4
Skyline
Senior Member
 
Registered: Jun 2003
Distribution: Debian/other
Posts: 2,104

Rep: Reputation: 45
Quote:
Is there a way I can compile and install this version (2.4.18) of kernel and add it up to by grub conf file so that I can boot into it without making changes to the existing kernel? Like... can I create a new partition and format it in ext2, mount it to the existing linux kernel and install 2.4.18 on it??
You typically just extract it to a separate directory in /usr/src and then cd into that directory and then do the usual make xconfig .. make dep ; make clean ................. etc - in compiling another kernel there's no need to touch any existing kernels - you'll just end up with two kernels in your /boot directory etc.
 
Old 09-04-2003, 07:01 PM   #5
kramk2
LQ Newbie
 
Registered: Aug 2003
Location: Lexington, KY - 40508
Distribution: Fedora Core 3
Posts: 10

Original Poster
Rep: Reputation: 0
Thanx! Will try

Hi all

Thank you very much for you help. I still havent tried it. I really appeciate your help. I'll certainly let you know once I've tried it.

I also appreciate any other suggestions that you guys might have.

Thanx Again!
 
  


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
compiling installing kernel modules Wordan Linux - Software 3 11-02-2005 07:22 AM
??Compiling new Linux Kernel in DOS,and then installing and booting System whit that isilinux Linux - General 2 01-26-2005 10:28 AM
Installing (Compiling?) the new 2.6.1 kernel LilGryphMaster Linux - Newbie 9 01-31-2004 09:45 PM
Compiling and Installing Kernel under SuSE 9 bschneider Linux - Newbie 6 12-19-2003 09:46 AM
Compiling and installing a new kernel in RedHat7.2 RCarter Linux - Software 10 07-13-2002 09:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:01 AM.

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
Open Source Consulting | Domain Registration