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

Root Just throwing this out there: Cm13 for g2 mini sources

Arm is the way to go... Sorry mad late anyway let me know if going to install og YouTube so I can walk u through it

Got it all installed just fine and working. Really clears up internal storage for sure. Installed xinternalsd, swipeback2 and gravitybox mm. Thanks
 
Hi it's me ShapeShifter499 or at least it was till I screwed up and lost my 2 factor auth key which was linked to a OTP app on my phone. I'm now effectively locked out although I know my password. OOPS, anyways I'm back to try to get OTG on this rom. My new username is an acronym, Error Between Keyboard and Chair. I added the 404 timeout to the end of it to add extra flair, lol.
 
WHAO Hey someone from Android Forums responded to my freak out email I sent. I now have access to my account again, you can disregard the previous messages I posted.

@spock1104, I don't know how to make sense of the NFC issue for the LG Volt. I posted a logcat here https://gist.github.com/ShapeShifter499/54fb85fcf582d92d2ea57d57ea5c00eb NFC seems to just outright crash. I did make some NFC related edits to my build so I don't know if I made it worse.
 
WHAO Hey someone from Android Forums responded to my freak out email I sent. I now have access to my account again, you can disregard the previous messages I posted.

@spock1104, I don't know how to make sense of the NFC issue for the LG Volt. I posted a logcat here https://gist.github.com/ShapeShifter499/54fb85fcf582d92d2ea57d57ea5c00eb NFC seems to just outright crash. I did make some NFC related edits to my build so I don't know if I made it worse.
You're seeing the same errors I've been seeing. I don't know if it's a problem with the config files or with the kernel driver.
 
New build again. Since CM decided to do a snapshot release I figured I might as well pull again. There's some minor UI changes they made, such as a new screen when optimizing apps after a cache clean. I also updated the msm8226 common files, so we now have the Gello browser instead of AOSP. Additionally, I replaced the NFC kernel driver and finally see errors in dmesg, so maybe I can start fixing that.

http://www.mediafire.com/download/dektwbof9aal8w3/cm-13.0-20160817-UNOFFICIAL-x5.zip

Code:
[  0.448046] Loading pn544 driver

[  0.448077] pn544: pn544_probe() start

[  0.448088] pn544:IRQ : -22

[  0.448088] VEN : -22

[  0.448088] FIRM : -22

[  0.448101] gpio_request: gpio--22 (nfc_int) status -22

[  0.448106] pn544:pn544_probe() : nfc_int request failed!

[  0.448112] pn544: pn544_dev is null

[  0.448118] pn544: pn544_probe() end with error!

[  0.448134] pn544: probe of 2-0028 failed with error -22

[  0.448164] Loading pn544 or pn547 driver Success!
 
New build again. Since CM decided to do a snapshot release I figured I might as well pull again. There's some minor UI changes they made, such as a new screen when optimizing apps after a cache clean. I also updated the msm8226 common files, so we now have the Gello browser instead of AOSP. Additionally, I replaced the NFC kernel driver and finally see errors in dmesg, so maybe I can start fixing that.

http://www.mediafire.com/download/dektwbof9aal8w3/cm-13.0-20160817-UNOFFICIAL-x5.zip

Code:
[  0.448046] Loading pn544 driver

[  0.448077] pn544: pn544_probe() start

[  0.448088] pn544:IRQ : -22

[  0.448088] VEN : -22

[  0.448088] FIRM : -22

[  0.448101] gpio_request: gpio--22 (nfc_int) status -22

[  0.448106] pn544:pn544_probe() : nfc_int request failed!

[  0.448112] pn544: pn544_dev is null

[  0.448118] pn544: pn544_probe() end with error!

[  0.448134] pn544: probe of 2-0028 failed with error -22

[  0.448164] Loading pn544 or pn547 driver Success!
 
What's up Spock... Please tell me otg works on this one Lol really need it that's the only thing keeping me from this ROM... I miss it tho :( using stock it blows compared to this!!!!
 
What's up Spock... Please tell me otg works on this one Lol really need it that's the only thing keeping me from this ROM... I miss it tho :( using stock it blows compared to this!!!!

I don't think OTG works on the latest build, I haven't been able to figure out the correct GPIO or if I even need it. If I make the one line edit as mentioned on my OTG thread to the current LG Volt CM13.0 source kernel, I lose the ability to charge.
 
New build again. Since CM decided to do a snapshot release I figured I might as well pull again. There's some minor UI changes they made, such as a new screen when optimizing apps after a cache clean. I also updated the msm8226 common files, so we now have the Gello browser instead of AOSP. Additionally, I replaced the NFC kernel driver and finally see errors in dmesg, so maybe I can start fixing that.

I thought about trying to replace the NFC kernel driver but I wasn't sure if that was the correct thing to do. Are you going to update your source soon? I'll merge it in to mine when you do.
 
@spock1104 seems I've figured out the whole OTG thing. I need some help though, it appears that the most recent comment here, https://github.com/spock1104/android_kernel_lge_msm8226/commits/cm-13.0/drivers/usb/otg/msm_otg.c which brought in files from D410 broke OTG. When I try to compile using that file I get these errors, https://gist.github.com/ShapeShifter499/d73f86646af5d3fb841ff41ba28ceba6

If you want to try to fix the errors in the file, make sure you also turn on CONFIG_LGE_SUPPORT_TYPE_A_USB and CONFIG_LGE_SUPPORT_TYPE_A_USB_NOTIFY latter is optional but the former is needed if we use the the recent msm_otg.c with fixes.

In the meantime I'm using a temporary fix where I take a old copy of msm_otg.c from the stock source.
 
I need to double check the dmesg with the old driver to make sure I'm happy with this, and then I'll upload. Hopefully tonight.
I don't think I'm going to push the NFC update yet, the old driver seemed to work "better"

Code:
[  0.447661] Loading pn544 driver

[  0.447693] pn544: pn544_probe() start

[  0.447729] pn544:IRQ : 21

[  0.447729] VEN : 20

[  0.447729] FIRM : 22

[  0.447819] pn544_probe : requesting IRQ 337

[  0.447889] pn544: pn544_probe() end

[  0.447896] pn544_probe() boot_mode : 0

[  0.447902] boot_mode :LGE_BOOT_MODE_NORMAL

[  0.447934] Loading pn544 or pn547 driver Success!

but fails later down the line...

Code:
[  87.269972] pn544:pn544_dev_unlocked_ioctl power on

[  87.280161] pn544:pn544_dev_unlocked_ioctl enable IRQ

[  87.380383] pn544:pn544_dev_unlocked_ioctl power off

[  87.400886] pn544:pn544_dev_unlocked_ioctl disable IRQ

[  87.501207] pn544:pn544_dev_unlocked_ioctl power on

[  87.520066] pn544:pn544_dev_unlocked_ioctl enable IRQ

[  87.521863] pn544:write: pn544_write len=:4

[  87.523292] pn544:IRQ GPIO = 0

[  88.526153] pn544:pn544_dev_unlocked_ioctl power on

[  88.540088] pn544_dev_unlocked_ioctl IRQ is already enabled!

[  88.640263] pn544:pn544_dev_unlocked_ioctl power off

[  88.660086] pn544:pn544_dev_unlocked_ioctl disable IRQ

[  88.760420] pn544:pn544_dev_unlocked_ioctl power on

[  88.780333] pn544:pn544_dev_unlocked_ioctl enable IRQ

[  88.781064] pn544:write: pn544_write len=:4

[  89.782632] pn544:pn544_dev_unlocked_ioctl power on

[  89.800075] pn544_dev_unlocked_ioctl IRQ is already enabled!

[  89.901461] pn544:pn544_dev_unlocked_ioctl power off

[  89.920229] pn544:pn544_dev_unlocked_ioctl disable IRQ

[  90.020401] pn544:pn544_dev_unlocked_ioctl power on

[  90.040199] pn544:pn544_dev_unlocked_ioctl enable IRQ

[  90.040523] pn544:write: pn544_write len=:4

[  91.042819] pn544:pn544_dev_unlocked_ioctl power on

[  91.060305] pn544_dev_unlocked_ioctl IRQ is already enabled!

[  91.160474] pn544:pn544_dev_unlocked_ioctl power off

[  91.180095] pn544:pn544_dev_unlocked_ioctl disable IRQ

[  91.280283] pn544:pn544_dev_unlocked_ioctl power on

[  91.300106] pn544:pn544_dev_unlocked_ioctl enable IRQ

[  91.301831] pn544:write: pn544_write len=:4
 
Ok I'll have a OTG build up in about 2 hours, building it now. I synced all my changes with github including a fstab.qcom change. This now has proper handling of USB storage devices and will prompt when plugged in.

https://github.com/ShapeShifter499
In the meantime I'm looking at the OTG driver to figure out what went wrong with the new version.

Also, I did push changes to msm8226-common
 
Deleted and forked your msm8226-common.... Building again!
All those changes they made were to support a charger detector chip, MAX14656. The way the code is written now, CONFIG_LGE_SUPPORT_TYPE_A_USB is dependent on CONFIG_CHG_DETECTOR_MAX14656 being set as well, but LGE was too lazy to put that dependency in the Kconfig.

Now, that being said, I don't like all the messing around that LG did with that driver, I don't think we have a MAX14656, and none of the other phones that use this kernel have that chip enabled either. I looked back at the V10 version of the D410 usb_otg driver and the LS740ZV6 version looks slightly more up-to-date, so I think we should stick with "our" version and pull some CAF patches on top of it.
 
Ok I'll have a OTG build up in about 2 hours, building it now. I synced all my changes with github including a fstab.qcom change. This now has proper handling of USB storage devices and will prompt when plugged in.

https://github.com/ShapeShifter499
What's the fstab change you made? I've had this in my fstab for a while, hoping for OTG
Code:
/devices/platform/xhci-hcd/usb*  auto  auto  defaults voldmanaged=usb:auto
*edit* never mind, I'm an idiot. Found it.
 
Back
Top Bottom