LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-19-2004, 12:21 PM   #1
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Rep: Reputation: 15
first kernel compile


Hey everyone, well I have been using linux for a little more than a year now and the other day I decided to compile my first kernel (2.6). I chose to do this on my newly installed gentoo machine. I have done most of the configuring, although I am sure I left out support for something I need ha ha. However, I am still a little bit confused on the symlinks for the kernel and that stuff. I use grub and am a little confused on how I can install the new kernel, but make it so that if something is wrong grub can boot into the old 2.4 kernel. If anyone has any suggestions or can shed some light on how the symlinks work and what I need to do to get both kernels bootable it would be appreciated. Thanks
 
Old 03-19-2004, 12:47 PM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Give each kernel image a different name, and add an entry to grub for the second kernel. How are you going to go about compiling?

Last edited by aaa; 03-19-2004 at 01:12 PM.
 
Old 03-19-2004, 01:00 PM   #3
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Original Poster
Rep: Reputation: 15
Well, I have yet to compile because I want to make sure I understand everything that I am doing. I was using a FAQ from kernelnewbies.org. I have done make menuconfig and did all of that. I was planning on doing the make bzimage next, then installing the modules. I guess after that is kinda where I am lost on what to do. Here is a list of the things I have done thus far:

put 2.6 source into /usr/src and untarred, etc.
then cd in to 2.6 dir and make menuconfig

Is this all right so far?? Thanks for the help
 
Old 03-19-2004, 01:10 PM   #4
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
When you get to the step of copying the kernel image file and the system.map, make sure you don't overwrite your old stuff. Give the new stuff a different name.

Did you look at these?
http://www.linuxquestions.org/questi...threadid=91503
For 2.6:
http://www.linuxquestions.org/questi...hreadid=127095
 
Old 03-19-2004, 01:20 PM   #5
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Original Poster
Rep: Reputation: 15
I think I saw the 2.6 earlier, but I will look at it in more detail in a little bit. I have to go right now, but I will post later with some updates. Thanks again
 
Old 03-19-2004, 03:56 PM   #6
stealth_banana
Member
 
Registered: Mar 2004
Location: Scotland
Distribution: Debian Sid / Kubuntu
Posts: 170

Rep: Reputation: 30
Read the changes.txt in the documentation folder and make sure everything is at least what it requires. Note also that these are the minimum, for extra stuff like sound, you may have to update ALSA if migrating to 2.6.x

Also make sure you have module-init-tools installed for the version of depmod!!!
 
Old 03-20-2004, 12:22 PM   #7
durden2.0
Member
 
Registered: May 2003
Distribution: redhat 9.0
Posts: 113

Original Poster
Rep: Reputation: 15
I have one more question. How do I make the correct symbolic links, etc so that I can configure grub to have both the 2.4 and 2.6 kernel available to boot from? I know there should be an easy way to do this in grub.conf, but I have no clue what to do. Any suggestions?
 
Old 03-22-2004, 12:14 PM   #8
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 47
Why do you need symbolic links? You can specify several kernels for grub without them:
#kernel 1 (it may look slighlty different in your file) <<<
title Kernel 1
kernel (hd0,0)/boot/vmlinuz root=/dev/hda1
initrd (hd0,0)/boot/initrd.img
#end kernel 1 <<<
#kernel 2 <<<
title Kernel 2
kernel (hd0,0)/boot/vmlinuz2 root=/dev/hda1
initrd (hd0,0)/boot/initrd2.img
#end kernel 2 <<<

As you can see, just by adding a paragraph to your /etc/grub.conf, you can add another kernel to your boot menu.
Symbolic links are links to other files. You make them with 'ln -s [file] [newlink]'
 
  


Reply



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 02: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 09:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:47 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
Open Source Consulting | Domain Registration