I know that when you run localmodconfig
, only the loaded modules are copied to the new configuration file and that is my problem.
For example, the sound card goes to sleep after about 30 seconds and so the module for the sound card gets unloaded and is not copied to the new config file, but there are also other modules that are unloaded and not teaken over to the new config file.
How can I transfer all needed modules into the config?
I've already tried the following:
Exported the output of lsmod
to a file (mylsmod
)
lsmod > /tmp/mylsmod
and executed it with the command
make LSMOD=/tmp/mylsmod localmodconfig
However, modules are still missing, because when running lsmod
not all modules are loaded. I've run lsmod several times and each time I get a different result (lines in the file), sometimes it is 144 lines and another time 119 lines.
How do I get lsmod to include the unloaded modules in the file?