LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-07-2006, 01:13 PM   #1
marcusshirley
Member
 
Registered: Jan 2006
Distribution: openSUSE 10
Posts: 48

Rep: Reputation: 15
Upgrading my Kernel


Hi,

I'm currently running Debian Sarge 3.1r1 with Kernel 2.4.27-2-386. This version of the kernel doesn't support some of the drivers I want to use.

Could someone please take me through the steps of upgrading my kernel to 2.6.xx? Nice and comprehensive though please - I'm quite a newbie!

Thank you very much in advance.

Marcus Shirley.


P.S. Otherwise, any webpage which could take me through the process would be much appreciated.
 
Old 02-07-2006, 01:21 PM   #2
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
It is a pretty easy process, honestly.

You download the new kernel and untar it. Put it in you /usr and the run "make xconfig"(the easy way, you could also "make config" or "make menuconfig", but it isnt as easy for gui liking people.)

The you "make && make modules_install". That will create most of what you need. Then you copy your new bzImage over to /boot and remap you lilo or grub.

As for sites with long details, there are plenty around, and plenty of walkthroughs around here too. If you want details you just have to look for kernel installation and you should find plenty of guides.
 
Old 02-07-2006, 01:33 PM   #3
esje
Member
 
Registered: Mar 2004
Location: Holland
Distribution: Debian Etch, Gentoo 2005.1/SUSE 10
Posts: 52

Rep: Reputation: 15
Maybe that's easy for someone who has done it several times before, but taking the time to search and find out what kernel modules you do and do not need is not easy for a newbie.

marcusshirley, it may also work for you to just apt-get install linux-image-2.6.whatever.architecture.youre.on
You may want to do some apt-cache searching if apt can't find it, and if you can't find it between the search results, you may want to add some extra sources to your sources.list.

If you don't know what the heck I'm talking about, try google: "apt-cache search" and "sources.list +kernel" or something. Good luck.
 
Old 02-07-2006, 01:42 PM   #4
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
When I installed Debian Sarge, just a couple of months ago, it put a 2.4 kernel and a 2.6 kernel on the system. It also set up GRUB so that I could choose between them. I've been using the 2.6 kernel since I installed Debian. Look on your system. You probably already have it. I don't remember if I had to make any particular selections in the Debian installation to include the 2.6 kernel. Maybe it is available as an apt package, or maybe if you reinstall Debian over the net it will offer you the chance to install both the 2.4 and 2.6 kernels.

Anyway, all I remember is that I had both kernels available when the installation was finished.

Last edited by stress_junkie; 02-07-2006 at 01:44 PM.
 
Old 02-07-2006, 02:44 PM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 126Reputation: 126
This article was quite useful when I first performed the upgrade: http://kerneltrap.org/node/799
 
Old 02-07-2006, 03:06 PM   #6
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
I disagree about ease of module finding. All you need is basic hardware information about your computer, and from there it is not a difficult process. So long as you are knowledgable about your own compter, you are fine. If all you know is "its a dell", sure kernel compiling could suck. But using apt or another method to get kernel installe for you can work pretty well. But it will certianly not optimize your kernel for you. In SuSE, you have the option of using YAST fora generic kernel, but honestly a fresh kernel from kernel.org always out performs the precompiled ones noticably. Though it is certainly not as easy to install.
 
Old 02-07-2006, 03:36 PM   #7
marcusshirley
Member
 
Registered: Jan 2006
Distribution: openSUSE 10
Posts: 48

Original Poster
Rep: Reputation: 15
Hi,

Thanks for all the advice. I have found that I do not have 2.6.xx available on my system so I will have to download it. I built the machine I am using so I have a good idea of the specs and versions for configuration.

I will download the kernel at work tomorrow. Is there an HTTP link I can download the latest version from? If not, what is the easiest way of downloading?

All advice is very much appreciated - I'm on a steep learning curve!

Thanks,

Marcus
 
Old 02-07-2006, 03:47 PM   #8
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,248

Rep: Reputation: 79
You can download the kernel image directly from: http://packages.debian.org/unstable/...e-2.6.15-1-686

