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:ata:pci 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) Thanks in advance for any insight! -y1 |
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]) |
http://www.slackware.com/~alien/tool...d_generator.sh
Also part of current slackware-current/source/a/mkinitrd/mkinitrd_command_generator.sh |
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! |
I think ahci and reiserfs should be enough to get it to boot.
|
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 This is when I've booted the -huge kernel in order to build the initrd for the generic one. |
Maybe it's built-in, check:
Code:
bash-3.1$ zcat /proc/config.gz | grep AHCI ftp://ftp.slackware.at/slackware-12....neric-2.6.27.7 |
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 |
All times are GMT -5. The time now is 03:30 PM. |