LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-21-2004, 09:06 AM   #1
farmerdan
Member
 
Registered: Feb 2004
Location: IA-MO State Line
Distribution: Ubuntu 10.04
Posts: 59

Rep: Reputation: 15
Migrating to 2.6 as first kernel compile


I feel comfortable enough now with linux that I'm wanting to migrate to kernel 2.6.3 from 2.4.22-26mdk.

In doing the documentation research for my preparations, I discoverd DrOzz's "Newbie Guide To Compiling A Kernel!" in this forum. Following a link to more reading, I looked at an article by Klaus-Peter Schrage entitled "Migrating to Linux kernel 2.6 on recent Redhat systems." In his article Mr. Schrage says, "You shouldn't start your first kernel recompile on the occasion of migrating to 2.6.... So it is assumed that you have done a recompile of a 2.4 kernel before." He doesn't publish his thinking on this statement.

Those are my references. Here is my question.

I have never recompiled a kernel before. In doing my documentation review, I discovered that there are significantly different things one must do in compiling 2.6.xx that had to be done for 2.4.xx. If I go directly to 2.6 I'm learning how to do something from scratch and won't have to "unlearn" anything. Are there things in compiling 2.4 that I should practice and learn before jumping to 2.6? Or, since 2.6.3 just got released, is 2.6.xx the "kernel of choice" now and I can just deal with 2.4 until I get upgraded?

I would appreciate any thoughts and feedback.
 
Old 02-22-2004, 06:02 AM   #2
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Rep: Reputation: 30
I think that you reasoning is correct, there are some changes in 2.6.x, and I think that if you are learning how to do it for the first time you may as well do it the new way.

Having said that, I must say that I have never compiled a 2.6.x and so I am not very intimate with the changes that have been introduced.
 
Old 02-22-2004, 07:10 AM   #3
farmerdan
Member
 
Registered: Feb 2004
Location: IA-MO State Line
Distribution: Ubuntu 10.04
Posts: 59

Original Poster
Rep: Reputation: 15
Thanks, Vlad_M, I appreciate your feedback.

I am going to start this project next weekend and will post my results in this forum. I sure I will have lots of questions.

Thanks, again.
 
Old 02-22-2004, 08:10 AM   #4
Vlad_M
Member
 
Registered: Aug 2002
Location: Cape Town, South Africa
Distribution: Red Hat 8.0 (Home), Red Hat 8.0 (Work)
Posts: 388

Rep: Reputation: 30
Good luck, and let us know how it goes!!! I am quite busy at the mo, so I don't have time to get stuck into it, but I can't wait for a free weekend to be able to do it!!!
 
Old 02-22-2004, 11:17 AM   #5
mint567
Member
 
Registered: Nov 2003
Location: Georgia
Distribution: Slackware 10.2
Posts: 75

Rep: Reputation: 15
Compiling the newer kernels is easy. I have been using linux for a while but I am by far no guru. I think that kernel compilation is easy. Mainly you just need to have knowledge of what components are in your computer. It shouldn't be hard at all especially since you have been doing your research. Good Luck.
 
Old 02-22-2004, 11:36 AM   #6
ghostwalker
Member
 
Registered: Jun 2003
Posts: 160

Rep: Reputation: 30
For building the 2.6 kernel

Take and read the following:

http://www.linux.org.uk/~davej/docs/...loween-2.6.txt

You need to get the module-init-tools.

cp linux-2.6.2.tar.gz /usr/src
tar jfx linux-2.6.2.tar.gz
ln -sf linux-2.6.2 linux
cd linux

Use lspci -v to help select your hardware. This will be helpful for configuring the 2.6 kernel.

make mrproper
make menuconfig
make
make modules_install
make install

Then modify you lilo.conf or grub.txt

make install installs vmlinuz into the boot directory along with System.map
It creates a symbolic link to you old vmlinuz -> vmlinuz.old and System.old

All you need to do is add entry for the old vmlinuz. I use lilo.conf

This is mine....

image=/boot/vmlinuz
label=Linux2.6
read-only

** This would be you redhat config. **
image=/boot/vmlinuz.old
vga=791
append="hdc=scsi hdd=scsi apm=power-off nomce"
label=Linux2.4
read-only

If you are using lilo, issue lilo -v or modify you menu.lst for grub.

Hope this helps. The more people use 2.6 the better.
 
Old 02-22-2004, 11:50 AM   #7
natalinasmpf
Member
 
Registered: Dec 2003
Distribution: Slackware 9.1
Posts: 309

Rep: Reputation: 30
Except sometimes the decision of module vs built-in might require some thinking, for me adding frame buffer support for stuff not actually in my computer messed up the resolution. Yes, some options conflict if both are selected, etc.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel panic (Debian: migrating from 2.4 to 2.6 kernel) VertX Linux - Software 4 02-05-2005 09:32 AM
migrating redhat 8 to 2.6.10 kernel krazyjase Red Hat 4 01-19-2005 06:13 PM
Migrating to Kernel 2.6.x rosol11 Linux - Newbie 3 04-19-2004 09:39 AM
Difficulties after migrating to Kernel 2.6.3 farmerdan Linux - General 5 03-07-2004 02:37 PM
migrating to 2.6 kernel qwijibow Linux - General 4 10-21-2003 08:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:35 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