USB Device Mode
#4
Your investigation helped me a lot, thanks Smile

I think that I have solved the problem. To change USB mode without reboot you should type:

Code:
echo device > /sys/kernel/debug/fe800000.usb/mode

but if the current mode is "otg" it will give those fails that you described on the host side. To avoid that set it to "host" before, and then "device".

Code:
echo host > /sys/kernel/debug/fe800000.usb/mode
echo device > /sys/kernel/debug/fe800000.usb/mode

I configured the device for CDC EEM and the host side works fine with it (and the appropriate driver, of course).

Update: I had to insert a little "sleep 0.03" between "echo host" and "echo device" for making it to work in a script.


Messages In This Thread
USB Device Mode - by R0b0t1 - 09-18-2020, 12:12 PM
RE: USB Device Mode - by R0b0t1 - 09-18-2020, 07:45 PM
RE: USB Device Mode - by R0b0t1 - 09-19-2020, 09:21 AM
RE: USB Device Mode - by guannais - 10-30-2020, 07:34 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best device image for docker usage? Dreamwalker 1 1,976 05-01-2022, 04:08 PM
Last Post: tllim
  Device unable to boot Lunix33 9 8,621 09-23-2021, 01:38 AM
Last Post: LMM
  Device bricked? TheHunter 1 2,701 03-10-2021, 05:27 PM
Last Post: TheHunter
  PCIe x4 mode - Lane 3 failure acdkyn 1 3,145 04-24-2020, 01:32 PM
Last Post: kuleszdl
  Non burst mode in MIPI DSI skumar 0 2,201 06-06-2019, 12:54 AM
Last Post: skumar
  Clarification of type-c superspeed device mode cpwrunner 4 7,091 07-03-2018, 11:44 AM
Last Post: cpwrunner

Forum Jump:


Users browsing this thread: 1 Guest(s)