MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      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 software
      Nintendo 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 be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      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 / suspensions / ban.
Sign in to follow this  
Followers 0

(Request) USB OTG 2.6.35

25 posts in this topic

Posted · Report post

Has anyone tried USB OTG with 2.6.35 kernel sucessufully?

0

Share this post


Link to post
Share on other sites

Posted · Report post

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 · Report post

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 · Report post

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) · Report post

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 · Report post

absolutely not, it must be enabled in kernel

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

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 · Report post

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 · Report post

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 · Report post

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 · Report post

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 · Report post

So you mean the one in the first picture?

0

Share this post


Link to post
Share on other sites

Posted · Report post

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 · Report post

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 · Report post

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 · Report post

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 · Report post

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 · Report post

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) · Report post

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) · Report post

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) · Report post

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 · Report post

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) · Report post

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 · Report post

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 · Report post

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.