LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-13-2010, 02:08 PM   #1
Jorek
Member
 
Registered: Sep 2005
Distribution: Slackware 13.1
Posts: 65

Rep: Reputation: 16
Upgrading the kernel - Quick question about the .config


Hi there!
I'm about to upgrade the kernel to the latest stable version, and I am wondering if I could just use the .config file found on the ftp mirrors under /Slackware-13.01/kernels/hugesmp when compiling?

I mean, instead of doing it manually using menuconfig.

Cheers!
 
Old 09-13-2010, 02:52 PM   #2
wadsworth
Member
 
Registered: Aug 2007
Distribution: Slackware64 13.37
Posts: 215

Rep: Reputation: 65
You can use that config if you like, just run make oldconfig first.

I'd use config-generic-smp as a starting point instead of config-huge-smp though,

just configure the file system you use for the 'root' partition as built-in, and you shouldn't need an initrd.

http://slackware.mirrors.tds.net/pub...p-2.6.33.4-smp

Edit:
Robby Workman recently posted some config files for 2.6.35.x:
http://www.linuxquestions.org/questi...6/#post4082586

Last edited by wadsworth; 09-13-2010 at 02:59 PM.
 
Old 09-13-2010, 02:57 PM   #3
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Robby has posted a generic config file for 2.6.35.4 for Slackware. x86
x86-64. It will be easier than having to answer all the default questions due to changes in the kernel versions from 2.6.33. But to answer the question I would normally do
Code:
make oldconfig
at the very least. Google "alien kernel" for Eric's Slackware kernel how-to.
 
Old 09-14-2010, 11:05 AM   #4
Jorek
Member
 
Registered: Sep 2005
Distribution: Slackware 13.1
Posts: 65

Original Poster
Rep: Reputation: 16
Thanks guys!

Great links by the way!
 
Old 09-15-2010, 04:59 PM   #5
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
I usually use the generic-smp kernel's config and do:
Code:
yes '' | make oldconfig
Which updates the config file and automatically chooses the defaults for all new options.

But since Robby has generic configs for the latest kernel, you might as well use those.
 
1 members found this post helpful.
Old 09-15-2010, 05:12 PM   #6
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
Hi,

Building a Linux Kernel from source Eric Hameleers (Alien’s) Wiki pages.

 
Old 09-15-2010, 05:28 PM   #7
Jorek
Member
 
Registered: Sep 2005
Distribution: Slackware 13.1
Posts: 65

Original Poster
Rep: Reputation: 16
I really dig that guide, onebuck!
I recommend it to all first-time-kernel-compilers! =) Great read!

It's more up to date than the Slackware Essentials 2'nd edition!
 
Old 09-15-2010, 05:31 PM   #8
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by piratesmack View Post
I usually use the generic-smp kernel's config and do:
Code:
yes '' | make oldconfig
Which updates the config file and automatically chooses the defaults for all new options.

But since Robby has generic configs for the latest kernel, you might as well use those.
Does this actually pipe yes to all the questions? Doesn't that say yes to a lot of defaults that would otherwise be no, and that might very possibly interfere since they are being built INTO the kernel rather than as modules? I generally would do
Code:
make oldconfig
and then just hold down enter to choose the default answer for each new option which is generally "no" and then I do my in-depth checking of new options in menu/gconfig.
 
Old 09-15-2010, 05:39 PM   #9
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by damgar View Post
Does this actually pipe yes to all the questions?
The yes command "repeatedly outputs a line with all specified STRING(s), or `y'"

Since the string I specified was '', it does the same thing as leaving the answer blank and pressing enter, just much faster.
 
1 members found this post helpful.
Old 09-15-2010, 05:40 PM   #10
damgar
Senior Member
 
Registered: Sep 2009
Location: dallas, tx
Distribution: Slackware - current multilib/gsb Arch
Posts: 1,949
Blog Entries: 8

Rep: Reputation: 203Reputation: 203Reputation: 203
Quote:
Originally Posted by piratesmack View Post
The yes command "repeatedly outputs a line with all specified STRING(s), or `y'"

Since the string I specified was '', it does the same thing as leaving the answer blank and pressing enter, just much faster.
Ah. Very nice.
 
  


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
Upgrading to 12: Kernel Config Question solostyle Slackware 3 01-15-2008 07:26 PM
Quick LiLo config question C-Sniper Slackware 8 03-07-2007 04:09 PM
Config file changes when upgrading kernel jrdioko Linux - Software 4 12-26-2005 09:15 PM
samba smb.config question (quick question) TheDOGG Linux - Networking 1 03-02-2004 07:19 AM
Quick Config Question Haon Linux - Newbie 0 02-21-2004 04:20 PM

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

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