是bug吗


ngpio的值是517.

不因该是482吗
image

?? , 这种问题应该支持把

Hi,
Please refer to explanation in adaptation guide:
Jetson AGX Orin Platform Adaptation and Bring-Up — Jetson Linux Developer Guide documentation

please check if that is really a gpio number or it is just a return error number 517…

just a return error number -517

是的我参考了

用的不对吗?

这么久了怎么都没有答复阿

Hi,
Please try
GitHub - NVIDIA/jetson-gpio: A Python library that enables the use of Jetson's GPIOs

Controlling GPIO is straightforward. It is uncertain what is wrong in your setup. Please try the python sample and see if you can control the pin. Please also try other GPIO pin.


image
把“led1”换成“led1-gpios” 也一样的结果

这几个 gpio子系统的标准接口为什么在tegra平台上不支持? 还是我用的不对?

有人支持吗?

Hi,
For controlling GPIO pin in kernel driver, please refer to imx219 driver:

kernel/nvidia/drivers/media/i2c/nv_imx219.c

There is a reset pin in the driver. You may develop your kernel driver by referring to it.

我会参考的,3q
但上面gpio子系统的方式为什么不能用?是用错了还是压根就不支持gpio子系统,给个明确的答复,不要稀里糊涂的

Hi,
It looks like you don’t call the functions correctly. Please follow the working driver code.

那请提供一个正确调用函数的demo,让我知道到底是少了啥

nv_ims219.c中关于gpio的操作提取如下
image

我使用如下:
image

运行报错
image