Skip to contentSkip to conversation

kernel internal built in module loading order

DISCUSSION Jim 3 participants 3 messages Oct 20, 2006 1 message not in the archive

lore
Share & tools
lore

Jim

author
#0 lore raw

Hi,

Does the kernel load internal built in modules (obj-y) in a certain order, or in a random order? Does the kernel internal module loading based on a configuration file?

I am running an ARM system, is there a way to delay the Ethernet module loading until some other internal modules are loaded?

Thank you.

Jim

#1 lore raw
Quoted 3 lines

Does the kernel load internal built in modules (obj-y) in a certain order,

Yes. As far as I can tell:

- special ordering (when you find __define_initcall in the kernel source, you know)

and

- linking order

play a role.

Quoted 3 lines

or
in a random order? Does the kernel internal module loading based on a configuration file?

/etc/modprobe.conf, but the proper answer would be "no".

Quoted 3 lines

I am running an ARM system, is there a way to delay the Ethernet module loading
until some other internal modules are loaded?

I am sure you can use some modprobe magic, such as:

install 8139too /usr/local/bin/my-8139-loader

And your 8139-loader contains:

#!/bin/bash

while ! condition; do

	sleep 1;

done;
modprobe 8139too;

I just don't know how well that fares when you are trying to modprobe from within modprobe.

	-`J'
#3 lore raw
In reply to a message not in the archive
Quoted 7 lines

Hi,
Does the kernel load internal built in modules (obj-y) in a certain order, or in a random order? Does the kernel internal module loading based on a configuration file?
I am running an ARM system, is there a way to delay the Ethernet module loading until some other internal modules are loaded?
Thank you.

Yes, it follows some rules.

Please refer to the "3.2 Built-in object goals - obj-y" section of your kernel_source_root/Documentation/kbuild/makefiles.txt

Michael