Problem
Hello.
I’m not good at English so some parts may be difficult to understand.
I apologize in advance.
I’m trying to run a DC motor on a Jetson AGX Xvier.
I had a problem with jetson-io.py crashing, but I have solved it regarding that.
I’m not sure about the fourth “Because the Jetson module registers GPIOs dynamically, search kernel messages to check GPIO allocation ranges for each GPIO group.” in “To check the GPIO number”.
When I run the command, I am told that there is no such file or directory.
I ran the command without moving to “/home/ubuntu” to try it out and got some output.
For now, let us assume that this is the correct method and proceed to the next step.
dmesg | grep gpiochip_setup_dev
[ 0.915846] gpiochip_setup_dev: registered GPIOs 288 to 511 on device: gpiochip0 (tegra-gpio)
[ 0.923694] gpiochip_setup_dev: registered GPIOs 248 to 287 on device: gpiochip1 (tegra-gpio-aon)
[ 1.066924] gpiochip_setup_dev: registered GPIOs 240 to 247 on device: gpiochip2 (max77620-gpio)
The formula is written, but I cannot get the result “gpio417” when I actually do the calculation.
(16*8+18)+288=420
I see that I use that side of the number.
I was mistaken.
I totally understood it.
By the way… I have the number, but how do I activate the pin?
I looked at " To check the GPIO number" and all I could figure out was how to identify the pin.
here’s an example to toggle the pin through sysfs.
for example,
please obtain root permission and enter the location of the GPIOs $ sudo -i # cd /sys/class/gpio
I did what you said and it seems to be working maybe.
But when I tried to check, I got this indication.
After rebooting, pin 22 is disabled again.
Do I have to do it every time after startup ?
Doing this every time I start up Jetson is time consuming. And since this Jetson is used for a product, it is not feasible for the customer to do this every time.
Is there any other way to do this?
Also, please tell me about the error shown in the attached image.
okay, let’s back to your question.
which pin you’re going to enable as PWM?
had you follow this… $ sudo python /opt/nvidia/jetson-io/jetson-io.py to configure 40-pin expansion header?
you may select [Configure Jetson 40pin Header] → [Configure header pins manually].
after that, you shall see pwm1 (pin-15), pwm5 (pin-18), pwm8 (pin-13) available.
please mark them as * to select desired functions, and export device-tree overlay file.
I don’t see failure to configure those pin on AGX Xavier Developer Kits.
or,
you’re not using developer kits?
I have already set up a 40-pin expansion header.
However, even though the pin was enabled in the settings, the pin was never actually activated.
Also, after a reboot, the pin is deactivated.
What does it mean to output a device-tree overlay file?
Where is “kernel-dts/tegra194-soc/tegra194-soc-pwm.dtsi”?
Perhaps I need to re-burn the OS (jetpack) again?
And where do I enter “pinmux.0x02434090 = 0x00000401;”?
pinmux configuration is under $OUT/Linux_for_Tegra/bootloader/t186ref/BCT/
for example, tegra19x-mb1-pinmux-p2888-0000-a00-p2822-0000-a00.cfg
please check your flash message to double check the cfg file that your platform is using.
I know how this story goes.
After all, it means I have to bake Jetpack into Jetson again, right? I was recommended that way by you,but in the end the problem was not solved.
I also told you that things were not going well at that time, but you never asked me for advice.
So this is how I created this topic.
I would like you to reply as a conversation, not as a canned response.
Why am I going through all this trouble to do something as simple as “output gpio, a jetson feature”?
I would like all solutions to be explained in a precise, step-by-step manner.
Please reply as soon as possible.
Essentially, the fact that gpio cannot be used properly after installing Jetpack is a flaw in the Jetson AGX Xavier and not a problem that users should struggle to solve.
Why doesn’t nvidia make gpio available from the start?
Why don’t you reply?
I tried the methods you mentioned and could not activate gpio.
Do your job properly.
The SDKMnager you guys made is buggy and doesn’t work properly, and gpio is not available even if you write Jetpack. Even if I do as you said, gpio will not work. You told me to re-burn Jetpack, so I did it, but still gpio doesn’t work. Stop screwing around.
Activate gpio, why are they selling Jetson without teaching you this simple thing?
I only have one thing to say." Please carefully walk me through the entire process of how to reliably activate gpio".