How to export GPIO and control it in jetpack 5.0.2 in xavier AGX

Hi,all

in jetpack 4.6.x we can use below method to control GPIO pin
"
sudo busybox devmem 0x02430038 w 0x054 # soc_gpio43_pq7:

echo 423 > /sys/class/gpio/export
echo out > /sys/class/gpio/gpio423/direction
echo 1 > /sys/class/gpio/gpio423/value
"
how about in jetpack 5.0.2?

and how to check GPIO setting in jetpack 5.0.2?
below is in 4.6.x method
sudo cat /sys/kernel/debug/tegra_pinctrl_reg | grep soc_gpio43

Moving this topic to the Jetson category for better visibility.

hello ashingtsai,

you may have the same process as JP-4.6 to toggle the pin.
however, the GPIO numbers has changed since k-5.10, please also refer to developer guide, Identifying the GPIO Number.
thanks

this portion i already know ,thank you.

Since the GPIO numbers have changed in JP 5.0.2, does that mean I can’t use the same pinmux file from JP 4.6, even though the hardware is the same?