Table of Contents

License Overview

All available licenses can be found at /proc/license.

~ $ cd /proc/license/
/proc/license $ ls -al
dr-xr-xr-x    2 root     root            0 Jan  1 00:08 .
dr-xr-xr-x   34 root     root            0 Jan  1  1970 ..
-rw-rw-rw-    1 root     root            0 Jan  1 00:08 codesys
-rw-rw-rw-    1 root     root            0 Jan  1 00:08 halcon
-rw-rw-rw-    1 root     root            0 Jan  1 00:08 visualapplets

License Check

Direct Method

The actual state of a specific license can be received using the cat command.

~ $ cat /proc/license/codesys
product=CoDeSys
feature=full
expires=never
id=000800f9a5c6
serial=999999
-----BEGIN SIGNATURE-----
...
-----END SIGNATURE-----
 
~ $ cat /proc/license/halcon
not available

If there is only some character garbage in return to the cat command try the → All Licenses Removal

Indirect Method

You can also check the log messages at /var/log/messages if any license checkout failure ocurred

~ $ cat /var/log/messages
Jan  1 00:00:00 SBO-00-0E-F0-01-00-AC syslog.info syslogd started: BusyBox v1.5.1
Jan  1 00:00:05 SBO-00-0E-F0-01-00-AC auth.info login[62]: root login on 'pts/0'
Jan  1 00:31:22 SBO-00-0E-F0-01-00-AC user.err plclinux-2-4-6: CoDeSys license check error (err code: -1), terminating.

License Installation

Commandline

Copy the license file license_xx.dat to your device (i.e. via TFTP) and copy it into the correct place

/ffx $ cat license_codesys_000800f9a5c6.dat > /proc/license/codesys

SBOF

If you've got a SBO license file (e.g. license-codesys-000800f9a5c6.sbof), you can use the SBO Devicemanager to download the license file to your device.

License Removal

Commandline

To remove ALL licenses execute the following commands

~ $ flash_eraseall /dev/mtd9
~ $ flash_unlock /dev/mtd9
~ $ reboot

To remove only ONE special license execute the following command (i.e. for codesys license removal)

~ $ rmlicense /proc/license/codesys