Error when using echo 17 > /sys/class/gpio/export: -sh: echo: write error: Device or resource busy
-sh: echo: write error: Device or resource busy
Shows that gpio is occupied.
To check the occupancy status.
cat /sys/kernel/debug/gpio
If no such directory is available.
mount -t debugfs debugfs /sys/kernel/debug