Results 1 to 2 of 2
Hi All, I am trying to load a kernel module that I have for a customized SPI driver I wrote. I have read about various ways to do it including ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-06-2011 #1
- Join Date
- Jul 2011
Load kernel module on startup (Angstrom)
I am trying to load a kernel module that I have for a customized SPI driver I wrote. I have read about various ways to do it including using /etc/modules but can't seem to get it work. I ended up hacking it by just adding a script to /etc/init.d and using to update-rc.d to create the init script links, which does work... but I'm trying to really figure out the "correct" way to do it?
I am running Linux kernel 2.6.36. Thanks.
- 08-23-2011 #2
There's a couple of ways.
On my Gentoo install, you can simply add the module name to:/etc/modules.autoload.d/kernel-2.6
alternatively, you can add the loadmodule command to /etc/rc.local, which gets called every boot time."I am not an alcoholic, alcoholics go to meetings"
Registered Linux user = #372327