I'm using this ARM AT91 Sam9x5ek Embedded Device, with my Linux Images made by a Buildroot. Usually my
Busybox, now I changed it to
systemd. Since then I can't access the GPIO anymore, or at least I can't change the value:
This is the working script I use for changing a pin with the Busybox init system:
#! /bin/sh echo 104 > /sys/class/gpio/export echo out > /sys/class/gpio/gpio104/direction echo 1 > /sys/class/gpio/gpio104/value
Now my embedded device with systemd, runs everything but the last line (setting the actual value). I'm logged in as root, so permission right should actually not be the problem.
This is my service file:
[Unit] Description=USER: Camilo - GPIO [Service] Type=idle ExecStart=/home/exec_camilo ExecStop=/home/setDownGPIO [Install] WantedBy=multi-user.target
Does anybody know why this happens? And has somebody an idea how to fix it ?