Amazing!! Did you need a self-powered cable or just plain OTG?There were still some things to be fixed, but I finally managed to connect a mouse to my Defy![]()
I need to clean up some things in the code and will post more on this soon.
Amazing!! Did you need a self-powered cable or just plain OTG?There were still some things to be fixed, but I finally managed to connect a mouse to my Defy![]()
I need to clean up some things in the code and will post more on this soon.
The USB device needs an external power source, but a simple externally powered USB hub with an OTG cable will do.Amazing!! Did you need a self-powered cable or just plain OTG?
Source code: https://github.com/slugzero/jordan-kernelCan you post link to your kernel source ? (GPL)
But according to an old picture on @Quarx site, and his explanation of that pic, defy does support output power via micro USB- Defy does not provide power via USB, you therefore need some sort of external power source for your USB device. The following should work:
- self-powered device (e.g. camera)
- hard disk with Y-cable, second end in external power source
- USB hub with external power source
(...)
The USB device needs an external power source, but a simple externally powered USB hub with an OTG cable will do.
thx, I did not know this pic. That means that Quarx probably has an easy way to fix this as soon as he's back.But according to an old picture on @Quarx site, and his explanation of that pic, defy does support output power via micro USB
So for anyone who is keen enough to try this, here is my modified kernel with USB host support. I also compiled some of the USB storage modules into the kernel.
You have to copy the zImage to /system/bootmenu/2nd-boot/ and the android.hardware.usb.host.xml to /etc/permissions (It's not a flashable zip, sorry!) And don't forget to make a backup first
This is based on the AeroKernel from Quarx's latest nightlly, so it should work with the CM10.1/2 builds (tested it on CM10.2).
Please test and report any issues.
What you need:
- USB OTG cable
- Defy does not provide power via USB, you therefore need some sort of external power source for your USB device. The following should work:
- self-powered device (e.g. camera)
- hard disk with Y-cable, second end in external power source
- USB hub with external power source
What works:
- USB hub
- USB keyboard and mouse
- USB mass storage devices (with external app, I tested StickMount)
- disconnecting and reconnecting devices at the hub
- changing from client to host mode and vice versa on OTG cable connect/disconnect
Known issues/what does not work:
- first connect after boot works fine, but reconnecting the OTG cable needs a few (2-4) tries.
- sometimes after using host mode, charger or USB client connection is not detected any more
- when disconnecting a device, the driver sometimes gets stuck in a strange loop and phone must be rebooted
The USB device needs an external power source, but a simple externally powered USB hub with an OTG cable will do.
Hello, mester. Thx for ur kernel. Is this mouse powered by dry cell? And can support wireless mouse?I will not have time to work on this for the next month, so I want to share what I've got until now. I could power and mount an USB stick with the following change:
https://github.com/slugzero/jordan-kernel/commit/45e34e87e48edb47fc46a50ff761d13a51ececf1
This is very unstable, seems like power goes down again after a while. I could browse through the directories on the stick but I could not open any files any more. It also works immediately after boot only, disconnect and reconnect of devices does not work.
Since this may possibly damage your device, I recommend not testing this and also will not provide a compiled kernel until I got this working properly. Everyone who knows what he/she is doing, should be able to compile a kernel himself.
Input devices on the other hand work really nicely, see attached image
Btw. I am using the kernel I posted previously for more than one week now and had no issues so far, but I've got the feeling that power consumption is slightly higher. I think this is due to the changes in the musb part, I will have a look at this as soon as I am back.
@SlugZero, thanks for OTG
I looked into it and made some fixes., reconnecting works after boot, but not always... And usb works.
If you not mind, after fully fix i can include it in cm builds.
@ljsh093, mouse is powered by phone. USB wireless mouse works, but I would recommend using a Bluetooth wireless mouse.Is this mouse powered by dry cell? And can support wireless mouse?
Have a look at wiki pages: http://forum.xda-developers.com/wiki/Motorola_Defybump! How is it going? I tried latest 2nd boot CM but with USB Host Diagnostics it does not work
Thanks for the answer. I found nothing relevant to usb OTG or USB host, though :/Have a look at wiki pages: http://forum.xda-developers.com/wiki/Motorola_Defy
You're welcomeJust what I was waiting for. THANKS ALOT, SlugZero!!!
EDIT: My USB Competition Pro does work after restarting! Played THE GREAT GIANA SISTERS with an amiga-emulator. GREAT! Plug and unplug serveral times didn't help before, had to restart.
EDIT 2: Somehow I'm not able to mount an USB-stick... the stick is recognized by "usb host controller", but not under "connected mass storange", its under "connected usb-devices" only. See the attached screenshots. Anyone successfully mounted an usb-stick? Any help is appreciated. Thanks alot!
su
cat /proc/kmsg |tee /sdcard/kmsg.txt