Add support for dynamic loading of modules at boot time
|Status:||Closed||Start date:||19 Nov 2013|
|Category:||04 - Root File System|
|Severity:||04 - Low|
mdev doesn't auto-load modules though it might using /etc/modules.conf or similar (more research is needed to verify this).There are alternative methods.
A quick test shows the rc.modules doesn't work as expected. It would need some cleanup. The second option, specifically snafu's, seems the most promising as it also supports automounting.
#1 Updated by Hammel almost 5 years ago
- % Done changed from 10 to 20
Tried the rc.modules script and suprisingly it mostly works. The only serious flaw was the use of -b -a which are not supported in the Busybox version of modprobe. I haven't tried this on the RPi with the hy28a attached so it's not clear if this is going to solve the problem for that board. It also doesn't load any sound modules. So this may not solve my problem.
#2 Updated by Hammel almost 5 years ago
- % Done changed from 20 to 30
None of these methods worked for me. Since this is a targeted platform, meant specifically for the Raspberry Pi, I can fall back to an rc.modules script that just reads /etc/modules.conf and loads what it finds there. It should also test that the driver exists though that might not be necessary if modprobe can just ignore errors.Modules I know should be loaded:
- fbtft_device name=hy28a, but only if the tft display is connected. How can I test that? Maybe I'll just have to make the fbtft drivers an opkg and load them manually with an init script.
#3 Updated by Hammel almost 5 years ago
- % Done changed from 30 to 50
I created an rc.modules that reads and loads modules from /etc/modules.conf, then called it from S00dev. This seems to work. The sound modules were loaded, though it will take some testing to see if they loaded correctly. But the process of loading modules works.
I'll check these in and push upstream. They should work for the core platform as they are.