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 11-22-2012, 05:35 PM   #1
gtludwig
Member
 
Registered: Oct 2005
Location: Brazil
Distribution: Slackware64-current
Posts: 221

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
ottavio
Member
 
Registered: Nov 2007
Posts: 312

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

Code:
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
tree.
 
Old 11-23-2012, 08:22 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096Reputation: 4096
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
mudangel
Member
 
Registered: May 2008
Location: Ohio
Distribution: Slackware
Posts: 267

Rep: Reputation: 48
Code:
make localmodconfig
 
Old 11-24-2012, 08:33 AM   #5
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad W520
Posts: 4,678

Rep: Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240Reputation: 1240
Quote:
Originally Posted by mudangel View Post
Code:
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
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-14.1 (3.18.0) UEFI enabled
Posts: 360

Rep: Reputation: 77
Let me add if you are going to use make 'localmodconfig'
Check out the script in linux source 'scripts/Kconfig/streamline_config.pl
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
John
 
  


Reply

Tags
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


All times are GMT -5. The time now is 08:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration