PINE64
USB host/client working on PineNote 2nd batch? - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PineNote (https://forum.pine64.org/forumdisplay.php?fid=171)
+--- Forum: PineNote Hardware (https://forum.pine64.org/forumdisplay.php?fid=174)
+--- Thread: USB host/client working on PineNote 2nd batch? (/showthread.php?tid=19589)



USB host/client working on PineNote 2nd batch? - j_s - 12-29-2024

This poll is to determine how widespread the problem is with the PineNote USB not working as an USB client or host. (Charging works and serial port dongle work.) If you are voting regarding a first batch (pre 2024) PineNote, please make a post saying so to this thread and whether you are running the pinenote-debian-image supplied on the 2nd batch PineNotes.

Symptoms are that the lsusb command gives no results, sudo /usr/bin/dmesg | tail shows nothing new after plugging in a hub, flash drive,or other USB device, and sudo /usr/bin/dmesg | tail on a linux computer shows nothing new after connecting the computer and PineNote by USB.

Also /sys/bus/usb/devices is empty on the PineNote.


RE: USB host/client working on PineNote 2nd batch? - vlagged - 01-03-2025

As @j_s was mentioning in the UsrMerge thread, this seems related to some errors showing up in the update process, such as
Code:
Extracting templates from packages: 100%
Preconfiguring packages ...
cat: '/sys/bus/usb/devices/*:*/bInterfaceClass': No such file or directory
cat: '/sys/bus/usb/devices/*:*/bInterfaceSubClass': No such file or directory
cat: '/sys/bus/usb/devices/*:*/bInterfaceProtocol': No such file or directory



RE: USB host/client working on PineNote 2nd batch? - j_s - 01-05-2025

I'm still hopting that this is a fixable software issue, but I've found a notice (not warning) in:

https://wiki.pine64.org/wiki/PineNote#UART_Dongle

Quote:The UART adapter is not symmetrically wired, make sure to orient it with the components oriented towards the screen!

that the UART dongle must be plugged into the PineNote component side up because the connector is not wired to support both orientations. So I have to wonder whether inadvertantly plugging it in upside down might kill the USB port, leaving charging and UART capabilities intact.


RE: USB host/client working on PineNote 2nd batch? - cmermoud - 01-15-2025

Hello,

In this poll, I want to vote "Never worked", but I didn't find any way to enter a vote in this page...

The USB system didn't work for me since unpacking the Pinenote, before any update and  before I first used the UART adapter.

A full system upgrade with 

Code:
apt update && apt upgrade

and the installation of last kernel linux-image-6.12.6-pinenote-202412310358-00187-g0aa6f8665258 didn't solve this issue.

I have found that the USB system seems to be correctly recognized in the U-Boot console. The "usb start" command gives :


Code:
starting USB...
Bus dwc3@fcc00000: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
Bus dwc3@fd000000: usb maximum-speed not found
Register 2000140 NbrPorts 2
Starting the controller
USB XHCI 1.10
scanning bus dwc3@fcc00000 for devices... 1 USB Device(s) found
scanning bus dwc3@fd000000 for devices... 1 USB Device(s) found
      scanning usb for storage devices... 0 Storage Device(s) found


and "usb tree" gives :


Code:
USB device tree:
  1  Hub (5 Gb/s, 0mA)
    U-Boot XHCI Host Controller

  1  Hub (5 Gb/s, 0mA)
    U-Boot XHCI Host Controller


I have found that in the rk3566-pinenote-v1.2.dtb file, the nodes usb@fd000000, usb@fd800000, usb@fd840000, usb@fd880000, usb@fd8c0000, usb2phy@fe8a0000/host-port and usb2phy@fe8b0000/host-port have their "status" property set to "disabled". Only usb@fcc00000 has it's status set to "okay".

In my PinePhone Pro under Mobian, on which the USB system is working, all the nodes corresponding to the disabled one have their "status" property set to "okay" in it's .dtb file.

I have tried to modify my PineNote .dtb file by setting the "status" attribute to "okay" to the said nodes, with the "fdtput" command. This makes the corresponding devices appear in /sys/devices/platform as .usb directories but in the output of "journalctl -a", I can see


Code:
platform fd000000.usb: deferred probe pending: dwc3: failed to initialize core

and "lsusb" still gives nothing.

Hope this helps...


RE: USB host/client working on PineNote 2nd batch? - j_s - 01-16-2025

@cmermoud

Thank you for your very detailed report.

Maybe you need more posts before you can vote in a poll. I am also not able to give a thumbs up to your post because there is no button for it, maybe for the same reason.

If you have a github account, please add a comment with the same information to issue #106 for the pinenote-debian-image repository at:
https://github.com/PNDeb/pinenote-debian-image/issues/106


RE: USB host/client working on PineNote 2nd batch? - cmermoud - 01-16-2025

(01-16-2025, 10:31 AM)j_s Wrote: @cmermoud

Thank you for your very detailed report.

Maybe you need more posts before you can vote in a poll. I am also not able to give a thumbs up to your post because there is no button for it, maybe for the same reason.

If you have a github account, please add a comment with the same information to issue #106 for the pinenote-debian-image repository at:
https://github.com/PNDeb/pinenote-debian-image/issues/106

Thanks for this quick reply.

I have added this info to the issue #106 for the pinenote-debian-image repository.

...and now I can vote! I just did it.


RE: USB host/client working on PineNote 2nd batch? - cmermoud - 02-25-2025

(01-16-2025, 01:00 PM)cmermoud Wrote:
(01-16-2025, 10:31 AM)j_s Wrote: @cmermoud

Thank you for your very detailed report.

Maybe you need more posts before you can vote in a poll. I am also not able to give a thumbs up to your post because there is no button for it, maybe for the same reason.

If you have a github account, please add a comment with the same information to issue #106 for the pinenote-debian-image repository at:
https://github.com/PNDeb/pinenote-debian-image/issues/106

Thanks for this quick reply.

I have added this info to the issue #106 for the pinenote-debian-image repository.

...and now I can vote! I just did it.

Hello

I managed to make USB working on Pinenote!

Please see my last comment on https://github.com/PNDeb/pinenote-debian-image/issues/106


RE: USB host/client working on PineNote 2nd batch? - vlagged - 03-02-2025

(02-25-2025, 06:45 PM)cmermoud Wrote: Hello

I managed to make USB working on Pinenote!

Please see my last comment on https://github.com/PNDeb/pinenote-debian-image/issues/106

Can you expand on what you made work regarding USB?

I was expecteding some telnet/ssh over rndis actually, when connected to the PC.

What are you using this host usb mode for? Thanks!


RE: USB host/client working on PineNote 2nd batch? - cmermoud - 03-02-2025

(03-02-2025, 04:22 PM)vlagged Wrote:
(02-25-2025, 06:45 PM)cmermoud Wrote: Hello

I managed to make USB working on Pinenote!

Please see my last comment on https://github.com/PNDeb/pinenote-debian-image/issues/106

Can you expand on what you made work regarding USB?

I was expecteding some telnet/ssh over rndis actually, when connected to the PC.

What are you using this host usb mode for? Thanks!
Yes, I can expand...

- Now, lsusb shows something
- USB keyboard, USB Ethernet device, USB storage, all work with this patch on the dtb file. I am even trying to boot the PineNote on a USB key now...

I didn't test USB mouse yet, but I'm sure it works. I didn't test SSH/telnet over rndis either because I don't have any windows machine... Up to now, I connect to the Pinenote through SSH using wifi.