<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent posts to CmpCharDevice blocks gpiochip access on Raspberry Pi 5 since update from SP18 to SP21</title><link>https://forge.codesys.com/forge/talk/Runtime/thread/e7f7cd3ad7/</link><description>Recent posts to CmpCharDevice blocks gpiochip access on Raspberry Pi 5 since update from SP18 to SP21</description><language>en</language><lastBuildDate>Mon, 20 Jul 2026 17:10:42 -0000</lastBuildDate><atom:link href="https://forge.codesys.com/forge/talk/Runtime/thread/e7f7cd3ad7/feed.rss" rel="self" type="application/rss+xml"></atom:link><item><title>CmpCharDevice blocks gpiochip access on Raspberry Pi 5 since update from SP18 to SP21</title><link>https://forge.codesys.com/forge/talk/Runtime/thread/e7f7cd3ad7/?limit=25#3bb8</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;wird nicht mit kopiert - sorry:&lt;br/&gt;
PermittedPath.0=/dev/i2c&lt;em&gt;&lt;br/&gt;
PermittedPath.1=/dev/spidev&lt;/em&gt;&lt;br/&gt;
PermittedPath.2=/sys/class/gpio/&lt;em&gt;&lt;br/&gt;
PermittedPath.3=/dev/gpiochip&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charly29160</dc:creator><pubDate>Mon, 20 Jul 2026 17:10:42 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com7372c0cc8f572a9c442fc4569f42ea253ec6c952</guid></item><item><title>CmpCharDevice blocks gpiochip access on Raspberry Pi 5 since update from SP18 to SP21</title><link>https://forge.codesys.com/forge/talk/Runtime/thread/e7f7cd3ad7/?limit=25#9641</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Problem gefunden und erledigt =&amp;gt; in CODESYSControl_User.cfg ergänzt:&lt;br/&gt;
&lt;span&gt;[CmpCharDevice]&lt;/span&gt;&lt;br/&gt;
PermittedPath.0=/dev/i2c&lt;em&gt;&lt;br/&gt;
PermittedPath.1=/dev/spidev&lt;/em&gt;&lt;br/&gt;
PermittedPath.2=/sys/class/gpio/&lt;em&gt;&lt;br/&gt;
PermittedPath.3=/dev/gpiochip&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Dann funktioniert es wieder&lt;br/&gt;
Gruß&lt;br/&gt;
Karl Schuler&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charly29160</dc:creator><pubDate>Mon, 20 Jul 2026 17:09:11 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.come3dbd44eadb2be8de76d46eda5d47a3ceca97a60</guid></item><item><title>CmpCharDevice blocks gpiochip access on Raspberry Pi 5 since update from SP18 to SP21</title><link>https://forge.codesys.com/forge/talk/Runtime/thread/e7f7cd3ad7/?limit=25#faad</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Noch eine Info dazu:&lt;br/&gt;
als Version der Pi MC SL wird mir 4.21.0.0 angezeigt. &lt;br/&gt;
In der log steht jedoch für IoDrvGPIO: 4.17.0.0&lt;br/&gt;
was ist das Problem?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charly29160</dc:creator><pubDate>Mon, 20 Jul 2026 12:58:05 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.comd816c28493a1d483662844f2d3d9aa1703441540</guid></item><item><title>CmpCharDevice blocks gpiochip access on Raspberry Pi 5 since update from SP18 to SP21</title><link>https://forge.codesys.com/forge/talk/Runtime/thread/e7f7cd3ad7/?limit=25#9e24</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Herr Schwellinger - Danke für die Info. Der Fehler besteht weiterhin:&lt;br/&gt;
Follow-up: Rootless mode is not the cause here — verified with ps aux, the runtime binary runs as root:&lt;/p&gt;
&lt;p&gt;root      1974 48.9  0.7 854852 62140 ?        SLl  13:00   0:04 /opt/codesys/bin/codesyscontrol.bin /etc/codesyscontrol/CODESYSControl.cfg&lt;/p&gt;
&lt;p&gt;gpioinfo gpiochip0 as root also works flawlessly (all 54 lines listed correctly, no permission errors at the kernel level). So the block is happening purely inside CmpCharDevice's own sandboxing, not at the Linux/kernel permission level and not due to a dedicated unprivileged user. The correct config key to whitelist /dev/gpiochip0 for CmpCharDevice is still what I'm looking for.&lt;/p&gt;
&lt;p&gt;Im Voraus herzlichen Dank für Ihre Hilfe &lt;br/&gt;
Karl Schuler&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charly29160</dc:creator><pubDate>Mon, 20 Jul 2026 11:16:20 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com1d688e08736afe279ec9b33055ab20f8ea1fbca7</guid></item><item><title>CmpCharDevice blocks gpiochip access on Raspberry Pi 5 since update from SP18 to SP21</title><link>https://forge.codesys.com/forge/talk/Runtime/thread/e7f7cd3ad7/?limit=25#27bc</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hallo Herr Schwellinger - Danke für die Info. Der Fehler besteht weiterhin:&lt;br/&gt;
Follow-up: Rootless mode is not the cause here — verified with ps aux, the runtime binary runs as root:&lt;/p&gt;
&lt;p&gt;root      1974 48.9  0.7 854852 62140 ?        SLl  13:00   0:04 /opt/codesys/bin/codesyscontrol.bin /etc/codesyscontrol/CODESYSControl.cfg&lt;/p&gt;
&lt;p&gt;gpioinfo gpiochip0 as root also works flawlessly (all 54 lines listed correctly, no permission errors at the kernel level). So the block is happening purely inside CmpCharDevice's own sandboxing, not at the Linux/kernel permission level and not due to a dedicated unprivileged user. The correct config key to whitelist /dev/gpiochip0 for CmpCharDevice is still what I'm looking for.&lt;/p&gt;
&lt;p&gt;Im Voraus herzlichen Dank für Ihre Hilfe &lt;br/&gt;
Karl Schuler&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charly29160</dc:creator><pubDate>Mon, 20 Jul 2026 11:16:15 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.comd5a2c711ba1be7245f8682acc0b593fabb2d34cd</guid></item><item><title>CmpCharDevice blocks gpiochip access on Raspberry Pi 5 since update from SP18 to SP21</title><link>https://forge.codesys.com/forge/talk/Runtime/thread/e7f7cd3ad7/?limit=25#b9f3</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;this is probably:&lt;br/&gt;
&lt;a href="https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_linux_dedicated_user.html" rel="nofollow"&gt;https://content.helpme-codesys.com/en/CODESYS%20Control/_rtsl_linux_dedicated_user.html&lt;/a&gt;&lt;br/&gt;
..switch back from rootless mode due GPIO will not work.&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">eschwellinger</dc:creator><pubDate>Sun, 19 Jul 2026 11:20:52 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.com28f8e3ca124401817906745bb2bfa9ab8dc39d76</guid></item><item><title>CmpCharDevice blocks gpiochip access on Raspberry Pi 5 since update from SP18 to SP21</title><link>https://forge.codesys.com/forge/talk/Runtime/thread/e7f7cd3ad7/?limit=25#db52</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br/&gt;
after updating CODESYS Control for Raspberry Pi SL from patch level 18 to 21 (currently 4.21.0.0), the IoDrvGPIO driver ("GPIOs B+/Pi2") can no longer open any GPIO chip on a Raspberry Pi 5. Log output on login:&lt;/p&gt;
&lt;p&gt;Could not open GPIOChip0.&lt;br/&gt;
Access to path /dev/gpiochip0 not allowed. Add /dev/gpiochip0 to permitted paths in configuration file if required&lt;br/&gt;
Could not open GPIOChip4. Trying to open GPIOChip0&lt;br/&gt;
Access to path /dev/gpiochip4 not allowed. Add /dev/gpiochip4 to permitted paths in configuration file if required&lt;br/&gt;
Could not open any GPIOChip.&lt;/p&gt;
&lt;p&gt;System details:&lt;br/&gt;
Raspberry Pi 5, 32-bit Raspberry Pi OS (armv7l), kernel 6.12.47+rpt-rpi&lt;br/&gt;
gpiodetect correctly shows gpiochip0 &lt;span&gt;[pinctrl-rp1]&lt;/span&gt; (54 lines) as the RP1 GPIO controller&lt;br/&gt;
Runtime: CODESYS Control for Raspberry Pi SL 4.21.0.0, Runtime Toolkit SP21+&lt;/p&gt;
&lt;p&gt;This worked without issues before the update to SP21. I've tried adding the following to CODESYSControl_User.cfg without success:&lt;br/&gt;
ini&lt;span&gt;[CmpCharDevice]&lt;/span&gt;&lt;br/&gt;
Linux.DevicePath.1=/dev/gpiochip0&lt;br/&gt;
Linux.DevicePath.2=/dev/gpiochip4&lt;br/&gt;
Could you tell me the correct section/key to whitelist /dev/gpiochip0 (and /dev/gpiochip4) for CmpCharDevice? I suspect this is part of the general security hardening introduced around SP21 (similar to ForceIecFilePath for SysFile, or the new Gateway "accept local clients only" default), but I couldn't find it documented anywhere.&lt;br/&gt;
Thanks in advance!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">charly29160</dc:creator><pubDate>Sun, 19 Jul 2026 09:55:12 -0000</pubDate><guid isPermaLink="false">https://forge.codesys.comf498f2d0b89e001a6b1373dc657ae8ba38fb8c9b</guid></item></channel></rss>