I am maintaining a project here where I use buildroot to be run on the RaspberryPi platform. During bootup udev is started to identify various devices, etc. I noticed that as soon as udev is started the first time (during bootup) it seems to resets all GPIO states (in/out) to their default values. That means, if I use e.g. the wiringpi to to set a certain pin (e.g. GPIO.28) to being an OUT pin using the following command:
Code: Select all
/usr/bin/gpio mode 28 out
Now I wonder if there is a possibility that I can prevent this from happening so that e.g. udev does not reset the gpio pins to their default values but keep them untouched.
Any help would be appreciated.