Jetson GPIO has "Could not determine Jetson model" Error

I’ve been trying to get GPIO working with an official Nvidia Jetson Orin Nano Developer Kit, but I keep on running into this error and I was wondering if anyone knew how to fix it.

Traceback (most recent call last):
File “”, line 1, in
File “/usr/lib/python3/dist-packages/Jetson/GPIO/init.py”, line 1, in
from .gpio import *
File “/usr/lib/python3/dist-packages/Jetson/GPIO/gpio.py”, line 70, in
model, JETSON_INFO, _channel_data_by_mode = gpio_pin_data.get_data()
File “/usr/lib/python3/dist-packages/Jetson/GPIO/gpio_pin_data.py”, line 438, in get_data
raise Exception(‘Could not determine Jetson model’)
Exception: Could not determine Jetson model

hello manvikpasula,

it should due to Rel-36 does not have /sys/class/gpio to control GPIO anymore.
please use libgpiod tools instead. The new GPIO Interface on the Raspberry PI: libgpiod | Lloyd Rochester's Geek Blog

here’re some examples for using libgpiod,
please make sure these setting are there in your pinmux BCT file for the pin you want to control. and please remember the function has to be rsvd.
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;

Commands, gpioget, gpiofind, gpioinfo.
Here’s an example to configure tegra234-gpio-aon/gpio-327/PBB.03
# gpioinfo gpiochip1|grep PBB.03
line 11: "PBB.03" unused input active-high
Toggle the pin state by gpioset.
# gpioset --mode=exit --drive=push-pull gpiochip1 11=1
# gpioinfo gpiochip1|grep PBB.03
line 11: "PBB.03" unused output active-high

Here is a python example we used for testing our orin nano GPIO pins.

Tried following the instructions found on jetson_gpio_guide.md (found on github: jetson-orin-io-tools/jetson_gpio_guide.md at main · ValidusGroup-Design/jetson-orin-io-tools · GitHub), but still seeing the following error when i type: python3 -c "import Jetson.GPIO as GPIO; print(GPIO.VERSION)" in a terminal window:

raise Exception('Could not determine Jetson model')
Exception: Could not determine Jetson model

Same error as manvikpasula mentioned in this post.

I am assuming you did install this sudo pip3 install Jetson.GPIO

The only board we had crapped out and it was sent back. No one has stock in the USA so until we can purchase some more boards I have no way to work on this, sorry.

Also, the device tree was modified to enable outputs.

Yes. did do the install using: sudo pip3 install Jetson.GPIO. Let me know if you get to take a look at this when you get some more stock.

1 Like

quick update here: did get it working by downgrading to Jetpack 6.0. Lost the ability to run the orin nano at full power though.