LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-24-2012, 12:32 PM   #1
bvbellomo
LQ Newbie
 
Registered: Dec 2012
Posts: 25

Rep: Reputation: Disabled
New to slackware, how to install new kernel


I was debating trying Slackware on my system, but need a 3.4 or later kernel. How big of a deal is this? Is this a reason to use a different distro?

I realize there are a lot of posts about this, however most of them point to http://shilo.is-a-geek.com/slack/kernel14.html which is a broken link, and half of them say to get this from the testing branch and the other half say to download from kernel.org directly.
 
Old 12-24-2012, 01:05 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
This is the link I use for Slackware to build kernels.

-->http://alien.slackbook.org/dokuwiki/...kernelbuilding

Quote:
How big of a deal is this?
It depends on your skill level. For an intermediate user, these instructions work well. You need to be able to copy files, edit files and run things from the command line. I usually recompile a kernel for my systems. I do not consider myself an expert at it.

The thing to do is install your slackware system, get it running on the generic kernel, you can then download what ever version you want, and follow the instructions on the link. You will probably need an initrd file, there is a handy script to use that makes that easy.

Slackware is well documented, you will need to read as you go. It is not hard, just different from the installers on other distros.

Quote:
Is this a reason to use a different distro?
I don't think so, several Slack users are using kernels newer than the one that comes with 14.0.
 
1 members found this post helpful.
Old 12-24-2012, 01:21 PM   #3
bvbellomo
LQ Newbie
 
Registered: Dec 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Yes, I saw that link.

What about:
http://www.slackware.com/announce/14.0.php

Quote:
If you'd like to try out some of the newer kernel branches, you'll
find .config files for Linux 3.4.11, 3.5.4, and 3.6-rc4 in the
/testing/source/ directory
Do I need these config files in addition to the link you posted, or will they make the upgrade easier, or should I ignore them?


I am more concerned about whether I will have a stable working system when I am done then how long this will take (but am assuming I can get through it in 1 day). Part of the reason for doing this is the learning process anyway. If others are doing this, it is probably okay.
 
Old 12-24-2012, 01:45 PM   #4
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,213

Rep: Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848Reputation: 848
I have not used the new configs. Right now I don't have a need. Can't help with advice on them.

I would try the compile with the standard config first.
 
Old 12-24-2012, 01:53 PM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
I'm running Slackware64-14 with the generic kernel 3.5.4 compiled with the config from /testing/source/. It works very well.

Markus
 
Old 12-25-2012, 03:29 PM   #6
DrCR
LQ Newbie
 
Registered: Aug 2006
Distribution: Slackware14, VectorLinux5.9SOHO
Posts: 21

Rep: Reputation: 0
Subscribed. Please let us know how you fare, bvbellomo. This is one already I would like to more completely explore myself.
 
Old 12-27-2012, 07:43 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Member Response

Hi,

Welcome to LQ & Slackware!
Quote:
Originally Posted by bvbellomo View Post
I was debating trying Slackware on my system, but need a 3.4 or later kernel. How big of a deal is this? Is this a reason to use a different distro?

I realize there are a lot of posts about this, however most of them point to http://shilo.is-a-geek.com/slack/kernel14.html which is a broken link, and half of them say to get this from the testing branch and the other half say to download from kernel.org directly.
Slackware®-Links & Slackware Doc Project are two useful links that will help you with a Slackware journey. Be sure to look at Linux Kernel section of Slackware®-Links for helpful links for the kernel.

HTH!
 
Old 12-27-2012, 12:46 PM   #8
trademark91
Member
 
Registered: Sep 2009
Distribution: Slackware -current x64
Posts: 372

Rep: Reputation: 74
-current is using a 3.7 kernel, so that could be an option as well.
 
Old 01-11-2013, 10:54 AM   #9
bvbellomo
LQ Newbie
 
Registered: Dec 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
I tried last night - this was delayed because of hardware issues. I had both a bad motherboard and a bad power supply, so now I have almost a new computer.

My new kernel did not book

I got:
VFS: Cannot open root device "802" or unknown-block (8,2)
Please append a correct "root=" boot option
Kernel Panic-not syncing: VFS: unable to mount root fs on unknown block(8,2)

Please note this is from "http://alien.slackbook.org/dokuwiki/doku.php?id=linux:kernelbuilding#creating_an_initrd" and may not be the exact error message but it is very similar.


I tried to start the process over, but failed (don't remember why, because I was falling asleep by then).

Questions:
The page referenced above says "Build the ext3 (needs the jbd driver as well) and reiser/xfs/jfs fileystem drivers into the kernel instead of compiling them as modules"
I am assuming I don't need reiser since I've never used (or plan to use) that filesystem.
I can't find the jbd driver in options. I do see jdb debug information options for ext3 and ext4, but they look like debugging information, not something needed (or useful) on a production system.

The page does warn "Remember, your new kernel may not even boot if you made a mistake somewhere", but doesn't give me any clue how to fix things if I made a mistake somewhere. Do I just start the process over again? Or do I need to do some cleanup?
 
Old 01-11-2013, 11:13 AM   #10
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Probably your kernel is missing the driver for the filesystem. Which filesystem does your / partition actually have?

You will have either to build your kernel with the drivers for filesystem and ide/sata-controller in the kernel, or you build a generic kernel, only with a generic kernel you'll need an initrd. Don't confuse both! with the initrd you will have to build those modules into the initrd.

Markus
 
1 members found this post helpful.
Old 01-11-2013, 11:23 AM   #11
bvbellomo
LQ Newbie
 
Registered: Dec 2012
Posts: 25

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by markush View Post
Probably your kernel is missing the driver for the filesystem. Which filesystem does your / partition actually have?

You will have either to build your kernel with the drivers for filesystem and ide/sata-controller in the kernel, or you build a generic kernel, only with a generic kernel you'll need an initrd. Don't confuse both! with the initrd you will have to build those modules into the initrd.

Markus
I am using ext4.

I thought I included the drivers, but after I ran "make xconfig" a 2nd time, they were selected as modules, and it seems to be remember the changes I make, so I bet this was the problem.

The alien.slackbook.org article does not mention "ide/sata-controller". I did see another page (http://blog.tpa.me.uk/slackware-kernel-compile-guide/) ask me to include this as well. There is a section “Device Drivers” -> “Serial ATA and Parallel ATA drivers”, but everything seems to default to being compiled in. Do you think this is also a problem?

I have not tried to do an initrd, and want to avoid that, unless I can't get my system working any other way (unlikely).

Should I be able to go through all the steps on the alien.slackbook.org a second (or third, or fourth, etc) time without doing any cleanup? If so, most of the steps seem redundant, can I skip them? Nothing I can find tells me anything about how to start the process over if I need to.
 
Old 01-11-2013, 01:08 PM   #12
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
You don't need to do all steps. You can use "make xconfig" make your changes and then run make again. I would although recommend to delete the /lib/modules/3.???? directory before reinstalling the modules.

Markus
 
1 members found this post helpful.
  


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
How can I install a slackware-current kernel to slackware 11? bijit1709 Slackware 11 06-13-2007 03:24 PM
Install Kernel 2.6.5.15 to Slackware 10.1 extus Linux - Newbie 2 03-03-2006 09:01 AM
slackware kernel source install (kernel 2.6.6) ? LinuxOG Slackware 22 06-06-2004 04:34 PM
which kernel i should install for Slackware? Longinus Linux - Newbie 7 12-12-2003 07:16 PM

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

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