USB Tethering
#13
(07-31-2020, 08:20 PM)HLing Wrote: ... I am still unable to use USB tethering, ...

I remain absolutely puzzled why for me it is "easy" and yet others are struggling, so to test my sanity I have just
  1. Downloaded mobian-pinephone-20200802.img.gz & gunzip'd it
  2. dd to an SDcard
  3. Booted the card in my bog standard/no modifications BraveHeart
  4. Noted the root filesystem is automatically resized to the full size of the card
  5. sudo apt update
  6. sudo apt upgrade
  7. sudo apt install pinephone-devtools
  8. rebooted
  9. ip a shows the usb0 device
  10. sudo nmcli connection modify USB-gadget ipv4.method shared
plugged the phone into a laptop running Ubuntu focal - I can now ssh to the pinephone at 10.0.0.2.
The PinePhone has
Code:
$ ip a
...
3: usb0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
    link/ether b6:37:63:14:4e:67 brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.2/8 brd 10.255.255.255 scope global noprefixroute usb0
       valid_lft forever preferred_lft forever
    inet6 fe80::a968:57cb:9c6c:3b2d/64 scope l

The laptop has
Code:
$dmesg
...
[17314.973998] usb 1-1: new high-speed USB device number 4 using xhci_hcd
[17315.123668] usb 1-1: New USB device found, idVendor=1d6b, idProduct=0104, bcdDevice= 5.07
[17315.123672] usb 1-1: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[17315.123675] usb 1-1: Product: Multifunction Composite Gadget
[17315.123677] usb 1-1: Manufacturer: Linux 5.7-pinephone with musb-hdrc
[17315.126977] usb 1-1: can't set config #2, error -71
[17315.127087] usb usb1-port1: disabled by hub (EMI?), re-enabling...
[17315.127117] usb 1-1: USB disconnect, device number 4
[17315.542050] usb 1-1: new high-speed USB device number 5 using xhci_hcd
[17315.690516] usb 1-1: New USB device found, idVendor=1d6b, idProduct=0104, bcdDevice= 5.07
[17315.690519] usb 1-1: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[17315.690521] usb 1-1: Product: Multifunction Composite Gadget
[17315.690522] usb 1-1: Manufacturer: Linux 5.7-pinephone with musb-hdrc
[17315.694571] usb-storage 1-1:2.4: USB Mass Storage device detected
[17315.694727] scsi host2: usb-storage 1-1:2.4
[17315.729564] cdc_acm 1-1:2.2: ttyACM0: USB ACM device
[17315.729836] usbcore: registered new interface driver cdc_acm
[17315.729838] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[17315.736390] cdc_ether 1-1:2.0 usb0: register 'cdc_ether' at usb-0000:00:14.0-1, CDC Ethernet Device, fe:ed:de:ad:be:ef
[17315.736573] usbcore: registered new interface driver cdc_ether
[17315.759643] cdc_ether 1-1:2.0 enxfeeddeadbeef: renamed from usb0
[17315.857865] IPv6: ADDRCONF(NETDEV_CHANGE): enxfeeddeadbeef: link becomes ready
[17316.710926] scsi 2:0:0:0: Direct-Access     Linux    File-Stor Gadget 0507 PQ: 0 ANSI: 2
[17316.711390] sd 2:0:0:0: Attached scsi generic sg0 type 0
[17316.713962] sd 2:0:0:0: Power-on or device reset occurred
[17316.714680] sd 2:0:0:0: [sda] 30785536 512-byte logical blocks: (15.8 GB/14.7 GiB)
[17316.714843] sd 2:0:0:0: [sda] Write Protect is off
[17316.714847] sd 2:0:0:0: [sda] Mode Sense: 0f 00 00 00
[17316.715009] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[17316.747322]  sda: sda1 sda2
[17316.748691] sd 2:0:0:0: [sda] Attached SCSI removable disk
[17317.527501] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[17317.527508] ext4 filesystem being mounted at /media/jane/boot supports timestamps until 2038 (0x7fffffff)
[17317.557582] EXT4-fs (sda2): warning: mounting fs with errors, running e2fsck is recommended
[17317.558659] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
and
Code:
$ ip a
...
3: enxfeeddeadbeef: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether fe:ed:de:ad:be:ef brd ff:ff:ff:ff:ff:ff
    inet 10.0.0.142/8 brd 10.255.255.255 scope global dynamic noprefixroute enxfeeddeadbeef
       valid_lft 2316sec preferred_lft 2316sec
    inet6 fe80::3065:79c:94a8:d55a/64 scope link noprefixroute
       valid_lft forever preferred_lft forever

and tethering of my phone data works just fine.

@devrtz - you shouldn't need to assign an ip address to your PC - my phone (after above steps) has dnsmasq-base installed and so is a DNS. But bizarre that your BraceHeart & CE are apparently behaving differently.

For the WiFi hotspot I only need pinephone-devtools installed on a fresh install. (Yup the phosh selections/options can be a pain, switching of fWiFi enables Flight mode, switching off Flight mode enables BlueTooth etc, just cycle round the same screens and you can eventually get it to do what you want!)
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (6.2 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
  • PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC


Messages In This Thread
USB Tethering - by scott_VYuCAbn3k1NFK - 07-19-2020, 12:22 AM
RE: USB Tethering - by dukla2000 - 07-21-2020, 04:59 PM
RE: USB Tethering - by scott_VYuCAbn3k1NFK - 07-22-2020, 03:44 AM
RE: USB Tethering - by dukla2000 - 07-22-2020, 03:19 PM
RE: USB Tethering - by dukla2000 - 07-23-2020, 03:40 AM
RE: USB Tethering - by scott_VYuCAbn3k1NFK - 07-24-2020, 07:01 AM
RE: USB Tethering - by HLing - 07-27-2020, 09:48 PM
RE: USB Tethering - by dukla2000 - 07-29-2020, 03:53 PM
RE: USB Tethering - by devrtz - 08-01-2020, 02:12 AM
RE: USB Tethering - by devrtz - 08-01-2020, 05:53 AM
RE: USB Tethering - by scott_VYuCAbn3k1NFK - 08-01-2020, 09:22 PM
RE: USB Tethering - by Nato - 08-02-2020, 09:06 PM
RE: USB Tethering - by Hiraghm - 08-02-2020, 11:21 PM
RE: USB Tethering - by HLing - 08-28-2020, 12:29 PM
RE: USB Tethering - by RTP - 09-07-2020, 07:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  sharing mobile data through usb tethering deb75 7 5,437 02-26-2022, 08:52 AM
Last Post: Zebulon Walton
  need my usb tethering back HLing 12 11,289 08-02-2021, 10:13 AM
Last Post: biketool

Forum Jump:


Users browsing this thread: 4 Guest(s)