Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39584 - genkernel 3.0.1beta6 initrd doesn't seem to handle ide-disk as a module
Summary: genkernel 3.0.1beta6 initrd doesn't seem to handle ide-disk as a module
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-27 11:34 UTC by Marc Bourget
Modified: 2004-02-02 08:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Modifications to genkernel 3.0.1beta9 tree (genkernel.patch,2.19 KB, patch)
2004-01-30 11:43 UTC, Marc Bourget
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Bourget 2004-01-27 11:34:38 UTC
After using genkernel 3.0.1beta6 with menuconfig and compiling ide as a module, genkernel did include ide-core not included neither ide-disk nor ide-detect modules in the initrd.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Brad House 2004-01-29 19:26:23 UTC
well, there were some bugs that are fixed in _beta9
you're going to need to make sure you add your modules
to    modules_load   inside your /usr/share/genkernel/${ARCH}
file to make sure genkernel knows to copy them to the initrd
and load them!
Comment 2 Marc Bourget 2004-01-30 11:33:41 UTC
I updated to beta9 and tried without succes. It is unclear how to add ide modules in modules_load.

I tried adding a IDE_MODULES variable and modify gen_moddeps.sh gen_initrd.sh and initrd.defaults. I probably forgot something in the script. It will probably be easier for you to see what I forgot


diff -Nru /usr/share/genkernel/gen_initrd.sh /home/okapi/genkernel/gen_initrd.sh--- /usr/share/genkernel/gen_initrd.sh  2004-01-30 14:25:51.000000000 -0500
+++ /home/okapi/genkernel/gen_initrd.sh 2004-01-30 14:24:57.000000000 -0500
@@ -117,6 +117,7 @@
        cp -ax --parents /lib/modules/${KV}/modules* ${TEMP}/initrd-temp
                                                                                
        mkdir -p "${TEMP}/initrd-temp/etc/modules"
+       print_list ${IDE_MODULES} > "${TEMP}/initrd-temp/etc/modules/ide"
        print_list ${SCSI_MODULES} > "${TEMP}/initrd-temp/etc/modules/scsi"
        print_list ${FIREWIRE_MODULES} > "${TEMP}/initrd-temp/etc/modules/firewire"
        print_list ${ATARAID_MODULES} > "${TEMP}/initrd-temp/etc/modules/ataraid"
diff -Nru /usr/share/genkernel/gen_moddeps.sh /home/okapi/genkernel/gen_moddeps.sh
--- /usr/share/genkernel/gen_moddeps.sh 2004-01-30 14:25:51.000000000 -0500
+++ /home/okapi/genkernel/gen_moddeps.sh        2004-01-30 14:24:57.000000000 -0500
@@ -52,6 +52,7 @@
 gen_dep_list()
 {
        rm -f ${TEMP}/moddeps > /dev/null
+       gen_deps ${IDE_MODULES}
        gen_deps ${SCSI_MODULES}
        gen_deps ${FIREWIRE_MODULES}
        gen_deps ${ATARAID_MODULES}
diff -Nru /usr/share/genkernel/generic/initrd.defaults /home/okapi/genkernel/generic/initrd.defaults
--- /usr/share/genkernel/generic/initrd.defaults        2004-01-30 14:25:51.000000000 -0500
+++ /home/okapi/genkernel/generic/initrd.defaults       2004-01-30 14:24:57.000000000 -0500
@@ -10,7 +10,7 @@
 KMINOR=`echo $KV | cut -f2 -d.`
 KVER="${KMAJOR}.${KMINOR}"
 MISCOPTS="cdcache idebug detect"
-HWOPTS="scsi firewire ataraid pcmcia usb"
+HWOPTS="ide scsi firewire ataraid pcmcia usb"
 MY_HWOPTS="usb firewire"
 QUIET=1
 ROOT_LINKS="bin sbin lib lib64 boot usr opt"
diff -Nru /usr/share/genkernel/x86/modules_load /home/okapi/genkernel/x86/modules_load
--- /usr/share/genkernel/x86/modules_load       2004-01-30 14:25:51.000000000 -0500
+++ /home/okapi/genkernel/x86/modules_load      2004-01-30 14:24:58.000000000 -0500
@@ -1,3 +1,10 @@
+IDE_MODULES="ide ide-io ide-iops ide-probe ide-disk \
+aec62xx alim15x3 amd74xx \
+cmd64x cs5530 cy82c693 hpt34x ns87415 \
+opti621 pdc202xx_new pdc202xx_old piix \
+rz1000 sc1200 serverworks siimage sis5513 \
+slc90e66 triflex trm290 via82cxxx"
+
 SCSI_MODULES="sd_mod sg sr_mod  \
 aic7xxx aic7xxx_old BusLogic \
 ncr53c8xx NCR53c406a \

Comment 3 Marc Bourget 2004-01-30 11:40:56 UTC
All the requier modules get into the initrd but they are not loaded. So the kernel panic since it is unable to mount /.
Comment 4 Marc Bourget 2004-01-30 11:43:22 UTC
Created attachment 24654 [details, diff]
Modifications to genkernel 3.0.1beta9 tree

Sorry I forgot to put the patch as an attachment
Comment 5 Marc Bourget 2004-02-02 08:22:29 UTC
It seems that the problem comes from the /lib/module/2.6.1-gentoo/kernel/drivers/ide which has subdirectories (legacy/  pci/) in it. All other subsystems have their modules located in the same directory.