Need help! Can't get device mode to work.
#4
My /sys/class/udc is an empty directory.  Is your's populated?

I followed the configfs recipe here https://elinux.org/images/e/ef/USB_Gadge..._API_0.pdf, right up to the end where /sys/class/udc is expected to have content.

I also get a /var/log/syslog message that is related: udc-core: couldn't find an available UDC - added [g_ether] to list of pending drivers

And doing echo device > /sys/kernel/debug/fe800000.usb/mode   does not change the mode, which continues to have "host" value.

Looking in /boot/config-5.10.0-7-arm64, I see # CONFIG_USB_OTG is not set.

(12-14-2021, 12:08 AM)djonathan Wrote: I was looking for similar info, and this looks relevant, specifically the steps at the end:

https://forum.pine64.org/showthread.php?tid=11523

Thanks for the reply. That's the exact post I was referring to in my first post, but for the life of me, I just can't echo device to mode no matter what, it doesn't give me any error, but after doing that, I cat mode and it is still host. I can't seem to be able to change mode to device (using root). I don't know what I'm doing wrong. I can set USB-c to device mode via dtb modifiction, but that means the board is booting with mode set to device already. Is the solution actually need the board to boot in "host" mode and then set it to "device"?
  Reply


Messages In This Thread
RE: Need help! Can't get device mode to work. - by djonathan - 12-15-2021, 07:40 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  USB3 xhci-hcd in SuperSpeed mode swan 0 526 05-11-2023, 05:35 AM
Last Post: swan
  RockPro64 linux console video mode callegar 0 899 09-06-2022, 02:32 PM
Last Post: callegar
  Using the PCIe slot of ROCKPro64 as EndPoint mode nonoriri 1 1,860 11-20-2021, 10:53 AM
Last Post: fire219
  slave mode on Rockpro64 Radhika.gabani 1 2,377 09-22-2021, 05:35 AM
Last Post: mahtew
  Linux distro that will work with Kodi? SBCraok 9 11,895 09-18-2019, 02:12 AM
Last Post: mtrcycllvr
  USB device mode tikonen 1 2,838 07-02-2019, 05:49 AM
Last Post: tikonen
Information PCIe -> SATA and NVMe work as of 0.6.59 Luke 13 15,273 08-06-2018, 11:33 AM
Last Post: dukla2000

Forum Jump:


Users browsing this thread: 1 Guest(s)