cm4 runtime problem

2024-05-02
2026-02-02
  • michelebianchi - 2024-05-02

    hello i have installed codesys runtime mc sl and sl on a CM4 but after 30 second process exit.
    have tried those runtime versions: 4.08 4.09 4.10 4.11
    i get this message in all situations:

    ooops... this runtime was built for RASPBERRYPI. Hardware version or firmware version not supported! (-18, 0x00000BB8, 0xFFFFFFFB)

    os version is raspbian bullseye

     

    Last edit: michelebianchi 2024-05-02
  • paulpotat

    paulpotat - 2024-08-28

    Hello,
    I have exactly the same issue, with the following configuration :

    Hardware version

    >>> cat /proc/cpuinfo
    processor       : 0
    model name      : ARMv7 Processor rev 3 (v7l)
    BogoMIPS        : 108.00
    Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x0
    CPU part        : 0xd08
    CPU revision    : 3
    
    processor       : 1
    model name      : ARMv7 Processor rev 3 (v7l)
    BogoMIPS        : 108.00
    Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x0
    CPU part        : 0xd08
    CPU revision    : 3
    
    processor       : 2
    model name      : ARMv7 Processor rev 3 (v7l)
    BogoMIPS        : 108.00
    Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x0
    CPU part        : 0xd08
    CPU revision    : 3
    
    processor       : 3
    model name      : ARMv7 Processor rev 3 (v7l)
    BogoMIPS        : 108.00
    Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x0
    CPU part        : 0xd08
    CPU revision    : 3
    
    Hardware        : BCM2711
    Revision        : a03141
    Serial          : 10000000d5be5b5f
    Model           : Raspberry Pi Compute Module 4 Rev 1.1
    

    Kernel version

    >>> uname -a
    Linux raspberrypi 6.1.21-v7l+ #1642 SMP Mon Apr  3 17:22:30 BST 2023 armv7l GNU/Linux
    

    OS Version

    >>> cat /etc/os-release
    PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="11"
    VERSION="11 (bullseye)"
    VERSION_CODENAME=bullseye
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/"
    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
    

    /boot/config.txt
    I added the following line :

    arm_64bit=0
    

    CodeSys runtime
    version 4.10

    Were you able to solve the issue @michelebianchi ?
    Any help with this would be appreciated...

    BR

     

    Last edit: paulpotat 2024-08-28
  • eschwellinger

    eschwellinger - 2024-08-30

    guess you will need probably 4.13.0.0

     

    Last edit: eschwellinger 2024-08-30
  • paulpotat

    paulpotat - 2024-09-02

    It looks like it works with 4.13.0.0 indeed.
    However when installing the runtime, it's not possible to select the multicore option (see attachment).

    But once the 4.13.0.0 runtime is installed, the logs seems to indicate that the runtime is running in multicore mode. Looking at "htop" output, it seems like it actually is running on multiple CPU. This is very misleading, is it normal or is this a bug ?

    Thank you for your answer @eschwellinger,
    BR

     
  • paulpotat

    paulpotat - 2024-09-09

    Hello again,

    After looking into it, I noticed that the release note of "CODESYS Control for Raspberry PI 4.13.0.0" mentions a bug fix titled "Support Compute module 4".

    Is it possible to have more details about this fix from the CodeSys team please ?
    Because I have several CM4 boards with the same hardware revision / OS but some of them works with the 4.10 runtime and others only works with the 4.13 runtime...

     
  • wbj0t - 2024-09-16

    Hello. Try run /opt/codesys/bin/codesyscontrol_armv6l_raspberry.bin, not 7l
    Becouse when I see link codesyscontrol.bin on my CM4, it shows next:
    codesyscontrol.bin -> /opt/codesys/bin/codesyscontrol_armv6l_raspberry.bin

     

    Last edit: wbj0t 2024-09-16
  • paulpotat

    paulpotat - 2026-02-02

    Hello,

    We are having the same kind of problem again with the last CM4 we received :

    ooops... this runtime was built for RASPBERRYPI. Hardware version or firmware version not supported! (-18, 0x00000BB8, 0xFFFFFFFB)
    

    Hardware Version

    $ cat /proc/cpuinfo
    processor       : 0
    model name      : ARMv7 Processor rev 3 (v7l)
    BogoMIPS        : 126.00
    Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x0
    CPU part        : 0xd08
    CPU revision    : 3
    
    processor       : 1
    model name      : ARMv7 Processor rev 3 (v7l)
    BogoMIPS        : 126.00
    Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x0
    CPU part        : 0xd08
    CPU revision    : 3
    
    processor       : 2
    model name      : ARMv7 Processor rev 3 (v7l)
    BogoMIPS        : 126.00
    Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x0
    CPU part        : 0xd08
    CPU revision    : 3
    
    processor       : 3
    model name      : ARMv7 Processor rev 3 (v7l)
    BogoMIPS        : 126.00
    Features        : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32
    CPU implementer : 0x41
    CPU architecture: 7
    CPU variant     : 0x0
    CPU part        : 0xd08
    CPU revision    : 3
    
    Hardware        : BCM2711
    Revision        : a03141
    Serial          : 1000000097594db7
    Model           : Raspberry Pi Compute Module 4 Rev 1.1
    

    Kernel Version

    $ uname -a
    Linux cmr-pv2-1t00-0001 6.12.25-rt9-v7l #1 SMP PREEMPT_RT Thu Sep 25 11:53:00 CEST 2025 armv7l GNU/Linux
    

    OS Version

    $ cat /etc/os-release
    PRETTY_NAME="Raspbian GNU/Linux 12 (bookworm)"
    NAME="Raspbian GNU/Linux"
    VERSION_ID="12"
    VERSION="12 (bookworm)"
    VERSION_CODENAME=bookworm
    ID=raspbian
    ID_LIKE=debian
    HOME_URL="http://www.raspbian.org/"
    SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
    BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
    

    CodeSys runtime
    4.13.0.0

    So far we tested runtime versions up to 4.18.0.0, here are the results :
    * 4.13.0.0 --> Not working ❌
    * 4.14.0.0 --> Not working ❌
    * 4.15.0.0 --> Not working ❌
    * 4.16.0.0 --> Not working ❌
    * 4.17.0.0 --> Working βœ…
    * 4.18.0.0 --> Working βœ…

    There is nothing in the 4.17.0.0 release note that mentions that, so I'm not sure what to think about this.
    Is this a known problem within the CodeSys development team ? If yes, how do you follow CM4 hardware evolutions ?

    Is there a way of making this work without having to update the runtime version ? We have several products working with the 4.13.0.0 runtime and we would like to avoid having to update them all.

    BR

     
  • eschwellinger

    eschwellinger - 2026-02-02

    no - you need to update,
    smallest impakt is just to install the debiab package on target side.
    Nothing else ( no updates in CODESYS)

     

Log in to post a comment.