No USB connection - phone not seen!
#1
I lost USB ssh access after a recent update (including kernel as I remember) into my UBPorts edition. Can't see the phone by lsusb, ip a, or dmesg. The situation is the same independent of OS (including postmarketOS without UI), either running from eMMC or SD card. Inspecting the initramfs via the debug-shell would not work. PostmarketOS troubleshoot suggests adjusting kernel configuration parameters referencing: CONFIG_USB_ETH CONFIG_USB_ETH_RNDIS CONFIG_USB_G_ANDROID.  Anybody know the appropriate parameters I should be looking for?
#2
Well, still cant figure this one out. nmcli reports usb0: unmanaged "usb0" ethernet (musb-hdrc), --:--:--:--:--:--, hw, mtu 1500.
I don't know if the usb circuitry is dead, results appear the same without the usb-c cable connection.
Can anybody see anything in these dmesg excerpts?

[    0.210484] sun50i-de2-bus 1000000.bus: Error couldn't map SRAM to device
[    0.211403] sun4i-usb-phy 1c19400.phy: Couldn't request VBUS detect GPIO
[    0.211880] sun6i-mipi-dphy 1ca1000.d-phy: Couldn't create the DPHY encoder regmap
[    0.215866] sun50i-a64-r-pinctrl 1f02c00.pinctrl: initialized sunXi PIO driver
[    0.217192] sun50i-a64-r-pinctrl 1f02c00.pinctrl: supply vcc-pl not found, using dummy regulator
[    0.231444] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
[    0.237227] sun6i-mipi-dsi 1ca0000.dsi: Couldn't get VCC-DSI supply

[    0.378077] axp20x-adc axp813-adc: DMA mask not set
[    0.379037] axp20x-battery-power-supply axp20x-battery-power-supply: DMA mask not set
[    0.385430] axp20x-usb-power-supply axp20x-usb-power-supply: DMA mask not set
[    0.386891] dcdc1: supplied by regulator-dummy

[    0.417966] 1c28400.serial: ttyS1 at MMIO 0x1c28400 (irq = 32, base_baud = 1500000) is a 16550A
[    0.418141] serial serial0: tty port ttyS1 registered
[    0.418909] 1c28c00.serial: ttyS2 at MMIO 0x1c28c00 (irq = 33, base_baud = 1500000) is a 16550A

[    0.538891] hub 5-0:1.0: USB hub found
[    0.538928] hub 5-0:1.0: 1 port detected

[    0.728040] usb0-vbus: supplied by vcc5v0

[    1.660409] usb0: HOST MAC --:--:--:--:--:--
[    1.660462] usb0: MAC --:--:--:--:--:--

[    5.117702] device-mapper: table: 254:0: linear: Device lookup failed
[    5.117711] device-mapper: ioctl: error adding target to table
[    5.120360] device-mapper: table: 254:0: linear: Device lookup failed
[    5.120369] device-mapper: ioctl: error adding target to table

[    6.313681] sun6i-csi 1cb0000.csi: Direct firmware load for gc2145-init.bin failed with error -2
[    6.313699] gc2145 3-003c: Failed to read firmware gc2145-init.bin, continuing anyway...

[    7.168775] random: 4 urandom warning(s) missed due to ratelimiting
[    7.293276] Bluetooth: hci0: RTL: fw version 0xaa5ca4dc
[    7.578831] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    7.767535] anx7688 0-0028: boot firmware load failed (you may need to flash FW to anx7688 first)
[    7.783495] anx7688 0-0028: power disabled
[    7.783537] anx7688 0-0028: spurious status irq

[  22.057415] usb 3-1: GSM modem (1-port) converter now attached to ttyUSB0

[  31.715373] usb0-vbus: disabling
[  31.715437] vcc5v0: disabling
Huh
#3
Tried installing Phosh via pmbootstrap and finally got a dmesg awknolegment of the phone on usb.

[ 5215.995226] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
[ 5216.517404] EXT4-fs (sdb1): mounting ext2 file system using the ext4 subsystem
[ 5216.523174] EXT4-fs (sdb1): mounted filesystem without journal. Opts: (null)
[ 5322.801551] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)

[ 3682.708035] usb 1-1.5: new high-speed USB device number 6 using ehci-pci
[ 3682.817674] usb 1-1.5: New USB device found, idVendor=18d1, idProduct=d001, bcdDevice= 5.07
[ 3682.817679] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3682.817682] usb 1-1.5: Product: PINE64 PinePhone
[ 3682.817684] usb 1-1.5: Manufacturer: PINE64
[ 3682.817686] usb 1-1.5: SerialNumber: postmarketOS
[ 3682.922242] usbcore: registered new interface driver cdc_ether
[ 3682.927151] rndis_host 1-1.5:1.0 usb0: register 'rndis_host' at usb-0000:00:1a.0-1.5, RNDIS device, be:9d:4e:c9:90:79
[ 3682.927174] usbcore: registered new interface driver rndis_host
[ 3682.954316] usbcore: registered new interface driver rndis_wlan
[ 3682.958916] rndis_host 1-1.5:1.0 enp0s26u1u5: renamed from usb0
[ 3683.004472] IPv6: ADDRCONF(NETDEV_UP): enp0s26u1u5: link is not ready
[ 3687.094429] usb 1-1.5: USB disconnect, device number 6
[ 3687.096033] rndis_host 1-1.5:1.0 enp0s26u1u5: unregister 'rndis_host' usb-0000:00:1a.0-1.5, RNDIS device

I wonder why usb disconnected?
#4
(08-12-2020, 07:34 AM)--- Wrote: Tried installing Phosh via pmbootstrap and finally got a dmesg awknolegment of the phone on usb.

[ 5215.995226] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
[ 5216.517404] EXT4-fs (sdb1): mounting ext2 file system using the ext4 subsystem
[ 5216.523174] EXT4-fs (sdb1): mounted filesystem without journal. Opts: (null)
[ 5322.801551] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)

[ 3682.708035] usb 1-1.5: new high-speed USB device number 6 using ehci-pci
[ 3682.817674] usb 1-1.5: New USB device found, idVendor=18d1, idProduct=d001, bcdDevice= 5.07
[ 3682.817679] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3682.817682] usb 1-1.5: Product: PINE64 PinePhone
[ 3682.817684] usb 1-1.5: Manufacturer: PINE64
[ 3682.817686] usb 1-1.5: SerialNumber: postmarketOS
[ 3682.922242] usbcore: registered new interface driver cdc_ether
[ 3682.927151] rndis_host 1-1.5:1.0 usb0: register 'rndis_host' at usb-0000:00:1a.0-1.5, RNDIS device, be:9d:4e:c9:90:79
[ 3682.927174] usbcore: registered new interface driver rndis_host
[ 3682.954316] usbcore: registered new interface driver rndis_wlan
[ 3682.958916] rndis_host 1-1.5:1.0 enp0s26u1u5: renamed from usb0
[ 3683.004472] IPv6: ADDRCONF(NETDEV_UP): enp0s26u1u5: link is not ready
[ 3687.094429] usb 1-1.5: USB disconnect, device number 6
[ 3687.096033] rndis_host 1-1.5:1.0 enp0s26u1u5: unregister 'rndis_host' usb-0000:00:1a.0-1.5, RNDIS device

I wonder why usb disconnected?
looks like usb0 was renamed enp0s26u1u5.

Dev name changes happened for more stability in device names.

You could try changing usb0 part in network setup (computer end) to the name enp0s26u1u5.
- RTP



"In the beginner's mind there are many possibilities, in the expert's mind there are few." -Shunryu Suzuki

[ Pinephone Daily Driver Club ]

Blog/Tutorials
#5
Please ask for help in our Matrix chat rather than here on the forum, you are much more likely to get proper help.
#6
Client pc dmesg shows momentary acknowledgement of my pinephone:
enp0(etc etc): connecting (getting IP configuration) to Wired connection 1
            "Google Nexus 4"
            ethernet (rndis_host), --:--:--:--:--:--, hw, mtu 1500

