Stopping modules at startup

Associate
Joined
17 Jan 2005
Posts
735
Location
Lincoln
Evening all,

Bit of a n00b question

Currently teaching myself linux (Debian 3.1r2 - stock 2.4 kernel) everything is running fine... (famous last words I know)

Though on startup it would seem that 2 modules are trying to load and being unable.

After a quick perusal of dmesg the error messages are

shpchp: acpi_shpchprm:get_device PCI ROOT HID fail=0x1001

pciehp: acpi_pciehprm:get_device PCI ROOT HID fail=0x1001

As everything is running ok, im guessing I don't need these modules anyway. After a bit of research I found out that ACPI isn't supported in the stock 2.4 kernel.

So, how do I stop the OS from trying to load these modules? - i've had a quick trawl round /etc/rcS.d but not finding much.

I could blacklist these modules I guess, but wouldn't it be better just stop to them from loading?

I can post my full dmesg log if required

Thanks in advance
 
Kaed said:
Evening all,

I could blacklist these modules I guess, but wouldn't it be better just stop to them from loading?

Thanks in advance

I don't know whether I'm the one being dense, but wouldn't adding them to /etc/hotplug/blacklist as described here prevent them from loading/trying to load in the first place? Or have I got this blacklist thing backwards?

Anyway, do the modules actually fail to load? I.e. is there a:
Code:
FATAL: Error inserting pciehp (/lib/modules/2.6.10-9-amd64-k8/kernel/drivers/pci/hotplug/pciehp.ko): No such device
Or do we think the drivers are loaded already but are complaining once loaded?
 
adamofgreyskull said:
I don't know whether I'm the one being dense, but wouldn't adding them to /etc/hotplug/blacklist as described here prevent them from loading/trying to load in the first place? Or have I got this blacklist thing backwards?

No you haven't got it backwards, that was an idea I thought of as well.

Blacklisting them although that would be the 'easy way' I figured I would learn more by finding where they were loading from and taking them out from there.

Rather than having them try to load only for something to come along and say 'well, actually your not supposed to load' :)

Does the kernel have what modules it's supposed to load compiled into it and it's reading it from there? (hence a blacklist may be the only way?) or am I just not looking in the right place for the startup scripts etc ?

adamofgreyskull said:
Anyway, do the modules actually fail to load? I.e. is there a:
Code:
FATAL: Error inserting pciehp (/lib/modules/2.6.10-9-amd64-k8/kernel/drivers/pci/hotplug/pciehp.ko): No such device
Or do we think the drivers are loaded already but are complaining once loaded?

Can't see any mention of the error you posted and according to lsmod, no they are not loaded.

Hope im making sense :)
 
Last edited:
Back
Top Bottom