LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-29-2004, 09:54 AM   #1
technochef
Member
 
Registered: Jun 2004
Location: Texas
Distribution: Debian and FreeBSD
Posts: 58

Rep: Reputation: 15
from 2.4.26 to 2.6.7


Howdy,

I want to upgrade my 2.4.26 kernel on Debian Sarge to 2.6.7.

I've heard it's a quite large jump.

Could someone point to me a url or walk me through how to compile and install it.

Please use details (I'm a serious noob)
 
Old 08-29-2004, 10:23 AM   #2
cogburnjs
LQ Newbie
 
Registered: Jul 2004
Distribution: Gentoo
Posts: 13

Rep: Reputation: 0
This is the best help guide I have read.

http://kerneltrap.org/node/view/799

But as he said in the guide if ya havent at least compiled the kernel you have now then the leap to not only compile but install a new kernel is a large one. Not impossible but fustrating
 
Old 08-29-2004, 11:17 AM   #3
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
it is very very simple to upgrade to a newer kernel using debian. all you need do is

Code:
su -c "apt-get install kernel-image-2.6.7-1-386"
reboot and select the new kernel at the GRUB prompt. that's it.

if you have an intel pentium 2 or better processor, then replace "386" with "686", or if you have an amd athlon or better processor, replace "386" with "k7" for optimum performance.

if you're using the nvidia proprietary driver, you will need to rerun the installer after booting into the new kernel.

Last edited by zero79; 08-29-2004 at 11:21 AM.
 
Old 08-29-2004, 12:36 PM   #4
technochef
Member
 
Registered: Jun 2004
Location: Texas
Distribution: Debian and FreeBSD
Posts: 58

Original Poster
Rep: Reputation: 15
apt-get

Will the apt-get method install the source tree as well...or headers?

If not, how do I do that...I may have to build drivers later
 
Old 08-29-2004, 12:57 PM   #5
zero79
Member
 
Registered: Nov 2003
Location: Ohio
Distribution: Debian Unstable
Posts: 460

Rep: Reputation: 30
you'll need to do that also.

Code:
apt-get install kernel-headers-$(uname -r) kernel-source-$(uname -r)
the "uname -r" command automatically fills in the kernel version that you are running, so you will need to boot into your new kernel first. alternatively, you can replace "$(uname -r)" with "2.6.7-1-386" or whatever kernel you chose to install.

in all actuality, you only need the kernel headers unless you actually want to build your own kernel.

Last edited by zero79; 08-29-2004 at 01:00 PM.
 
Old 08-29-2004, 01:24 PM   #6
gosapphire
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
if you want compile kernel by yourself,you can do this below:

Code:
apt-get install kernel-package kernel-headers-$(uname -r) kernel-source-$(uname -r) 

cd /usr/src

tar -jxvf kernel-source-xxx.tar.bz2

ln -s kernel-source-xxx linux(if there is a linux directory already existed,delete it using command "rm")

cd linux

make menuconfig

make kernel_image modules_image

cd ..

dpkg -i *.deb

update-grub (if you use grub to boot system)

if you use lilo,you should edit the configufile which lilo use to boot system,then

lilo -v
replace the "xxx" with the kernel version you have down

Last edited by gosapphire; 08-29-2004 at 01:36 PM.
 
Old 08-30-2004, 07:59 AM   #7
short101
Member
 
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Just done this for the first time myself and its not quite as daunting as you think. (having said that, you will probably do it about five times before it actually works properly ) First thing is to make sure you have all the tools you need for compiling kernels, which includes make, kernel-package, mod-init-tools, qt3, and more but cant remember off the top of my head. The freindliest way is with make xconfig once you have the kernel source and have made a symbolic link to it. See post above. ie ln -s kernel-source-2.6.7 linux ( once already in the /usr/src directory) If xconfig works ( and as far as I think, that is the hardest thing, getting all the packages to actuallly make it work) Then all you have to do, is take your time and read through everything as you go, and you will end up with a shiny new kernel that is just for you. . Then just make-kpkg kernel-image. And it will make a kernel image. Then dpkg-install kernel-image-2.6.7.(probably custom something) and it will install and update grub and your set. Reboot and you should have your new kernel to pick on the first line of the grub boot screen. Liek I said though, getting xconfig to work is the biggest problem I had, and then, just make sure that you take your time when you are picking your options with your kernel (ie, what to include and what to make modules. which in xconfig it will tell you, if you are using blah, then dont compile this as a module.) Play with it and try a few different things and you will probably be surprised how easy it is. Is you have problems just google and I'm sure someone would have the problem before you, and have an answer or at least steer you in the right direction. There is a really good guide written that I followed. Just google: very verbose kernel compile and it will be the osnews page. Have fun
 
Old 08-31-2004, 02:59 PM   #8
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
I wrote down step by step what I did to upgrade from 2.4.26 to 2.6.7 here: http://www.linuxquestions.org/questi...hreadid=206992
 
  


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



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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