enp0(etc etc): connected to Wired connection 1
            "Google Nexus 4"
            ethernet (rndis_host), --:--:--:--:--:--, hw, mtu 1500
            inet4 172.16.42.2/24
            route4 172.16.42.0/24
            inet6 fe80:----:----:----:----:/64
            route6 fe80::/64
            route6 ff00::/8


@RTP -  I've been trying to rename usb0 on the phone without success. The value appears to be referenced by GENERAL.DEVICE. Might udev be involved?

@PureTryOut - thanks for the suggestion - will do.
#7
(08-28-2020, 06:21 AM)--- Wrote: Client pc dmesg shows momentary acknowledgement of my pinephone:
enp0(etc etc): connecting (getting IP configuration) to Wired connection 1
            "Google Nexus 4"
            ethernet (rndis_host), --:--:--:--:--:--, hw, mtu 1500

enp0(etc etc): connected to Wired connection 1
            "Google Nexus 4"
            ethernet (rndis_host), --:--:--:--:--:--, hw, mtu 1500
            inet4 172.16.42.2/24
            route4 172.16.42.0/24
            inet6 fe80:----:----:----:----:/64
            route6 fe80::/64
            route6 ff00::/8


@RTP -  I've been trying to rename usb0 on the phone without success. The value appears to be referenced by GENERAL.DEVICE. Might udev be involved?

@PureTryOut - thanks for the suggestion - will do.


Part of "Predictable Interface Names" changes. For more 'stable' device names.

You can read more here: https://www.freedesktop.org/wiki/Softwar...faceNames/
- RTP



"In the beginner's mind there are many possibilities, in the expert's mind there are few." -Shunryu Suzuki

[ Pinephone Daily Driver Club ]

Blog/Tutorials
#8
(08-12-2020, 01:07 PM)RTP Wrote:
(08-12-2020, 07:34 AM)--- Wrote: Tried installing Phosh via pmbootstrap and finally got a dmesg awknolegment of the phone on usb.

[ 5215.995226] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
[ 5216.517404] EXT4-fs (sdb1): mounting ext2 file system using the ext4 subsystem
[ 5216.523174] EXT4-fs (sdb1): mounted filesystem without journal. Opts: (null)
[ 5322.801551] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)

[ 3682.708035] usb 1-1.5: new high-speed USB device number 6 using ehci-pci
[ 3682.817674] usb 1-1.5: New USB device found, idVendor=18d1, idProduct=d001, bcdDevice= 5.07
[ 3682.817679] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3682.817682] usb 1-1.5: Product: PINE64 PinePhone
[ 3682.817684] usb 1-1.5: Manufacturer: PINE64
[ 3682.817686] usb 1-1.5: SerialNumber: postmarketOS
[ 3682.922242] usbcore: registered new interface driver cdc_ether
[ 3682.927151] rndis_host 1-1.5:1.0 usb0: register 'rndis_host' at usb-0000:00:1a.0-1.5, RNDIS device, be:9d:4e:c9:90:79
[ 3682.927174] usbcore: registered new interface driver rndis_host
[ 3682.954316] usbcore: registered new interface driver rndis_wlan
[ 3682.958916] rndis_host 1-1.5:1.0 enp0s26u1u5: renamed from usb0
[ 3683.004472] IPv6: ADDRCONF(NETDEV_UP): enp0s26u1u5: link is not ready
[ 3687.094429] usb 1-1.5: USB disconnect, device number 6
[ 3687.096033] rndis_host 1-1.5:1.0 enp0s26u1u5: unregister 'rndis_host' usb-0000:00:1a.0-1.5, RNDIS device

I wonder why usb disconnected?
looks like usb0 was renamed enp0s26u1u5.

Dev name changes happened for more stability in device names.

You could try changing usb0 part in network setup (computer end) to the name enp0s26u1u5.

I was seeing similar style issues when trying to flash multiple OSes to emmc or sdcards using the device. Try a different cord first. I found that the cord that was supplied quickly deteriorated.  This was causing the devname to change constantly on the device. No clue why.  Could watch it using `udevadm monitor`
#9
(09-01-2020, 11:18 AM)plainenough Wrote:
(08-12-2020, 01:07 PM)RTP Wrote:
(08-12-2020, 07:34 AM)--- Wrote: Tried installing Phosh via pmbootstrap and finally got a dmesg awknolegment of the phone on usb.

[ 5215.995226] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
[ 5216.517404] EXT4-fs (sdb1): mounting ext2 file system using the ext4 subsystem
[ 5216.523174] EXT4-fs (sdb1): mounted filesystem without journal. Opts: (null)
[ 5322.801551] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)

[ 3682.708035] usb 1-1.5: new high-speed USB device number 6 using ehci-pci
[ 3682.817674] usb 1-1.5: New USB device found, idVendor=18d1, idProduct=d001, bcdDevice= 5.07
[ 3682.817679] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3682.817682] usb 1-1.5: Product: PINE64 PinePhone
[ 3682.817684] usb 1-1.5: Manufacturer: PINE64
[ 3682.817686] usb 1-1.5: SerialNumber: postmarketOS
[ 3682.922242] usbcore: registered new interface driver cdc_ether
[ 3682.927151] rndis_host 1-1.5:1.0 usb0: register 'rndis_host' at usb-0000:00:1a.0-1.5, RNDIS device, be:9d:4e:c9:90:79
[ 3682.927174] usbcore: registered new interface driver rndis_host
[ 3682.954316] usbcore: registered new interface driver rndis_wlan
[ 3682.958916] rndis_host 1-1.5:1.0 enp0s26u1u5: renamed from usb0
[ 3683.004472] IPv6: ADDRCONF(NETDEV_UP): enp0s26u1u5: link is not ready
[ 3687.094429] usb 1-1.5: USB disconnect, device number 6
[ 3687.096033] rndis_host 1-1.5:1.0 enp0s26u1u5: unregister 'rndis_host' usb-0000:00:1a.0-1.5, RNDIS device

I wonder why usb disconnected?
looks like usb0 was renamed enp0s26u1u5.

Dev name changes happened for more stability in device names.

You could try changing usb0 part in network setup (computer end) to the name enp0s26u1u5.

I was seeing similar style issues when trying to flash multiple OSes to emmc or sdcards using the device. Try a different cord first. I found that the cord that was supplied quickly deteriorated.  This was causing the devname to change constantly on the device. No clue why.  Could watch it using `udevadm monitor`
udevadm monitor unresponsive to the phone diss/connecting. Bizarrely, just after reading your suggestion nmcli showed the phone and I was able to usb/ethernet access it for a moment (first time since July). Rebooted and lost it again - guess I'll get another cable. Thanks @plainenough.
#10
I had the same issue, phone wasn't showing up. The fix for me, was to not have any other USB devices plugged in aka my mouse dongle. Once that was unplugged the phone showed up.


Possibly Related Threads…
Thread Author Replies Views Last Post
Question No connection to internet without wifi :/ elode 3 819 03-16-2022, 04:15 PM
Last Post: bcnaz
  No automatic hub connection on reboot. --- 0 377 02-06-2022, 06:52 PM
Last Post: ---
  phone won't boot from emmc with sdcard inserted ssilvi 3 1,982 06-06-2021, 02:47 AM
Last Post: ssilvi
  Phone arrived: Stupid Questions begin. Setting up OpenVPN? OLOV 3 2,977 10-06-2020, 05:10 PM
Last Post: OLOV
  Cant shut phone down Cree 2 2,408 09-27-2020, 10:37 AM
Last Post: Cree
  Phone not detecting telco access points Pinoideae 6 4,492 09-23-2020, 06:04 AM
Last Post: Pinoideae
Information pmOS CE phone cannot boot from known good SD singpolyma 2 2,503 09-05-2020, 06:36 PM
Last Post: juanjoseor
  unable to boot the phone with PM OS after battery has completely discharged nieral 1 1,968 08-24-2020, 06:34 AM
Last Post: PureTryOut
  PMOS Community Edition phone,shipping OS bcnaz 1 1,990 08-22-2020, 03:30 AM
Last Post: PureTryOut
  How do I set the date and time on the phone? realrichardsharpe@gmail.com 2 3,192 03-03-2020, 08:08 PM
Last Post: pinerokc

Forum Jump:


Users browsing this thread: 1 Guest(s)