Issue with the CP1616 linux driver

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
2 posts • Page 1 of 1
jvalbom
Posts: 1
Joined: Fri Sep 06, 2019 9:07 am

Issue with the CP1616 linux driver

Post by jvalbom » Tue Oct 08, 2019 2:46 pm

Hi,

I came to the conclusion that the CP1616 linux driver installation does not work with the WinCC OA v3.16 requirements for a CentOS system. I am going to present what I have tested, please correct me if I am wrong or if I have skipped a step. In fact the installation fails with this error message “ERROR: could not insert ‘cp16xx’: Unknown symbol in module or unknown parameter (see dmesg)“ and the dmesg indicates “cp16xx: Unknown symbol old_rsp (err 0)”. The test has been done with exactly this configuration:
  • CP1616 Software Product version: V2.7.1.0
  • Linux distribution: CentOs 7.5 1804 with the 64-bit x86 architecture.
  • Kernel: 3.10.0-862
Image

After that, a second test has been done with the new version 2.8.1.0 of the CP1616 driver but no change has been noticed.

The ’’Read me” file, provided in the DK-1616, indicates that the “’The Linux driver supports Linux Kernel versions up to 3.7.0”.

Image

In accordance, a new attempt has been done with a previous version of CentOS with the following configuration:
  • CP1616 Software Product version: V2.8.1.0
  • Linux distribution: CentOs release 6.9 (final) with the 64-bit x86 architecture.
  • Kernel: 2.6.32-696.el6.i386
The “make command” gives the error message “FATAL: modpost: GPL-incompatible module cp16xx.ko uses GPL-only symbol ‘compat_alloc_user_space’ “. An issue already reported in the SIEMENS forum in 2014 without answer.

A last attempt has been done with a 32 bits architecture with this following configuration:
  • CP1616 Software Product version: V2.8.1.0
  • Linux distribution: CentOs release 6.9 (final) with the 32-bit x86 (i386) architecture.
  • Kernel: 2.6.32-696.el6.i386
Finally, the driver has been installed without error. However, the 32 bits architecture is not compatible with the hardware requirements for WinCC OA, which calls into questions the deployment of a WinCC OA profisafe communication up to SIL 3.
For that reason, I asked for help the community if someone can provide some proven configuration examples complying with the WinCC OA v3.16 requirements (i.e. x86_64 architecture) to implement (compile and install) a CP1616 Linux driver?
In addition, will SIEMENS update the driver to support future versions of the Linux kernel (i.e. after 3.7.0) as to cope with future modification needs (e.g. security update fix)?

Best regards,

Jérémie

User avatar
leoknipp
Posts: 1936
Joined: Tue Aug 24, 2010 5:28 pm

Re: Issue with the CP1616 linux driver

Post by leoknipp » Wed Oct 09, 2019 7:51 am

I asked our developer.
It worked when using the following setup:
CentOS 7.6
kernel 3.10.0-862.14.4.el7.x86_64
DK16xx-2.8.0.0 copied from the WinCC OA V3.16 Setup
On Windows the Linux files are included in the setup, you can use these files.

We made made some change to the makefiles for "pniolib" and "servlib":
DEBIAN_VERSION_FILE =/etc/debian_version
DEBIAN_VERSION_FILE =/etc/centos-release

It also worked when using DK16xx-2.8.1.0

Best Regards
Leopold Knipp
Senior Support Specialist

Post Reply
2 posts • Page 1 of 1