LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 08-13-2014, 07:48 PM   #1
slugman
Member
 
Registered: Jun 2010
Location: Los Estados No Estan Unidos
Distribution: Slackware
Posts: 58

Rep: Reputation: 1
how to determine required kernel modules


I gave up on setting up my Poweredge 2850 on 64 bit due to PSU issues, and am setting up the Poweredge750 in the meantime.

I setup my system, which has two identical 40Gb SATA's w/ 2 R0 arrays in mdadm, and /boot w/ R1. (I finally discovered why my old G3 ml350 did not boot correctly, lilo requires v 0.90 metadata).

My question is: in the faq it reccomends the use of generic. This is news to me--in the past if I wasn't running huge I would simply compile a long-term-stable candidate. For the purposes of making an initrd, you need to know any modules not in the kernel which you need to provide for the initrd.

Is there a correct method of doing this? TLDP mentions:

"You can see what modules are already loaded into the kernel by running lsmod, which gets its information by reading the file /proc/modules."

I'm still in setup though, which is using hugesmps.

During my testing days I would run:

lspci -vvv | grep modules

and then I'd make an initrd out of all the modules listed.

Upon inspecting /proc/modules and the above output, I do notice there are differences.

Is there a, "correct way," to derive this information? Now that I think about it, I don't want to make an initrd with redundant modules that are already in the kernel.

In all honesty, I'd like to compile a custom kernel with the modules my system requires in lieu of using generic, which is what brough about this post.

Thanks.

- Diego

- ftp://ftp.slackware.com/pub/slackwar...EADME_RAID.TXT
- http://www.tldp.org/LDP/lkmpg/2.6/html/x44.html

Last edited by slugman; 08-13-2014 at 07:56 PM. Reason: Adding links for clarification
 
Old 08-13-2014, 10:08 PM   #2
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & CentOS
Posts: 3,037
Blog Entries: 1

Rep: Reputation: Disabled
Hi:

I'm not a kernel module expert but I have a few ideas.

Developers use this page. Maybe it will help you.

To build external modules, you must have a prebuilt kernel available
that contains the configuration and header files used in the build.

https://www.kernel.org/doc/Documenta...ld/modules.txt

Finding out what modules that do not come with the kernel seem to be hard to find.(what I have found so far)

To change the drivers that are built into the kernel I think you would have to re-configure the kernel.
Use insmod and modprobe to load modules that you do need.
https://wiki.archlinux.org/index.php/kernel_modules

It might be the long way around but perhaps by reading the changelogs of older stable kernels compared to the top 3 kernels or so it might reveal what is not included.
 
1 members found this post helpful.
Old 08-13-2014, 10:26 PM   #3
slugman
Member
 
Registered: Jun 2010
Location: Los Estados No Estan Unidos
Distribution: Slackware
Posts: 58

Original Poster
Rep: Reputation: 1
thanks ztcorcat for the input.

You know, your post jogged my memory. I think the correct way is to run a search against .config. However, I think the only to really know for sure which keyword corresponds to which module/driver is by running a search in make menuconfig.

- Diego

Last edited by slugman; 08-13-2014 at 10:29 PM.
 
Old 08-13-2014, 10:35 PM   #4
Ztcoracat
Senior Member
 
Registered: Dec 2011
Distribution: Slackware & CentOS
Posts: 3,037
Blog Entries: 1

Rep: Reputation: Disabled
Quote:
Originally Posted by slugman View Post
thanks ztcorcat for the input.

You know, your post jogged my memory. I think the correct way is to run a search against .config. However, I think the only to really know for sure which keyword corresponds to which module/driver is by running a search in make menuconfig.

- Diego
Your Welcome-

Always glad to help.

Your right, with menuconfig you should be able to go through the menu and change the options you want.
Here's a list of configuration tools on this Gentoo page.

https://wiki.gentoo.org/wiki/Kernel/Configuration
 
Old 08-13-2014, 11:27 PM   #5
slugman
Member
 
Registered: Jun 2010
Location: Los Estados No Estan Unidos
Distribution: Slackware
Posts: 58

Original Poster
Rep: Reputation: 1
I'm going to try and perl a way to automajically do this.
 
Old 08-14-2014, 01:52 AM   #6
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,235

Rep: Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040Reputation: 1040
As root, run:
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -h
Quote:
I'd like to compile a custom kernel with the modules my system requires
You can "make oldconfig" followed by "make localmodconfig". Be aware that if you miss a module (e.g. for a removable device that was not plugged in at time of running "make localmodconfig") you'll have to do another compilation.

Last edited by Didier Spaier; 08-14-2014 at 02:27 AM.
 
1 members found this post helpful.
Old 08-14-2014, 11:42 AM   #7
slugman
Member
 
Registered: Jun 2010
Location: Los Estados No Estan Unidos
Distribution: Slackware
Posts: 58

Original Poster
Rep: Reputation: 1
Awesome--thank you Didier. Yet again, you saved me from re-inventing the wheel.
 
  


Reply

Tags
generic, huge.s, initrd, kernel 3.10.7, modules


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
[SOLVED] Recompiling kernel required to add modules? littlebigman Linux - Software 2 01-05-2011 11:57 AM
How to determine and remove modules load at kernel boot? Zyndarius Debian 3 07-17-2009 12:19 PM
how do I determine the order modules get loaded? Simon Bridge Linux - General 6 04-26-2006 09:15 AM
problems with xmltv required perl modules bacdog Linux - Software 0 12-25-2004 10:29 AM
Determine Printer Required For Print Job? tsilihin Linux - Networking 0 04-29-2004 08:09 PM


All times are GMT -5. The time now is 12:52 PM.

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