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

Root developers please try this OC CPU config file

jhofseth

Member
UPDATE: developers please try attached OC CPU config in your builds acpuclock-8226.c.motog2.txt. but rename to acpuclock-8226.c and place as: /kernel/arch/arm/mach-msm/acpuclock-8226.c before compiling kernel

Overclocking is easy.

1. Edit /kernel/arch/arm/mach-msm/acpuclock-8226.c. (unmodified ZV5 source file attached; remove .original.txt).

2. Compile kernel. Flash OC kernel. Use playstore OC apps.

Kernel source: http://opensource.lge.com/osSch/list?types=NAME&search=ls740

Easy Youtube video showing showing how to modify attached config file:

Please modify and repost here. I want to find other models that use our CPU at a higher freq and copy-paste. I read about at least one model running OC'd by manufacturer. We can always experiment with freqs, but too much voltage increase will fry.
---
From Wikipedia, these phones/tablets use Snapdragon 400 msm8226:
  • Atong H3, Motorola Moto G 8GB, Motorola Moto G dual 8GB, Moto G Colors Dual 16GB, Samsung Galaxy Grand 2,[139]LG G2 Mini, Nokia Lumia 630, Nokia Lumia 630 Dual SIM, Asus PadFone mini 4.3, Asus PadFone E, Samsung Galaxy Tab 4 8.0 3G, LG L90, Samsung Galaxy Tab 4 10.1 3G, Samsung Galaxy Tab 4 10.1, Samsung Galaxy Tab 4 8.0, Samsung Galaxy S3 Neo+, LG L90 Dual, Prestigio PAP5507 Duo Panasonic Eluga U, Sony Xperia E3, Sony Xperia E3 Dual, Sony Xperia M2 Dual(D2302), Sony Xperia M2 (D2305), Motorola Moto G (2nd Gen.), Samsung Galaxy S5 Mini Duos, LG G3 S D724, Samsung Galaxy Grand Prime, Samsung Galaxy Tab 4 Nook 10.1, Mito Fantasy U
 

Attachments

Last edited:
Did you compile one yet?
Not yet. I want to find a phone/tablet from above msm8226 list that has an OC kernel and copy values from their source CPU config file. Please post if you find any or if you modify the attached file. Thanks in advance.
 

Attachments

Actually, I don't think we have to modify anything in the OC Moto G 2nd gen. config file. I think we can substitute theirs for ours, as-is. I'll try to compile, but I'll have to do it on my HP Stream 7 Windows 8.1/Ubuntu Mate 15.04 tablet; it'll just take a while.... :)
 
Devs have better compiling ability than me, so I updated first post to add OC CPU file for them to try in their builds. I'd have to compile in ubuntu tablet, but I can only use USB OTG for USB not charging; I'd run out of battery first, and I can't compile on the Windows 8.1 side.
 
I'll try it, what is the easiest way to flash this or do i need to break down my Current ROM kernel and recompile it?
 
Last edited:
I'll try it, what is the easiest way to flash this or do i need to break down my Current ROM kernel and recompile it?
Easiest way is to try is add as:/kernel/arch/arm/mach-msm/acpuclock-8226.c before compiling kernel. Just rename attached file to acpuclock-8226.c and cut the unmodified one from your source kernel saving it elsewhere for archival purpose. Don't try to decompile if that's even possible. Good luck! :-)
 

Attachments

Sands207, the compiled kernel is a zImage. A boot image for our device is zImage+ramdisk=boot.img. Is it possible to flash zImage separately from boot.img? Yes. Will a separately flashed kernel for KitKat LG Volt boot? Dunno, devs do, though. I'm told by devs that open_bump.py works to bump our LG Volt boot images (not separate zImage), but I've never gotten open_bump.py to work--the boot images wouldn't boot and I'd have to restore boot in TWRP. Whatever the case, devs know more than me, but please make sure to make a full TWRP backup of your system if you've not already. Please remove .txt from attached open_bump.py file if you choose to use it on boot.img later on. Again, devs say it works but it's never worked for me.
 

Attachments

Last edited:
I just updated the first post to add '.original' to the unmodified ZV5 version, because I realized I was being unclear. :-)
 
our device is zImage+ramdisk+dt.img=boot.img.
anyhow i will give this a go tommorrow on cm11 or cm12 kernel.
I'd compile slightly modded ZV5 with it, but my Ubuntu Mate 15.04 Vivid OS is 32bit. To compile KitKat kernel, 64bit Linux is required and my Win 8.1/Ubuntu dual-boot tablet only has 1GB RAM; so, it wouldn't be a good idea to switch to 64bit since apps use ~50% more RAM.
 
Last edited:
Switched to 64bit Ubuntu Vivid on my tablet to compile modified stock KitKat LS740 kernel ZV5. I need to update first, but will make this a pet-project of mine. Personally, I care more about overclock than any other single modification; init.d support is a close second. Both of the aforementioned are possible with stock roms with modified kernels and ramdisks, of course. If LG Volt CM12 supports overclock, I'd just use that and wouldn't need to focus on stock kernel modification and compiling. That said, my ultimate goal will be at least 1.8GHz stable--mainly 'cause the same increase was possible on my old LG Optimus F3, which is not as nice as the LG Volt. The moto G2 cpu config is for our same CPU and it contains freqs up to ~1.6GHz, I believe. So, using that first is a good start and I'll post to this thread or another new when I succesfully create custom ZV5 OC boot images (with kernel and ramdisk appropriately modified, and boot image open-bumped). I'm not a developer but it's not exactly rocket-surgery, either! Cheers. :-)
 
bg4m3r, tried script on rooted stock ZV5 with busybox and it runs OK, but doesn't enable init.d for me for some reason. thanks, again. :-)
How did you check that it is enabled? It is possible that it is not enabled on mine either. O.o Although the test log stating that it is working is present.
 
I didn't have Test.log in /data/ so yours must've worked. It unrooted my phone and may have worked if I re-rooted and rebooted. I'll try it again but make a backup first.
 
How did you check that it is enabled? It is possible that it is not enabled on mine either. o_O Although the test log stating that it is working is present.
Tried it a second time and it did the same thing unrooting my phone. I couldn't re-root with Towelroot, so I just restored via backup I'd made just prior. Not sure why in my case but glad it works for you. :)
 
Tried it a second time and it did the same thing unrooting my phone. I couldn't re-root with Towelroot, so I just restored via backup I'd made just prior. Not sure why in my case but glad it works for you. :)
That's so weird. Are you running stock system or a ROM?
 
Good news, making progress ironing out an OC config file and compiling. Should be able to finish fixing Tuesday. I think I've eliminated related compile errors by tweaking the CPU file on compile-error specified lines. Tossed out underclock for now and will try compiling kernel for 1.6GHz. :-)
 
Successfully compiled and booted ZV5 stock kernel with a different modified CPU config. It looks like I need to change voltage config somehow. Kept modifying acpuclock-8226.c until zero compile errors, so 99% of the way there, I believe. User voltage was compiled in the cpu config but I need to see if something else impacts voltage.
 
Back
Top Bottom