Issue with GPIO Pin Configuration Using Jetson-IO on Jetson AGX Xavier
During a recent test with my Jetson AGX Xavier, I used the jetson-io.py utility located at /opt/nvidia/jetson-io/ to reconfigure pins 29 and 31. After making the changes and rebooting the device, the Jetson-IO tool stopped functioning properly.
When I try to launch it again using sudo /opt/nvidia/jetson-io/jetson-io.py, the interface briefly flashes on the screen and then immediately closes without displaying any error messages or logs.
I would really like to avoid reflashing the device, as the system is already heavily customized. Is there a way to revert the pin configuration changes or restore the Jetson-IO tool’s functionality without performing a full reflash?
Hello, I’m using a devkit with JetPack version 5.0.2. Fortunately, I was able to resolve the issue this morning. The problem occurred when using a terminal with screen—the Jetson froze when running jetson-io.py and showed an error indicating that /mnt/APP was not mounted.
It turns out that every time the Jetson restarted, it automatically recreated the problematic file. To work around this, I created a systemd service that automatically deletes the file right after it is created. This allowed the code to run without issues.
Thank you for your attention. If anyone needs the exact commands I used, I’d be happy to share them!
This returned no output, suggesting that nothing was actually mounted there. So I removed the directory using:
sudo rm -r /mnt/APP
After that, I was able to successfully run:
sudo /opt/nvidia/jetson-io/jetson-io.py
However, the problem was that the /mnt/APP directory kept getting recreated automatically after each reboot. To handle this, I created a cleanup script:
Script: /usr/local/bin/remove-mnt-app.sh
#!/bin/bash
rm -rf /mnt/APP
I made it executable:
sudo chmod +x /usr/local/bin/remove-mnt-app.sh
Then, I created a systemd service to run this script at boot: