Preparation of CodeSys RPi Release image (-> remove Engineering license)

lefish
2021-08-06
2021-08-09
  • lefish - 2021-08-06

    Hi there,

    I would like to prepare a clean (in terms of stripped of CodeSys license) Raspberry Pi image ready for release.

    Whenever a new device is sold I would like to flash the clean image, connect with my IDE to the device and activate a new CodeSys license on the device.

    My question: Which files do I need before creating the clean release image?

    I know of the following folder: /var/opt/codesys with the following relevant content:

    pi@mypi:~ $ tree /var/opt/codesys/
    /var/opt/codesys/
    β”œβ”€β”€ 3SLicense.wbb
    β”œβ”€β”€ backup
    β”‚Β Β  └── 3SLicenseInfo.tar
    β”œβ”€β”€ bacstac.ini
    β”œβ”€β”€ cert
    β”‚Β Β  β”œβ”€β”€ export
    β”‚Β Β  └── import
    β”œβ”€β”€ cmact_licenses
    β”‚Β Β  β”œβ”€β”€ 128-somenumber1.dyn
    β”‚Β Β  β”œβ”€β”€ 128-somenumber2.dyn
    β”‚Β Β  β”œβ”€β”€ somenumber3.wbb
    β”‚Β Β  β”œβ”€β”€ somenumber4.wbb
    β”‚Β Β  β”œβ”€β”€ info.lic
    β”‚Β Β  └── secure.cnt
    β”œβ”€β”€ CMLicenseNew.WibuCmRaU
    β”œβ”€β”€ _cnc
    β”œβ”€β”€ PlcLogic
    β”‚Β Β  β”œβ”€β”€ ac_persistence
    β”‚Β Β  β”œβ”€β”€ alarms
    β”‚Β Β  β”œβ”€β”€ Application
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Application.app
    β”‚Β Β  β”‚Β Β  β”œβ”€β”€ Application.crc
    β”‚Β Β  β”‚Β Β  └── Application.ret
    β”‚Β Β  β”œβ”€β”€ _cnc
    β”‚Β Β  β”œβ”€β”€ RETAIN.ret
    β”‚Β Β  β”œβ”€β”€ trend
    β”‚Β Β  └── visu
    β”‚Β Β      β”œβ”€β”€ somepic.png
    β”‚Β Β      β”œβ”€β”€ application.imagepoolcollection.csv
    β”‚Β Β      β”œβ”€β”€ application_visuusermgmtdb.csv
    β”‚Β Β      
    β”œβ”€β”€ restore
    β”œβ”€β”€ SysFileMap.cfg
    β”œβ”€β”€ visu
    └── WibuCtxt.ctx
    

    Thanks!

    Best regards,
    LeFish

     

    Last edit: lefish 2021-08-06
  • jspyker - 2021-08-09

    Hey.

    We are planning a similar approach to this with our products in the near future. We are looking to streamline setting up our CODESYS devices by having a pre-built image ready to go.

    How did you get on with this? Anyone else have any information on this topic?

     

    Last edit: jspyker 2021-08-09
  • eschwellinger

    eschwellinger - 2021-08-09

    Hi,
    just clean up the content in
    cmact_licenses... or delete the whole directory.
    On bootup on the new device this will generated with binding the new hardware ( new empty softcotainer). Thats it.
    Best Regards
    Edwin

     

    Last edit: eschwellinger 2021-08-09

Log in to post a comment.