1 Reply Latest reply on Apr 4, 2015 12:40 PM by massca

    HOWTO: make your driver load automatically at poky boot


      This guide assume you have built your driver mydriver.ko and you are able to load it into the kernel space with insmod command.

      If you want you driver to load automatically at boot you can follow below steps:

      1. copy your driver file in /lib/modules/3.10.17-poky-edison+/extra

      2. cd in /lib/modules/3.10.17-poky-Edison+ directory and execute depmod command (it will update modules.dep)

      if it worked good, executing modprobe mydriver should exit without errors

      3. go to in the /etc/modules-load.d directory

      4. create a file mydriver.conf with only 1 line with the name of the driver mydriver

      vi mydriver.conf




      After reboot your driver will be automatically loaded.

      Check it with lsmod command.