LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-12-2010, 06:28 PM   #1
timetraveler
Member
 
Registered: Apr 2010
Posts: 243
Blog Entries: 2

Rep: Reputation: 31
dependency on a modular kernel?


Does slackware 13 have any dependencies on a modular kernel? I am going to make the kernel without modules and wanted to know if this will not work or if it will be painful and still work.
 
Old 05-12-2010, 06:34 PM   #2
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 960

Rep: Reputation: 208Reputation: 208Reputation: 208
Start with the generic config and just build in the modules you'd use if creating an initrd.

It's probably more dependant on your hardware than the Distribution.
 
Old 05-12-2010, 08:09 PM   #3
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 2,740

Rep: Reputation: 765Reputation: 765Reputation: 765Reputation: 765Reputation: 765Reputation: 765Reputation: 765
Expect error messages. Many of Slackware's start-up scripts load specific modules. The following command should tell you which files need what:

Code:
grep -r modprobe /etc/rc.d/*
I would also expect the autoprobing stages to complain if the modules aren't there (even if they're compiled into the kernel).

Last edited by dugan; 05-12-2010 at 08:11 PM.
 
Old 05-12-2010, 10:03 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 10,437

Rep: Reputation: 621Reputation: 621Reputation: 621Reputation: 621Reputation: 621Reputation: 621
Unless things have changed go right ahead.
I haven't built a kernel on Slack for a while (certainly not on 13), but when I did I certainly would not have used modules.

And even if it all goes to hell, what have you lost ?. Even the time you spend doing it will be educational.
 
Old 05-13-2010, 02:00 AM   #5
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware-13.37
Posts: 1,426

Rep: Reputation: 183Reputation: 183
If I wanted to try, this is what I would do. You will need a recent kernel, at least 2.6.32.
- Run Slackware with a -generic kernel.
- Upgrade to at least 2.6.32.13, as of today (unless you run -current, of course) and keep the .config at the root of the kernel source tree
- Plug in all removable device you have (one at a time if you miss USB slots to do that), to make sure relevant modules be loaded. This include e.g. USB printer, scanner, camera, USB keyboards and mice, usb sticks, whatever. Don't forget USB hard disks.
- "make localyesconfig" in the kernel source tree (set-up localversion as -builtin for instance, to preserve modules you already have in /lib/modules) then make and install the kernel and the modules (if any), edit /etc/lilo.conf accordingly then run lilo.
- use it for some time to check that you don't miss any driver. If you do, add it with "make menuconfig", make and install again.

The goal of all that is having built-in only the drivers you do need, to avoid possible conflicts like the bad driver claiming some device at boot.

To know more: "make help" at the root of a recent kernel source tree

Last edited by Didier Spaier; 05-15-2010 at 03:11 AM.
 
Old 05-13-2010, 02:02 AM   #6
timetraveler
Member
 
Registered: Apr 2010
Posts: 243
Blog Entries: 2

Original Poster
Rep: Reputation: 31
It's working fine. Just some complaints, as some have said, about modules on startup.
I noticed some alsa stuff trying to load modules. I think I can get this sorted out.
 
Old 05-13-2010, 04:05 AM   #7
Josh000
Member
 
Registered: Aug 2009
Distribution: Slackware 13 64bit
Posts: 534

Rep: Reputation: 35
It most certainly is not.

I normally run a kernel with modules disabled and the drivers I need built in, and it works a treat.
 
Old 05-14-2010, 03:24 AM   #8
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 550

Rep: Reputation: 109Reputation: 109
Read Compiling your own Slackware Kernel
 
Old 05-15-2010, 12:30 AM   #9
timetraveler
Member
 
Registered: Apr 2010
Posts: 243
Blog Entries: 2

Original Poster
Rep: Reputation: 31
Everything's compiled fine, kernel seems to boot faster too.
 
  


Reply


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
modular kernel ramjgn Linux - Enterprise 0 04-06-2009 02:44 PM
Non Modular Kernel RPM DigiCrime Linux - Kernel 7 07-19-2006 02:41 PM
Non-modular Kernel from scratch Help shotokan Linux From Scratch 6 09-18-2005 09:12 AM
how to compile a kernel with modular sound? darkleaf Linux - Software 3 07-07-2004 03:38 PM
ALSA and Kernel Modular Drivers digital abuzer Linux - Hardware 1 10-09-2003 09:52 AM


All times are GMT -5. The time now is 06:56 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
Open Source Consulting | Domain Registration