Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load modules from /etc/modules #131

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Load modules from /etc/modules #131

wants to merge 1 commit into from

Conversation

fhunleth
Copy link
Member

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.

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.
@GregMefford
Copy link
Contributor

I presume this would enable this to work dynamically: nerves-project/nerves_system_rpi0#62

@fhunleth
Copy link
Member Author

fhunleth commented Apr 1, 2019

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.

@GregMefford
Copy link
Contributor

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.

@fhunleth
Copy link
Member Author

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 fhunleth changed the base branch from master to main July 1, 2020 14:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants