GPIO57 FOLDER DISAPPEAR AFTER SYSTEM REBOOT

hardware: Jetson tk1
L4T: R21.3

The folder gpio57 path: /sys/class/gpio/gpio57 disappear after system reboot. And the export file and unexport file permission changes as well too. It seems like every time there is a system reboot the export and unexport files are being recreate.

thanks in advance

/sys is a “sysfs”, just a file system in memory that allows tweaking some kernel drivers or parameters from the user space. As it’s in the memory and reflects the kernel state, it’s recreated on every boot. Similar to /proc.

EDIT: I recommend that you create a script that does all the commands you need and then run that script from /etc/rc.local. Then your script is run on every boot automatically as the root user.