UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    USB tethering working?

    Scheduled Pinned Locked Moved Fairphone 5
    5 Posts 3 Posters 100 Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
      Reply
      • Reply as topic
      Log in to reply
      This topic has been deleted. Only users with topic management privileges can see it.
      • S Offline
        slowcyclist
        last edited by

        I'm on daily channel, up-to-date. Testing usb tethering today for the first time, I find it does not work.
        In the journal I can see related errors:

        usb_moded[1957]: /etc/usb-moded/usb-moded.ini: can't remove stale config file: Read-only file system
        usb_moded[1957]: /sys/kernel/config/usb_gadget/g1//functions/rndis.usb0: mkdir failed: No such file or directory
        usb_moded[1957]: function rndis.usb0 is not registered
        usb_moded[1957]: /sys/kernel/config/usb_gadget/g1//UDC: write failure: Invalid argument
        usb_moded[1957]: mode setting failed, try charging_only
        

        Yet, it was reported earlier to be working . Is it a regression? Does it work for you?

        MoemM G 2 Replies Last reply Reply Quote 0
        • MoemM Offline
          Moem @slowcyclist
          last edited by

          @slowcyclist Have you set your USB setting to USB Tethering?

          Is currently using an Op5t
          Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

          S 1 Reply Last reply Reply Quote 0
          • S Offline
            slowcyclist @Moem
            last edited by

            @Moem of course, that's what triggers the messages in the journal. In French it's called "partage de connexion USB" and
            I've tried both from the system settings and UT tweaks.

            MoemM 1 Reply Last reply Reply Quote 0
            • MoemM Offline
              Moem @slowcyclist
              last edited by

              @slowcyclist Okay, just checking 🙂
              It's always good to check the easy stuff first. Not everyone thinks of the things that you thought of.

              Is currently using an Op5t
              Also owns an Op1, a BQ E4.5 and an Xperia X, as well as a BQ tablet and a Pinetab2. Please, someone... make it stop.

              1 Reply Last reply Reply Quote 0
              • G Offline
                gpatel-fr @slowcyclist
                last edited by

                @slowcyclist

                while my experience with USB tethering is non existent on UT, I'd guess that RNDIS support is not compiled in the FP5 kernel.

                phablet@ubuntu-phablet:~$ zgrep RNDIS /proc/config.gz
                # CONFIG_USB_NET_RNDIS_HOST is not set
                # CONFIG_USB_NET_RNDIS_WLAN is not set
                # CONFIG_USB_CONFIGFS_RNDIS is not set
                

                a quick test shows that the FP5 is seen as mass storage by the (Linux) computer.

                févr. 14 23:19:56 ubuntu-phablet usb_moded[2309]: /sys/kernel/config/usb_gadget/g1//functions/rndis.usb0: mkdir failed: No such file or directory
                févr. 14 23:19:56 ubuntu-phablet usb_moded[2309]: function rndis.usb0 is not registered
                févr. 14 23:19:56 ubuntu-phablet usb_moded[2309]: /sys/kernel/config/usb_gadget/g1//UDC: write failure: Invalid argument
                

                A quick internet search comes up with a thingy called NCM that the FP5 kernel is supposed to have

                phablet@ubuntu-phablet:~$ zgrep NCM /proc/config.gz
                CONFIG_USB_NET_CDC_NCM=y
                # CONFIG_USB_NET_HUAWEI_CDC_NCM is not set
                CONFIG_USB_F_NCM=y
                CONFIG_USB_CONFIGFS_NCM=y
                

                however trying to access it generates an error:

                phablet@ubuntu-phablet:~$ cat /sys/kernel/config/usb_gadget/g1/functions/ncm.usb0/ifname
                cat: /sys/kernel/config/usb_gadget/g1/functions/ncm.usb0/ifname: No such device
                

                there is no rndis.usb0 under /sys/kernel/config/usb_gadget/g1/functions

                Note that as far as I can tell, the kernel version has changed with 24.04-1 RC (289 -> 302). Also many things have changed between August 2025 and now.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post