USB Tethering
#4
(07-22-2020, 03:44 AM)scott_VYuCAbn3k1NFK Wrote: ...
On the pinephone, the gadget device is present when running `ip a`.

Is there anything else I can try / check to debug this issue?

It shouldn't be too complicated - all I do to get it working is
  1. Fresh Mobian install
  2. Install pinephone-devtools
  3. Set to USB-gadget sharing with the nmcli command
And no, I don't do any of the other stuff in the wiki! I have a BraveHeart, and have no hardware mods.

A newly booted pinephone will show the usb0 device as DOWN. As soon as I plug into any PC it goes to state UP and takes IP (v4) address 10.0.0.2. If I plug it into my RockPro64 directly I get (on the RockPro)
Code:
$ dmesg
...
[ 4082.325663] rockchip-vop ff900000.vop: [drm:vop_crtc_enable] Update mode to 1920x1080p60, type: 11
[ 9960.730261] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[ 9960.859278] usb 3-1: New USB device found, idVendor=1d6b, idProduct=0104
[ 9960.859313] usb 3-1: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[ 9960.859336] usb 3-1: Product: Multifunction Composite Gadget
[ 9960.859358] usb 3-1: Manufacturer: Linux 5.7-pinephone with musb-hdrc
[ 9960.868821] cdc_ether 3-1:2.0 usb0: register 'cdc_ether' at usb-xhci-hcd.10.auto-1, CDC Ethernet Device, fe:ed:de:ad:be:ef
[ 9960.934008] usb usb3-port1: disabled by hub (EMI?), re-enabling...
[ 9960.934613] usb 3-1: USB disconnect, device number 2
[ 9960.935041] cdc_ether 3-1:2.0 usb0: unregister 'cdc_ether' usb-xhci-hcd.10.auto-1, CDC Ethernet Device
[ 9960.970722] usbcore: registered new interface driver cdc_acm
[ 9960.970733] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[ 9960.976004] usbcore: registered new interface driver usb-storage
[ 9960.979307] usbcore: registered new interface driver uas
[ 9961.302267] usb 3-1: new high-speed USB device number 3 using xhci-hcd
[ 9961.431268] usb 3-1: New USB device found, idVendor=1d6b, idProduct=0104
[ 9961.431304] usb 3-1: New USB device strings: Mfr=3, Product=4, SerialNumber=0
[ 9961.431327] usb 3-1: Product: Multifunction Composite Gadget
[ 9961.431349] usb 3-1: Manufacturer: Linux 5.7-pinephone with musb-hdrc
[ 9961.441621] cdc_ether 3-1:2.0 usb0: register 'cdc_ether' at usb-xhci-hcd.10.auto-1, CDC Ethernet Device, fe:ed:de:ad:be:ef
[ 9961.447195] cdc_acm 3-1:2.2: ttyACM0: USB ACM device
[ 9961.458100] usb-storage 3-1:2.4: USB Mass Storage device detected
[ 9961.459005] scsi host0: usb-storage 3-1:2.4
[ 9961.498205] cdc_ether 3-1:2.0 enxfeeddeadbeef: renamed from usb0
[ 9961.603690] cdc_ether 3-1:2.0 enxfeeddeadbeef: kevent 12 may have been dropped
[ 9962.460707] scsi 0:0:0:0: Direct-Access     Linux    File-Stor Gadget 0507 PQ: 0 ANSI: 2
[ 9962.471889] sd 0:0:0:0: [sda] 30785536 512-byte logical blocks: (15.8 GB/14.7 GiB)
[ 9962.472521] sd 0:0:0:0: [sda] Write Protect is off
[ 9962.472553] sd 0:0:0:0: [sda] Mode Sense: 0f 00 00 00
[ 9962.473155] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 9962.487454]  sda: sda1 sda2
[ 9962.492952] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 9966.031388] EXT4-fs (sda2): warning: mounting fs with errors, running e2fsck is recommended
[ 9966.038344] EXT4-fs (sda2): Errors on filesystem, clearing orphan list.

[ 9966.038375] EXT4-fs (sda2): recovery complete
[ 9966.040604] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)

and
Code:
$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN group default qlen 1000
    link/ether 4e:d9:eb:5f:b2:85 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.154/24 brd 192.168.1.255 scope global dynamic eth0
       valid_lft 33219sec preferred_lft 33219sec
    inet6 fd12:dca2:57f1::197/128 scope global noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fd12:dca2:57f1:0:4cd9:ebff:fe5f:b285/64 scope global mngtmpaddr noprefixroute
       valid_lft forever preferred_lft forever
    inet6 fe80::4cd9:ebff:fe5f:b285/64 scope link
       valid_lft forever preferred_lft forever
4: enxfeeddeadbeef: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UNKNOWN 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 enxfeeddeadbeef
       valid_lft 3568sec preferred_lft 3568sec
    inet6 fe80::fced:deff:fead:beef/64 scope link
       valid_lft forever preferred_lft forever

I did see some suggestion that the red USB-C cable that ships with the PinePhone is power only: certainly in my case that is NOT true. Indeed the above result was with my red cable. But in case there were different batches maybe try another cable? Otherwise I am at a loss.
  • 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 4,342 02-26-2022, 08:52 AM
Last Post: Zebulon Walton
  need my usb tethering back HLing 12 9,628 08-02-2021, 10:13 AM
Last Post: biketool

Forum Jump:


Users browsing this thread: 1 Guest(s)