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.
Hi,
I have the j6evm5777 using android SDK v6AO.1.1 all the SW and the HW is by default.
To connect via adb, the usb configured is the usb 48890000.usb.
I want to use the usb 488d0000.usb but if I can't. I checked /sys/class/udc and I can only see 48890000.usb
In the "USB Composite Gadget Using CONFIG-FS on DRA7xx Devices" doc the example is with the 48890000.usb.
Is it possible to configure the 488d0000.usb as gadget to use adb over it.
Best regards,
Miguel
Hi Miguel,
To change the USB port used for ADB, in Android file system only updating the sys.usb.controller value in enough.
http://git.omapzoom.org/?p=device/ti/jacinto6evm.git;a=blob;f=init.jacinto6evmboard.usb.rc;h=bc12a3243e1e57c4b2c66368e425c8e969b826ed;hb=refs/heads/d-oreo-mr1-release#l25
On the kernel side at the minimum you have to change the dr_mode of usb2 node to "device" or "otg". The usb2 port is configured by default to host mode.
git.omapzoom.org/
Regards,
Vishal
Thanks Vishal,
This solution doesn't work for us. Sure we have another issue, thank you for your reply.
Best regards,
Miguel
When you tried this, what was the mode of 48890000.usb? Can you make this usb1 as host and try?
dts:
&usb1 { dr_mode = "host"; }; &usb2 { dr_mode = "device"; };
UDC:
$ ls /sys/class/udc/ 488d0000.usb
$ cat /sys/kernel/debug/48890000.usb/mode host $ cat /sys/kernel/debug/488d0000.usb/mode OTG
init.usb.rc
setprop sys.usb.controller 488d0000.usb
We can't set the 488d0000.usb in mode device is always in mode OTG. But we can put it in mode host if we change it in the dtb.