nerves_runtime icon indicating copy to clipboard operation
nerves_runtime copied to clipboard

Load modules from /etc/modules

Open fhunleth opened this issue 6 years ago • 4 comments

Intended to be merged after #130.

Auto-load modules listed in the /etc/modules file. This makes it possible for systems to specify (and users to override) the load of kernel modules that may not be detectable via uevent messages.

Previously these modules were compiled into the kernel, but this does not support cases where they could be optional. For example, it would be nice to have a few USB gadget driver options without hardcoding them into the kernel. This lets systems be made where the default case loads a Ethernet/serial gadget driver (for example), but that can be disabled by overriding /etc/modules with a different set of drivers.

fhunleth avatar Mar 24 '19 02:03 fhunleth

I presume this would enable this to work dynamically: https://github.com/nerves-project/nerves_system_rpi0/pull/62

GregMefford avatar Mar 24 '19 13:03 GregMefford

FYI - there's some out-of-band discussion on how this is handled. E.g., by file in /etc/modules or by Application config or some other mechanism. That's why this hasn't been merged yet.

fhunleth avatar Apr 01 '19 14:04 fhunleth

I'm curious if there's any update / recap on the discussion/trade-offs because I lost track of it and assumed it was already decided/merged.

GregMefford avatar Apr 09 '19 23:04 GregMefford

It hasn't been resolved. Justin got busy and I haven't prototyped an Application config version so that we can properly compare options.

fhunleth avatar Apr 10 '19 00:04 fhunleth