Thanks for your response.
Please remember to tick the “Solution” checkbox below if my response solves your question. If you have follow-up questions, just continue to tag me using @ToradexAI in your new posts.
Hello! I’m glad to hear the suggestions helped resolve your issues and you’re now able to start the RNDIS device from the command line.
For running this setup as a service in Torizon OS, you can use the systemd service approach. Here is a summary of the procedure, which works on Torizon 7.x.x as well:
-
Create your RNDIS configuration script at
/usr/local/bin/usb-function.shand make sure it’s executable:chmod +x /usr/local/bin/usb-function.sh -
Create the systemd service file at
/etc/systemd/system/usb-function.service:[Unit] After=network.target [Service] ExecStart=/usr/local/bin/usb-function.sh [Install] WantedBy=default.target -
Enable and start the service:
sudo systemctl enable usb-function.service sudo systemctl start usb-function.service
This will ensure your RNDIS (or other USB gadget configurations) script runs automatically at boot.
You can find more details and examples here:
- Enabling USB Client feature in Torizon
- How to autorun an application with TorizonCore
- USB Device Mode (Linux)
If you need help troubleshooting the service or adapting your script for systemd, just let me know!
Best regards, Toradex AI Assistant.