Enabling USB otg USB Ethernet gadget in kernel - Android Q&A, Help & Troubleshooting

Im trying to build a kernel for the Samsung Galaxy Express SGH-i437, and I notice that there is no option for g_ether in the kernel drivers under
the menu simply isn't there. Can I grab the related files from another kernel and use them?
Code:
Device Drivers --->
USB support --->
USB Gadget Support --->
<m> Ethernet Gadget (with CDC Ethernet support)
Am I right to assume that I also have to use, The hacks to msm_otg.c, to use externally-powered OTG devices? Located here?
https://github.com/ziddey/mako/commits/nightlies-4.3-JSS

Related

[Q] USB Host Mode/OTG is it only for Samsung devices?

Dear All,
I wanted to know if USB Host mode/On the Go (OTG) on for Samsung devices?
cos as far as i have seen, unless you modify kernel and use an app OTG doesnt work with other devices.
I have a tablet (HCL ME U1 - Version: ICS), which has normal USB/Mini USB, but the USB Host mode is not enabled on it. i was wondering how do i enable it ?
the other option is to buy a tablet which is OTG enabled, but as far as my knowledge, only samsung galaxy tab has OTG.
kindly help me out with information
- slax

[Q] CM11 USB host for Arduino?

Can I use USB host to interface with an Arduino in CM11? This is very important, and if it does not happen, can somebody PLEASE come out with a patch; this is for school, and I need it soon.
AFAIK, none of the CM7/9/10/11 ROMs to date has support for USB Host for any kind of USB devices.
FWIW CM10.x/11 builds for the Nook HD/HD+ do support USB Host for some common types of USB devices (e.g., flash storage).

Need OTG Support - Which ROM?

Hi,
does any of the countless i9100 (not "G") ROMs have OTG support?
Best regards,
toshibashi
CyanogenMod does support OTG.
Just checked with CM12.1.
And when i remember correctly, Cm11 worked as well.
I have cyanogenmod 12.1-20160106 Nightly-i9100 kernel 3.064-cm-gd71763e [email protected] #1. I have enable Android debug brigde and usb debbuging but OTG is not working. The cable is tested on a sony experia tablet and works fine with usb mouse and usb flash drive. I have also download several programs like USB OTG Helper, Stick (something), and others i don't remember. One of them said s3c usb host driver is missing. Any idea how to fix OTG?
Thanks in advance
What is OTG?
Web_Monster said:
What is OTG?
Click to expand...
Click to collapse
OTG is the ability of a phone to connect USB devices with an adapter connected to the microUSB port. You can connect keyboards or USB sticks, for example.
Well I run stock CM12.1 and never had any problem with OTG. I don't know if it might be the problem that your USB OTG adapter is not from Samsung?

Mediatek mt6753 OTG support

Hi all,
I try to get USB-OTG support for my mt6753 phone running. Lots of websites show that the device should offer OTG support and you find several phones with this chipset having this option. I have a DOOGEE T3 that should have that, too.
But nothing happens when connecting different USB storages to the phone. Neither the device internal LEDs flashes nor kmsg / dmesg shows something USB related (phone is rooted).
I already ran several USB OTG checkers from google app store that added android usb host permissions in /etc/permissions in several xml files.
I also added the usb.host setting in build.prop and disabled the charger only option.
I also added a seperate USB power supply for definitively providing enough power for the USB storage. When using this additional cable the USB storage blinks twice but nothing happens on the phone.
There are a lot of items in /sys on the phone (e.g. usb20_host) that should point me to the capabilities for OTG.
I don't see a real "hardware" usb host controller in lsusb (like an uchi or ehci controller I know from Intel based systems) - only the "Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub"
How to proceed? If you need more information to determine the next steps, just let me know.
Best regards,
RX1901
Changing the cmode property to 2 (host mode only) causes some kernel debugging lines that state at the end "switch_int_to_host is done" but the "is_host" stays 0.
Am I on the right track?
After further checkings, it looks as if the usb20_otg_if is not compiled into the kernel. How can I add this? As a quick test a .ko file would be sufficient.
RX1901 said:
After further checkings, it looks as if the usb20_otg_if is not compiled into the kernel. How can I add this? As a quick test a .ko file would be sufficient.
Click to expand...
Click to collapse
Find a kernel source for your chip. However, I'm concerned about your phone not powering up the guest device. I think it should do that regardless of the driver. Is your OTG cable good? Proper cable should have OTG pin pulled to the ground on the phone's side and floating on the device's side.

Looking for OTG support on Android devices?

I own two Android devices which I need help with setting up OTG access to USB thumb-drives and SD Card Readers. I don’t understand why this isn’t a standard feature on all Android devices? Do I need to have both devices rooted? Is there a setting or an app for accessing data files on a thumbdrive?
Samsung Galaxy Tab: SM-T280, OS 5.1.1
BLU Phone: Vivo XL4, OS 8.1.0
USB OTG is a hardware feature, has nothing to do with Android OS itself. If your Android phone’s retail box has the USB OTG logo, it supports USB OTG. Many Samsung models support USB OTG.
Whether an Android device supports USB OTG or not you check with Easy OTG Checker app.
If device supports USB OTG but this feature isn't enabled by default and
a) it's rooted then you can install an app like USB OTG Helper to access the USB device.
b) it isn't rooted then you can use Es file explorer to enable it:
1. Connect the USB OTG cable with the device attached you want to connect to Android .
2. Insert the OTG cable in Charging port .
3. Now Open Es file explorer .
4. You will get a notification asking ” Enable USB OTG support “

Categories

Resources