View Single Post
Old August 10th, 2010, 02:22 PM   #1 (permalink)
D13
Senior Member
Thread Author (OP)
 
D13's Avatar
 
Join Date: May 2010
Location: Elkridge, Maryland
Posts: 2,088
 
Device(s): Fascinate; Droid 1: w/ bb 0.5
Carrier: Not Provided

Thanks: 98
Thanked 244 Times in 198 Posts
droider13af@gmail.com
Default [How-to] Overclock that survives a reboot

Warning, this process may cause our phone to become unstable if you clock it at the wrong speed. I advise that you do not continue onto steps 2 and 3 until you find the settings that work for YOUR phone best.

All credit goes to Fab for his how-to post, Elkay for the original mod of the milestone overclock and to Hilbe for his install-recovery.sh and setscaling.sh files as well as figuring out where to add on these commands. And also Airmaxx23 for helping me refine the commands. As well as FreeWELL for his Root Explorer guide and his stop overclocking commands

I am not responsible for anything that happens to your phone.

First, things first download the attachment at the bottom of this post
Now on to how to overclock that survives a reboot,
1. First follow Fabolous's guide to overclocking,
http://androidforums.com/all-things-root-droid-x/145209-how-overclock-your-droid-x.html
Here is his OP, also the overclock.ko and overclock.sh files are both in the attached Zip file at the bottom.
Quote:
Well, it's here, in very basic form. Credit to Elkay at Droid Forums for modding the Milestone overclock module to run on the DX.

The post is here:

Droid X successfully overclocked - Page 6 - Droid Forum - Verizon Droid & the Motorola Droid Forum

The file is attached to the bottom of his post, and I will attach it here as well.

unzip the files and put them both on your sdcard, then run the following in adb or terminal emulator:

Code:
su
mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system
cp /sdcard/overclock.ko /system/lib/modules/
cp /sdcard/overclock.sh /system/bin/
chmod 644 /system/lib/modules/overclock.ko
chmod 755 /system/bin/overclock.sh
mount -o ro,remount -t ext3 /dev/block/mmcblk1p21 /system
That sets up everything you need to overclock. To use overclock, you just run the command:

overclock.sh frequency voltage

with 1000000 being the default freq and 66 being the default voltage

It is highly recommended to not go over 96 for the voltage parameter!

so an example:

Code:
su
overclock.sh 1100000 66
results in attempting to overclock to 1.1GHz on stock voltage (this is stable for me).

The mod is wiped clean after every reboot, so it will need to be run again. If you want to wipe it while the phone is running, to say, try another frequency, you can do the following:

Code:
su
busybox rmmod overclock
and proceed to overclock with different parameters.

2. Next put the setscaling.sh file and the install-recovery.sh into your tools folder or where ever your adb.exe is located, then open up cmd and point it at that folder.

3.In adb run
-"adb push setscaling.sh /sdcard"
-"adb push install-recovery.sh /sdcard"
-"adb shell"
-"su"
-"mount -o remount,rw -t yaffs2 /dev/mtd/mtdblock4 /system"
-"cp /sdcard/setscaling.sh /system/bin"
-"chmod 755 /system/bin"
-"cp /sdcard/install-recovery.sh /system/etc"
-"mount -o ro,remount -t yaffs2 /dev/mtd/mtdblock4 /system"

The whole thing can also be done with Root explorer, credit to FreeWELL for the guide

1. Download file "Survive the boot.zip"
2. Fire up Root Explorer
3. Navigate to /sdcard/downloads
4. Long press on "Survive the boot.zip" and select Extract All
5. Navigate to /sdcard/extracted/Survive the boot/
6. Long press on install-recovery.sh and select Copy
7. Navigate to /system/etc
8. Hit the Mount R/W button
9. Hit Paste
10. Hit the Mount R/O button
11. Navigate back to /sdcard/extracted/Survive the boot/
12. Long press on "overclock.ko" and select Copy
13. Navigate to /system/lib/modules (all the way at the end of ../lib)
14. Mount R/W
15. Hit Paste
16. Mount R/O
17. Navigate to /sdcard/extracted/Survive the boot/
18. Hit the Menu botton and choose Multi-select
19. Select "overclock.sh" & "setscaling.sh" (green check mark)
20. Hit "copy"
21. Navigate to /system/bin
22. Mount R/W
*23. **Think about what you're doing!!!* You are now at the end of the road. My X will not run stable with the "setscaling.sh" as supplied... my X does run well set to 400@23/700@28/900@33/1100@40... I don't think 1150@34 is stable for everyone... 1100@40 should be... i also think 400/700 is more useful than 300/600 when creating profiles with SetCPU...

24. Hit "Paste" because your setscaling.sh is edited with settings that are stable for your X and you know because you thoroughly testified this before editing/copying install-recovery.sh to overclock at boot...
25. Mount R/O


Also to disable overclocking, credit to FreeWELL

Disabling Overclock at Boot with Root Explorer:
1. Open Root Explorer
2. Navigate to /system/etc
3. Mount R/W
4. Long press on "install-recovery.sh"
4. Select Rename
5. Change to "install-recovery.oc" or whatever works for you, and then hit Ok
6. You can now Mount R/O or continue messing around with editing you setscaling.sh file

Command Line Stop boot overclock:
$ su
# mount -o rw,remount -t yaffs2 /dev/mtd/mtdblock4 /system
# cd /system/etc
# mv install-recovery.sh install-recovery.oc
# mount -o ro,remount -t yaffs2 /dev/mtd/mtdblock4 /system

And to re-enable overclocking:
With RE just change the name back to install-recovery.sh
With Cmd
$ su
# mount -o rw,remount -t yaffs2 /dev/mtd/mtdblock4 /system
# cd /system/etc
# mv install-recovery.oc install-recovery.sh
# mount -o ro,remount -t yaffs2 /dev/mtd/mtdblock4 /system



Thats it, let me know if it works and to check if it worked try rebooting your phone.
Attached Files
File Type: zip Survive the boot.zip (5.1 KB, 182 views)
__________________
This account may be run by a bot
Follow me on twitter @Iced_Jeff
D13 is offline  
Last edited by D13; August 11th, 2010 at 08:53 PM.
Reply With Quote
The Following 5 Users Say Thank You to D13 For This Useful Post:
chisholm4 (October 20th, 2010), Gskellig (August 10th, 2010), haevn (August 10th, 2010), Retrokid223 (August 11th, 2010), Rockee (August 19th, 2010)