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

[feature request] parsing kernel cmdline parameter when modprobe #522

Open
mjiey opened this issue Oct 7, 2024 · 3 comments
Open

[feature request] parsing kernel cmdline parameter when modprobe #522

mjiey opened this issue Oct 7, 2024 · 3 comments

Comments

@mjiey
Copy link

mjiey commented Oct 7, 2024

Linux doc describes that modprobe supports two ways of passing parameter, and toybox modprobe seems to support one (modprobe command line). Could we also support reading from kernel command line? That would help a lot when using toybox across platforms.

Module parameters can be specified in two ways: via the kernel command line with a module name prefix, or via modprobe, e.g.:

(kernel command line) usbcore.blinkenlights=1
(modprobe command line) modprobe usbcore blinkenlights=1

reference: https://www.kernel.org/doc/html/v4.12/admin-guide/kernel-parameters.html

@landley
Copy link
Owner

landley commented Oct 9, 2024 via email

@mjiey
Copy link
Author

mjiey commented Oct 14, 2024

I don't find a nice doc describing order of precedence except linux-util source code ... , and current implementation is that modprobe command line overrides kernel command line.

I think the general idea is modprobe command line > modprobed config > kernel boot parameter.

Jie

@landley
Copy link
Owner

landley commented Oct 16, 2024 via email

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

No branches or pull requests

2 participants