Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

systemd-modules-load.service

Ben Lewis
2017-07-18
2017-10-20
  • Ben Lewis - 2017-07-18

    After installing Codesys on a RPi3 I get the following error in the boot log.

    [FAILED] Failed to start Load Kernel Modules.
    See 'systemctl status systemd-modules-load.service' for details.
    

    Checking the details I get...

    pi@raspberrypi:~ $ sudo systemctl status -l systemd-modules-load
    ● systemd-modules-load.service - Load Kernel Modules
    Β  Β Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static)
    Β  Β Active: failed (Result: exit-code) since Mon 2017-07-17 18:39:35 AEST; 17min ago
    Β  Β  Β Docs: man:systemd-modules-load.service(8)
    Β  Β  Β  Β  Β  Β man:modules-load.d(5)
    Β  Process: 948 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
    Β Main PID: 948 (code=exited, status=1/FAILURE)
    Jul 17 18:39:35 raspberrypi systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
    Jul 17 18:39:35 raspberrypi systemd[1]: Failed to start Load Kernel Modules.
    Jul 17 18:39:35 raspberrypi systemd[1]: Unit systemd-modules-load.service entered failed state.
    

    Restarting the service I get...

    pi@raspberrypi:~ $ sudo systemctl restart systemd-modules-load
    Job for systemd-modules-load.service failed. See 'systemctl status systemd-modules-load.service' and 'journalctl -xn' for details.
    

    Checking journalctl I get:

    pi@raspberrypi:~ $ sudo journalctl -xn
    -- Logs begin at Mon 2017-07-17 18:18:04 AEST, end at Mon 2017-07-17 19:01:40 AEST. --
    Jul 17 19:00:19 raspberrypi sudo[2106]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/systemctl restart sy
    Jul 17 19:00:19 raspberrypi sudo[2106]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
    Jul 17 19:00:19 raspberrypi systemd[1]: Starting Load Kernel Modules...
    -- Subject: Unit systemd-modules-load.service has begun with start-up
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit systemd-modules-load.service has begun starting up.
    Jul 17 19:00:19 raspberrypi systemd-modules-load[2112]: Failed to find module 'spi-bcm2708'
    Jul 17 19:00:19 raspberrypi systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAIL
    Jul 17 19:00:19 raspberrypi systemd[1]: Failed to start Load Kernel Modules.
    -- Subject: Unit systemd-modules-load.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    --
    -- Unit systemd-modules-load.service has failed.
    --
    -- The result is failed.
    Jul 17 19:00:19 raspberrypi systemd[1]: Unit systemd-modules-load.service entered failed state.
    Jul 17 19:00:19 raspberrypi sudo[2106]: pam_unix(sudo:session): session closed for user root
    Jul 17 19:01:40 raspberrypi sudo[2128]: pi : TTY=pts/0 ; PWD=/home/pi ; USER=root ; COMMAND=/bin/journalctl -xn
    Jul 17 19:01:40 raspberrypi sudo[2128]: pam_unix(sudo:session): session opened for user root by pi(uid=0)
    

    I am using CodeSys3.5 SP10 Patch1.

    It seems that after installing Codesys there is a problem loading the SPI kernel module.

    Regards, Ben

     

    Related

    Talk.ru: 1

  • eschwellinger

    eschwellinger - 2017-07-18

    Hi,
    is this current Jessi version?
    Never seen this bevor.

    BR
    Edwin

     
  • Ben Lewis - 2017-07-18

    I'm using the current version of Raspbian Jessie Lite. But I have also seen this behavior on previous versions.

     
  • eschwellinger

    eschwellinger - 2017-07-18

    Hi,
    could you update to 3.5SP11 Version CODESYS and Raspberry PI Package,
    if this still exists, we need to check on your system.

    BR
    Edwin

     
  • Ben Lewis - 2017-07-20

    Hi Edwin,

    The steps to reproduce this problem are:

    1. Write the latest version of Raspbian Jessie Lite to microSD card. The version I'm using is July 2017.

    2. Connect monitor, keyboard, Ethernet cable, microSD card and power to the Raspberry Pi.

    3. Login with un:
      , pw:
      .

    4. Run
      .

    5. Select
      .

    6. Select
      .

    7. Select
      .

    8. Run
      .

    9. Note, at this stage there are no errors in the boot log.

    10. On a Windows 10 PC start
      .

    11. Select
      .

    12. Enter
      ,
      and
      of the target.

    13. Select
      . The Raspberry Pi should be found.

    14. The package version should be V3.5.11.0. Select
      .

    15. Select
      .

    16. Note, the following error message now appears in the boot log.

      Failed to start Load Kernel Modules.

     
  • Wold - 2017-10-20

    I get the same error.

    Codesys 3.5 SP11
    Raspberry Pi 2 Model B
    Codesys Control for Raspberry Pi 3.5.11.20
    2017-09-07-raspbian-stretch.img sudo apt-get update and sudo apt-get dist-upgrade

    After installing Codesys Package and import License on reboot I get the same error
    "[FAILED] Failed to start Load Kernel Modules."

    Is there a solution for the problem?

     
  • eschwellinger

    eschwellinger - 2017-10-20

    Hi,
    we do not start any kernelmodule for the plc - so how should his be influenced by the CODESYS runtime?

    BR
    Edwin

     

Log in to post a comment.