• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Root [Linaro]Volt Dos 1.0b 1/1/16

PRELIMINARY OTG SUPPORT ACHIEVED!!! I was able to mount a 16GB USB thumb drive and the device itself powered the drive, no external power stuff!

Charging is bonked though, yea nothing terribly important :p

I'll push my changes to github in a moment but for now here is the kernel to test! TEST THIS AT YOUR OWN RISK, MAKE BACKUPS, AND DON'T CRY IF YOU DEVICE DIES! YOU KNEW THE RISKS!

volt_dos_OTGtest2.zip
MD5: 41a2b048bd1b714317c17e2642ea5a99
https://www.androidfilehost.com/?fid=24459283995305253
 
UPDATE, FULL OTG SUPPORT ACHIEVED!!! EVERYONE REJOICE!
HOWEVER INSTALL AT YOUR OWN RISK

What broke charging? Enabling "CONFIG_USB_MSM_ACA" Support for Accessory Charger Adapter (ACA) in the build config. This means no charging while using OTG until I figure it out. Not even sure that is possible here yet.

I will add more modules on request, so if a device isn't working let me know and I can try to poke around for a driver/kernel module.

What was tested and working:
USB Changing without OTG cable plugged in
USB MTP file transfer without OTG cable plugged in
USB Mouse with OTG
USB Thumb Drive with OTG

volt_dos_OTG1.zip
MD5: c8df7f1730eace0436a7e5a6ebed597e
https://www.androidfilehost.com/?fid=24459283995305288
 
Last edited:
Some extra tweaks will need to be enabled to get the rom to mount USB drives without the use of the Playstore app StickMount. Nothing to do with the kernel though.

Maybe @Curtis1973 could help me with this?
 
@spock1104 I did it man! I forgot to let you know you should mention in your OP that you also have to have dtbToolCM for building the dtb with the toolkit.
Nice work! This is why we need multiple people looking at this stuff. I'll try to review this weekend.

Totally forgot to update my guide after I changed the toolkit, good catch.
 
UPDATE, FULL OTG SUPPORT ACHIEVED!!! EVERYONE REJOICE!
HOWEVER INSTALL AT YOUR OWN RISK

What broke charging? Enabling "CONFIG_USB_MSM_ACA" Support for Accessory Charger Adapter (ACA) in the build config. This means no charging while using OTG until I figure it out. Not even sure that is possible here yet.

I will add more modules on request, so if a device isn't working let me know and I can try to poke around for a driver/kernel module.

What was tested and working:
USB Changing without OTG cable plugged in
USB MTP file transfer without OTG cable plugged in
USB Mouse with OTG
USB Thumb Drive with OTG

volt_dos_OTG1.zip
MD5: c8df7f1730eace0436a7e5a6ebed597e
https://www.androidfilehost.com/?fid=24459283995305288
That's not broken, you're not meant to charge the phone while using OTG. Think about it, the phone thinks it needs to send power out to the connected device. It can't take power in at the same time, that would cause a short circuit. No Y cables for us.
 
That's not broken, you're not meant to charge the phone while using OTG. Think about it, the phone thinks it needs to send power out to the connected device. It can't take power in at the same time, that would cause a short circuit. No Y cables for us.

I was always confused by this, ok so maybe not our phone but do any phones charge while being connected to a usb device like a mouse or thumb drive?
 
I thought that was for supplying power to the USB device and not charging the phone when the phone itself could not power a USB device. In my tests the LG Volt can supply it own power to the USB device.
No, the Y cable is just wires, so the USB device would always get power from the Y cable.

From the phone perspective, because the Y cable is supplying power, the default USB code sees the cable as a charger and won't enable OTG. The nexus 4 hack enables OTG when a charger is plugged in.

I don't think we want this, it would end up breaking OTG without the Y cable. What you accomplished is great.
 
Hello spock1104 and shapeshifter499 sorry to interrupt and throw you off topic but you both seem to be well educated in the kernel area hope I don't make anyone angry by going off-topic a little I've been trying to figure out why when I flash candy ROM or blisspop I get kernel features that no other rom has I started a thread on the topic but have not received much info I think the thread is labeled kernel features any info would be very much appreciated
 
Hello spock1104 and shapeshifter499 sorry to interrupt and throw you off topic but you both seem to be well educated in the kernel area hope I don't make anyone angry by going off-topic a little I've been trying to figure out why when I flash candy ROM or blisspop I get kernel features that no other rom has I started a thread on the topic but have not received much info I think the thread is labeled kernel features any info would be very much appreciated

Only the dev that compiled each would be able to give a definitive answer since it's going to depend on their source code.
 
New beta for testing. I added in @ShapeShifter499 's OTG patch and a few more tweaks to devfreq, still trying to smooth things out. Another adjustment to the GPU as well, I just keep throwing things at the OC to see if anything sticks. Lastly, kernel side exFAT support, but it doesn't seem to do anything.

http://www.mediafire.com/download/gq1yr36rin8n2ha/volt_dos_1.01b5.zip

Also, the stock ROM is missing the permission to use the USB Host (OTG) so flash this as well. Only need to flash it once.

http://www.mediafire.com/download/c89lt6zzwon0j3x/usb_host_permission.zip

Tested for two days with good results, just want someone else to check it as well before I put it on the first post.
 
Last edited:
New beta for testing. I added in @ShapeShifter499 's OTG patch and a few more tweaks to devfreq, still trying to smooth things out. Another adjustment to the GPU as well, I just keep throwing things at the OC to see if anything sticks. Lastly, kernel side exFAT support, but it doesn't seem to do anything.

http://www.mediafire.com/download/gq1yr36rin8n2ha/volt_dos_1.01b5.zip

Also, the stock ROM is missing the permission to use the USB Host (OTG) so flash this as well. Only need to flash it once.

http://www.mediafire.com/download/c89lt6zzwon0j3x/usb_host_permission.zip

Tested for two days with good results, just want someone else to check it as well before I put it on the first post.

I'm getting a load of frequency errors, here are my DMESG and LOGCAT logs attached. Despite this nothing seems to break, but it's the first time I've seen those error messages.
 

Attachments

Does otg being turned on in the kernel cause battery drain or an I reading something wrong?
 

Attachments

  • 2016-04-01-17-49-54.png
    2016-04-01-17-49-54.png
    114.7 KB · Views: 267
Does otg being turned on in the kernel cause battery drain or an I reading something wrong?
No, there's a longstanding bug in the Qualcomm OTG code that causes a wakelock if you turn your phone on with a USB cable plugged in. If you see this, unplug and reboot.
 
Back
Top Bottom