yashsingh1/xdaforums huggingface dataset:
[G2 and Desire Z Android Development] gtrab:
As always, feel free to modify/edit/tweak/improve etc anything I share

How are the max frequencies/clockspeeds set ??

The overclocking script file /system/etc/init.d/03gtrabOC loads the overclocking module oc-dz.ko at boot, and sets its max speed.

The last line in the script sets the maximum overclocking value:

The only change between all versions is the final number at "pll2_l_val=x" (the MHz value multiplier is 19.2). Examples:

For stock 806.4 MHz

pll2_l_val=42

For 1017.6 MHz

pll2_l_val=53

For 1209 Mhz

pll2_l_val=63

For 1420 Mhz

pll2_l_val=74

How to delete the script 03gtrabOC to stop auto-loading the overclocking module ??

Using ADB commands from a PC:

adb remount (remounts r/w for that session if phone has unsecured kernel, like this one)

adb shell rm /system/etc/init.d/03gtrabOC

How is the overclocking module auto-loaded ??

The stock boot.img was unpacked, and inside ramdisk, bootcomplete.rc was edited to include a line which enables Busybox run parts at boot, then, with Notepad++ a line was added to the updater-script of the Update zip which gives running atributes to any script dropped into /system/etc/init.d. There's where the module-loading script 03gtrabOC was placed.

Was else was included or modified ??

- The overclocking module compiled by stridger was added to /system/lib/modules/

- Superuser APK was added to /system/app/ just in case it's missing or wrong.

- Su and the latest version of Busybox were added to /system/xbin/

- A full set of Busybox symlinks was added to the Update zip updater-script with Notepad++

- Inside the boot.img's ramdisk, defaul.prop was edited to ro.secure=0 (unsecured Kernel, "root")

- The Kernel itself was not touched, to avoid conflicts / problems (anyway the source is still not available).

How were these Update zips packed and signed ??

Using Daneshm90's Update zip tool.

How was the boot.img unpacked and repacked ??

Using scripts from dsixda's kitchen on Cygwin, a Unix emulator for Windows.
[G2 and Desire Z Android Development] ludow:
Thanks AGAIN mate. Is 1.4 GHz

safe

choice for everyday usage? :o

I'll try play with values, I just want that 1GHz too.

EDIT: And I want that 1.4 GHz value too. lol

03gtrabOC has only one value, is that some kind divider? I am sorry but I can not figure those tables out.
[G2 and Desire Z Android Development] sonofabit:
This works great. I assume that this now sticks between reboots?
[G2 and Desire Z Android Development] gtrab:
Updated post 1 (new 1GHz version) and post 5 (how to manually change overclocking speed / multiplier value)

Yes it should
[G2 and Desire Z Android Development] huetson2:
gtrab, quick question. As this update has root built in do i have to root my device first or can i simply install clockwork and apply this update?
[G2 and Desire Z Android Development] gtrab:
yes of course you need root and S-OFF to flahs this or anything non-official

check the easy tutorial FAQ linked on the post, you'll become a flashing master in 8 minutes :)
[G2 and Desire Z Android Development] DanWilson:
Is 1.4GHz the fastest we can go on the Z / without a custom kernel?

Seeing as the G2 can go up to 1.9GHz.

;)
[G2 and Desire Z Android Development] huetson2:
been a while since flashing an htc (magic), been flashing a galaxy s for the last 6 months.

Have read the tutorial now thanks and all is clear again
[G2 and Desire Z Android Development] gtrab:
I'm on 1.4Ghz, that's enough for me, but other users dare to go up and up. Check the other overclocking threads in this forum to see what other users are reporting.

This update zip won't change the voltage, just the speed, so we will have to find out :D :p

you're welcome
[G2 and Desire Z Android Development] DanWilson:
:D

Come Christmas (well, a couple days after) my Z shall be pimped. -ish.

And I'll try an overclock of epic proportions. For five minutes, or until I crap myself. Which ever is first ;)
[G2 and Desire Z Android Development] Xtreme XL:
this works well! Tnx man! finaly a way to overclock that stays after reboot!

all nice and stable @ 1.42GHZ :D
[G2 and Desire Z Android Development] JCreations:
Great work! Might be a good idea to add a file with stock kernel and bcm4329.ko for the people who already flashed with a oc kernel.
[G2 and Desire Z Android Development] gtrab:
The stock kernel and bcm4329.ko are already included ;)

Just delete system/etc/init.d/03gtrabOC and you are back to stock
[G2 and Desire Z Android Development] maus010:
It stangely doesn't work for me.

I already have root and s-off. But when I apply the update my DZ freezes on boot-up.

I'm doing a nandroid recovery now. Hope it wil boot-up again.
[G2 and Desire Z Android Development] jark99:
hey gtrab i have kernel version 2.6.32.21-gd2764ed

will this still work on my desire z?
[G2 and Desire Z Android Development] gtrab:
1.- Maybe you have a different ROM, o this is not "stock" for you

2.- Maybe yoou have a corrupt download. Did you check the MD5 checksums ??
[G2 and Desire Z Android Development] steviewevie:
Yes, that will be fine on the DZ.
[G2 and Desire Z Android Development] Ganii:
Ok,thanks for your answers!

And I see you have the same baseband version and

software number at your Desire Z ;)

Only hboot is different!

Maybe I ask a user at our german forum about software etc.!

Because some of them running the 1.4Ghz kernel!
[G2 and Desire Z Android Development] steviewevie:
Yeah I'm on the same version as you, but still on the stock kernel. I have the eng hboot because I got S-OFF the "old" way. But the new "gfree" way is a lot better and safer, and you don't really need that eng hboot any more.
[G2 and Desire Z Android Development] Ganii:
Right,I have done with "gfree" method ;)

Hboot "0.85.0005"
[G2 and Desire Z Android Development] Sh0rty007:
Thnxx!! Works great here :D will there be an 1.7 soon???
[G2 and Desire Z Android Development] BlackMountainCow:
1.4 GHz wouldn't work for me either, 1.2 does perfectly. Glad I had a recovery in place. ;)

Many thanks for your hard work! :D
[G2 and Desire Z Android Development] buzmay:
Gtrab came with the conclusion that is not a device problem since I was having exactly the same problem of being able to flash the 1.2 but not the 1.4. So I tested acustom ROM and with the rom the device was able to be overclock to 1.4. So is not that the phone can't handle that speed
[G2 and Desire Z Android Development] Sh0rty007:
I use the 1.4 now.... Works really great.
[G2 and Desire Z Android Development] gtrab:
A few phones don't handle the 1.4 GHz version unless you re-flash the stock RUU

I guess they have the new serial numbers and some sort of anti-overclocking protection (like the older rooting process)

That's correct

If I can get my hands on that new boot.img I could be able to prepare a working version for the 1.4GHz OC

PS: **** keep pressing the "thanks" button instead of the "quote" one... I have to get used to this new stuff
[G2 and Desire Z Android Development] gtrab:
1.7 GHz ?? :eek:

I know there are some 1.7, 1.8 and even some 1.9GHz kernels out there,

I wouldn't do that unless proven absolutely reliable because that's TWICE the original speed (!!!) and I am still to find consistent, long-term proof of its reliability/stability, and over/downvolting seems required

I'm not sure how that would affect the hardware in the long term (heath, battery, etc)
[G2 and Desire Z Android Development] jonoball88:
so i installed the 1.4 ghz and when i go onto set cpu the max it lets me to to is 528 mhz... wtf? lol i want to overclock and not underclock!!

edit:

i unstalled set cpu and installed it a couple times and now it works!
[G2 and Desire Z Android Development] Ganii:
Asked a user from our german forum and the 1.4Ghz works for him at

CyanogenMod ROM.

But don`t get a answer at the moment if it works at stock original sense ROM,

which comes with the europe Desire Z!

Now I tried kernel "2.6.32.27 – OC-UV-NEON_FP (1.516GHZ) – G2"

from pershoot and works.

I can overclock to 1.51Ghz!
[G2 and Desire Z Android Development] gtrab:
Offtopic ghosh I keep pressing the "thanks" button instead of the "quote" button LOL This is driving me nuts

Back on topic:

As I stated before, some users report being able to flash the 1.4GHz version AFTER re-flashing their firmware with the official RUU, odd, but that's how it goes for some phones (maybe phones from the latest batch)

If you can provide your boot.img I can prepare a 1.4GHz version for you
[G2 and Desire Z Android Development] bongd:
Works fantastic! New DZ owner and amazingly ecstatic with the hard work of the dev community. Many thanks!!
[G2 and Desire Z Android Development] buzmay:
Why when using the 1.2ghz kernel and trying to put a screen off profile on setcpu, when choosing governor there is no option for powersave??
[G2 and Desire Z Android Development] bongd:
I noticed that it just has a few governors as well. Is there anyway to change this?

On the subject of kernels and whatnot, I had RUU_Vision_HTC_WWE_1.34.405.5_Radio_12.28b.60.140e _26.03.02.26_M on here before and want the original kernel/stock speed to do some contrast and comparison with regards to battery life. I've backed everything up lots of times but I want to put this kernel on without actually losing all my settings and whatnot. I use Customer Rom Manager app but can also do it over the computer using ADB too.

How can I easily get back to stock clock speeds with the least amount of trouble? Planning on uninstalling SETCPU too so please don't suggest creating a profile. I'm sure I'll switch back to another clock speed after but want to do some battery tests. Thank you, anyone who can help!
[G2 and Desire Z Android Development] buzmay:
If you put this kernel, as the first post says, do a nandroidbackup of your stock rom, then simply flash this kernel without wiping anything.

Now if you want to go back to your original kernel, simply restore the nandroidbackup and that will be it.

There are also other methods in the very first post of this thread, but I find restoring a back up the easiest method.
[G2 and Desire Z Android Development] buzmay:
Or is it a governor you could recommend from the one available for a screen off profile?
[G2 and Desire Z Android Development] JCreations:
There are OC kernels available for the DZ. Check out:

http://xdaforums.com/showthread.php?t=876596

I'm using the CM version, so far no problems.
[G2 and Desire Z Android Development] buzmay:
Thanks a lot for this already trying and working great. Now I can use powersave as governor and oc to 1.5 tus :)

Thanks again
[G2 and Desire Z Android Development] olobex:
I am on a german DZ with the original sense rom, perm root and s-off. Same problem here, I can use the 1.2ghz kernel without problems, but the 1.4ghz version freezes in HTC welcome screen.

Just to have more options and to have it documented here, gtrab suggested to flash a stock RUU. Which RUU is meant and where to find? Is it a full rom or just a kernel or radio.

Please just point it out that everbody knows and can try to run the 1.4ghz kernel afterwards.

Anyway I will try the pershoot and cynogen sense kernels now.

Thanks for posting this link here. Appreciate that.
[G2 and Desire Z Android Development] gtrab:
there are two ways:

1.- extract your boot.img and share it with me, I can prepare an overclocked kernel for your version (the newer euro version, which doesn't accept the 1.4GHz OC, only 1.0 and 1.2GHz)

2.- re-flash the stock official firmware (full ROM) with the official RUU, you can find it here:

http://xdaforums.com/showthread.php?t=822908

BTW can you please share your kernel / software version ??
[G2 and Desire Z Android Development] Sparacis:
Same happened here flashed the 1.4 and it froze at the HTC boot screen. Flashed 1.2 worked fine.
[G2 and Desire Z Android Development] Smartenup:
Here is what worked for me but the first 2-3 times my phone did boot up normally. This symptom actually occurred for me after the market update. To fix it try this, remove battery for 5 mins, reinsert and power on and it "may" complete boot. :) Wait for at least 5 mins after you power on.
[G2 and Desire Z Android Development] geert01:
I just got my phone last week, I'm with vodafone the netherlands.

Is there any chance it will work with my kernel version?

My kernel version is 2.6.32.21-g540976a which I could not find mentioned in the previous posts

Thanks for your answer
[G2 and Desire Z Android Development] JCreations:
Just use the pershoot kernel. I posted the link a couple of messages above.
[G2 and Desire Z Android Development] dgwdum:
Could someone tell me of the benefits of this please.it sounds cool but how can I use that extra power? Also what are the risks?tnx.
[G2 and Desire Z Android Development] superspacey:
it will just make your phone faster overall as i understand it. i notice mine is laggy opening long threads of sms msgs for example or switching between apps... so this is why i'm interested in overclocking.

downsides might be shorter battery life, though from what i've heard on the forums nobody has really complained about that.
[G2 and Desire Z Android Development] dgwdum:
Thanks for the reply.i did it and its great.emulators run so smooth, and I can download 1gb files from the browser in about 5min. Its awesome.
[G2 and Desire Z Android Development] superspacey:
cool, glad to hear it. what version of rom were you using? and how fast did you go for?
[G2 and Desire Z Android Development] dgwdum:
I think its coolbho 3000. I saw a video walkthrough on youtube it took me 5 minutes to do it.without a computer.
[G2 and Desire Z Android Development] D90Newb:
Thank you very much

I have been trying with coolbho3k's overclock module for over 2 days. Tried to modify it since it didn't work with Bell Desire Z in first place. No luck. But this one works so easily. 1Gh and 1.2Gh both are working OK on my phone, but I don't think it can handle 1.4Gh, it keep freezing up. Anyway, I didn't plan to go to 1.4gh in first place. Anyone want to go for 1.4Gh or higher, please please back up your ROM first.(it saved my phone:))
[G2 and Desire Z Android Development] m.zambonelli:
So, with this kernel it will be possible to receive official Over the Air upgrade and so on?

And...if htc will release an Over the Air Kernel upgrade...the chance for overclock will be lost?

Hi from a noob noob user :D

p.s. is the first post of this thread updated with, just in case, update kernel and fix or do i have to browse all the thread to see if there are new zip posted with maybe some fixed issue or new kernel upgrade (2 days ago htc released an update for my desire z)
[G2 and Desire Z Android Development] dgwdum:
If you can't overclock your g2 go to youtube and look for blackprince 310 his tutorial is great. I overclocked my g2 to 1.4gz and it works fine just set some profiles on setcpu and you're good to go.
[G2 and Desire Z Android Development] m.zambonelli:
With blackprince tutorial is the G2 kernel still the original one?

What it makes me afraid the most of overclocking is that i often don't have time to check news on internet so i need to be able to receive every update htc will send me over the air and i'm afraid that overclocking my Desire Z (maybe changing kernel or whatever) will not allow me to receive update
[G2 and Desire Z Android Development] superspacey:
hey, just wanted to let people know that I was able to use this kernel with my Bell Desire Z flashed to RUU_Vision_HTC_WWE_1.34.405.5_Radio_12.28b.60.140e _26.03.02.26_M.

1.2 GHz :D

Thanks op.
[G2 and Desire Z Android Development] ckc0:
Hi,

First of all, thanks for you all great works to make this and i've already o/c my Z to 1Ghz....

I want to chang the max clocl speed in 03gtrabOC, how can i open the file in my Z and edit it ?

thanks
[G2 and Desire Z Android Development] gtrab:
It is absolutely safe to try editing the 03gtrabOC script, it is a text file, I used Notepad++ to create and edit it (3 versions for the 3 update zips kernel speeds)

If editing that file (changing the OC value) doesn't work, feel free to modify the whole update zip: unzip it, edit the script, repack and resign the update zip, then flash it

I wrote some instructions and cited sources of what I used and how I made the update zips (check the opening post)

and please report back
[G2 and Desire Z Android Development] tbalden:
Sorry to ask stupid question ,but is this the kernel of the 1.72 update? Or the one before that?

Is there a way to produce a kernel zip with an oc module like this for lates kernel of 1.72, if this isnt done already?
[G2 and Desire Z Android Development] timberman123:
My phone was running fine with the 1.2ghz, but after flashing the 1.4ghz version my phone hangs at the htc logo:S . Ive read about this, but i cant get into recovery mode with clockwork, every time I select advanced to get to the restore menu my phone gets black screen and wont load the next menu.

Someone knows what to do? Deleting the 03gtrabOC wont work neither, im getting an error in windows when trying to delete:S. Weird ****.

Anyone knows how to get this phone working again?

EDIT: Hmmz, I used the power button to select in recovery but you had to use the trackpad to select, ooops. Worked fine now, restored my old image back to my phone and running at 1.2ghz again..
[G2 and Desire Z Android Development] MacaronyMax:
Damn.... Clocked at 2.2Ghz on an MIUI rom but everything force closes.. Will do this on a sense rom now ;)
[G2 and Desire Z Android Development] gtrab:
Yes it can be done, easy.

Only thing needed is 1.72 boot.img and a recompiled OC module

...but, do you already have root and clockwork for 1.72 ??

Sent from my Godspeed 1.4GHz Android HTC DZ
[G2 and Desire Z Android Development] tbalden:
Well , maybe im just too stupid ,but i thought to use it with virtuous rom, which has 1.72 software, but not the kernel and radio. Would it break functionality?

(Actually root and clockwork can be achieved i think, with gfree in 1.32 and then upgrade and then temp and permroot with yesterdays new pneuter exploit by scotty2.) But id like to use it with virtuous rom 0.9.
[G2 and Desire Z Android Development] gtrab:
Whats your kernel version under virtuous ??

If it matches this kernel version (check the OP) then you can give it a try (and if it doesnt work you can revert back with a NANDroid backup)

Sent from my Godspeed 1.4GHz Android HTC DZ
[G2 and Desire Z Android Development] tbalden:
Thing is i want stock kernel with oc module BUT the kernel of the 1.72 ota update version, coz it has fixes i think... hopefully that kernel wouldnt mean losing root tho... :) what do u think about this scenario?

Virtuous doesnt use the new kernel, coz its source is not out afaik. So whats the chance new kernel wouldnt break things?
[G2 and Desire Z Android Development] gtrab:
Using the new kernel will break everything because we dont heve root yet

I'd say way a little, stick to the current kernel, and root for the newer one will be out soon.

Thats what Im doing

Sent from my Godspeed 1.4GHz Android HTC DZ
[G2 and Desire Z Android Development] tbalden:
Ok, thanks for the info. What root means here? A rooted kernel image? Actually 1.72 can be rooted, but i think you mean a prerooted kernel?

Edit:

I think I was wrong, reading the downgrade thread realized its not permroot. Sorry.
[G2 and Desire Z Android Development] Smartenup:
OMG 2.2? Wow
[G2 and Desire Z Android Development] tbalden:
I know I'm stupid to stick with this idea, but could you help testing this out. I have all backed up with clockworkmod, so it wont hurt to try such a kernel and OC module made out of 1.72's stock kernel and your compiled OC module for it.

Or will that stock kernel make the rooted state of the VirtuousROM totally gone? I'm not much expert in this ROM area, so no idea what exactly makes a ROM pre-rooted. You wrote "Using the new kernel will break everything because we dont heve root yet", so does this mean that the kernel itself causes the root to not work when overwriting the kernel of a prerooted ROM?

If the rooted state of the system is not broken by using the stock 1.72 kernel, with some help I would test how much of the virtuousROM functionality with it's 1.72 sense apps will be broken, and how the godspeed overclocking module could work out...

thanks, and sorry if I imagine fool things. :)
[G2 and Desire Z Android Development] tbalden:
I hope you can answer my stupid questions in the above post, but here is the link to the permrooting users post in the other thread where its described also how to do it on stock 1.72 with soff done before the update, then after the update use pneuter exploit to gain temp root and then permroot with gfree's root script. http://xdaforums.com/showpost.php?p=10489450&postcount=283

Look for guhl99s post where he describes how to perm root 1.72..
[G2 and Desire Z Android Development] tbalden:
Sorry for bombing the thread but wanted to mention this new root friendly kernel from stock 1.72:

http://xdaforums.com/showpost.php?p=10515817&postcount=2922
[G2 and Desire Z Android Development] sandrome:
You can really have a rooted stock kernel from 1.72 release. Take a look at modaco r2 with sense. I would like to have a functioning oc kernel for that rom. Virtuous and pershoot kernel didn't work.
[G2 and Desire Z Android Development] tbalden:
Yeah that would be great too.

Is Modaco with cifs module?
[G2 and Desire Z Android Development] sandrome:
I don't think so. Modaco rom is pretty much rooted stock. Maybe Paul will integrate more features like a custom kernel and cifs in future.
[G2 and Desire Z Android Development] Jason Black:
Good stuff man.. ill read the thread to see what im up for.

Sent From Tapatalk.
[G2 and Desire Z Android Development] htcdesirez1:
i am kinda of new to this but have two questions,

can i use this kernel after i have rooted the gfree way? I just get the sense that this only works with visionary.

also this only works with the stock rom right? as im wondering if its possible on cyanogen. if not how can i overclock cyanogen...only want 1Ghz

thanks
[G2 and Desire Z Android Development] tbalden:
it works with any permrooted device with proper s-off and easiest is to use the usual ROM Manager / clockwork recovery "Install ROM from SD Card option" to install a kernel. I vary a lot of kernels with virtuous its really simple. And yes, nandroid backup with ROM Manager is essential.

Visionary is somehow deprecated AFAIK, and also not recommended subjectively by many folks here. rage (1.35) and pneuter (1.72 ROM) plus gfree are the current "flag ships" of htc vision rooting :)
[G2 and Desire Z Android Development] dekaru01:
Hey gtrab, permaroot on 1.72 is now a reality (see http://xdaforums.com/showthread.php?t=886023). Please update your kernel thingies to work on that.

I've been using the 1.4 GHz kernel on my 1.34 DZ with absolutely no issue whatsoever, and I'd like to get the extra speed after I update too. Thanks for creating the cleanest and most straightforward (imho) overclocking solution for the DZ. And please do keep up the good work and don't forget about those of us who are taking the plunge to 1.72 :)
[G2 and Desire Z Android Development] gnocchi_ny:
Just ran the godspeed on a Bell Desire Z after perm-root, Super CID, etc.

My stats... pre (stock) and post

@840MHz

Short Bench: 294ms

Long Bench: 560ms

Native Bench: C: 710.510254ms NEON: 584.564209ms

Quadrant: 1479

@1420MHz

Short Bench: 185ms

Long Bench: 291ms

Native Bench: C: 449.371338ms NEON: 201.873779ms

Quadrant: 2227
[G2 and Desire Z Android Development] gtrab:
I've been out of business for a month or so, now I'm back and will take a look at your suggestion

Thanks for pointing out
[G2 and Desire Z Android Development] Smartenup:
Your current kernel quadrant scores are sick! Awesome to hear u r going to add more kernels! Tks!

HTC Vision Baby
[G2 and Desire Z Android Development] gtrab:
After checking some 1.72 feedback I have stuck to 1.34 in the meantime, while we get the official gingerbread update (June, they say)
[G2 and Desire Z Android Development] jubilleum:
I am little comfused...

Can i use this kernel on this rom?

And what overclock kernel should i use instead?
[G2 and Desire Z Android Development] gtrab:
your link goes to rmk40's thread

that's a test gingerbread version

different kernels