gpio permission failing
can someone please assist me
i am using emteria.os 0.71 free version or demo
i using qt to do my android apps
in the ssh mode
rpi3:/ # ls -lh /sys/class/gpio/export
--w------- 1 root root 4.0K__bionic_open_tzdata_path: ANDROID_DATA not set!
__bionic_open_tzdata_path: ANDROID_ROOT not set!
2020-05-12 12:52 /sys/class/gpio/export
rpi3:/ # chmod u+rw /sys/class/gpio/export
rpi3:/ # ls -lh /sys/class/gpio/export
-rw------- 1 root root 4.0K__bionic_open_tzdata_path: ANDROID_DATA not set!
__bionic_open_tzdata_path: ANDROID_ROOT not set!
2020-05-12 12:58 /sys/class/gpio/export
still i can not get access to /sys/class/gpio/export
even /dev/gpiomem is the same thing
rpi3:/ # ls -lh /dev/gpiomem
__bionic_open_tzdata_path: ANDROID_DATA not set!
__bionic_open_tzdata_path: ANDROID_ROOT not set!
crw-rw---- 1 root root 246, 0 1970-01-01 00:00 /dev/gpiomem
how do i deal with these __bionic_open_tzdata_path: ANDROID_ROOT not set!
__bionic_open_tzdata_path: ANDROID_DATA not set!
accessing gpios using eg echo 0 >/sys/class/gpio/gpio24/value
works very well only on terminal i can turn on and off leds the problem is to access the gpios from apps c++ code is the problem
Comments
You need to set linux read/write permissions for files you want to access. You have to do it statically after boot (see /data/init.d) or call su from your application (see tutorials on the internet).
Update to latest OS version, it should be fixed by now.
it worked