FORUMS
Remove All Ads from XDA

[Dev] USB OTG Tests

1,198 posts
Thanks Meter: 2,567
 
Post Reply Email Thread
Recently google said OTG isnt supported on the nexus 4 device

So curiosity has got the better of me and I've requested for people to test a few things, this is a development thread created for USB OTG and getting it to work.

What we know:
The snapdragon s4 soc support otg (running all the time reads mdm as usb device)
Slimport support OTG
kernel supports OTG
Unsure about ROM

This is created from my mobile device, when i receive net access ill update this more

Kernel i built 2 weeks ago or so, supports OTG
If anyone with an OTG Cable can test and provide both logcat and dmesg when plugging in a device, to make it easier would prefer ps3 controller connecting. Ontop of that do 2 tests 1 without supplying power and 1 with supplying power.

Newer kernel http://devhost.xda-developers.com/o0O
Installation ZIP, http://devhost.xda-developers.com/o0O
Works on any ROM
Remember to modify build.prop and add ro.usb_host=1
The Following 37 Users Say Thank You to Shaky156 For This Useful Post: [ View ] Gift Shaky156 Ad-Free
15th December 2012, 12:29 PM |#2  
Shaky156's Avatar
OP Senior Member
Thanks Meter: 2,567
 
Donate to Me
More
Think ive just figured it out new kernel will be uploaded & mod lets hope it works need testers
The Following 2 Users Say Thank You to Shaky156 For This Useful Post: [ View ] Gift Shaky156 Ad-Free
15th December 2012, 01:30 PM |#3  
Shaky156's Avatar
OP Senior Member
Thanks Meter: 2,567
 
Donate to Me
More
Ill test the kernel to make sure its good and boots fine then ill drop the kernel, but i can only test to a certain extent i dont own an OTG Cable, also youll need to modify @ ROM level
15th December 2012, 01:42 PM |#4  
Tijmen's Avatar
Retired Forum Moderator
Flag Rotterdam
Thanks Meter: 2,619
 
More
Quote:
Originally Posted by Shaky156

Ill test the kernel to make sure its good and boots fine then ill drop the kernel, but i can only test to a certain extent i dont own an OTG Cable, also youll need to modify @ ROM level

I have an OTG cable I'm not using, willing to send it you for free. PM me if interested.
The Following 2 Users Say Thank You to Tijmen For This Useful Post: [ View ] Gift Tijmen Ad-Free
15th December 2012, 01:49 PM |#5  
Shaky156's Avatar
OP Senior Member
Thanks Meter: 2,567
 
Donate to Me
More
Quote:
Originally Posted by gangsterjoop

I have an OTG cable I'm not using, willing to send it you for free. PM me if interested.

Thanks man really appreciate the offer but that would take days, maybe even weeks to get here, Im in the UK, I was hoping to get the tests done and see if its possible or not pretty quickly

I've already sliced 2 usb cables, on my last one

Link to new kernel for Testing USB OTG, http://devhost.xda-developers.com/l5Y
also put into build.prop ro.usb_host=1

Give it a test, and please provide logs, thank you

EDIT: FOR STOCK ROM ONLY
(Thanks to endursa for reminding me)
The Following 2 Users Say Thank You to Shaky156 For This Useful Post: [ View ] Gift Shaky156 Ad-Free
15th December 2012, 01:58 PM |#6  
Shaky156's Avatar
OP Senior Member
Thanks Meter: 2,567
 
Donate to Me
More
Quote:
Originally Posted by endursa

i would love to test it, but if i run the boot image with fastboot boot boot.img i get a whole lot of fc's on CM10.1 and i can't reflash my device this weekend, :/


i should mention it's the same with both boot.img you posted

Here you go
Flashable on any ROM
http://devhost.xda-developers.com/o0O

Just remember to put into build.prop
ro.usb_host=1
15th December 2012, 02:20 PM |#7  
Senior Member
Thanks Meter: 116
 
More
I don't have a PS3 controller, so this was tested using a standard USB thumbdrive, i also don't have a splitter to make it powered, so i'm afraid i can't test this either, this was the thumb-drive plugged directly into the phone:

dmesg:
http://pastebin.com/rsvsLGQr

logcat:
http://pastebin.com/p8SfDuEX

Both will expire in a day, in case i missed any personal information.
15th December 2012, 02:23 PM |#8  
pvillasuso's Avatar
Senior Member
Thanks Meter: 666
 
More
Quote:
Originally Posted by Shaky156

Here you go
Flashable on any ROM
http://devhost.xda-developers.com/o0O

Just remember to put into build.prop
ro.usb_host=1

Hi , Im using latest aokp build

edited the .prop file
and flashed the zip

phone wont bootup

had to get into recovery and flashed again francos latest kernel to boot normally

ps. still just for stock roms ?

Sent from my GT-N7100 using Tapatalk 2
15th December 2012, 02:31 PM |#9  
Shaky156's Avatar
OP Senior Member
Thanks Meter: 2,567
 
Donate to Me
More
Quote:
Originally Posted by FISKER_Q

I don't have a PS3 controller, so this was tested using a standard USB thumbdrive, i also don't have a splitter to make it powered, so i'm afraid i can't test this either, this was the thumb-drive plugged directly into the phone:

dmesg:
http://pastebin.com/rsvsLGQr

logcat:
http://pastebin.com/p8SfDuEX

Both will expire in a day, in case i missed any personal information.

Thanks already see an issue, will try n drop another kernel today

Quote:
Originally Posted by pvillasuso

Hi , Im using latest aokp build

edited the .prop file
and flashed the zip

phone wont bootup

had to get into recovery and flashed again francos latest kernel to boot normally

ps. still just for stock roms ?

Sent from my GT-N7100 using Tapatalk 2

It should work :s, it leaves the ramdisk and only flashes the
zImage
15th December 2012, 02:41 PM |#10  
0.0's Avatar
Senior Member
Thanks Meter: 3,326
 
More
Quote:
Originally Posted by pvillasuso

Hi , Im using latest aokp build

edited the .prop file
and flashed the zip

phone wont bootup

had to get into recovery and flashed again francos latest kernel to boot normally

ps. still just for stock roms ?

Sent from my GT-N7100 using Tapatalk 2

You would need to dirty flash the cm nightly again, then this kernel. I assume you were on Franco's kernel when flashing this one

Sent from my Nexus 4
15th December 2012, 02:54 PM |#11  
Member
Thanks Meter: 31
 
More
I've tried it and flashed on stock rom. Boots fine but OTG doesn't work.The otg cable + thumb drive are working fine on Galaxy S2.

EDIT: I also added ro.usb_host=1 to build.prop
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes