Enable RNDIS USB Device in Torizon 7.x.x

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.

Did you like my answer? :+1: :-1:


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:

  1. Create your RNDIS configuration script at /usr/local/bin/usb-function.sh and make sure it’s executable:

    chmod +x /usr/local/bin/usb-function.sh
    
  2. 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
    
  3. 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:

If you need help troubleshooting the service or adapting your script for systemd, just let me know!

Best regards, Toradex AI Assistant.