Raspberry Pi Runtime Issue with 4.2.0.0

sumkrnboy
2022-01-21
2024-10-17
  • sumkrnboy - 2022-01-21

    On the latest Raspberry Pi OS 32-bit image with updates performed and kernel as shown below, CODESYS Control for Raspberry PI runtime exits after about 30 seconds.

    Linux raspberrypi 5.10.92-v7l+ #1514 SMP Mon Jan 17 17:38:03 GMT 2022 armv7l
    
    ● codesyscontrol.service - LSB: Prepares and starts codesyscontrol
         Loaded: loaded (/etc/init.d/codesyscontrol; generated)
         Active: active (exited) since Fri 2022-01-21 12:01:11 PST; 31s ago
           Docs: man:systemd-sysv-generator(8)
        Process: 5053 ExecStart=/etc/init.d/codesyscontrol start (code=exited, status=0/SUCCESS)
            CPU: 10.833s
    
    Jan 21 12:01:10 raspberrypi systemd[1]: Starting LSB: Prepares and starts codesyscontrol...
    Jan 21 12:01:10 raspberrypi codesyscontrol[5057]: cat: /sys/devices/virtual/bcm2708_vcio/vcio/dev: No such file or directory
    Jan 21 12:01:10 raspberrypi codesyscontrol[5059]: mknod: missing operand after β€˜c’
    Jan 21 12:01:10 raspberrypi codesyscontrol[5059]: Special files require major and minor device numbers.
    Jan 21 12:01:10 raspberrypi codesyscontrol[5059]: Try 'mknod --help' for more information.
    Jan 21 12:01:11 raspberrypi codesyscontrol[5053]: codesyscontrol started
    Jan 21 12:01:11 raspberrypi systemd[1]: Started LSB: Prepares and starts codesyscontrol.
    
     

    Related

    Talk.ru: 1

  • eschwellinger

    eschwellinger - 2022-01-21

    Maybe I'm wrong, but I think you need a fresh install, not an update. Even Rasperrypi.org recommend not to update the distribution in case you update to bullseye. Could you try this.

     
  • sumkrnboy - 2022-01-21

    This was a fresh install.

    I performed the following:

    sudo apt-get update
    sudo apt-get upgrade
    

    After the above commands, the runtime terminates.

     
  • eschwellinger

    eschwellinger - 2022-01-22

    fresh install is flash an empty sd card with bullseye from my point of view or do you mean you update bullseye?

     

    Last edit: eschwellinger 2022-01-22
  • sumkrnboy - 2022-01-22

    That fixed it. When can we expect an official fixed release?

     
  • yann2021 - 2022-01-23

    Hello,
    I think I have the same problem. What should I do after I downloaded the script file from the German topic ?
    Many thanks for your help.

     

    Last edit: yann2021 2022-01-27
  • sumkrnboy - 2022-01-23

    Download the file and overwrite the following file:

    /opt/codesys/scripts/init-functions
    

    Restart the CODESYS Control service:

    sudo service codesyscontrol restart
    

    After 30 seconds or so, check the status of the service to see that it is still running:

    sudo service codesyscontrol status
    
     
    πŸ‘
    2
    • yann2021 - 2022-01-27

      Hello "sumkrnboy",
      Many thanks, now I can again see my devices when I click on the "Scan Network" button.

       
  • yann2021 - 2022-02-01

    Hello,
    The solution with the "corrected file" from the german forum is working but after a certain random time the runtime stop (waiting wheel on the WebVisu) and the connection to Codesys is stoped (if login). I still can "talk" to the Raspi via PuTTY so is not a network problem.
    If I run the command

    sudo service codesyscontrol restart
    

    then all come back live again.

    Any suggestions...?

     

    Last edit: yann2021 2022-02-01
  • eschwellinger

    eschwellinger - 2022-02-01

    check the plclogger for more information
    cat/tmp/codesyscontrol.log
    I fear there is maybe an problem with latest bullseye from 2022-01-28 release

     

    Last edit: eschwellinger 2022-02-01
  • Stefan - 2022-02-10
    sudo ln -sf /dev/vcio /dev/char_dev
    

    no need to override the init-functions file after that

     
    • Stefan - 2022-02-15

      You have to do this after each restart, or add the command to /etc/rc.local

       
  • vand3000 - 2022-02-14

    Hello
    I had the same issue with runtime :
    ii codesyscontrol 4.2.0.0 armhf codesyscontrol based on SDK 3.5.17.10 , from Fri Aug 27 12:04:56 CEST 2021 [121], Release build

    Solution:
    sudo rpi-update e1050e94821a70b2e4c72b318d6c6c968552e9a2

     

Log in to post a comment.