FORUMS

Help to create an update script for VDD_levels, please?

111 posts
Thanks Meter: 10
 
By gambit3rd, Senior Member on 18th April 2011, 07:58 PM
Post Reply Email Thread
Hello, I tried following the guides to create a flashable update but I had no good results.

I own a Desire, Starburst 1.3.3.3 Lite.
My goal is to rise vdd_levels for 1152000 and 1190400 by 25 on snq kernel because it's a little unstable for me on that clocks. Vdd_max is 1350 so my values are within range.
As i read on Starburst site, I think I should edit /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

The new vdd_levels (it's the only file to modify?) should be this:

#!/system/bin/sh
#
#CONFIG_CPU_FREQ_VDD_LEVELS

echo '128000 950' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '245000 975' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '384000 1000' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '422400 1025' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '460800 1050' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '499200 1050' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '537600 1075' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '576000 1075' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '614400 1100' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '652800 1100' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '691200 1125' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '729600 1150' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '768000 1175' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '806400 1200' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '844800 1225' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '883200 1250' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '921600 1250' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '960000 1275' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '998400 1275' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1036800 1275' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1075200 1275' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1113600 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1152000 1325' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1190400 1350' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels

But I really have not understand how to make a flashable upgrade from this notepad++ file. Could some one give me some help or make one of both for me, please? I'm totally newbie. :/

Thank you very much.

PS: I'd like to create another one too like this, just to be safe about the 1152000

#!/system/bin/sh
#
#CONFIG_CPU_FREQ_VDD_LEVELS

echo '128000 950' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '245000 975' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '384000 1000' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '422400 1025' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '460800 1050' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '499200 1050' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '537600 1075' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '576000 1075' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '614400 1100' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '652800 1100' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '691200 1125' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '729600 1150' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '768000 1175' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '806400 1200' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '844800 1225' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '883200 1250' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '921600 1250' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '960000 1275' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '998400 1275' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1036800 1275' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1075200 1275' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1113600 1300' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1152000 1350' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
echo '1190400 1350' > /sys/devices/system/cpu/cpu0/cpufreq/vdd_levels
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes