Hello,
I understand that USB OTG is not supported in DM8148.
But, Is it possible to change between usb device mode to host mode in runtime , or do we have boot and than load different linux kernel in order for the other mode to work ?
Thank you,
Ran
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I understand that USB OTG is not supported in DM8148.
But, Is it possible to change between usb device mode to host mode in runtime , or do we have boot and than load different linux kernel in order for the other mode to work ?
Thank you,
Ran
Hi Ran,
Ran Shalit said:Is it possible to change between usb device mode to host mode in runtime
I think this is exactly OTG, so this is not possible due to HW limitation.
Regards,
Pavel
Hi,
We eventually did some patch in usb in order to support dynamic usb-device switch (and vice versa).
to change to host:
====================
modprobe -r g_ether
modprobe -r usb-storage
modprobe -r ti81xx
modprobe ti81xx - validate printing musb-hdrc musb-hdrc.1: USB Host mode"
modprobe usb-storage - insert disk - does it recognize the disk in /dev/sdX ?
to change to device:
=====================
modprobe -r g_ether
modprobe -r usb-storage
modprobe -r ti81xx
modprobe ti81xx - validate printing "musb-hdrc musb-hdrc.1: USB Peripheral mode"
modprobe g_ether - check with ifconfig that usb0 is configured
Regards,
Ran