yashsingh1/xdaforums huggingface dataset:
[myTouch 4G Android Development] Gr8gorilla:
you can install via recovery.

Sorry everyone, I have to stay away from Android for a while. I am about one Android project away from losing my scholarship and or having to drop some classes this semester. Really hard stuff this Spring.
[myTouch 4G Android Development] ckisgen:
aw man! first team silence and now gr8gorilla. this was a sad day for glacier owners....
[myTouch 4G Android Development] OptLynx:
Thanks Gr8gorilla, also do what you have to do lol as that comes first and this is second. Take it from someone who been in programming scene for sometimes now I mean while I was in highschool I did projects like AI bot development, p2p network. Now I gave all of them up lol way to much time consuming just make sure you do what you have to do and get things done.

LMAO @ ckisgen, I was thinking the same thing believe it or not as you seen my post in that thread lol I have feeling they are all gone and we be left with CM. I know I should have just stayed with HD2.
[myTouch 4G Android Development] teamsilence:
Thanx

Gr8gorilla you have done alot for this device to help us all ....thank you very much take yoyr time and goodluck!
[myTouch 4G Android Development] TrueBlue_Drew:
Why cant you install ADB? Try this method here if you are having trouble or dont want to install the SDK.
[myTouch 4G Android Development] graffixnyc:
Does the CM kernel work with CM 7 or is it just for CM 6?
[myTouch 4G Android Development] netter123:
I'm using Iced Glacier but switched to another kernel. If I want to get back to the Gorilla's V05, can I just wipe cache and dalvik in recovery and flash the zip from the link below?
[myTouch 4G Android Development] Gr8gorilla:
I am ALIVE, I just have other things I have to handle right now. Android is a hobby and real life serious stuff is in the way of my hobby right now. Don't fret, I will be back.

I got a Tmobile Galaxy Tab too. It is sweet too.
[myTouch 4G Android Development] aiwapro:
Anyone have a solution to this? I have Iced Glacier 1.1.6 now, and still have the same problem.
[myTouch 4G Android Development] ditchmagnet:
I too am wondering this. I am really liking CM 7, and faux kernel allows a higher OC than stock CM7, but clock for clock, faux kernel is much slower it seems. I want to try something else.
[myTouch 4G Android Development] faux123:
I am not saying my Kernel is better than anyone else's... I am just wondering how my kernel is "slower" clock for clock :( What issues have you encountered that is causing this? If it is a kernel issue, I want to be able to fix them :(
[myTouch 4G Android Development] ditchmagnet:
Just running benchmarks. Quadrant, Antutu. The stock cm7 kernel consistently scores higher at the same speeds of your kernel. I know you weren't concerned with benchmark results a much as battery life, so I was just looking to see if there were any other compatible kernels to try.
[myTouch 4G Android Development] youshoe:
Bootloops

Hi,

Thanks for your work. I'm a bit of a noob with kernels.

I am running Mimicry 1.4.0 and I wanted to flash one of the kernels. Resulted in boot loop. So I tried all the other ones and still got bootloops. I found that it was potentially a CM rom so I also flashed that to no avail.

Is there a reason why the kernels aren't working? I'm flashing either through cwm recovery or adb..

Thanks.
[myTouch 4G Android Development] estallings15:
Kernels are ROM type specific. Sense ROMs get Sense kernels for their Android version, whether it be FroYo, Gingerbread, or ICS. Most other ROMs get CM/AOSP kernels, but again for their Android version. Do more research before you damage something.

Also, look at the date on this thread. It's 2 years old. That's FroYo age. Mimicry is CM9, which is ICS. Again, Android version specific.
[myTouch 4G Android Development] cnote74:
Mimicry is a ICS ROM so it uses kernel 2.6. The kernel here is for froyo and maybe gingerbread only.
[myTouch 4G Android Development] ...Awesome...:
No wonder it didn't work on 4.2.1.... I'm such a noob...

