cmd:GPIO:TI: 'gpio' command Failure Error on Beaglebone Black

Hi,
Error output "*Command 'gpio' failed: Error -19*" is occurring with "*gpio status -a*" command on Beaglebone Black.
The "gpio" command is proper till "U-Boot 2021.04-rc2". Error message is noticed from subsequent releases on-wards.
Problem is noticed on u-boot versions from *U-Boot 2021.04-rc3 to U-Boot 2021.07-rc1* The same command is OK on "sandbox" and "rpi 0 wireless" .
Not sure if the maintenance of code for old boards such as Beaglebone Black is still actively persuaded.Trying to report the observations
------------------------------------------------------------------ Code/Output : ------------------------------------------------------------------- U-Boot SPL 2021.07-rc1-00179-g8ddaf94358 (May 03 2021 - 15:36:38 +0530) Trying to boot from MMC1
U-Boot 2021.07-rc1-00179-g8ddaf94358 (May 03 2021 - 15:36:38 +0530)
CPU : AM335X-GP rev 2.1 Model: TI AM335x BeagleBone Black DRAM: 512 MiB WDT: Started with servicing (60s timeout) NAND: 0 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... <ethaddr> not set. Validating first E-fuse MAC Net: eth2: ethernet@4a100000, eth3: usb_ether Hit any key to stop autoboot: 0 => gpio status -a Command 'gpio' failed: Error -19 => ------------------------------------------------------------------- Regards, Adarsh

Hi Adarsh,
On 06/05/21 11:28 am, Adarsh Babu Kalepalli wrote:
Hi,
Error output "*Command 'gpio' failed: Error -19*" is occurring with "*gpio status -a*" command on Beaglebone Black.
Error -19 is ENODEV. Can you check if you have gpio devices being probed?
The "gpio" command is proper till "U-Boot 2021.04-rc2". Error message is noticed from subsequent releases on-wards.
Any chance you were able to bisect to the culprit commit? which defconfig are you using?
Thanks and regards, Lokesh
Problem is noticed on u-boot versions from *U-Boot 2021.04-rc3 to U-Boot 2021.07-rc1* The same command is OK on "sandbox" and "rpi 0 wireless" .
Not sure if the maintenance of code for old boards such as Beaglebone Black is still actively persuaded.Trying to report the observations
Code/Output :
U-Boot SPL 2021.07-rc1-00179-g8ddaf94358 (May 03 2021 - 15:36:38 +0530) Trying to boot from MMC1
U-Boot 2021.07-rc1-00179-g8ddaf94358 (May 03 2021 - 15:36:38 +0530)
CPU : AM335X-GP rev 2.1 Model: TI AM335x BeagleBone Black DRAM: 512 MiB WDT: Started with servicing (60s timeout) NAND: 0 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... <ethaddr> not set. Validating first E-fuse MAC Net: eth2: ethernet@4a100000, eth3: usb_ether Hit any key to stop autoboot: 0 => gpio status -a Command 'gpio' failed: Error -19 =>
Regards, Adarsh

Hi Lokesh,
Error -19 is ENODEV. Can you check if you have gpio devices being probed?
The device is not being probed.Output of "dm tree" is captured in log_uboot-2021.07-rc1.txt
Where as in uboot-2021.04-rc2.txt,the gpio is probed. The output of "dm tree" is in log_uboot-2021.04-rc2.txt
The "gpio" command is proper till "U-Boot 2021.04-rc2". Error message is noticed from subsequent releases on-wards.
Any chance you were able to bisect to the culprit commit?
No
which defconfig are you using?
We have been using "*am335x_evm_defconfig*"
Regards, Adarsh
On Thu, May 6, 2021 at 11:33 AM Lokesh Vutla lokeshvutla@ti.com wrote:
Hi Adarsh,
On 06/05/21 11:28 am, Adarsh Babu Kalepalli wrote:
Hi,
Error output "*Command 'gpio' failed: Error -19*" is occurring with
"*gpio
status -a*" command on Beaglebone Black.
Error -19 is ENODEV. Can you check if you have gpio devices being probed?
The "gpio" command is proper till "U-Boot 2021.04-rc2". Error message is noticed from subsequent releases on-wards.
Any chance you were able to bisect to the culprit commit? which defconfig are you using?
Thanks and regards, Lokesh
Problem is noticed on u-boot versions from *U-Boot 2021.04-rc3 to U-Boot 2021.07-rc1* The same command is OK on "sandbox" and "rpi 0 wireless" .
Not sure if the maintenance of code for old boards such as Beaglebone
Black is
still actively persuaded.Trying to report the observations
Code/Output :
U-Boot SPL 2021.07-rc1-00179-g8ddaf94358 (May 03 2021 - 15:36:38 +0530) Trying to boot from MMC1
U-Boot 2021.07-rc1-00179-g8ddaf94358 (May 03 2021 - 15:36:38 +0530)
CPU : AM335X-GP rev 2.1 Model: TI AM335x BeagleBone Black DRAM: 512 MiB WDT: Started with servicing (60s timeout) NAND: 0 MiB MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1 Loading Environment from FAT... Unable to read "uboot.env" from mmc0:1... <ethaddr> not set. Validating first E-fuse MAC Net: eth2: ethernet@4a100000, eth3: usb_ether Hit any key to stop autoboot: 0 => gpio status -a Command 'gpio' failed: Error -19 =>
Regards, Adarsh
participants (2)
-
Adarsh Babu Kalepalli
-
Lokesh Vutla