Jetson Orin Nano (GPIO) -> with gpioset and gpioget

Got 2X jetson orin nano dev kit, connected via USB-C port and ssh’ing into the other one

Both running Jetpack 6.2 | ubuntu 22.04

uname -a
Linux ubuntu 5.15.148-tegra #1 SMP PREEMPT Tue Jan 7 17:14:38 PST 2025 aarch64 aarch64 aarch64 GNU/Linux
cat /etc/nv_tegra_release
# R36 (release), REVISION: 4.3, GCID: 38968081, BOARD: generic, EABI: aarch64, DATE: Wed Jan  8 01:49:37 UTC 2025
# KERNEL_VARIANT: oot
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia

How can i test/play around with the GPIO pins? And i missing any steps here?

Using gpioset i set PIN 4 to active-high on board “YYY” || sender

YYY@ubuntu:~$ gpioset --mode=time --sec=50 0 4=1

YYY@ubuntu:~$ gpioinfo | grep -i "PA.04"
	line   4:      "PA.04"    "gpioset"  output  active-high [used]

board “YYY” | | receiver, it shows 0 with gpioget

XXX@ubuntu:~$ gpioget gpiochip0 17
0

PIN 14 GND (Receiver) → PIN 6 (Sender)
PIN 7 GPIO09 (Sender) → PIN 11 UART_RTS

Using a female-to-female connectors to connect the PINS.

Hi,
There is a known issue and please apply this patch to rebuild kernel:

Jetson/L4T/r36.4.x patches - eLinux.org
[GPIO] Fix bit 10(SFIO) been set by gpiod

isn’t this for Jetpack 6.1… would it work as well on jetpack 6.2?

[Jetpack 6.1/r36.4.0] Self-built kernel is overwritten after *sudo apt update && sudo apt upgrade*

https://elinux.org/Jetson/L4T/r36.4.x_patches

Hi,
The patch is
Jetson AGX Orin FAQ

I can’t seem to warp my head around this…

usr/src/linux-headers-5.15.148-tegra-ubuntu22.04_aarch64/3rdparty/canonical/linux-jammy/kernel-source/drivers/pinctrl

drivers/pinctrl/tegra/pinctrl-tegra.c

how do i run locate the pinctrl-tegra.c file?

https://forums.developer.nvidia.com/t/40hdr-spi1-gpio-padctl-register-bit-10-effect-by-gpiod-tools-in-jp6/301171/19

Hi,
You mean you don’t see pinctrl-tegra.c in your kernel source code? It should be at

kernel/kernel-jammy-src/drivers/pinctrl/tegra/pinctrl-tegra.c

hello
I see it now after downloading directly onto my jetson orin nano

Driver Package (BSP) Sources

Question - to use the patch workaround i need to reflash AGAIN after recompiling the kernel from a x86_64 bare-metal machine?

**cedjetson@ubuntu:~/Downloads/Linux_for_Tegra/source$ echo $CROSS_COMPILE **
**/home/cedjetson/l4t-gcc/aarch64--glibc--stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-**
**cedjetson@ubuntu:~/Downloads/Linux_for_Tegra/source$ makec -C kernel**
**bash: makec: command not found**
**cedjetson@ubuntu:~/Downloads/Linux_for_Tegra/source$ make -C kernel**
**make: Entering directory '/home/cedjetson/Downloads/Linux_for_Tegra/source/kernel'**
**================================================================================**
**Building kernel-jammy-src sources**
**================================================================================**
**make \**
**	ARCH=arm64 \**
**	-C /home/cedjetson/Downloads/Linux_for_Tegra/source/kernel/kernel-jammy-src  \**
**	LOCALVERSION=-rt-tegra \**
**	defconfig**
**make[1]: Entering directory '/home/cedjetson/Downloads/Linux_for_Tegra/source/kernel/kernel-jammy-src'**
***** Default configuration is based on 'defconfig'**
**/home/cedjetson/l4t-gcc/aarch64--glibc--stable-2022.08-1/bin/aarch64-buildroot-linux-gnu-gcc: unknown compiler**
**scripts/Kconfig.include:44: Sorry, this compiler is not supported.**
**make[2]: *** [scripts/kconfig/Makefile:87: defconfig] Error 1**
**make[1]: *** [Makefile:630: defconfig] Error 2**
**make[1]: Leaving directory '/home/cedjetson/Downloads/Linux_for_Tegra/source/kernel/kernel-jammy-src'**
**make: *** [Makefile:30: kernel] Error 2**
**make: Leaving directory '/home/cedjetson/Downloads/Linux_for_Tegra/source/kernel'**
**cedjetson@ubuntu:~/Downloads/Linux_for_Tegra/source$**

Hi,
Please follow the steps to rebuild kernel image:
No data from Joystick Logitech-f710 - #10 by DaneLLL

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.