BeagleBone Black 6.1 Kernel(Pins are incorrect/moved around?)

The pins appear to be mapped wrong on 6.1-x.

5.10.168_gpioinfo.txt (7.1 KB)
6.1.83_gpioinfo.txt (7.1 KB)

If I build a Debian Bookworm image with 5.10.168-ti-r81, all the pin mappings are correct. I’m able to set P8_16 by writing ‘1’ to /sys/class/gpio/gpio46/value.

If I build a Debian Bookworm image with 6.1.83-ti-r36, the gpiochips are all shifted by 1. Meaning in order to set P8_16, I have to write ‘1’ to /sys/class/gpio/gpio14/value(which should be P9_26).

gpiochips are all “shifted” by 1. Meaning

  • gpiochip0->gpiochip3
  • gpiochip3->gpiochip2
  • gpiochip2->gpiochip1
  • gpiochip1->gpiochip0
1 Like

Stay off v6.1.x+ (eMMC issues), Possible eMMC firmware bug or hw issue - recent Seeed Studio BBBs with 6.1.x kernels we are down to the final ‘revert’ and waiting 4 weeks for confirmation…

gpiochipX are dynamic and probed in parallel, but later in 6.6.x~ish the “gpioXY” is no longer static either.

Once the eMMC testing fix is verified, fully expect a v6.12.x kernel, and you’ll need to use libgpiod (Px_yz) names…

Regards,

2 Likes