Find the answer to your Linux question:
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.
  1. #1
    Just Joined!
    Join Date
    Jul 2011
    Posts
    1

    Load kernel module on startup (Angstrom)


    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 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.

  2. #2
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    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
    and it should load on boot.

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •