Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4500 - /etc/modules.autoload not accepting paramters
Summary: /etc/modules.autoload not accepting paramters
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: Highest major (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-07-03 15:48 UTC by Milosz
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Milosz 2002-07-03 15:48:47 UTC
While attempting to install a CDR i discored an error in the way gentoo
/etc/modules.autoload is processed (i'm assuming an init script error). Trying
to get ide cdrom + a ide-scsi emulated burner to work, i have all the modules
compiled: ide-cd, sg, sr_mod, scsi_mod, ide-scsi, cdrom. Now when i loaded the
modules by hand in the folowing order it works:
modprobe ide-cd ignore=hdd
modprobe ide-scsi
modprobe sg
modprobe sr_mod
now this works and /dev/hdc is a ide cdrom and /dev/sd0 is a scsi cdrom and i
can burn stuff.
Now if i edit /etc/modules.autoload so it's like this:
ide-cd ignore=hdd
ide-scsi
sg
sr_mod
What happens is the ide-cd takes over both it ignores the (ignore=hdd) and the
scsi cdrom driver, handles nothing. Now i concluded that this must be an error
in the way /etc/modules.autoload is read, exectured, ...
Now you might say that params are not supported, but look at the man page for
modules.autoload: " The /etc/modules.autoload file contains the names of 
ker
Comment 1 Milosz 2002-07-03 15:48:47 UTC
While attempting to install a CDR i discored an error in the way gentoo
/etc/modules.autoload is processed (i'm assuming an init script error). Trying
to get ide cdrom + a ide-scsi emulated burner to work, i have all the modules
compiled: ide-cd, sg, sr_mod, scsi_mod, ide-scsi, cdrom. Now when i loaded the
modules by hand in the folowing order it works:
modprobe ide-cd ignore=hdd
modprobe ide-scsi
modprobe sg
modprobe sr_mod
now this works and /dev/hdc is a ide cdrom and /dev/sd0 is a scsi cdrom and i
can burn stuff.
Now if i edit /etc/modules.autoload so it's like this:
ide-cd ignore=hdd
ide-scsi
sg
sr_mod
What happens is the ide-cd takes over both it ignores the (ignore=hdd) and the
scsi cdrom driver, handles nothing. Now i concluded that this must be an error
in the way /etc/modules.autoload is read, exectured, ...
Now you might say that params are not supported, but look at the man page for
modules.autoload: " The /etc/modules.autoload file contains the names of 
ker­nel  modules  that  are to be loaded at boot time, one per line. Arguments
can be given in the same line as the  mod­ule name. ..."
Comment 2 SpanKY gentoo-dev 2002-07-03 20:22:14 UTC
thats odd, my modules.autoload works just fine for me ...
<modules.autoload>
ne io=0x300
ewrk3 irq=11 io=0x280
</modules.autoload>
neither will not work if the IO and IRQ arent specified properly ...

could you post the boot up screen ?
when you load gentoo its gonna say something along the lines of:
      Loading module ide-cd
      Loading module ide-scsi

just post exactly what is displayed on boot ... also, as soon as you get the 
login prompt, type `dmesg` and post the information that you see there ... if 
you can, try to pick out the information that is relative, but if you're 
unsure, just post it all
Comment 3 Milosz 2002-07-03 22:07:13 UTC
here is some info i generated:

results from dmsg (minus preempt msg) the module section:
<dmesg>
Linux Tulip driver version 0.9.15-pre10 (Mar 8, 2002)
PCI: Found IRQ 11 for device 00:09.0
eth0: ADMtek Comet rev 17 at 0xe400, 00:20:78:08:3A:1D, IRQ 11.
usb-uhci.c: $Revision: 1.275 $ time 12:44:37 Jul  3 2002
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: USB UHCI at I/O 0xe000, IRQ 10
usb-uhci.c: Detected 2 ports
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 2 ports detected
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
usb.c: registered new driver usb_mouse
usbmouse.c: v1.6:USB HID Boot Protocol mouse driver
mice: PS/2 mouse device common for all mice
nvidia: loading NVIDIA NVdriver Kernel Module  1.0-2960  Tue May 14 07:41:42 PDT
2002
maestro3: version 1.22 built at 12:44:26 Jul  3 2002
PCI: Found IRQ 9 for device 00:0b.0
maestro3: Configuring ESS Allegro found at IO 0xE800 IRQ 9
maestro3:  subvendor id: 0x41001092
hub.c: USB new device connect on bus1/1, assigned device number 2
input0: Logitech USB Mouse on usb1:2.0
ac97_codec: AC97 Audio codec, id: 0x4583:0x8308 (ESS Allegro ES1988)
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
</dmsg>

seams like the kernel autoloads those damn modules:
<a lot up in dmesg file>
Adding Swap: 136512k swap-space (priority -1)
SCSI subsystem driver Revision: 1.00
hdc: ATAPI 44X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
hdd: ATAPI 6X CD-ROM CD-R/RW drive, 768kB Cache, DMA
XFS mounting filesystem ide0(3,66)
XFS mounting filesystem ide0(3,67)
</a lot up in dmesg file>

my complete modules.autocon file:
<modules.autoconf>
tulip
usb-uhci
usbmouse
mousedev
acpi_ac
acpi_button
NVdriver
maestro3
ide-cd ignore=hdd
ide-scsi
sg
sr_mod
</modules.autoconf>

here is what the bootup msg say (all of em are OK which i took the libery of
erasin):
<boot>
* Calculating module dependencies...
 *   Loading module tulip...
 *   Loading module usb-uhci...
 *   Loading module usbmouse...
 *   Loading module mousedev...
 *   Loading module acpi_ac...
 *   Loading module acpi_button...
 *   Loading module NVdriver...
 *   Loading module maestro3...
 *   Loading module ide-cd...
 *   Loading module ide-scsi...
 *   Loading module sg...
 *   Loading module sr_mod...
</boot>

resaults of lsmod after boot:
<lsmod>
sg                     24900   0  (unused)
ide-scsi                7488   0 
maestro3               25000   1 
soundcore               3972   2  [maestro3]
ac97_codec              9728   0  [maestro3]
NVdriver              988672  10 
acpi_button             2248   0  (unused)
acpi_ac                 1928   0  (unused)
mousedev                3872   1 
usbmouse                1792   0  (unused)
usb-uhci               21892   0  (unused)
tulip                  37632   1 
ide-cd                 27104   0  (autoclean)
sr_mod                 11576   0  (autoclean) (unused)
scsi_mod               52604   3  (autoclean) [sg ide-scsi sr_mod]
cdrom                  27744   0  (autoclean) [ide-cd sr_mod]
</lsmod>

here is dmesg after unloading the modules (sg, ide-scsi, ide-cd, sr_mod,
scsi_mod, cdrom)
and loading them by had using the console (as you can see no errors):
<console>
helios root # modprobe ide-cd ignore=hdd
helios root # modprobe ide-scsi
helios root # modprobe ide-sg
helios root # modprobe sg
helios root # modprobe sr_mod
</console>

one strage thing about this is that the ide-cd msg comes after the scsi msg,
even tho
the ide-cd is loaded first:
<dmesg>
SCSI subsystem driver Revision: 1.00
hdc: ATAPI 44X CD-ROM drive, 128kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
ide-cd: ignoring drive hdd
SCSI subsystem driver Revision: 1.00
scsi0 : SCSI host adapter emulation for IDE ATAPI devices
  Vendor: IDE-CD    Model: ReWritable-2x2x6  Rev: 3.09
  Type:   CD-ROM                             ANSI SCSI revision: 02
Attached scsi CD-ROM sr0 at scsi0, channel 0, id 0, lun 0
sr0: scsi3-mmc drive: 6x/6x writer cd/rw xa/form2 cdda tray
</dmesg>

lsmod after loading modules by hand:
<lsmod>
sr_mod                 11576   0  (unused)
sg                     24900   0
ide-scsi                7488   0
scsi_mod               52604   3  [sr_mod sg ide-scsi]
ide-cd                 27104   0
cdrom                  27744   0  [sr_mod ide-cd]
maestro3               25000   0  (unused)
soundcore               3972   2  [maestro3]
ac97_codec              9728   0  [maestro3]
NVdriver              988672  10
acpi_button             2248   0  (unused)
acpi_ac                 1928   0  (unused)
mousedev                3872   1
usbmouse                1792   0  (unused)
usb-uhci               21892   0  (unused)
tulip                  37632   1
</lsmod>
Comment 4 Milosz 2002-07-04 09:28:14 UTC
fixed by passing arguments to the kernel at boot time, strange because both are
modules so they shouldn't be loaded in.