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

Root Kernel Kernel[1.8GHz](WIP) Module method also

rbheromax

Android Expert
Sep 22, 2012
1,919
440
Columbia, South Carolina
Here's a little something I've been working on for about all of 10 minutes :D
I just wanted to create something really quick. All I did was take the kernel config from a running Force (thanks MODACO) and pair it with the kernel source of the ZTE Avid and you get this awesome baby!!!! :cool:

I basically pushed this phone to the max (without it blowing up).

Source is @ https://github.com/newkid313/android_kernel_zte_aurora
^^not up yet^^

Current working method:
Download this first:

https://www.dropbox.com/s/aps2fltk3ldbuki/zte_krait_oc.ko

Then:
Code:
adb push thermald.conf /data/local
adb shell
su
mount -o rw,remount /system
cp /system/etc/thermald.conf /system/etc/thermald.conf.bak
rm -r /system/etc/thermald.conf
cp /data/local/thermald.conf /system/etc
reboot
Load the overclock (every time you reboot):
1. Load the kernel module (replace pll_l_val and vdd_uv with your desired voltages and L value as explained above. It defaults to 67 and 1300000 if you don't give it any parameters):
Code:
adb shell
su
insmod /data/local/krait_oc.ko pll_l_val=67 vdd_uv=1300000
2. Bring core 1 temporarily offline so it gets updated with the new max frequency:
Code:
echo 0 > /sys/devices/system/cpu/cpu1/online
3. You'll now have an additional CPU frequency! SetCPU can configure your maximum frequency up to this speed. You can also choose to keep running at 1.5GHz at any time - this method doesn't eliminate any available frequencies. Set the max at 1.8GHz to verify it's stable here.
4. Restart thermald by running "ps". Look for "thermald" in the list, and find thermald's pid (it's usually a number in the low hundreds, higher up in the list). Run "kill [thermald's PID]" in adb shell. The kernel does not currently have kernel-level temperature throttling turned on, so thermald is important for now.

Remove the overclock by restoring your backup of thermald.conf:
Code:
adb shell
su
mount -o rw,remount /system
rm -r /system/etc/thermald.conf
cp /system/etc/thermald.conf.bak /system/etc/thermald.conf
rm -r /system/etc/thermald.conf.bak
reboot
Rebooting clears any kernel modules that are loaded, so you're now clean. You can then delete anything left over in /data/local, but it doesn't matter.

Right now its features are:
- OC to 1.8 GHz
- Custom boot splash

This is the custom boot splash it uses:
logo.bmp

I will release as soon as it is tested and I have screenshots of a cpu control app showing the OC
 
Upvote 0
I know how to do it, I just currently don't feel like doing it right now, but basically I will do that, and since jimsmith80 has a stock rom with busybox built in, it will be easier than ever to add init.d since I dont have to include any extra heavy binaries to my ramdisk

Yeah. I have no idea what any of that means. Lol just remembered seeing it so I searched for it again. Super excited for some development on this phone though. Thanks in advance
 
Upvote 0
Upvote 0
No, meant without an app. Is it possible to add it to the kernel is what I'm asking. And because I find it to be faster if the second core is always ready instead of turning on and off all the time.
Most of the time I feel like the second core doesn't even fire up when you start to need it.

To keep the second core always on would require me to rewrite the cpu driver and take out all the cpu schedulers that hotplug the second core. Yes it's possible, but it'll take time.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones