Alexander E. Patrakov wrote:
WARNING: the patch is incomplete. It assumes that SCSI module
autoloading rules are already added, but they are in fact not.
Erm, they are in the udev-config-6.rules file, unless you've spotted a
problem with those?
+ <para>Create some rules that work around broken sysfs attribute creation
+ timing in linux-2.6.15:</para>
Can these be put in our existing rules file? I'd rather just have 1
rules file if at all possible.
+ <sect3>
+ <title>A kernel module is not loaded automatically</title>
+ <para>Udev loads only modules that have bus-specific aliases, and only if
+ the bus driver properly exports the wanted aliases to <systemitem
+ class="filesystem">sysfs</systemitem>. In other cases, one should
+ arrange module loading by other means. With linux-2.6.15, Udev is known
Are these "other means" more or less always via S05modules? If so, I
think it'd be more helpful to folks to be explicit about that. Or are
there cases where S05modules won't work, or will do the wrong thing?
+ <para>Otherwise, udev is not supposed to load this
+ module with this kernel version.</para>
I couldn't understand what case the sentence above referred to. Here's
the cases I think we can encounter:
1) modalias file present
1.1) modalias contents match the module alias in the driver
1.1.1) module alias exported to uevent environment
1.1.2) module alias not exported to uevent environment
1.2) modalias contents don't match the module alias in the driver
2) modalias file not present
1.1.1 is an example of a driver that Udev will handle properly
1.1.2 describes the status of the input subsystem in Linux-2.6.15.x
1.2 sounds like a bug to me, do we have any examples of in-kernel
drivers like this?
2 describes the status of the ISA and IDE subsystems in Linux-2.6.15.x
Are there any other cases we can hit?
Now that I understand how a device driver module is loaded, I have one
last question. What triggers a modular *bus* driver to be loaded? Or
does the kernel automatically try to load support for every bus that has
a driver compiled for it (be that modular or compiled in)?
Many many thanks for taking the time to write such comprehensive
material, Alexander and apologies for taking so long to review it.
Aside from a couple of very minor wording changes it's spot on. I'll
wait for your feedback on these last few issues, but should be able to
get your changes in to the book in the next couple of days.
Regards,
Matt.
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page