Rise from the dead thread!
[myTouch 4G Android Development] estallings15:
It all makes sense now.
[myTouch 4G Android Development] StatusUnknown?:
Uh....have you looked at the date of this kernel? 2 years.
[myTouch 4G Android Development] ...Awesome...:
New BS thread? Lol... J/k

Yep just a kernel for Froyo and early versions of GB.
[myTouch 4G Android Development] youshoe:
Thank you all for your responses. It makes sense now (im a bit of a noob in this side of things).

Are there any recommendations for o/c kernals for ics?
[myTouch 4G Android Development] estallings15:
All of the ICS kernels for our device ARE overclockable. The best ones are usually in the aospx threads/ROMs.
[myTouch 4G Android Development] youshoe:
The highest I could oc it was 1.2ghz. Above that it will occasionally reboot. Compared to what a lot of people say, is this not low? Is there any other way to clock it up higher?
[myTouch 4G Android Development] estallings15:
Were you undervolted?
[myTouch 4G Android Development] youshoe:
Im not sure whether my kernal supports messing around with voltages. I tried installing voltage control app but I cant figure out how to change voltages...
[myTouch 4G Android Development] estallings15:
If the kernel supports it, incredicontrol will work, but I'll take that as a "No."

Not sure why you're getting stability issues. That's odd.
[myTouch 4G Android Development] youshoe:
Any good links to good voltage settings? Im pretty noob at this so Im not sure which voltages to set...
[myTouch 4G Android Development] estallings15:
Doesn't work that way. Each chip is different. You have to find out what yours can handle through experimentation. A buddy of mine has an evo that won't overclock + UV. His chip doesn't like it. A different evo might have no problem.
[myTouch 4G Android Development] youshoe:
Thanks!
[myTouch 4G Android Development] GentMAB:


Make sure u are s-off and u might wanna fix permissions too
[myTouch 4G Android Development] crx4xharder:
H aveyou tried mounting the /system partition in clockwork recovery?

I have no problems at all overclocking to 1.7ghz. Everything is quick, no reboots, device gets about 100° after an hour of continuous use. But that's rare, so its fine. Great kernel THANKS!

OP... If you just used module from the g2 for 1.7 ghz can u use the 1.9ghz files as well and do the same process? Just a newb thought ;-)
[myTouch 4G Android Development] aznpr1de808:
well i got the v2 1.6 Ghz OC to install and it seems to be stable no freezing or FCs but now my wifi doesnt work it just says error in settings??? lol any suggestions?
[myTouch 4G Android Development] sergispro:
got mine set to 1.6 performance seems good so far getting constant 2593 on quad but i do get reboots at 1.7. ty for the nice OC :D
[myTouch 4G Android Development] sergispro:
Cant seem to get my wifi to work with ur instructions =(
[myTouch 4G Android Development] Gr8gorilla:
I can see the speeds just fine, but I can't make it cap at a certain speed. I am wondering if you can cap the G2 at a certain speed or if it has the same behavior.

My MT4G scales itself up and down from min to max clock freq not what I put in SetCPU.
[myTouch 4G Android Development] Gr8gorilla:
New kernel, with lower voltages uploaded. So far so good. Also trying to figure out why we can't set max and min freq in setcpu.
[myTouch 4G Android Development] foxdl99:
Thanks man

No problems, once I worked out fastboot install, I didn't have it yet for some reason. Donated $5 for your troubles. Also, was wondering what resources I could find to start doing this type of thing myself. I'm working my way through the Android Developers information areas.
[myTouch 4G Android Development] foxdl99:
BTW, I can set max freqs in setcpu. I even set up some profiles although I don't know how to verify if they've been working.
[myTouch 4G Android Development] Gr8gorilla:
I can set them but the frequencies still scale outside of what I set. Like if I set the max to say, 1.113ghz It scales all the way to 1.6ghz. I thought it may be perflock but with it disabled it still won't max out. I am contacting someone smarter than myself, Coolbho3000 to see if he has any insight.
[myTouch 4G Android Development] foxdl99:
Make sure that if you used version 2 zimage to use version 2 bcm file. I tried to just rework the original file and it wouldn't work.
[myTouch 4G Android Development] GentMAB:
yeah I was able to set up profiles and max and min frequences since the first beta, didn't have any problems with it, I'm was actually having it get hotter with the latest beta but still no resets and my wifi works fine
[myTouch 4G Android Development] Noob01:
mine has been saying "sending 'zimage' (2881 KB)..." for the past 5 minutes...

the progress bar on fastboot on the phone also doesnt move...
[myTouch 4G Android Development] Gr8gorilla:
Do you have a nandroid? It should say ok.

Close the terminal open a new one and try it again. Make sure your device is recognized and make sure you are in fastboot and not HBoot. It won't work if you are in HBoot although it won't hurt anything either.
[myTouch 4G Android Development] Noob01:
i do have a nandroid and i am in fastboot.

but it still stays at "sending 'zimage' (2881 KB)..."

and it seems that my phone is frozen because i cant move using the volume buttons

EDIT: forget it.. somehow the kernel got back to normal (maybe it was the nandroid restore?) anyways i dont know enough about to this to overclock yet so maybe later...
[myTouch 4G Android Development] jOrOdee:
C:\AndroidSDK\tools>fastboot flash zimage zimage

sending 'zimage' (2881 KB)... OKAY [ 1.011s]

writing 'zimage'... INFOsignature checking...

FAILED (remote: signature verify fail)

finished. total time: 1.435s

any ideas?
[myTouch 4G Android Development] eleeo037037:
Hey gorilla are we able to set profile when the screen is off on v2? BTW thanks for this kernel and your work
[myTouch 4G Android Development] Gr8gorilla:
I believe that Perflock is not being disabled by setCPU. I have contacted Coolbho3000 to try to verify this. There is a nice thread on how to do it for a new device, but I think he will fix it shortly.

When he fixes this everything should work.
[myTouch 4G Android Development] skyungjae:
Any projections on a final version? I'm curious as to what happens to the battery life. Thanks for putting in the effort gorilla.
[myTouch 4G Android Development] eleeo037037:
What's the difference between this and kingklicks kernel? Why are we able to set those profiles on that kernel and not this one? Feels like My phone sniffed a line of coke after smoking some crack and washed it down with a redbull!
[myTouch 4G Android Development] mlockman:
If you set the mode to performance in setCPU it will run at max clock constantly. I'm not sure if it's actually downclocking per my profile when the screen is off though.
[myTouch 4G Android Development] GentMAB:
I am getting higher temperatures with v4 than I did with v1 so that is a little different, highest it went was like 102F
[myTouch 4G Android Development] Gr8gorilla:
That is interesting because I lowered the voltages in version 4.

{ 806400, PLL_2, 3, 0, 192000, 1100, VDD_RAW(1100) },

{ 1017600, PLL_2, 3, 0, 192000, 1150, VDD_RAW(1150) },

{ 1113600, PLL_2, 3, 0, 192000, 1150, VDD_RAW(1150) },

{ 1209600, PLL_2, 3, 0, 192000, 1200, VDD_RAW(1200) },

{ 1305600, PLL_2, 3, 0, 192000, 1200, VDD_RAW(1200) },

{ 1401600, PLL_2, 3, 0, 192000, 1250, VDD_RAW(1250) },

{ 1497600, PLL_2, 3, 0, 192000, 1250, VDD_RAW(1250) },

{ 1612800, PLL_2, 3, 0, 192000, 1300, VDD_RAW(1300) },

I will do another with voltages even lower and see if it works or not.

If I get a stable version with low voltage, I will start on compiler optimizations. I will have to remove debugging stuff, so I want to get the voltages low and correct first.

I am not sure what is different about the KingKlick version. I haven't tried it.

You can set profiles just fine with this kernel, the problem is that they don't do anything.

If you watch the freq scaling, and set it at say 1113 max then it should never go above that. However it always scales from min to max no matter what I do. If you look at info in setcpu you can see it scaling between the frequencies and how much time it has spent at each step.
[myTouch 4G Android Development] GentMAB:
Yeah this one is heating up a lot for me, it got up to about 104F and thats using on demand scaling with of course the max set at 1.6 and min 1.1 but it shows min at 245 mhz
[myTouch 4G Android Development] Gr8gorilla:
I just solved my own problem, new kernel incoming. With even lower voltages. Hopefully we won't destroy our batteries too quickly.

I just compiled the kernel without perflock and setCPU works wonderfully. OP will be updated in a few minutes! Come and get the new kernel Goodness and enjoy setting profiles that WORK!
[myTouch 4G Android Development] foxdl99:
My phone is freezing up after loading your new kernel. Any clues?
[myTouch 4G Android Development] Gr8gorilla:
my guess is that the voltages are too low. I will have recompile again with higher voltages.

Can you run a logcat and patbin the output and post a link to it? If I can see what errors we are getting it will give me a better idea.
[myTouch 4G Android Development] Gr8gorilla:
Just updated OP with a new kernel, hopefully more stable. Voltages are basically stock. Very close. I also added a script you can run through gscript that will load the wifi module for you. You must first copy the module to the sd card.

I am running betaV02 right now, so far no problems, we will see what happens.

Let me know if you get errors or problems.
[myTouch 4G Android Development] foxdl99:
Okay, trying to do logcat, but phone is frozen and I have to battery pull to get response. Will you be able to get what you need after reboot?
[myTouch 4G Android Development] Gr8gorilla:
I am about 99% certain it is low voltage, try the latest beta with higher voltages and see if it still freezes. I am doing same because I got a freeze on betaV02. If it I am about to take 01 and 02 down.

If 03 is still freezing i will compile one for today, with stock voltages and increase them throughout the overclock to get it stable.
[myTouch 4G Android Development] foxdl99:
I'm getting no love on anything past v4. Keeps freezing up and have to do a battery pull. Back on stock right now, if you still want me to logcat, need to know if I can collect any useful data if it's frozen and I reboot it, I don't think I will.
[myTouch 4G Android Development] foxdl99:
I just tried v3 and it was still freezing on me.
[myTouch 4G Android Development] halfwaytothepole:
I just tried the latest (v 02 and v03) and froze on both of them. Here are the last few lines from the logcat:

D/KIPC ( 1215): READ FD = 19
D/KIPC ( 1215): calling recv(19)
D/UploadService( 1628): keepService = false
D/su ( 2054): 10132 com.mhuang.overclocking executing 0 /system/bin/sh using shell /system/bin/sh : sh
D/ProcessManager( 2040): executeProcess(): waiting for child process ...
D/ProcessManager( 2058): executeProcess(): in child process ...
D/ProcessManager( 2058): executeProcess(): in child process, after dup2()
D/ProcessManager( 2058): executeProcess(): in child process, after closePipes()
D/ProcessManager( 2058): executeProcess(): in child process, after fcntl()
D/ProcessManager( 2058): closeNonStandardFds(): skipFd=[43]
D/ProcessManager( 2058): closeNonStandardFds(): after getrlimit(): RLIMIT_NOFILE=[7], rlim_max=[1024]
D/ProcessManager( 2040): executeProcess(): read child status count=[0], result=[0]
[myTouch 4G Android Development] Gr8gorilla:
Try beta-v05. So far the voltages are working.

Here is the table for anyone who is interested.

{ 1017600, PLL_2, 3, 0, 192000, 1100, VDD_RAW(1100) },

{ 1113600, PLL_2, 3, 0, 192000, 1100, VDD_RAW(1100) },

{ 1209600, PLL_2, 3, 0, 192000, 1150, VDD_RAW(1150) },

{ 1305600, PLL_2, 3, 0, 192000, 1150, VDD_RAW(1150) },

{ 1401600, PLL_2, 3, 0, 192000, 1200, VDD_RAW(1200) },

{ 1497600, PLL_2, 3, 0, 192000, 1250, VDD_RAW(1250) },

{ 1612800, PLL_2, 3, 0, 192000, 1300, VDD_RAW(1300) },

{ 1708800, PLL_2, 3, 0, 192000, 1350, VDD_RAW(1350) },

anything lower and the phone just freezes up. We could probably add one or two more steps at 1350 and it would be cool. That is the max voltage we can go according to Coolbho3000 in his G2 thread.
[myTouch 4G Android Development] foxdl99:
Works great now, thanks! Looks like setcpu is using the profiles and I see you ran it back up to 1.7GHz. In your code, where do I look for the voltage and freq settings?
[myTouch 4G Android Development] Gr8gorilla:
its in arch/arm/mach-msm/acpuclock-7x30.c

That is the file where you have to change the voltages and frequencies. They must be multiples of 19200. It is commented in the code.
[myTouch 4G Android Development] foxdl99:
Got Quadrant score of 2510 and 56 MFlops.

Edit: after setting max/min freq to 1708, get 2751 Quadrant and 57.4 mflops
[myTouch 4G Android Development] crx4xharder:
I'm still on v1beta at 1.7ghz, no issues other than profiles not working. Phone gets about 100° with heavy usage but I still get about 20 hours off battery life. As fast as 1.7ghz is on performance, I don't use on demand at all. I notice a little lag. I may consider trying this latest version if things are solid, but v1 is near perfect for my device ;-). Maybe my mt4g is special... Or maybe I am... Hahaha
[myTouch 4G Android Development] foxdl99:
Yeah, sounds like that was his only difference was profiles and ability to change freqs in the newest one. This newest one has 1.7 ghz as well, so it's probably worth it to swap over.
[myTouch 4G Android Development] halfwaytothepole:
I got it up and running with beta 5, but had a reboot while running quadrant. I gotta head off to work, so I'll see if I can replicate that tonight for you. That is unless there's a new version by 2300 pst.
[myTouch 4G Android Development] mlockman:
I just want to give Gorilla a big thanks for all of his hard work on this. You were on the ball with getting any issue fixed ASAP and that in turn gave us a great product.
[myTouch 4G Android Development] Gr8gorilla:
Thanks, for the thanks.

I plan to start working on compiler optimizations next.

I may try to incorporate the Smart ASS scheduler, and patch it for BFS as well.

Then we can have multiple versions.

This chip doesn't seem to like undervolting too much. WE will have to see where that goes.
[myTouch 4G Android Development] muness:
I've been running v01 all day at 1.7GHz max with no problems. Could be that some of the processors handle the lower voltage OK.
[myTouch 4G Android Development] timbo1083:
Just installed v05 and setcpu. So if I switch it powersaver is it really going to save me battery life and how much will that decrease the speed of my phone? Or do you recommend just leaving it at on demand?
[myTouch 4G Android Development] GentMAB:
yeah I never had any problems with the first version either not even with heating up, the last v3 I got up to 111.7 F and I got up to that ondemand while playing pocket legends. Trying out the new one and seeing if it will heat up hopefully not
[myTouch 4G Android Development] foxdl99:
FYI, using teamsilence's Iced glacier ROM with v5 of Gorilla's OC kernel. Got a Quadrant up to 2733. Don't know if his ROM is any more efficient or not, but it seems to run quicker.
[myTouch 4G Android Development] GentMAB:
This one still heating up for me, and the first one did not at all, kinda makes me want to go back to the beginning
[myTouch 4G Android Development] Strapt:
ok .. so anyone here know how to run that script using the gscript app?

the code using the terminal did not work for me on turning the wi-fi back on

so i want to try the script ..

i put the .sh file on the root of the sdcard along with the .ko file

i run the gscript app and then it gives me 3 options rboot .. list sdcrd and cpu info

i hit menu and select the add script .. then at that screen .. i hit load file .. and it says select a script from the sd card . but nothing shows up

then i manually type in the name of the .sh file and then hit load so nothing .. and then i hit save and i have that as a fourth option on my gscript and nothing happens

what am i doing wrong here??
[myTouch 4G Android Development] sergispro:
I did what you did then rebooted ran the script then it worked for me. Didn't show me that it did anything it just fixed the wifi so try to connect to wifi
[myTouch 4G Android Development] Gr8gorilla:
you need a folder on your sd card called gscript. put the script in it and the ko on the root of the sd.

Then you should be able to load the script and run it!
[myTouch 4G Android Development] eleeo037037:
I hace never ran gscript can some one give me a hand here?
[myTouch 4G Android Development] Gr8gorilla:
Just updated OP with instructions! Good Luck!
[myTouch 4G Android Development] Whosdaman:
You can't put the wifi fix in the kernel? And why not?
[myTouch 4G Android Development] Arcadia310:
Can someone please make an update.zip version or a version that does not require the use of a computer? Thanks. :D
[myTouch 4G Android Development] Gr8gorilla:
ro.secure=1; need I say more?
[myTouch 4G Android Development] eleeo037037:
Gscript didn't work for me so I did it the old fashion way hehe thanks anyways. It locks up on 1712 so I keep it on 1612 still fast and smooth. Thanks bro

My set up is min 768 max 1612 conservative

Screenoff profile is set at 368 min 368 max
[myTouch 4G Android Development] notxel21:
I used both the method posted in the OP and I used root explorer to get wifi working and for some reason I can't. Suggestions welcomed! :D

Great work Gorilla!!! :cool: My speeds are bananas!!
[myTouch 4G Android Development] mountainboy:
So if your at 1.6 and on conservative- do you notice much of a lag- I'm slowly easing up- it locked up at 1.7, I'm now testing 1.3 (quadrant went from 1494 at 1.2 up to 1948 at 1.3 huge jump!). trmp is running around 95-96.
[myTouch 4G Android Development] mlockman:
Ok, now I can actually watch my battery drain. Didn't notice until after a charge. I'm going to see if it's just max setting or something else.
[myTouch 4G Android Development] mountainboy:
FWIW someone else had this problem too- when I ran gscript for the wi-fi first time, I could only turn wifi on but not connect to any networks, credit to the other guy who figured this out- power down pull batt, reset run gscript again- wifi fixed.

EDIT: poster was sergispo, thanks man!
[myTouch 4G Android Development] eleeo037037:
THIS IS HOW I GOT WIFI WORKING AFTER YOU FLASH KERNEL...

Download the .zip and extract to your desktop

hold volume down and power to get into bootloader mode then volume down and power to select recovery

It will boot into recover mode

scroll with the trackpad to "mounts and storage" and select it by clicking the trackpad once

click on the first option "mount /system"

it will change to "unmount /system"

plug your device and pc into the usb cable

open up a command prompt on your pc

type "adb devices" to make sure your pc recognizes your device

cd to your adb path ie. "cd C:\AndroidSDK\tools" [whereever you have adb.exe installed to]

adb push C:\users\Leo\desktop\bcm4329.ko /system/lib/modules

it will pause then say "1180 kb/s"

type adb shell

press enter

type "chmod 775 /system/lib/modules/bcm4329.ko
[myTouch 4G Android Development] eleeo037037:
No lag for me
[myTouch 4G Android Development] eleeo037037:
Try making a costume profile so that when you screen is off your processor is not pushing at 1.7 ghz
[myTouch 4G Android Development] Strapt:
ok cool. this time it worked

i made the folder named wefi_driver_gscript and also there was already one named gscript .. thirdly i had the bare file in the root of the sd card so i was covered three ways

i ran the app and when i hit load it gave me the name of the file .. so im not sure if it found it out of the folder or the bare script itself

so thank you for helping out with that and the wifi works now

BUT

everytime i set it to max 1.7 it instantly froze up lol

then i slowly went to 1.6 and it froze

so it looks like mine is gonna be right under the 1.6 then.

just reporting what is freezing up my phone .. odd how some people are not having any issues with the higher frequencies ...

thanks again