LinuxQuestions.org
Help answer threads with 0 replies.
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
 
LinkBack Search this Thread
Old 11-22-2012, 04:35 PM   #1
gtludwig
Member
 
Registered: Oct 2005
Location: Brazil
Distribution: Slackware64-current
Posts: 219

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, 07: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, 07:22 AM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Slackware
Posts: 14,880
Blog Entries: 2

Rep: Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805Reputation: 3805
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, 06:44 AM   #4
mudangel
Member
 
Registered: May 2008
Location: Ohio
Distribution: Slackware
Posts: 267

Rep: Reputation: 48
Code:
make localmodconfig
 
Old 11-24-2012, 07:33 AM   #5
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware-14.0 on a Lenovo T61 6457-4XG
Posts: 3,645

Rep: Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828Reputation: 828
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 07:37 AM.
 
Old 11-24-2012, 12:25 PM   #6
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-14.1 (3.14.0) UEFI enabled
Posts: 344

Rep: Reputation: 71
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 04:57 AM
Probing hardware tool for kernel config deardron Linux - General 5 02-13-2007 11:01 PM
hardware specific distros phil29 General 0 08-06-2005 11:37 AM
Which linux to get for specific hardware ThorsHammer Linux - Software 8 01-28-2004 06:17 PM


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

Main Menu
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