LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-14-2004, 01:16 AM   #1
Junior41180
Member
 
Registered: Dec 2003
Location: Florida
Posts: 157

Rep: Reputation: 30
I sthere a how to For installing/Upgrading New Kernels?


I'm running Mandrake 10.0

I want to upgrade from the 2.6.3-16MDK kernel to the 2.6.8.1kernel.

is there a HOWTO on how to upgrade a newb like myself can understand and follow, and do I have to update packages before I can upgrade to the 2.6.8.1 kernel?


Thanks.
 
Old 09-14-2004, 01:32 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Gentoo on headless; Arch on everything that requires a GUI
Posts: 6,941

Rep: Reputation: 137Reputation: 137
Hi Junior!

Check out this thread ->
http://www.linuxquestions.org/questi...andrake+kernel
 
Old 09-14-2004, 04:42 AM   #3
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
It's pretty easy with mandrake, tho you might want to disable automount which is a pain with mandrake anyway... No other real updates with mdk as it's set up for 2.6 kernel. the only thing might be k3b.

I'm running 2.6.9-rc1-bk16 at the moment with 2.6.9-rc2 just compiled - I'll boot that shortly... 2.6.8.1 is okay, but be aware that with kernels past 2.6.8 there are issues with k3b and dvd-rw tools that you either need to get the latest k3b from cvs, patch it yourself, or do a quick hack on the kernel code (remove a line) to burn cd's with k3b. 2.6.7 is more hassle free with k3b and such if you would rather wait till newer versions are released - or if you don't use them then it don't matter. But as I say, the kernel hack is trivial anyway... Just comment out line 168 in drivers/block/scsi_ioctl.c should do it... Or take out lines 196&197... This risks toasting your cd writer, but the problem exists in 2.6.3 anyway... My advice for a newb tho would be 2.6.7 at the moment...

Compiling is easy. download the source tgz and put it in /usr/src. tar xfvz/j it there and cd to the directory. Make xconfig is the hard step to get all the options correct - just ask if you need some advice there. Need to be careful reading of all options. then it's just make bzImage, make modules, make modules_install. Copy the arch/i386/boot/bzImage to the /boot directory, edit lilo and add the new kernel and you should be fine. You always keep the current kernel to boot as a backup anyway, so you can't go too wrong...

The README in the kernel source covers it pretty well anyway... Of course I've been compiling a couple of kernels per week lately, so it seems easy - but it really isn't that hard once you do it a couple of times...
 
Old 09-14-2004, 12:30 PM   #4
Junior41180
Member
 
Registered: Dec 2003
Location: Florida
Posts: 157

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by amosf
It's pretty easy with mandrake, tho you might want to disable automount which is a pain with mandrake anyway... No other real updates with mdk as it's set up for 2.6 kernel. the only thing might be k3b.

I'm running 2.6.9-rc1-bk16 at the moment with 2.6.9-rc2 just compiled - I'll boot that shortly... 2.6.8.1 is okay, but be aware that with kernels past 2.6.8 there are issues with k3b and dvd-rw tools that you either need to get the latest k3b from cvs, patch it yourself, or do a quick hack on the kernel code (remove a line) to burn cd's with k3b. 2.6.7 is more hassle free with k3b and such if you would rather wait till newer versions are released - or if you don't use them then it don't matter. But as I say, the kernel hack is trivial anyway... Just comment out line 168 in drivers/block/scsi_ioctl.c should do it... Or take out lines 196&197... This risks toasting your cd writer, but the problem exists in 2.6.3 anyway... My advice for a newb tho would be 2.6.7 at the moment...

Compiling is easy. download the source tgz and put it in /usr/src. tar xfvz/j it there and cd to the directory. Make xconfig is the hard step to get all the options correct - just ask if you need some advice there. Need to be careful reading of all options. then it's just make bzImage, make modules, make modules_install. Copy the arch/i386/boot/bzImage to the /boot directory, edit lilo and add the new kernel and you should be fine. You always keep the current kernel to boot as a backup anyway, so you can't go too wrong...

The README in the kernel source covers it pretty well anyway... Of course I've been compiling a couple of kernels per week lately, so it seems easy - but it really isn't that hard once you do it a couple of times...
Thanks.

I got it up and running, although with a few errors at boot (something about mounting file systems...etc...). I'm gonna go through and recompile with a few less options I know I don't need (Mostly module support I know I don't have need for). I used the old .config file from the 2.6.3-16MDK kernel. guess that wasn't a good idea?

thanks for the help.
 
  


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
i sthere any easy way to install ? maharaskal Linux - Newbie 4 05-26-2005 11:40 AM
Upgrading 2.6 kernels. matt_com911 Fedora 2 01-15-2005 04:10 PM
Upgrading kernels: 2.4.26 to 2.6.6 plan9 Slackware 6 06-08-2004 12:51 PM
Upgrading Redhat Linux kernels piggysmile Linux - Software 1 05-25-2004 09:00 PM
Newbie to Upgrading Kernels dmoyer33 Linux - Software 1 08-02-2003 03:17 PM

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

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