We have custom kernel for Beaglebone black with 7’inch LCD, we are configuring GPIO1_14(PIN 46) as gpio output high but when we boot, the gpio pin is not set to high.
We have tried these commands:
echo 46 > /sys/class/gpio/export
echo “out” > /sys/class/gpio/gpio46/direction
echo 1 > /sys/class/gpio/gpio46/value
or
echo 0 > /sys/class/gpio/gpio46/value
after entering this command, but the pin is unchanged.
For our application, we need the GPIO1_14 to be set to high by default. Attached
our dtsi file.
How are you planning to use the pin? Does it need to always be high at startup (set and forget)… Are you planning to eventually toggle it? Is it the backlight/etc.
Could you please let us know how to enable GPIO in Kernel and use it via application to toggle. We have installed Adafurit BBIO library but unable to set or clear the GPIO.
How we can set or clear the GPIOs. We need to control the GPIOS through our application. With the default image we testing the GPIOs by installing the Adafruit_BBIO which was working.
Now when we install the Adafruit BBIO on custom Kernel its not working. Attached our dtsi file for reference.