• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.
Sign in to follow this  
Followers 0

(Request) USB OTG 2.6.35

25 posts in this topic

Posted

Has anyone tried USB OTG with 2.6.35 kernel sucessufully?

0

Share this post


Link to post
Share on other sites

Posted

yeah, there were some successful attempts, but the user who came up with it, just deleted all his work...reason: only he knows :D

0

Share this post


Link to post
Share on other sites

Posted

It's been done once for gingerbread by someone called 'johnsmithx', but he didn't release the source for it, and later he just deleted the published binary too. Tomm13b had also done some OTG experiments with an earlier .32 kernel, but this version had problems with wifi-keepalive.

0

Share this post


Link to post
Share on other sites

Posted

There were some problems with deep sleep in .35 (at least I had that problems - he was telling me he had no problems at all), I was testing his kernel builds, but... he just disappears, don't know why

0

Share this post


Link to post
Share on other sites

Posted (edited)

As I know, USB OTG is supported from Android 3.1 onwards. So, will installing a ICS or JB ROM make it work in Blade?

Edited by ontherocks
0

Share this post


Link to post
Share on other sites

Posted

absolutely not, it must be enabled in kernel

0

Share this post


Link to post
Share on other sites

Posted (edited)

I understand that if OTG was possible it would have been available........obviously

Still I am confused.

Say for example the latest CyanogenMod ROMs that are ported to Blade were for devices that have OTG support.....am I right?

If so, while porting do people disable it in kernel?

Edited by ontherocks
0

Share this post


Link to post
Share on other sites

Posted

It's disabled in the kernel for power saving as far as I can remember, because it makes the device unable to sleep properly - that was the (stated I haven't tried it myself) difference with johnsmithx's kernel, as was capable of OTG with proper deepsleep support. Btw, for OTG with the Blade you would need a special Y-shaped USB cable and a power supply anyway, because the phone doesn't give enough power to most USB devices.

0

Share this post


Link to post
Share on other sites

Posted

It's disabled in the kernel for power saving as far as I can remember, because it makes the device unable to sleep properly - that was the (stated I haven't tried it myself) difference with johnsmithx's kernel, as was capable of OTG with proper deepsleep support. Btw, for OTG with the Blade you would need a special Y-shaped USB cable and a power supply anyway, because the phone doesn't give enough power to most USB devices.

Exactly like on my SGS 1, you can easily buy Y-shaped USB cable on eBay or Dealextreme...also, there's no problem to buy an USB charger and you're good to go ;)

0

Share this post


Link to post
Share on other sites

Posted

Btw, for OTG with the Blade you would need a special Y-shaped USB cable and a power supply anyway, because the phone doesn't give enough power to most USB devices.

Exactly like on my SGS 1, you can easily buy Y-shaped USB cable on eBay or Dealextreme...also, there's no problem to buy an USB charger and you're good to go ;)

Which one of the two cables below are you guys talking about? Or is it something else?

oqTBIXD.png

QJWOt23.png

0

Share this post


Link to post
Share on other sites

Posted

Yeah, I got a slightly different cable - instead of female micro USB there is a male USB

0

Share this post


Link to post
Share on other sites

Posted

So you mean the one in the first picture?

0

Share this post


Link to post
Share on other sites

Posted

Damn, didn't noticed that, thought they are the same :D Yeah, that one

0

Share this post


Link to post
Share on other sites

Posted

Hi - would someone be able to point me in the direction of the latest ROM for the blade with OTG support?

0

Share this post


Link to post
Share on other sites

Posted

The latest build with OTG support is old Froyo (don't ask me for link, just google it, maybe you'll find something)

0

Share this post


Link to post
Share on other sites

Posted

Thanks for the reply matcho13579, have been looking around in the old forum threads but can't find any download links that work (files have been removed from dropbox etc). Starting to feel a bit hopeless :(

0

Share this post


Link to post
Share on other sites

Posted

I'm afraid you'll need to buy another device to use that feature

0

Share this post


Link to post
Share on other sites

Posted

If you search for 'experiental cm7 kernel', there should be at least one cm7 (gingerbread) kernel that supports it, but it's quite old and is still 2.6.32.

I think however, that there was a link to it's dource, maybe with some tinkering the patches could be applied relatively seamlessly to the latest cm7 kernel. I'm not sure if it would any harder with 4.X, because there were a lot of kernel updates, and I'm pretty sure they affected USB, at least because of tethering.

0

Share this post


Link to post
Share on other sites

Posted (edited)

Hi Sulthekk - i searched for it and found the thread, but all the dropbox links are dead. Would be great if someone found an old flashable version with OTG support, otherwise the only option is probably to try and locate the original source for the versions released by johnsmithx and t0mm13b and learn to compile everything myself...

Thanks for helping though

Edited by sugotron
0

Share this post


Link to post
Share on other sites

Posted (edited)

Just checked out KonstaT's current kernel sources, and there seems to be a config option for USB host/otg mode for quallcomm devices out of the box. I am not sure if it's working and/or it's safe to use, but I think there was a bricked phone at the thread you found, so we should be careful there. I have no proper cable near me to test (all our usb cables are plugged in somewhere), but I could build the kernel image for you, although I won't take any responsibility if you brick your blade with it. I think you also need to modify the Y-shaped cable so on one end only 2 pins are connected, but I can't clearly remember whether it's the data or electricity pins (the info should be somewhere in one of the old OTG topics though).

Are you sure that OTG mode is worth the risk?

Also please note that OTG haven't been tested on the Blade for quite a while, even if it worked, I have no idea if it has any stability/usability/performance impacts, I can only assume that your phone may become unable to sleep properly.

Edited by Sulthekk
2

Share this post


Link to post
Share on other sites

Posted (edited)

That is really, really nice of you. I would be totally ok with the bricking risk, I have two blades that are no longer in use - one with a cracked screen.

The reason why I am so keen on this is that I want to hook the blade up to an arduino with some sensors, and leave it in my family's summer house over winter - to keep an eye on the temperature and play music when the mice are dancing. I know there are other connectivity options - actually got the blade to talk to the arduino using a 'host shield' over the weekend (through ADB, not Googles ADK), but it is not a straight-forward solution. Going to try a Bluetooth module as well, but would much prefer to use USB OTG. Currently using a Xperia Z for the project, where OTG works really well, but don't want to leave that in an abandoned house for half the year.

Ordered a Y-cable form eBay, but as the arduino has its own power supply it might work anyway.

Edited by sugotron
0

Share this post


Link to post
Share on other sites

Posted

Okay, then I will try to do the compile with that kernel config enabled, although I'm not sure if any drivers are needed or not for your use case, but since you already got it working with another device I assume you already know how to sort it out.

0

Share this post


Link to post
Share on other sites

Posted (edited)

Okay, it seems like the current kernel sources fail to compile with OTG enabled, but it seems to be just a few missing prototypes until now, so nothing too hard. I guess it's a remaining piece of mess from the original zte code release, layed hidden in unused ifdefs.

P.S: I have been too optimistic. The first error was indeed a missing a prototype, but now I just can't sort out that 'undefined reference' in a way that doesn't involve ugly things like copy from header and paste into c file. I will try collect some outputs and post it there, because I'm no C jedi, and I ran out of ideas after spending hours googling the issue. I am however, now more interested in it than ever, so I guess I won't be sleeping well unless I sort it out. :(

Edited by Sulthekk
1

Share this post


Link to post
Share on other sites

Posted

Output and changes

 

I *think* that although by adding an ld parameter I could get it working in case of the first object, the problem itself is very similar in case of notify.o

 

It fails because of that 'undefined reference' in the paste, but usbfs_mutex is declared in usb.h of the very same directory, and is included with

#include "usb.h"

In case of msm72k_otg.o, the problem was the very same, as it got the same error with two methods declared in include/linux/usb.h, included with

#include <linux/usb.h>

Although I was able to continue compiling by adding notify.o as an input parameter of ld.

But in case of notify.o, I have no idea what could I do to fix it (apart from the ugly copying of the contents of usb.h instead of including it, which in theory does the same). The preprocessor doesn't give a warning, it only fails at linking.

2

Share this post


Link to post
Share on other sites

Posted

My C-skills are unfortunately not on a level where I can be of much use, but thanks for giving it a go!

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.