Your investigation helped me a lot, thanks
I think that I have solved the problem. To change USB mode without reboot you should type:
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".
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.
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.