Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,809,424 Members 36,029 Now Online
XDA Developers Android and Mobile Development Forum

[Q] How to enable UMS/Mass storage mode??

Tip us?
 
prasannapmv
Old
(Last edited by prasannapmv; 3rd July 2012 at 05:39 PM.)
#1  
Member - OP
Thanks Meter 218
Posts: 99
Join Date: May 2012
Default [Q] How to enable UMS/Mass storage mode??

Yesterday I made a custom usb Y cable and connected it to a USB OTG adapter to our phone and supplied a external +5v power then connected USB keyboard and mouse both worked.
But when i tried connecting my pen drive it did not shown any sign of life.

I searched and narrowed these methods:
http://www.chinadigitalcomm.com/how-...ves-t1865.html
http://forum.xda-developers.com/show....php?t=1334444
http://forum.xda-developers.com/showthread.php?t=997187

According to these two methods I should get sda1 and sda 2 in dev/block after connecting a USB pen drive but that is not happening.
Then I searched and found out that our kernel should have UMS enabled to mount any usb storage device as stated here:
http://forum.xda-developers.com/show...44&postcount=3

I am really confused now, I know I have enabled USB Host mode as usb mouse and keyboard are working but dont know how to modify our kernel to get usb pen drive work.
The Following User Says Thank You to prasannapmv For This Useful Post: [ Click to Expand ]
 
lkrasner
Old
(Last edited by lkrasner; 3rd July 2012 at 07:19 PM.)
#2  
Senior Member
Thanks Meter 593
Posts: 1,087
Join Date: Apr 2012
Location: Brighton, MI

 
DONATE TO ME
Quote:
Originally Posted by prasannapmv View Post
Yesterday I made a custom usb Y cable and connected it to a USB OTG adapter to our phone and supplied a external +5v power then connected USB keyboard and mouse both worked.
But when i tried connecting my pen drive it did not shown any sign of life.

I searched and narrowed these methods:
http://www.chinadigitalcomm.com/how-...ves-t1865.html
http://forum.xda-developers.com/show....php?t=1334444
http://forum.xda-developers.com/showthread.php?t=997187

According to these two methods I should get sda1 and sda 2 in dev/block after connecting a USB pen drive but that is not happening.
Then I searched and found out that our kernel should have UMS enabled to mount any usb storage device as stated here:
http://forum.xda-developers.com/show...44&postcount=3

I am really confused now, I know I have enabled USB Host mode as usb mouse and keyboard are working but dont know how to modify our kernel to get usb pen drive work.
you won't be able to modify our kernel with our locked bootloader, but your problem could be elsewhere. the drive requires more power than a mouse or keyboard, so it just may not be getting enough. will your power supply give a full 500mA that is what a normal usb port gives, and is probably overkill for a flash drive, but it would prove whether that is the problem or not.

Does the drive have a light on it that usually turns on when you plug it in? if so, does it come on when you plug it in with your splitter into the phone.

It may be that it is just not supported on our phone, but I think a power problem is much more likely.

EDIT: once you think it is getting power, check for it in /dev/block by running this in terminal emulator. you can check before and after to see what changes, if anything in case it is not named /sdxx
Code:
ls /dev/block
Samsung Galaxy S4 i337- Stock, but working on it
Nexus 7- Changes all the time, but currently PACman

Old Devices:

Motorola Atrix 2- Touch screen broke, followed by a swim in a lake,
Acer Iconia Tab a500- replaced with N7

Like XDA? Click Here To Donate

Quote:
If your question doesn't get answered quickly, it was stupid. Use the search button and Google before posting.
 
jimbridgman
Old
(Last edited by jimbridgman; 3rd July 2012 at 07:23 PM.)
#3  
jimbridgman's Avatar
Recognized Contributor
Thanks Meter 3,147
Posts: 2,269
Join Date: Dec 2007
Location: Dallas, TX

 
DONATE TO ME
Quote:
Originally Posted by lkrasner View Post
you won't be able to modify our kernel with our locked bootloader, but your problem could be elsewhere. the drive requires more power than a mouse or keyboard, so it just may not be getting enough. will your power supply give a full 500mA that is what a normal usb port gives, and is probably overkill for a flash drive, but it would prove whether that is the problem or not.

Does the drive have a light on it that usually turns on when you plug it in? if so, does it come on when you plug it in with your splitter into the phone.

It may be that it is just not supported on our phone, but I think a power problem is much more likely.

EDIT: once you think it is getting power, check for it in /dev/block by running this in terminal emulator. you can check before and after to see what changes, if anything in case it is not named /sdxx
Code:
ls /dev/block
That is right, our phone does not provide power on the usb connection, it is a one way charge only, no matter which cable you use, it is an issue with moto's implementation of the USB protocol.

---EDIT---

I do think that I read that someone was able to get it working by using a powered usb hub attached in between the A2 and the usb device. WARNING some assembly/dis-assembly was required!
Nexus 5 (stock Kitkat 4.4)
Backup: Galaxy Nexus Running Ubuntu Phone OS

