Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-22-2012, 05:35 PM   #1
Registered: Oct 2005
Location: Brazil
Distribution: Slackware64-current
Posts: 226

Rep: Reputation: 16
is there a hardware specific kernel builder tool?

I used to spend hours at kernel configuration and compilation in my early Slackware life back in 2005 and 2006. After a while I just gave up re-compiling kernel. Nowadays I just use -current's huge.s kernel config mainly out of lazyness for the long process of kernel building.

I know Gentoo has the genkernel tool. Is there anything similar for use with Slackware?
Old 11-23-2012, 08:07 AM   #2
Registered: Nov 2007
Posts: 312

Rep: Reputation: 46
From slackware/slackware64-14.0/source/k/README.TXT:

Since I should document this somewhere, here's the procedure
for building the Slackware kernel package.  I do not patch the official
kernel sources, but it's not exactly a virgin either.

Version specific notes (if any):
For a 2.6.x kernel (much easier):

   Untar Linus' source in /usr/src.
   Make all files owned by root:root with reasonable perms.
   Install a suitable .config, or use make menuconfig, etc.

   An example would be to use one of the config files here:
   # cat config-generic-3.2.29 > /usr/src/linux-3.2.29/.config

   Then run the build programs:

   make oldconfig
   make bzImage
   make clean
   make prepare
   rm .version

That's it!  You now have a clean Slackware-configured Linux source
Old 11-23-2012, 08:22 AM   #3
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853Reputation: 4853
From what I can see in the Gentoo documentation, genkernel does nothing more than compiling a generic kernel. It does not create a hardware specific kernel.
Slackware ships with a generic kernel by default, all you have to do is to create an initrd and modify your Lilo configuration.
Old 11-24-2012, 07:44 AM   #4
Registered: May 2008
Location: Ohio
Distribution: Slackware
Posts: 267

Rep: Reputation: 56
make localmodconfig
Old 11-24-2012, 08:33 AM   #5
Didier Spaier
LQ Addict
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2 on Lenovo Thinkpad W520
Posts: 7,870

Rep: Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783Reputation: 2783
Originally Posted by mudangel View Post
make localmodconfig
But first ensure that you have all modules needed (in particular by your removable devices) loaded, otherwise these modules won't be compiled as they will be disabled in kernel's configuration.

Last edited by Didier Spaier; 11-24-2012 at 08:37 AM.
Old 11-24-2012, 01:25 PM   #6
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-14.2 (4.14.6) UEFI enabled
Posts: 454

Rep: Reputation: 131Reputation: 131
Let me add if you are going to use make 'localmodconfig'
Check out the script in linux source 'scripts/Kconfig/
This explains how Steven Rostedt the author uses localmodconfig
I helped Stephen test this script and on my 13.37 system I got down to just 64 modules.
Makes for fast compiles of the kernel
Just my 2 cents


config, hardware, kernel, scanner, tool

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
Using Kegel's Cross tool builder zvivered Linux - Embedded & Single-board computer 1 01-29-2009 05:57 AM
Probing hardware tool for kernel config deardron Linux - General 5 02-14-2007 12:01 AM
hardware specific distros phil29 General 0 08-06-2005 12:37 PM
Which linux to get for specific hardware ThorsHammer Linux - Software 8 01-28-2004 07:17 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration