Author Topic: Overclocking Iphone 3g (BRAINSTORM GUYS)  (Read 10412 times)

Dameckish

  • Guest
Overclocking Iphone 3g (BRAINSTORM GUYS)
« on: September 07, 2010, 12:10:14 PM »
Now when the iphone 2G and 3G is getting old, i've been trying to find a solution to clock the processor. I know there has been some talk about this already, but i guess with the Openiboot and android ported + several jailbreak solutions, there is not a long way to go.
What i was thinking is that we can localize the core files in the kernel that blocks out the commands to change the processor, we should at least be able to clock inside of Openiboot terminal pre-boot.

Please don't flame, i know there is battery and warranty issues + the fact there is risk of bricking/destroying the phone. But it is getting kind of Old now anyway + i like to experiment (as many others i guess? :) )

Yes, i know you are focusing on android, i just think this would be fun to try.

My english aint the best, but i hope you understand me ;)

Offline ddominator

  • Global Moderator
  • Member
  • *****
  • Posts: 1414
  • Karma: +2/-1002
  • Trust me, I'm a doctor.
    • View Profile
    • Unofficial iDroid News Blog
  • iDevice: iPhone 2G 3.1.3
  • iDroid Version: Pepparkaka (ddominator custom)
  • Jailbreak: redsn0w 0.94
Re: Overclocking Iphone 3g (BRAINSTORM GUYS)
« Reply #1 on: September 07, 2010, 02:37:09 PM »
This is the right place to post (Off-topic) so no one should flame you for posting this.

But yes, you are right... screw the warranty since 2G and 3G are no longer in production...

However, I'm not a tech who knows how Jailbreaks work.  I'm not sure if we can manipulate kernel.  We don't have a BIOS to set the overclock.  But I may be wrong and that bootrom exploits may work...
Help Google takeover the world. Use Android on your mobile devices, use Chrome Browser, use Chrome OS!!!  Sell your souls to Google!
Useful links:
FAQ - http://www.idroidproject.org/wiki/FAQ
User Manual - http://www.idroidproject.org/wiki/User_Manual
Recovery Mode - http://www.idroidproject.org/wiki/DFU

Dameckish

  • Guest
(No subject)
« Reply #2 on: September 07, 2010, 03:50:13 PM »
Well, since both jailbreak AND Android on the iPhone is possible, i'm pretty sure it's possible. I just hope that more people with interest will show up  :mrgreen:

Offline ppati000

  • Member
  • Posts: 18
  • Karma: +0/-0
  • hey
    • View Profile
    • Twitter
  • iDevice: iPhone 3G, wanna buy iPhone 5
  • iDroid Version: Installing...
  • Jailbreak: Whited00r custom firmware 4.2
Re: Overclocking Iphone 3g (BRAINSTORM GUYS)
« Reply #3 on: November 02, 2010, 07:49:36 PM »
hi guys,
I read that Apple made it read only in a 2.0 beta. Has anyone a 2.0 beta on his iPhone? Probably not. Maybe someone will merge 2.0 and 4.1 so we can all overclock... ;) or we have to ask someone who was with Apple (the guy who lost the iPhone 4 prototype, the iPhone 4 antenna designer..) lol
iPhone 3G iOS (well, iPhone OS at this time) 3.1.3... Whited00r 4.2 Lite
Vindoze Wista, 2*2.4 GHz, 2GB RAM, 256 MB Graphics... Not much but enough to play GTA: San Andreas;) do nothing.

Offline eyoon

  • Member
  • Posts: 63
  • Karma: +1/-4
    • View Profile
  • iDevice: iPhone 3G 16GB
  • iDroid Version: Latest one?
  • Jailbreak: redsn0w
Re: Overclocking Iphone 3g (BRAINSTORM GUYS)
« Reply #4 on: November 14, 2010, 05:39:01 AM »
Ahhh....
I've done this. Trust me, your heat, battery.... Wait, so you said to disregard that? xD
You could say it's all been a placebo effect, but I think's it not. A guy ran benchmarks, and it proved the overclocking method worked. I don't get disconnected in multiplayer in Modern Combat 2: Black Pegasus anymore on the loading screen.

I ASSUME NO RESPONSIBILITY NO MATTER WHAT!
Instructions:
1) SSH into your device.
2) Go to /private/etc
3) Find "fstab". (no quotes) Backup that file.
4) Right Click>Edit
5) Start a new line ABOVE the part that says /dev/blah blah (you get the point)

Now, copy and paste this on that new line:
su
alpine
sysctl -w hw.cpufrequency_max=620000000
sysctl -w hw.cpufrequency=620000000
sysctl -w hw.cpufrequency_min=420000000

Change alpine to your root password.
The first 3 digits of the long numbers are the Mhz.
The first line is the frequency in Mhz you want the iPhone to run on.
The second line should be same as the first.
The third line is the speed you want the iphone to be when sleeping, etc.

So now, the fstab should look like this:

su
alpine
sysctl -w hw.cpufrequency_max=620000000
sysctl -w hw.cpufrequency=620000000
sysctl -w hw.cpufrequency_min=420000000
/dev/disk0s1 / hfs rw 0 1
/dev/disk0s2 /private/var hfs rw 0 2

NOTE: DO NOT CHANGE THE LAST 2 LINES! DO NOT COPY MY LAST 2 LINES! (dev/blah) THEY MAY VARY- CHANGING THEM WILL NOT LET YOU BOOT YOUR DEVICE!

6) Save.
7) Reboot.
:D

I will upload my fstab if requested.
Karma me if I helped!
« Last Edit: November 14, 2010, 05:57:17 PM by eyoon »

Offline EchoGecko

  • Member
  • Posts: 38
  • Karma: +1/-0
    • View Profile
  • iDevice: iPod touch 1st generation
Re: Overclocking Iphone 3g (BRAINSTORM GUYS)
« Reply #5 on: December 05, 2010, 12:38:59 AM »
Ahhh....
I've done this. Trust me, your heat, battery.... Wait, so you said to disregard that? xD
You could say it's all been a placebo effect, but I think's it not. A guy ran benchmarks, and it proved the overclocking method worked. I don't get disconnected in multiplayer in Modern Combat 2: Black Pegasus anymore on the loading screen.

I ASSUME NO RESPONSIBILITY NO MATTER WHAT!
Instructions:
1) SSH into your device.
2) Go to /private/etc
3) Find "fstab". (no quotes) Backup that file.
4) Right Click>Edit
5) Start a new line ABOVE the part that says /dev/blah blah (you get the point)

Now, copy and paste this on that new line:
su
alpine
sysctl -w hw.cpufrequency_max=620000000
sysctl -w hw.cpufrequency=620000000
sysctl -w hw.cpufrequency_min=420000000

Change alpine to your root password.
The first 3 digits of the long numbers are the Mhz.
The first line is the frequency in Mhz you want the iPhone to run on.
The second line should be same as the first.
The third line is the speed you want the iphone to be when sleeping, etc.

So now, the fstab should look like this:

su
alpine
sysctl -w hw.cpufrequency_max=620000000
sysctl -w hw.cpufrequency=620000000
sysctl -w hw.cpufrequency_min=420000000
/dev/disk0s1 / hfs rw 0 1
/dev/disk0s2 /private/var hfs rw 0 2

NOTE: DO NOT CHANGE THE LAST 2 LINES! DO NOT COPY MY LAST 2 LINES! (dev/blah) THEY MAY VARY- CHANGING THEM WILL NOT LET YOU BOOT YOUR DEVICE!

6) Save.
7) Reboot.
:D

I will upload my fstab if requested.
Karma me if I helped!
That will not work since "alpine" is not a command. Plus it seems iBoot may reset the clock speed afterwards. It would be better if someone could make a kernel patch to make more sysctl values writable. Nice try though  ;)

Offline sjorge

  • Member
  • Posts: 25
  • Karma: +3/-0
    • View Profile
  • iDevice: iPhone 3G, iPhone 4
  • iDroid Version: Mojo 1.0.5
  • Jailbreak: PwnageTool
Re: Overclocking Iphone 3g (BRAINSTORM GUYS)
« Reply #6 on: December 05, 2010, 12:07:39 PM »
even if it would work fstab is NOT the place do put those commands.
Your best bet would be to put the sysctl stuff in a launch daemon.

But if manually executing all the sysctl commands over ssh has no effect, making them run at boot won't either.
Not near my 3G to test atm though :(

Offline eyoon

  • Member
  • Posts: 63
  • Karma: +1/-4
    • View Profile
  • iDevice: iPhone 3G 16GB
  • iDroid Version: Latest one?
  • Jailbreak: redsn0w
Re: Overclocking Iphone 3g (BRAINSTORM GUYS)
« Reply #7 on: December 24, 2010, 06:40:37 PM »
Ahhh....
I've done this. Trust me, your heat, battery.... Wait, so you said to disregard that? xD
You could say it's all been a placebo effect, but I think's it not. A guy ran benchmarks, and it proved the overclocking method worked. I don't get disconnected in multiplayer in Modern Combat 2: Black Pegasus anymore on the loading screen.

I ASSUME NO RESPONSIBILITY NO MATTER WHAT!
Instructions:
1) SSH into your device.
2) Go to /private/etc
3) Find "fstab". (no quotes) Backup that file.
4) Right Click>Edit
5) Start a new line ABOVE the part that says /dev/blah blah (you get the point)

Now, copy and paste this on that new line:
su
alpine
sysctl -w hw.cpufrequency_max=620000000
sysctl -w hw.cpufrequency=620000000
sysctl -w hw.cpufrequency_min=420000000

Change alpine to your root password.
The first 3 digits of the long numbers are the Mhz.
The first line is the frequency in Mhz you want the iPhone to run on.
The second line should be same as the first.
The third line is the speed you want the iphone to be when sleeping, etc.

So now, the fstab should look like this:

su
alpine
sysctl -w hw.cpufrequency_max=620000000
sysctl -w hw.cpufrequency=620000000
sysctl -w hw.cpufrequency_min=420000000
/dev/disk0s1 / hfs rw 0 1
/dev/disk0s2 /private/var hfs rw 0 2

NOTE: DO NOT CHANGE THE LAST 2 LINES! DO NOT COPY MY LAST 2 LINES! (dev/blah) THEY MAY VARY- CHANGING THEM WILL NOT LET YOU BOOT YOUR DEVICE!

6) Save.
7) Reboot.
:D

I will upload my fstab if requested.
Karma me if I helped!
That will not work since "alpine" is not a command. Plus it seems iBoot may reset the clock speed afterwards. It would be better if someone could make a kernel patch to make more sysctl values writable. Nice try though  ;)
alpine is supposed to be your root password

Offline EchoGecko

  • Member
  • Posts: 38
  • Karma: +1/-0
    • View Profile
  • iDevice: iPod touch 1st generation
Re: Overclocking Iphone 3g (BRAINSTORM GUYS)
« Reply #8 on: December 25, 2010, 04:20:51 PM »
Ahhh....
I've done this. Trust me, your heat, battery.... Wait, so you said to disregard that? xD
You could say it's all been a placebo effect, but I think's it not. A guy ran benchmarks, and it proved the overclocking method worked. I don't get disconnected in multiplayer in Modern Combat 2: Black Pegasus anymore on the loading screen.

I ASSUME NO RESPONSIBILITY NO MATTER WHAT!
Instructions:
1) SSH into your device.
2) Go to /private/etc
3) Find "fstab". (no quotes) Backup that file.
4) Right Click>Edit
5) Start a new line ABOVE the part that says /dev/blah blah (you get the point)

Now, copy and paste this on that new line:
su
alpine
sysctl -w hw.cpufrequency_max=620000000
sysctl -w hw.cpufrequency=620000000
sysctl -w hw.cpufrequency_min=420000000

Change alpine to your root password.
The first 3 digits of the long numbers are the Mhz.
The first line is the frequency in Mhz you want the iPhone to run on.
The second line should be same as the first.
The third line is the speed you want the iphone to be when sleeping, etc.

So now, the fstab should look like this:

su
alpine
sysctl -w hw.cpufrequency_max=620000000
sysctl -w hw.cpufrequency=620000000
sysctl -w hw.cpufrequency_min=420000000
/dev/disk0s1 / hfs rw 0 1
/dev/disk0s2 /private/var hfs rw 0 2

NOTE: DO NOT CHANGE THE LAST 2 LINES! DO NOT COPY MY LAST 2 LINES! (dev/blah) THEY MAY VARY- CHANGING THEM WILL NOT LET YOU BOOT YOUR DEVICE!

6) Save.
7) Reboot.
:D

I will upload my fstab if requested.
Karma me if I helped!
That will not work since "alpine" is not a command. Plus it seems iBoot may reset the clock speed afterwards. It would be better if someone could make a kernel patch to make more sysctl values writable. Nice try though  ;)
alpine is supposed to be your root password
Yes, I know it is supposed to be the default root password. But it being the password does not make it a valid command.

Offline iPwnUK

  • Member
  • Posts: 207
  • Karma: +2/-0
  • *Insert Witty Comment Here*
    • View Profile
  • iDevice: iPhone 4 (GSM) 16G
  • Jailbreak: redsn0w 0.9.6(cant remember actual version)
Re: Overclocking Iphone 3g (BRAINSTORM GUYS)
« Reply #9 on: December 29, 2010, 04:37:40 PM »
blah blah blah, long post which doesn't really need to be quoted again to save space so I'm typing this instead, blah blah blah
That will not work since "alpine" is not a command. Plus it seems iBoot may reset the clock speed afterwards. It would be better if someone could make a kernel patch to make more sysctl values writable. Nice try though  ;)
alpine is supposed to be your root password
Yes, I know it is supposed to be the default root password. But it being the password does not make it a valid command.
Im guessing that he is typing that as when you type 'su' into the command it will ask you for the root password, and you subsequently would need to type in 'alpine' unless you have changed the password, in which case you would type that in instead.

Offline ppati000

  • Member
  • Posts: 18
  • Karma: +0/-0
  • hey
    • View Profile
    • Twitter
  • iDevice: iPhone 3G, wanna buy iPhone 5
  • iDroid Version: Installing...
  • Jailbreak: Whited00r custom firmware 4.2
Re: Overclocking Iphone 3g (BRAINSTORM GUYS)
« Reply #10 on: December 30, 2010, 11:06:01 AM »
You can easily check if it worked with MobileTerminal. Just type su, your passwd and then
sysctl -a and look for the three cpufrequency values, or type
sysctl hw.cpufrequency
sysctl hw.cpufrequency_min
sysctl hw.cpufrequency_max
iPhone 3G iOS (well, iPhone OS at this time) 3.1.3... Whited00r 4.2 Lite
Vindoze Wista, 2*2.4 GHz, 2GB RAM, 256 MB Graphics... Not much but enough to play GTA: San Andreas;) do nothing.

Offline EchoGecko

  • Member
  • Posts: 38
  • Karma: +1/-0
    • View Profile
  • iDevice: iPod touch 1st generation
Re: Overclocking Iphone 3g (BRAINSTORM GUYS)
« Reply #11 on: December 31, 2010, 04:39:41 PM »
blah blah blah, long post which doesn't really need to be quoted again to save space so I'm typing this instead, blah blah blah
That will not work since "alpine" is not a command. Plus it seems iBoot may reset the clock speed afterwards. It would be better if someone could make a kernel patch to make more sysctl values writable. Nice try though  ;)
alpine is supposed to be your root password
Yes, I know it is supposed to be the default root password. But it being the password does not make it a valid command.
Im guessing that he is typing that as when you type 'su' into the command it will ask you for the root password, and you subsequently would need to type in 'alpine' unless you have changed the password, in which case you would type that in instead.
Yes. But putting the root password in a script does not work properly. Using sudo would be better as it does not prompt for a password.

Offline Rekoil

  • Administrator
  • Member
  • *****
  • Posts: 331
  • Karma: +1338/-1
    • View Profile
Re: Overclocking Iphone 3g (BRAINSTORM GUYS)
« Reply #12 on: January 01, 2011, 12:07:50 AM »
Yes. But putting the root password in a script does not work properly. Using sudo would be better as it does not prompt for a password.
It does prompt for a password unless it's configured not to.
32gb factory unlocked iPhone 3GS with early bootrom and shsh for all available firmwares
others: 16gb iPhone 3G, 16gb iPhone 2G, 8gb iPod touch 1G, 16gb iPod touch 1G, aTV2

status

Offline EchoGecko

  • Member
  • Posts: 38
  • Karma: +1/-0
    • View Profile
  • iDevice: iPod touch 1st generation
Re: Overclocking Iphone 3g (BRAINSTORM GUYS)
« Reply #13 on: January 11, 2011, 12:48:12 AM »
Yeah but on my iPod touch (its an old 1st generation), it was set to not prompt for a password by default for some reason. It doesn't really matter for me, though, because the home button broke :P
Anyways... If you are going to make a script, why not use an actual script (.sh) file that is called by iBoot/Darwin (kernel) or a daemon instead of using FSTab (which BTW is the File System TABle, meaning its not the best thing to be messing with and commands shouldn't be executed there)? Recompiling the kernel with a few modifications could get the desired result, but that's a lot of work.

Offline Rekoil

  • Administrator
  • Member
  • *****
  • Posts: 331
  • Karma: +1338/-1
    • View Profile
Re: Overclocking Iphone 3g (BRAINSTORM GUYS)
« Reply #14 on: January 11, 2011, 01:14:09 AM »
Yeah but on my iPod touch (its an old 1st generation), it was set to not prompt for a password by default for some reason. It doesn't really matter for me, though, because the home button broke :P
Anyways... If you are going to make a script, why not use an actual script (.sh) file that is called by iBoot/Darwin (kernel) or a daemon instead of using FSTab (which BTW is the File System TABle, meaning its not the best thing to be messing with and commands shouldn't be executed there)? Recompiling the kernel with a few modifications could get the desired result, but that's a lot of work.
Other than the fact that a script can be called anything and is not limited to *.sh I completely agree with you.
32gb factory unlocked iPhone 3GS with early bootrom and shsh for all available firmwares
others: 16gb iPhone 3G, 16gb iPhone 2G, 8gb iPod touch 1G, 16gb iPod touch 1G, aTV2

status