How to enable Watchdog on Linkit7688 Openwrt 15.05.1

GPIOs have probably not changed, as they are hard-wired in the PCB. Perhaps you need to rework your app to use a compatible method of accessing them.

yeah I did that and it was working but after reboot
i cannot find GPIOs
ls -l /sys/class/gpio/ gives

root@mylinkit:~#  ls -l /sys/class/gpio/ 
--w-------    1 root     root          4096 Jan  1  1970 export
lrwxrwxrwx    1 root     root             0 Jan  1  1970 gpiochip0 -> ../../devices/platform/10000000.palmbus/10000600.gpio/gpio/gpiochip0
lrwxrwxrwx    1 root     root             0 Jan  1  1970 gpiochip32 -> ../../devices/platform/10000000.palmbus/10000600.gpio/gpio/gpiochip32
lrwxrwxrwx    1 root     root             0 Jan  1  1970 gpiochip64 -> ../../devices/platform/10000000.palmbus/10000600.gpio/gpio/gpiochip64
--w-------    1 root     root          4096 Jan  1  1970 unexport

earlier there were GPIOs 14 17 and 04


It seems I also cant read from the UART at /dev/ttyS0

Sysfs access to GPIOs is deprecated by Linux, though still possible. As this is deprecated, OpenWrt typically does not “export” GPIO lines in default configurations, preferring upstream-supported mechanisms.

Thanks for the info but the weird thing is that is was working earlier after the upgrade but when I did a reboot GPIOs 14 17 and 04 disappeared.
I am new to linux development sorry
How can I now access these GPIOs

Removal in 2020

The user-land tools are available as a package, gpiod-tools

Thanks I could get the GPIOs working
now on to UART communication

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.