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

Raspberry Pi 64-bit support?

snguyen
2022-02-03
2023-07-14
1 2 > >> (Page 1 of 2)
  • snguyen - 2022-02-03

    Hi,

    The new release for RPI 64-bit is pretty nice, but I can't make CodeSys work on it.

    First thing that is strange is that when I install the runtime, it gives me only the choice for Single core and not Multicore. It is probably due to the fact that CodeSys search for "armv7l", and the 64-bit OS is "armv8".

    Then, the runtime won't start because of the Bullseye "/opt/codesys/scripts/init-functions", so I fix the function with the help of a previous Thread post about this, but now it just gives me "Failed to start codesyscontrol" twice.

    Anybody has made it work yet with the new Bullseye 64-bit?
    Also, did anyone experienced real issue with Bullseye 32-bit?
    Is it safe to implement on the field or I should stick with Buster 32-bit?

     
  • hermsen

    hermsen - 2022-02-03

    lets just wait until CODESYS gives some form of greenlight for it? I believe Bull's-eye is giving the Pi Runtime all kinds of issues.

     
    πŸ‘
    1

    Last edit: hermsen 2022-02-03
  • mondinmr

    mondinmr - 2022-03-04

    You could try a run condesys in chroot enviorement.
    If you add 32bit arch to 64bit OS.

    1- dpkg --add-architecture armhf
    2- Install minimal required 32bit libs, copy in /opt/codesys/lib/
    3- Copy sh and required 32bit libs in /opt/codesys/bin and lib
    4- "mount -o bind ..." /dev /sys /proc /dev/shm to empty folders in /opt/codesys
    5- copy /etc codesys files in /opt/codesys/etc
    6- copy /var/opt/codesys in /opt/codesys/var/opt/codesys
    7- use ldd to check all required libs.
    8- chroot /opt/codesys
    9- follow steps in /etc/init.d/codesyscontrol to start codesys

    This could make codesys start in 32bit enviorement hidden in 64bit system, but i don't know how it work with a 64bit kernel!

     

    Last edit: mondinmr 2022-03-04
  • eschwellinger

    eschwellinger - 2022-03-04

    Just use Linux Arm 64SL from CODESYS store.

     
    • duvan-moreno - 2022-09-14

      Can you explain more detaily how I can do that proccess. I need to run my Arch in the raspberry 4 with 64 bit instead of 32

       
  • dano42

    dano42 - 2022-06-10

    Now that we're a few months down the road with the raspberry pi runtime package on v4.4.0.0, does anyone have any success in getting the MC to run on Raspi OS x64? Or has anything been posted about it?

     
  • dano42

    dano42 - 2022-07-21

    Same behavior from 4.5.0.0. Anyone made progress on this, or see any documentation from CODESYS?

     
  • glaforteza - 2022-08-02

    any progress for the x64 or can anyone run the i2c in arm64

     
    • mondinmr

      mondinmr - 2022-08-12

      In 4.4 is quite easy use SL Extension Package to develop external components.
      Using it you could develop an external i2c component.

       
  • aliazzz

    aliazzz - 2022-08-17

    Also bumped into this situation while tested latest 32 and 64 bits Bulls'eye OS on a pi 3B+. Both variants yield:

    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name           Version      Architecture Description
    +++-==============-============-============-=================================
    iHR codesyscontrol 4.5.0.0      armhf        (no description available)
    

    Back 2 Buster, as this causes too much headaches

     

    Last edit: aliazzz 2022-08-17
  • swissguyinchile - 2022-12-04

    Hi everyone, I just realized that Runtime for Raspberry Pi does not run on 64Bit operating system. I tried with 4.4.0.0, then 4.5.0.0 (The system lets me install the single core version, but I am unable to start it). I am in the process of installing 3.5.18.30 and 4.6.0.0 and test if I can make it run.

    Has anyone been able to run at least single core on 64Bit OS?

    The problem I have, I need OpenVPN for the project I am preparing for this customer. I have been able to correctly configure OpenVPN on 64Bit OS, they did not create 32Bit OS client for Bullseye... I use OpenVPN version 3, with their server on the cloud, so I can really not go to 32Bit OS.

    I kind of really need Codesys Runtime for Raspberry Pi in 64Bit OS. Hope you guys have some news.

    Thanks.

     
  • eschwellinger

    eschwellinger - 2022-12-04

    no other chance than using Arm 64 SL on the device.

     
    • swissguyinchile - 2022-12-04

      Hi @eschwellinger, just checked the prices:

      In my case, I was going to buy for this project:
      CODESYS Control for Raspberry Pi MC SL $ 110.- Euros

      The equivalent according to the project I sold:
      CODESYS Control for ARM Linux SL $ 218.- Euros
      CODESYS WebVisu SL + $ 220.- Euros
      CODESYS Modbus TCP Master SL + $ 16.50- Euros
      CODESYS Modbus TCP Device SL + $ 16.50- Euros
      Total Purchase Price: $ 471.- Euros

      => Out of the $ 110.- Euros budget.

      I am going to investigate if I can find a VPN solution that runs on 32Bit Bullseye so I can buy the Raspberry Pi MC SL license.

      In case I don't find a VPN solution for 32Bit and I really have to put money from my pocket: Can I go for:
      CODESYS Control for Linux SL for $ 462.- Euros?
      => Which for less price includes 1 hour support.

      Thanks!

       
      • yannickasselin - 2022-12-14

        I personally use wireguard on all of our projects for remote support. It runs on 32bit Raspberry Pi OS along with CODESYS Control for Raspberry Pi MC SL. Already many of them installed without a single issue.

         
        • swissguyinchile - 2023-04-24

          Hi @yannickasselin, I never got to chank you.

          At the end the project has much delay and in the meanwhile I am using Anydesk to connect and do some testing. I am working with 32Bit OS, and it was even more comfortable because it has an Image with everything installed on it. When I worked with the 64Bit OS I had to do lots of configurations.

          I don't see other advantage on 64Bit OS other than the multicore and a faster processing. My projects are small. I was focused on 64Bit just becasue of OpenVPN and that I have such a server at the office. And I even had to configure a cloud VPN because the OpenVPN at my office was not compatible.

          I will try Wireguard and I saw some very cheap Cloud VPS's at Contabo. https://contabo.com/en/vps/ I could run one of those and put Wireguard on it. At my office I don't even have a generator, and for that price. I will investigate if I can install Wireguard on a Contabo VPS server. If anyone has had success with contabo or another "cheap provider" (Not Azure or AWS), please let me know.

           
    • sumkrnboy - 2023-05-10

      The Linux ARM64 runtime doesn't work with the latest Raspberry Pi OS 64-bit image.

      pi@raspberrypi:~ $ uname -a
      Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr  3 17:24:16 BST 2023 aarch64 GNU/Linux
      pi@raspberrypi:~ $ sudo dpkg -i codesyscontrol_linuxarm64_4.6.0.0_arm64.deb
      dpkg: error processing archive codesyscontrol_linuxarm64_4.6.0.0_arm64.deb (--install):
       package architecture (arm64) does not match system (armhf)
      Errors were encountered while processing:
       codesyscontrol_linuxarm64_4.6.0.0_arm64.deb
      
       

      Last edit: sumkrnboy 2023-05-10
  • matthew - 2023-04-19

    Is there any support for 64 bit now? The RPI Toch screens I get now are only 64 bit kernel and they no longer support 32 bit. I tried to recompile there kernel to 32 bit and there screen drivers stopped working etc Even all the default RPI OS downloads are 64 bit now.

     
    • swissguyinchile - 2023-04-24

      Hi @matthew, I don't know if this is any help for you. I did not complicate myself and the projects I sell, I sell them with screens of this company: https://sztouchwo.en.alibaba.com/?spm=a2756.trade-list-buyer.0.0.27b076e9Px9B7k&tracelog=from_orderlist_company

      I haven't taken time to see how the screen does not turn off after some minutes, but I think it's Raspbian OS configuration. This way I use the WebVisu platform.

      What worries me is that you mention that "Even all the default RPI OS downloads are 64 bit now" I will check during this week. Hopefully they don't stop giving support for 32Bit OS, and if they do, hopefully CODESYS develops the runtime for 64Bit OS.

       
      • matthew - 2023-04-24

        Hi @swissguyinchile I could not see any RPI options from the link you sent?

        My issue is I use DietPi as it's alot smaller and faster and provides alot more useful features than RPI OS Lite and they have now just started only supporting 64 bit. They do use the standard RPI kernel with no mods so should be possible to compile 32bit.

        Hopefully CodeSys supports 64bit very soon since that's what everyone is moving to for the RPI4 and CM4

        @eschwellinger do you know if there will be support for 64 bit coming soon?

         
      • matthew - 2023-04-24
         

        Last edit: matthew 2023-05-05
      • matthew - 2023-04-24
         

        Last edit: matthew 2023-05-05
      • matthew - 2023-04-24

        Hi @eschwellinger I have all my embedded RPI Touchscreen all running with DietPi and would like to get the CodeSys runtime installed, but it's 64bit OS and would like to stick with 64bit since other software runs much better. Can I maybe run the CodeSys runtime in a docker 32bit sandbox? Or is 64bit version coming soon?

         

        Last edit: matthew 2023-05-05
1 2 > >> (Page 1 of 2)

Log in to post a comment.