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

Notices


Reply
  Search this Thread
Old 02-10-2006, 12:13 PM   #1
jrbush82
Member
 
Registered: Mar 2002
Location: Hampton, VA
Posts: 86

Rep: Reputation: 15
Change from stock 2.4 kernel to 2.6 kernel


I'm wanting to try out building a "Linux From Scratch" system, and it is recommending I use kernel version 2.6.2 or later. I used the default 2.4 kernel that came with Slack 10.2. Is there an easy way to switch from the 2.4.31 kernel to the 2.6.31 kernel that is on my CDs without having to recompile a new kernel all together?

Thanks
 
Old 02-10-2006, 12:16 PM   #2
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 641

Rep: Reputation: 36
Hi,

On the Slackware CD under /extra or when downloading slackware-current you'll find a standard 2.6 kernel that functions with similar functionality on most systems. Having said that, if you plan to build your own system almost from scratch, I highly recommend building your own custom kernel for your hardware.

By the way - if you want to build Linux From Scratch I recommend checking the LFS forum here...

-Y1
 
Old 02-10-2006, 12:45 PM   #3
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
slackware/current/testing (as of today, 20060210) has

kernel-generic-2.6.14.6-i486-1 and
kernel-modules-2.6.14.6-i486-1

get both of those packages and installpkg them,

check your lilo.conf, run lilo, reboot, choose 2.6 kernel.

optionally, also get kernel-source-2.6.14.6-noarch-1, for
when you do want to compile a kernel, or just get
2.6.15.4 source from kernel.org

HTH,
 
Old 02-10-2006, 01:14 PM   #4
jrbush82
Member
 
Registered: Mar 2002
Location: Hampton, VA
Posts: 86

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bbeers
slackware/current/testing (as of today, 20060210) has

kernel-generic-2.6.14.6-i486-1 and
kernel-modules-2.6.14.6-i486-1

get both of those packages and installpkg them,

check your lilo.conf, run lilo, reboot, choose 2.6 kernel.

optionally, also get kernel-source-2.6.14.6-noarch-1, for
when you do want to compile a kernel, or just get
2.6.15.4 source from kernel.org

HTH,
Thats the information I was looking for. I didn't know if just installing the package would do everything for me, or if I had to then put the bzImage into /boot modify lilo.conf etc... been a long while since I've been into linux and before lots of things were much more manual than now... Thanks for the info.
 
Old 02-10-2006, 01:23 PM   #5
bbeers
Member
 
Registered: Jul 2002
Location: Florida
Distribution: Centos, Slackware
Posts: 260

Rep: Reputation: 30
Quote:
Originally Posted by jrbush82
I didn't know if just installing the package would do everything for me, or if I had to then put the bzImage into /boot modify lilo.conf etc...
I don't know off the top of my head what the doinst.sh in the kernel package does.
I am confident it puts the kernel in /boot, and it may update your lilo.conf,
but as a general rule I always *check* lilo.conf and run lilo whenever I fiddle
with kernels.

--
Bob
 
Old 02-11-2006, 05:23 AM   #6
Toods
Member
 
Registered: Dec 2005
Location: UK
Distribution: Slackware 12.1
Posts: 249

Rep: Reputation: 32
Installing the Slackware module and kernel packages will install and set up all the links ready to boot.

The only little problem I find with this is that Lilo does not then give the option of booting either 2.6 or the original 2.4 kernel. In any case the old kernel is not removed by the installation.

I prefer the install the kernel to /boot manually without using symlinks and then edit and run Lilo to set up the multibooting.
 
Old 02-11-2006, 07:05 AM   #7
davidsrsb
Member
 
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
Is there a 2.6 kernel with built in Reiser 3? My whole system is ReiserFS it is too late to install a module
 
  


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
What is stock kernel? kskkumar Linux - General 6 09-13-2008 04:46 AM
Pakcages in stock kernel kskkumar Linux - General 1 11-25-2005 11:38 PM
Upgrading stock 2.4.22 kernel to 2.5.x then to 2.6.6 with existing stock .config file Kyl3 Slackware 8 06-09-2004 05:34 PM
Fedora with a stock kernel Baltasar Fedora 4 01-26-2004 06:03 PM
cdrecord and stock Slack9 kernel jpbarto Slackware 2 08-16-2003 01:11 PM

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

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