cm4 runtime problem

2024-05-02
2024-09-16
  • 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

Log in to post a comment.