BeagleBone U-Boot GPIO Command

I have been experimenting with setting GPIO pin states in U-boot from the GPIO command.
It works well.

Beaglebone u-boot removed GPIO command from am335x_evm_defconfig. Been that way since 2021.
Not sure why.

To get the function back add this to /usr/ports/sysutils/u-boot-beaglebone/files/bbb_fragment

CONFIG_CMD_GPIO=y
 
Before the change = Error -19
After

Code:
=> gpio status -a
Bank gpio@44e07000_:
gpio@44e07000_0: input: 0 [ ]
gpio@44e07000_1: input: 0 [ ]
gpio@44e07000_2: input: 1 [ ]
gpio@44e07000_3: input: 1 [ ]
gpio@44e07000_4: input: 1 [ ]
gpio@44e07000_5: input: 1 [ ]
gpio@44e07000_6: input: 1 [x] mmc@48060000.cd-gpios
gpio@44e07000_7: input: 0 [ ]
gpio@44e07000_8: input: 0 [ ]
gpio@44e07000_9: input: 0 [ ]
gpio@44e07000_10: input: 1 [ ]
gpio@44e07000_11: input: 0 [ ]
gpio@44e07000_12: input: 0 [ ]
gpio@44e07000_13: input: 0 [ ]
gpio@44e07000_14: input: 1 [ ]
gpio@44e07000_15: input: 1 [ ]
 
Back
Top