LinuxQuestions.org
Review your favorite Linux distribution.
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 11-14-2015, 01:30 PM   #1
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Rep: Reputation: Disabled
Kernel .config for latest (or non-stock) kernels


Hi,

How can I obtain kernel configuration for newer or non-stock kernels?
That is, how Pat is making one?

Naturally, I could go through the configuration process (I know the whole thing pretty well) on my own, but this time I'd just like to get .config for generic kernel and don't bother. I need it for 4.2 line.

Thanks in advance!

--
Best regards,
Andrzej Telszewski
 
Old 11-14-2015, 02:35 PM   #2
speck
Member
 
Registered: Nov 2001
Location: US
Distribution: Slackware 14.2
Posts: 375

Rep: Reputation: 115Reputation: 115
It's in the source directory on the Slackware mirrors. Current is using 4.1.12.
 
Old 11-14-2015, 02:44 PM   #3
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Quote:
It's in the source directory on the Slackware mirrors.
Yep, I know that.

What I want to know is what is the way that Pat uses to make .config's.
I need to create one for 4.2.x, which is not available in slackware/ neither in testing/ for the current current.
I need the generic .config and I don't want to go myself through the configuration stages.

--
Best regards,
Andrzej Telszewski
 
Old 11-14-2015, 03:07 PM   #4
Tonus
Senior Member
 
Registered: Jan 2007
Location: Paris, France
Distribution: Slackware-15.0
Posts: 1,405
Blog Entries: 3

Rep: Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514Reputation: 514
Kernel .config for latest (or non-stock) kernels

I don't have the info. When I am in hurry I just run
make olddefconfig

I believe you can't have a fine tuned kernel without taking time to build it...
 
Old 11-14-2015, 03:17 PM   #5
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Quote:
make olddefconfig
That could be the way to go.

Quote:
I believe you can't have a fine tuned kernel without taking time to build it...
I don't want "fine tuned", I want generic.

--
Best regards,
Andrzej Telszewski
 
Old 11-14-2015, 03:28 PM   #6
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
I would "make olddefconfig" as suggested by Tonus then run /usr/src/linux/scripts/diffconfig to quickly spot possibly interesting new options that could have been overlooked.
 
Old 11-14-2015, 03:53 PM   #7
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Quote:
I would "make olddefconfig" as suggested by Tonus then run /usr/src/linux/scripts/diffconfig to quickly spot possibly interesting new options that could have been overlooked.
Then maybe it would be better to run make oldconfig? diffconfig will give you the difference, but only with cryptic symbols, whereas oldconfig would also display the description.

BTW, my last configuration was done with oldconfig and the enter key pressed down till all the new options were answered with theirs defaults

--
Best regards,
Andrzej Telszewski
 
1 members found this post helpful.
Old 11-14-2015, 04:15 PM   #8
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
Quote:
Originally Posted by atelszewski View Post
Then maybe it would be better to run make oldconfig?
I use make oldconfig starting with the previous .config, and carefully consider each new option that appears (usually with a bit of Google research.)
 
6 members found this post helpful.
Old 11-14-2015, 11:28 PM   #9
JackHair
Member
 
Registered: Aug 2009
Location: Netherlands
Distribution: Slackware64-current
Posts: 167

Rep: Reputation: 39
Or use "localmodconfig" it will scan the modules your comp needs. Just make sure all peripherals you use are connected when you make the config.
 
1 members found this post helpful.
Old 11-15-2015, 03:00 AM   #10
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Quote:
I use make oldconfig starting with the previous .config, and carefully consider each new option that appears (usually with a bit of Google research.)
Then it's decided

Quote:
Or use "localmodconfig" it will scan the modules your comp needs. Just make sure all peripherals you use are connected when you make the config.
generic, generic, generic, I want GENERIC .config!

--
Best regards,
Andrzej Telszewski
 
Old 11-22-2015, 03:42 AM   #11
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
I do make oldconfig with the generic config, holding down the enter key until it's done. Then I do make menuconfig and change ext4 from a module to a compiled-in.
 
Old 11-22-2015, 04:10 AM   #12
cycojesus
Member
 
Registered: Dec 2005
Location: Lyon, France
Distribution: Slackware-current
Posts: 116

Rep: Reputation: 79
zcat /proc/config.gz
 
Old 11-22-2015, 04:59 AM   #13
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Quote:
I do make oldconfig with the generic config, holding down the enter key until it's done.
make olddefconfig might prevent your finger from getting stuck to the enter key

Quote:
Then I do make menuconfig and change ext4 from a module to a compiled-in.
You can also specify ext4 module to the mkinitrd (since you're using generic anyway).

Quote:
zcat /proc/config.gz
That's of no help. This gives you the .config for the currently running kernel. What we're trying to find out here is, how do you create .config for a kernel that is not present in stock Slackware.

--
Best regards,
Andrzej Telszewski
 
Old 11-22-2015, 05:31 AM   #14
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019Reputation: 5019
I think the main point of building-in ext4 is that it means you don't need a initrd, which makes kernel updates much easier. At least, that's why I do it.

IMO, now that ext2/3 have been removed upstream and the ext4 module services all 3 filesystems, it makes even more sense to have this one built in to 'generic'.
 
1 members found this post helpful.
Old 11-22-2015, 05:49 AM   #15
atelszewski
Member
 
Registered: Aug 2007
Distribution: Slackware
Posts: 948

Original Poster
Rep: Reputation: Disabled
Hi,

Quote:
I think the main point of building-in ext4 is that it means you don't need a initrd
I have never run generic without initrd...

Quote:
IMO, now that ext2/3 have been removed upstream
I think it's only ext3 that's removed. But you're correct that ext4 can rule them all...

--
Best regards,
Andrzej Telszewski
 
  


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
evdev not present in current stock kernels ? CloudyWizzard Debian 7 09-24-2006 08:08 AM
DRI in stock kernels? FreeDoughnut Debian 1 09-10-2006 01:59 AM
Installing driver modules without recompiling stock kernels cheelee Linux - General 3 06-18-2005 07:24 AM
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
RH 8 kernels and their relation to 'stock' kernels psweetma Linux - Distributions 1 03-29-2003 10:46 PM

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

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