LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 06-13-2009, 07:26 AM   #1
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Rep: Reputation: 35
Building an initrd - how to find correct module name?


I decided to finally give up building my own custom kernels on my relative's machines and go for the generic slackware kernels (less maintenance).

In the past I have just built the filesystem and underlaying disk drives statically into the kernel, but now that I'll be using an initrd I need to identify the module name. This causes some unexpected trouble.

When building, I have just built Device Drivers -> Serial ATA -> AHCI SATA support.

The AHCI SATA driver's symbol is according to "help": SATA_AHCI and it depends on ATA && PCI.

However, running mkinitrd and asking for modules sata_ahci:ataci doesn't work at all - no such modules.

I've googled all the wrong things to figure out how to map symbol name to module name and suspect it's a tiny, silly thing I'm completely missing. Any pointers would be *GREATLY* appreciated!

Just for reference, the controller is the following, from lspci:
Code:
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller (rev 02)
I figured the last one will do...

Thanks in advance for any insight!

-y1
 
Old 06-13-2009, 07:32 AM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
If you do 'lspci -vv' that will give you the module it's using, for example:

Code:
00:1f.2 SATA controller: Intel Corporation 82801IR/IO/IH (ICH9R/DO/DH) 6 port SATA AHCI Controller (rev 02) (prog-if 01 [AHCI 1.0])
	Subsystem: Intel Corporation Unknown device 5044
	Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
	Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
	Latency: 0
	Interrupt: pin A routed to IRQ 21
	Region 0: I/O ports at 3428 [size=8]
	Region 1: I/O ports at 3434 [size=4]
	Region 2: I/O ports at 3420 [size=8]
	Region 3: I/O ports at 3430 [size=4]
	Region 4: I/O ports at 3020 [size=32]
	Region 5: Memory at 93225000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: <access denied>
	Kernel driver in use: ahci
So, here 'ahci' is the module.
 
Old 06-13-2009, 07:35 AM   #3
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 227Reputation: 227Reputation: 227
http://www.slackware.com/~alien/tool...d_generator.sh

Also part of current
slackware-current/source/a/mkinitrd/mkinitrd_command_generator.sh
 
Old 06-13-2009, 07:44 AM   #4
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Original Poster
Rep: Reputation: 35
Thanks! ahci seems to be correct! Now how do I figure out what the kernel module names that this depends on ? doesn't it depend on ata and others, as shown in kernel make's help, or is including ahci and reiserfs enough?

As for the mkinitrd-generator, it only suggests USB devices on this system, for some weird reason. No ahci or similar..

Thanks!
 
Old 06-13-2009, 07:50 AM   #5
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I think ahci and reiserfs should be enough to get it to boot.
 
Old 06-13-2009, 07:52 AM   #6
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Original Poster
Rep: Reputation: 35
hmm - module ahci not found :-( Back to square one I'm afraid...

Code:
[718] root@rex:~#mkinitrd -c -k 2.6.27.7-smp -f reiserfs -r /dev/sda3 -m ahci:reiserfs -l no-latin1 -o /boot/initrd.gz
OK: /lib/modules/2.6.27.7-smp/kernel/fs/reiserfs/reiserfs.ko added.
3561 blocks
it only adds reiserfs, not ahci, and when I try modprobe ahci, it says no such module.

This is when I've booted the -huge kernel in order to build the initrd for the generic one.
 
Old 06-13-2009, 08:34 AM   #7
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Maybe it's built-in, check:

Code:
bash-3.1$ zcat /proc/config.gz | grep AHCI
CONFIG_SATA_AHCI=y
it's built-in for me, and I'm pretty sure it's built into the generic kernels:
ftp://ftp.slackware.at/slackware-12....neric-2.6.27.7
 
Old 06-13-2009, 04:28 PM   #8
Yalla-One
Member
 
Registered: Oct 2004
Location: Norway
Distribution: Slackware, CentOS
Posts: 635

Original Poster
Rep: Reputation: 35
silly me, it's built into the generic kernel... now works like a charm... duh...

Thanks much!

However, just out of sheer curiousity - one question remains - how do I figure out the name of the module from the "help" section in `make menuconfig` - anyone? ;-)

-y1
 
  


Reply

Tags
ahci, initrd


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
How to find module dependencies for initrd? depmod? newtovanilla Linux - Newbie 1 11-23-2008 07:42 PM
how to make initrd load the correct fuse module? tramni1980 Slackware 2 02-25-2007 07:21 AM
Necessity of initrd in building a kernel? Erik_the_Red Linux - Newbie 3 08-13-2005 09:53 PM
How do i find the correct kernal-module for alsa instalation jah8102 Linux - Hardware 3 01-11-2004 01:02 PM
initrd - module parameters diamondT Linux - General 0 09-03-2003 03:39 AM


All times are GMT -5. The time now is 05:32 AM.

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