However, it is easy to do with apt. Just add an unstable repository to /etc/apt/sources.list. To do that:
Code:
nano /etc/apt/sources.list
Add a line:
Code:
deb http://http.us.debian.org/debian unstable main contrib non-free
then do
Code:
apt-get update
apt-get install linux-image-2.6.15-1-686
After you are done, you probably should remove the unstable line from /etc/apt/sources.list and re-run apt-get update. Otherwise, the next time you upgrade, it will try to upgrade all packages you have to the latest unstable versions.
 
Old 02-07-2006, 04:05 PM   #9
marcusshirley
Member
 
Registered: Jan 2006
Distribution: openSUSE 10
Posts: 48

Original Poster
Rep: Reputation: 15
Thanks for the link. I will download it tomorrow. I am having problems installing the drivers for my Intel dialup modem - apparently due to not having 2.6.xx so my linux machine is currently an 'offline' machine.

Is 2.6.xx an 'unstable' kernel? I have 3 pieces of driver software that don't seem to run under 2.4 (Intel 536EP modem, BTTV [BT 878] video capture device, zoneminder webcam software for trust 120 spacecam).

It seems odd that these fairly basic drivers require resorces from an unstable kernel. Am I doing something wrong? Should I download older versions of the drivers?

Ta,

Marcus
 
Old 02-07-2006, 04:22 PM   #10
marcusshirley
Member
 
Registered: Jan 2006
Distribution: openSUSE 10
Posts: 48

Original Poster
Rep: Reputation: 15
I have just been on the link for the 2.6 kernel. There seem to be two versions for the 686. There's the normal one and the 'SMP' one. What does SMP mean? I have a P4 with HyperThreading. Do I need the SMP version?

Ta, Marcus

Last edited by marcusshirley; 02-07-2006 at 04:24 PM.
 
Old 02-07-2006, 05:15 PM   #11
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,248

Rep: Reputation: 79
The 2.6.15 kernel is stable, it is "unstable" according to Debian, because it hasn't made its way to the "stable" release. If you go to www.kernel.org, you will see that the 2.6.15 kernel is a stable release.

The "SMP" version is for systems with multiple processors. You don't want that. The 686 version is for Pentium 4. If you download the *.deb file of the kernel, you can transfer it to the offline linux pc and install it using dpkg (dpkg -i <kernel name>.deb)
 
Old 02-07-2006, 05:23 PM   #12
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
SMP= Symmetric Multi Processing. You use it for hyperthreading, X2 processors, and dual processing systems. You can also get a vanilla kernel(vanilla as in untainted, no distro tampering) from www.kernel.org.
 
Old 02-08-2006, 07:49 AM   #13
marcusshirley
Member
 
Registered: Jan 2006
Distribution: openSUSE 10
Posts: 48

Original Poster
Rep: Reputation: 15
Ok.

I have downloaded 2 kernel images:

kernel-image-2.6.8-2-686-smp_2.6.8-16sarge1_i386.deb (14.6mb)

linux-2.6_2.6.15.orig.tar.gz (47.4mb)

The first one is from stable, the second from unstable. Also the file sizes are quite different.

Now... which one do I use?
 
Old 02-08-2006, 10:03 AM   #14
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Go to kernel.org and get the latest 2.6.15.3

That's what I'm running on mandrake, suse, slack, debian, whatever...
 
Old 02-08-2006, 10:12 AM   #15
RedShirt
Senior Member
 
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
I agree, vanilla is better. Get the stock kernel for www.kernel.org and find a little basic install guide. But as I said if you know how to untar, and know your computer parts, it is a simple process.

untar

move untarred folder(or move tar and untar there)

make xconfig
select settings, modules, etc.

make && make modules_install

cp the bzImage over to /boot

change grub or lilo config file to read new kernel.
 
  


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
Upgrading Kernel katvis SUSE / openSUSE 3 03-20-2006 01:18 AM
problems occured after upgrading kernel and kernel-utils parv Fedora 0 05-02-2005 07:21 PM
upgrading kernel slackware1299 Slackware 13 05-01-2005 07:07 PM
Upgrading kernel on Debian from 2.4 to 2.6.8, Kernel Panic omlette Linux - General 3 03-07-2005 08:00 AM
Kernel Upgrading.... bfloeagle Linux - General 2 03-16-2001 08:29 PM

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

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