"Microsoft is the Evil Empire"
"I *nix UNIX we all scream for Linux"

If you don't have dropbox, go sign up here:
http://db.tt/SorT4X6q
You will get an extra 500MB, and so will I.


Jim
 
lkrasner
Old
#4  
Senior Member
Thanks Meter 593
Posts: 1,087
Join Date: Apr 2012
Location: Brighton, MI

 
DONATE TO ME
Quote:
Originally Posted by jimbridgman View Post
That is right, our phone does not provide power on the usb connection, it is a one way charge only, no matter which cable you use, it is an issue with moto's implementation of the USB protocol.
devices do work as long as you provide external power, which is what he has done. basically you cut the power wires out of the cable and hook them up to a power supply, thus givng the power and giving the data to the phone. Since it supports host mode, it SHOULD work with a flash drive as well as mice, I have heard of people doing it.
Samsung Galaxy S4 i337- Stock, but working on it
Nexus 7- Changes all the time, but currently PACman

Old Devices:

Motorola Atrix 2- Touch screen broke, followed by a swim in a lake,
Acer Iconia Tab a500- replaced with N7

Like XDA? Click Here To Donate

Quote:
If your question doesn't get answered quickly, it was stupid. Use the search button and Google before posting.
 
jimbridgman
Old
#5  
jimbridgman's Avatar
Recognized Contributor
Thanks Meter 3,147
Posts: 2,269
Join Date: Dec 2007
Location: Dallas, TX

 
DONATE TO ME
Quote:
Originally Posted by lkrasner View Post
devices do work as long as you provide external power, which is what he has done. basically you cut the power wires out of the cable and hook them up to a power supply, thus givng the power and giving the data to the phone. Since it supports host mode, it SHOULD work with a flash drive as well as mice, I have heard of people doing it.
I know this does not explain it, but it is mentioned that a powered hub is needed.... This person was thinking of making basically a DIY HD doc, and there was someone else on here that has done it too, but I can't find that post and I can't remember the users name.

http://forum.xda-developers.com/show....php?t=1462541

A cheap hub will do the job much better, and I have heard of other users having trouble with the otg cable and usb storage.

Just more information to think about and look into.
Nexus 5 (stock Kitkat 4.4)
Backup: Galaxy Nexus Running Ubuntu Phone OS

"Microsoft is the Evil Empire"
"I *nix UNIX we all scream for Linux"

If you don't have dropbox, go sign up here:
http://db.tt/SorT4X6q
You will get an extra 500MB, and so will I.


Jim
 
mtnlion
Old
#6  
mtnlion's Avatar
Senior Member
Thanks Meter 313
Posts: 805
Join Date: Feb 2011
Location: in the mountains of south east tennessee
Try this

https://play.google.com/store/apps/d...ickmount&hl=en

Motorola lied and I'm still locked mb865
 
prasannapmv
Old
#7  
Member - OP
Thanks Meter 218
Posts: 99
Join Date: May 2012
I've tried every single thing that I can to make Usb flash drive work but its something in our software that is restricting it detect any of my storage devices.

I saw one more thread yesterday it was for XOOM which says kernel has to be modified in order to get usb Drives work:
http://forum.xda-developers.com/show....php?t=1068999

I now understand that with locked bootloader it will not be possible to modify the kernel so i am abandoning this project and hope we find a way to unlock bootloader soon in the future.
The Following User Says Thank You to prasannapmv For This Useful Post: [ Click to Expand ]
 
john1989
Old
#8  
Junior Member
Thanks Meter 3
Posts: 26
Join Date: Jul 2012
You can try by using a self powered hub which provide power to devices, If it works do post the results as I am also looking forward to use USB HOST feature
 
Rebelj12a
Old
#9  
Rebelj12a's Avatar
Member
Thanks Meter 16
Posts: 44
Join Date: Mar 2013
Location: Wausau

 
DONATE TO ME
Quote:
Originally Posted by john1989 View Post
You can try by using a self powered hub which provide power to devices, If it works do post the results as I am also looking forward to use USB HOST feature
Ive done this. I have a powerd usb hub, otg cable hooked up and it does not recognize drives or mice. None of it is working. Beginning to think there is not a way to make this work.
 
duchski
Old
#10  
duchski's Avatar
Senior Member
Thanks Meter 34
Posts: 324
Join Date: Dec 2005
Default Re: [Q] How to enable UMS/Mass storage mode??

It does work when you connect pen drive to lapdock so its not software/firmware/kernel issue.
Easy solution: buy a lapdock or a media dock with usb ports and connect your drive there.

Sent from my MB865 using Tapatalk 2
Current: Motorola X - GSM

Retired and destroyed: too many to mention. Honorable mentions to HTC RAPHAEL and MOTOROLA ATRIX 4G.

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes