Go Back   Android Forums > Android Development > Developer Forums > Getitnowmarketing

test: Reply
 
LinkBack Thread Tools
Old November 20th, 2010, 10:13 AM   #1 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 793 Times in 168 Posts
Default Kernel Thunderc-Sprint Optimus S OC

Flash with custom recovery. This is a beta run also. Speeds above 800mhz may be unstable for many people so find the speed that works best for you as all processors are unique due to construction imperfections.

Overclocking Notes:
Not all phones can OC and can handle the same speeds. Your phone is unique. Some can go up to 864mhz stable some can only do 729mhz and some can't at all.

Overclocking must be done with setcpu. After each boot/reboot the max is set to 600mhz to keep you from getting in a boot loop with an unstable speed for your device. To change it after reboot you must move the slider in setcpu to get the overclock freq to set above 600mhz. Do not use the set on boot feature of setcpu.

Download Optimus S GNM OC Beta

Please make a nandroid backup prior to flashing so you have a restore.

Advertisements
getitnowmarketing is offline  
Last edited by getitnowmarketing; November 20th, 2010 at 10:17 AM.
Reply With Quote
The Following 5 Users Say Thank You to getitnowmarketing For This Useful Post:
bloodbought (November 22nd, 2010), gizmosears (November 29th, 2010), Joeseph Mother (November 28th, 2010), LuvStry (November 21st, 2010), zefie (November 29th, 2010)
sponsored links
Old November 20th, 2010, 10:18 PM   #2 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

Can oc with P500 ?
LuvStry is offline  
Last edited by getitnowmarketing; November 20th, 2010 at 10:28 PM.
Reply With Quote
Old November 20th, 2010, 10:28 PM   #3 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 793 Times in 168 Posts
Default

Quote:
Originally Posted by LuvStry View Post
Can oc with P500 ?
No kernel is device specific LG only released source for Optimus S. Need to wait for them to release it for p500.
getitnowmarketing is offline  
Reply With Quote
The Following User Says Thank You to getitnowmarketing For This Useful Post:
LuvStry (November 21st, 2010)
Old November 20th, 2010, 10:56 PM   #4 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by getitnowmarketing View Post
No kernel is device specific LG only released source for Optimus S. Need to wait for them to release it for p500.
thank you for answer me.

Optimus One KR model name : KU3700
LuvStry is offline  
Last edited by LuvStry; November 21st, 2010 at 12:47 AM.
Reply With Quote
Old November 21st, 2010, 11:06 PM   #5 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

600mhz JIT Linpack: 7.415 MFLOPS
787mhz JIT Linpack: 9.429 MFLOPS
864mhz JIT Linpack: 10.154 MFLOPS

864mhz under stress = reboot
zefie is offline  
Last edited by zefie; November 21st, 2010 at 11:10 PM.
Reply With Quote
Old November 22nd, 2010, 03:50 AM   #6 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 3
Thanked 0 Times in 0 Posts
Default

Everything stable for me at 825. Thanks.
gizmosears is offline  
Last edited by gizmosears; November 22nd, 2010 at 04:13 AM.
Reply With Quote
Old November 22nd, 2010, 12:25 PM   #7 (permalink)
Junior Member
 
Join Date: Nov 2010
Posts: 18
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

806mhz JIT-Enabled: 9.49 MFLOPS

Had 864mhz on for a few seconds before the phone rebooted itself. I'm happy with 800+ mhz for now.

Thanks!
bloodbought is offline  
Reply With Quote
Old November 22nd, 2010, 02:13 PM   #8 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 793 Times in 168 Posts
Default

Quote:
Originally Posted by zefie View Post
600mhz JIT Linpack: 7.415 MFLOPS
787mhz JIT Linpack: 9.429 MFLOPS
864mhz JIT Linpack: 10.154 MFLOPS

864mhz under stress = reboot
I thought you were opposed to OC based on your post at AndroidCentral. I reworked it a lot since the 1st beta you tested.
getitnowmarketing is offline  
Reply With Quote
The Following User Says Thank You to getitnowmarketing For This Useful Post:
Joeseph Mother (November 28th, 2010)
Old November 22nd, 2010, 03:50 PM   #9 (permalink)
Junior Member
 
Join Date: Nov 2010
Posts: 18
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Is it advantageous to use a different governor other than ondemand?
bloodbought is offline  
Reply With Quote
Old November 24th, 2010, 07:08 PM   #10 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by getitnowmarketing View Post
I thought you were opposed to OC based on your post at AndroidCentral. I reworked it a lot since the 1st beta you tested.
I still don't use it I just flashed it to benchmark it.

Also, not to seem like a dick or anything but when will the GPL sources be released
Not gonna roll my own kernel but I did some tweaks to the kernel and just curious if your OC + my tweaks = faster
zefie is offline  
Last edited by zefie; November 24th, 2010 at 07:54 PM.
Reply With Quote
sponsored links
Old November 25th, 2010, 09:38 AM   #11 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 793 Times in 168 Posts
Default

Quote:
Originally Posted by zefie View Post
I still don't use it I just flashed it to benchmark it.

Also, not to seem like a dick or anything but when will the GPL sources be released
Not gonna roll my own kernel but I did some tweaks to the kernel and just curious if your OC + my tweaks = faster
soon I have a 2.6.32.26 kernel being tested

Also, on the above post a thanks might be nice. Keep in mind that I don't have an Optimus and will likely never. I opened the gate for you guys for custom roms, showed you guys how to turn on jit, made an OC kernel. And if I didn't do it somebody would have likely done it but who knows how long that would have been to wait. I think maybe 3-4 people actually said thanks and the donations I've gotten wouldn't even buy a $.25 gumball so I certainly don't do it for the $. I always open source all my stuff to further the dev community. However, sometimes its a little frustrating with a lack of appreciation or a simple thank you for the time I have invested.
getitnowmarketing is offline  
Last edited by getitnowmarketing; November 25th, 2010 at 10:05 AM.
Reply With Quote
The Following 3 Users Say Thank You to getitnowmarketing For This Useful Post:
dtj8688 (November 29th, 2010), Joeseph Mother (November 28th, 2010), kalex (November 25th, 2010)
Old November 25th, 2010, 05:43 PM   #12 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by getitnowmarketing View Post
soon I have a 2.6.32.26 kernel being tested

Also, on the above post a thanks might be nice. Keep in mind that I don't have an Optimus and will likely never. I opened the gate for you guys for custom roms, showed you guys how to turn on jit, made an OC kernel. And if I didn't do it somebody would have likely done it but who knows how long that would have been to wait. I think maybe 3-4 people actually said thanks and the donations I've gotten wouldn't even buy a $.25 gumball so I certainly don't do it for the $. I always open source all my stuff to further the dev community. However, sometimes its a little frustrating with a lack of appreciation or a simple thank you for the time I have invested.
I completely understand. I know how it feels to work your ass off for nothing and not be appreciated. I am sorry if I came off that way. I have learned the benefits of the OC and have been using 120-844 thanks to your hard work. I didn't mean to come off as a greedy bastard, I was just curious if my config tweaks did accomplish anything, and if they did pass them along to you.

Like one, I don't know if it helps but LG had ARMv6 K extensions off, even though the msm7x67 supports the K extensions.

That and they have highmem (4g+) enabled, and even the config helper says that might slow down the kernel. But again I only managed to get a 12 points above stock in Quadrant, but that was 1 test not an average so who knows. It could actually be slower. Margin of Error is around 60 points.

Anyway I do appreciate what you have done. Thanks again.
zefie is offline  
Reply With Quote
Old November 28th, 2010, 06:01 PM   #13 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 14
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 5 Times in 3 Posts
Default

Thanks, hopefully they'll release the source for the T soon before the lack of thanks and donations gets you frustrated enough to quit doing this kind of stuff.
Joeseph Mother is offline  
Last edited by Joeseph Mother; November 29th, 2010 at 01:41 AM.
Reply With Quote
Old November 28th, 2010, 08:44 PM   #14 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for all the hard work on the oc kernel just had a question I know some devices cant handle the stress already at 860 is there a way a user like me could help out on maybe testing out something that is in the works of making more stable and more speed loving the speeds now dont get me wrong I always push the limits and im a flash aholic haha and would love to know how could I get into helping or getting me in the right direction on how to tinker and test this out more and post the result back to you I tend to get some free time and always like to help if I could get headed in the rite direction and again thanks for all the hard work and all your time :-)
prittyboy is offline  
Last edited by prittyboy; November 28th, 2010 at 08:47 PM.
Reply With Quote
Old November 29th, 2010, 09:11 AM   #15 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by prittyboy View Post
Thanks for all the hard work on the oc kernel just had a question I know some devices cant handle the stress already at 860 is there a way a user like me could help out on maybe testing out something that is in the works of making more stable and more speed loving the speeds now dont get me wrong I always push the limits and im a flash aholic haha and would love to know how could I get into helping or getting me in the right direction on how to tinker and test this out more and post the result back to you I tend to get some free time and always like to help if I could get headed in the rite direction and again thanks for all the hard work and all your time :-)
I remember you Didn't you nearly brick your phone already? :P

Anyway I'm working on quite a few nifty tweaks to GNM's 2.6.32.26 source Highest I got on Quadrant so far was 1312. Most of that was from the hardware accel but some is coming from kernel tweaks
zefie is offline  
Last edited by zefie; November 29th, 2010 at 09:22 AM.
Reply With Quote
Old November 29th, 2010, 10:44 AM   #16 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 793 Times in 168 Posts
Default

Quote:
Originally Posted by zefie View Post
I remember you Didn't you nearly brick your phone already? :P

Anyway I'm working on quite a few nifty tweaks to GNM's 2.6.32.26 source Highest I got on Quadrant so far was 1312. Most of that was from the hardware accel but some is coming from kernel tweaks
I forgot to enable the k extensions but that doesn't do much performance wise. Can you upload or pastebin your .config for your kernel?
getitnowmarketing is offline  
Reply With Quote
Old November 29th, 2010, 11:14 AM   #17 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by getitnowmarketing View Post
I forgot to enable the k extensions but that doesn't do much performance wise. Can you upload or pastebin your .config for your kernel?
k wasn't the way to go actually. vfp is important.. arm1136jf-s.. alot of source tweaks actually

OC tweaks:
min freq 98mhz (even lower power)
max freq 825mhz (unstable above this on the two devices I own)

Kernel Tweaks:

BFQ patch (I/O)

new "200 line miracle patch" auto scheduler patch (CPU Scheduler)

manual mods to arch/arm/Makefile (finer tuning for ARM1136JF-S)

removed ext* fs to save RAM since we don't have or really need old school apps2sd

disabled highmem (really? we have 512mb ram not 4gb LG :P)

disabled some kernel debugging (not all, breaks gpu stencil support for some reason)

O2 instead of Os (might be bigger but slightly faster, RAM overhead worth it)

I been working on this for the past 2 days straight (minus sleep). Most of that speed boost is actually from the thread suggesting hw accel in .prop file

But even so I think I got some speed boosts from the kernel it definitely appears snappier.

Clone your 2.6.32.26 github git repo and apply this patch to it, should work, until its updated anyway

http://dl.dropbox.com/u/11516160/Optimus%20Test%20Files/zefie_tweaks.patch.gz

And for those who want to try it (WARNING: BLEEDING EDGE! Just built this like 10 minutes ago)

http://dl.dropbox.com/u/11516160/Optimus%20Test%20Files/zefie_test_2010-11-29.zip

As for all the patches, just the way I am lol. I started tweaking kernels with the Samsung Moment. Samsung was new to Android and everything was severely unoptimized. My kernels were praised for being up to 30% faster than stock. I patched everything I could think of that would increase performance. I'm sort of a daredevil like that. I will sit here and patch and unpatch, boot and no-boot. Keep on testing til I'm satisfied.

Still not really satisfied with these tweaks as its only a slight increase. LG knows what they are doing, mostly.
zefie is offline  
Last edited by zefie; November 29th, 2010 at 11:22 AM.
Reply With Quote
Old November 29th, 2010, 12:10 PM   #18 (permalink)
Junior Member
 
Join Date: Nov 2010
Posts: 18
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Zefie,

Can I flash zefie_test_2010-11-29.zip over a default v1.2 ThundeROM install?
bloodbought is offline  
Reply With Quote
Old November 29th, 2010, 12:12 PM   #19 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by bloodbought View Post
Zefie,

Can I flash zefie_test_2010-11-29.zip over a default v1.2 ThundeROM install?
Should have no problems. It uses the same magic patcher as GNM's so it won't modify their ramdisk.

Make a backup just in case though.

Also keep in mind to see Quadrant in the 1000s you need to do this too
http://forum.androidcentral.com/lg-optimus-s/45211-overclocking-3.html#post446946

Honestly the above hack just enables hardware decoding of media, so Quadrant goes pretty fast on there, thus giving a false positive of a high score. You won't see much special in linpack, although it is a bit higher
zefie is offline  
Last edited by zefie; November 29th, 2010 at 12:16 PM.
Reply With Quote
Old November 29th, 2010, 12:33 PM   #20 (permalink)
Junior Member
 
Join Date: Nov 2010
Posts: 18
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by zefie View Post
Should have no problems. It uses the same magic patcher as GNM's so it won't modify their ramdisk.

Make a backup just in case though.

Also keep in mind to see Quadrant in the 1000s you need to do this too
overclocking - Page 3 - Android Forums

Honestly the above hack just enables hardware decoding of media, so Quadrant goes pretty fast on there, thus giving a false positive of a high score. You won't see much special in linpack, although it is a bit higher
Thanks. Can you give me the adb commands I need to edit build.prop and push it back to the phone?
bloodbought is offline  
Reply With Quote
sponsored links
Old November 29th, 2010, 12:34 PM   #21 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by bloodbought View Post
Thanks. Can you give me the adb commands I need to edit build.prop and push it back to the phone?
Easiest way is from recovery

adb reboot recovery

adb shell mount /system
adb pull /system/build.prop

(edit it)

adb push build.prop /system/build.prop
adb shell reboot
zefie is offline  
Reply With Quote
Old November 29th, 2010, 01:20 PM   #22 (permalink)
Junior Member
 
Join Date: Nov 2010
Posts: 18
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by zefie View Post
Easiest way is from recovery

adb reboot recovery

adb shell mount /system
adb pull /system/build.prop

(edit it)

adb push build.prop /system/build.prop
adb shell reboot
Thanks zefie. When editing build.prop I noticed jit was not enabled:

dalvik.vm.execution-mode=int:fast

Shouldnt that be:
dalvik.vm.execution-mode=int:jit ??
bloodbought is offline  
Reply With Quote
Old November 29th, 2010, 01:48 PM   #23 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by bloodbought View Post
Thanks zefie. When editing build.prop I noticed jit was not enabled:

dalvik.vm.execution-mode=int:fast

Shouldnt that be:
dalvik.vm.execution-mode=int:jit ??
unless you installed GNM's version which overrides this with /data/local.prop. but it wouldn't hurt.
zefie is offline  
Reply With Quote
Old November 29th, 2010, 01:51 PM   #24 (permalink)
Junior Member
 
Join Date: Nov 2010
Posts: 18
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by zefie View Post
unless you installed GNM's version which overrides this with /data/local.prop. but it wouldn't hurt.
Just had a default thunderom v1.2 install without GNM's kernel.

Went from 900~ in quadrant to 1117 by enabling it.
bloodbought is offline  
Reply With Quote
Old November 29th, 2010, 10:18 PM   #25 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey zefie lol ya thats me I actually got hook up on a palm pre as a backup just in case I brake this one cuz I can't stop messing with that bleeding edge of technology haha but sweet I tryed out the kernel you posted but it froze at start up but is there something you say on the works that hooks this phone to a rocket lol and one other question is there a way to change or manipulate the hw accel .prop without a pc could I do it off the phone with terminal app? Thanks for the great help and contribution you guys have done for everyone wish I knew more so I could do the same :-)
prittyboy is offline  
Reply With Quote
Old November 29th, 2010, 10:52 PM   #26 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by prittyboy View Post
Hey zefie lol ya thats me I actually got hook up on a palm pre as a backup just in case I brake this one cuz I can't stop messing with that bleeding edge of technology haha but sweet I tryed out the kernel you posted but it froze at start up but is there something you say on the works that hooks this phone to a rocket lol and one other question is there a way to change or manipulate the hw accel .prop without a pc could I do it off the phone with terminal app? Thanks for the great help and contribution you guys have done for everyone wish I knew more so I could do the same :-)
Slow down, I'm the one who gets 30 PM in my inbox if you brick it again lol
zefie is offline  
Reply With Quote
Old November 30th, 2010, 03:35 AM   #27 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ya sorry about the crazy messages I promis ive learned lol im tryimg more to learn more nd I have been flash for while but trying to learn the inner workings and how to do this myself or to help out more if help i could get steired into the right deriction lol :-)
prittyboy is offline  
Reply With Quote
Old November 30th, 2010, 04:33 AM   #28 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by prittyboy View Post
Ya sorry about the crazy messages I promis ive learned lol im tryimg more to learn more nd I have been flash for while but trying to learn the inner workings and how to do this myself or to help out more if help i could get steired into the right deriction lol :-)
well at least you know how to start over again so if you mess up just go back and start over

Back on the topic of kernels, my latest test is pretty fast but for some reason lags like there is no tomorrow when its activating or deactivating wifi. Hum.
zefie is offline  
Reply With Quote
Old November 30th, 2010, 04:38 AM   #29 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Edit: Sorry for the double post I meant to hit edit.

1395 with new kernel. not the highest i seen but close. I dont think we are gonna get much higher without bypassing or somehow speed-enhancing the NAND. The NAND is our weak point. 3.5mB/s average WRITE, 7.5mB/s average READ.

What we need to do is find a way to install the ENTIRE SYSTEM on an SD card. If we ran the entire OS from the SD card, and just used the NAND for Boot, Recovery and RADIO, this could fly. Especially with a class 10 microSD!

Most of the speedups I seen for Samsung Galaxy S were from file system improvements. OneNAND is nice and fast, I played with it on the Moment. Sadly though, we only have a crappy Micron NAND.

That and I need to find out why the wireless loading and unloading lags so much.
zefie is offline  
Reply With Quote
Old November 30th, 2010, 08:46 AM   #30 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ya i had the galaxy s captivate and that baby flew with the lag fix and a parttioned sdcard but I bet you been pulling your hair out lol hope you happen to find whats going on ? And do you know what happend with the kernel you first uploaded cuz I still wanna try it out hum?
prittyboy is offline  
Last edited by prittyboy; November 30th, 2010 at 08:49 AM.
Reply With Quote
sponsored links
Old November 30th, 2010, 09:36 AM   #31 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by prittyboy View Post
Ya i had the galaxy s captivate and that baby flew with the lag fix and a parttioned sdcard but I bet you been pulling your hair out lol hope you happen to find whats going on ? And do you know what happend with the kernel you first uploaded cuz I still wanna try it out hum?
It's still there?
zefie is offline  
Reply With Quote
Old November 30th, 2010, 12:28 PM   #32 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 793 Times in 168 Posts
Default

Zefie great work on turning on the armv6 instruction set on kernel vs the armv5vfp. I used that similar method in userspace but didn't even think of it for kernel. Can you link the commit on the scheduler where you got it from only I want to bring over some of your patch and also use it on other devices so I would like the commits so I can use it seperately instead of an all in one patch.
getitnowmarketing is offline  
Reply With Quote
Old November 30th, 2010, 01:06 PM   #33 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 793 Times in 168 Posts
Default

Another small tip your 98304 is wrong. The pll setup for optimus is

pll0_960_pll1_245_pll2_1200

the one you ganked that from has pll setup of

pll0_196_pll1_960_pll2_1200
Code:
 
struct clkctl_acpu_speed {
    unsigned int    use_for_scaling;
    unsigned int    a11clk_khz;
    int        pll;
    unsigned int    a11clk_src_sel;
    unsigned int    a11clk_src_div;
    unsigned int    ahbclk_khz;
    unsigned int    ahbclk_div;
    int        vdd;
    unsigned int     axiclk_khz;
your entry of
{ 1, 98304, ACPU_PLL_0, 4, 1, 98304, 0, 3, 49152 }

lets label these as
{ 1 a, 98304 b, ACPU_PLL_0 c, 4 d, 1 e, 98304 f, 0 g, 3 h, 49152 i }

a. 1 means make freq scalable ie. basically on. 0 is off

b. 98304 is the freq khz (this is only used for human eyes and in table as its not the actual freq) true cpu_freq is defined in step e

c. acpu_pll_0 is the pll you are using

d. 4 is the src sel which is a11clk_src 4 which is pll 0 whose clk is 960mhz

e. (this line determines the actual freq) 1 is the divider which is x+1 which will mean a divider of 2 against the pllclk you are using in this case pll0 which runs at 960mhz on this phone. So that would be 960/2 = 480mhz or 480000khz

f. the 93804 is the ahbclk (like the bus in pc overclocking) this freq is only for human eyes and doesn't represent the actual value. The actual calculation for it is below

g. divider is 0 so its x+1 which would be a divider of one. With your actual freq of 480000khz your entry in line above is actually 480000khz as being read by machine.

h. the 3 is the vdd level for voltage 3 is min stable voltage it seems. 3-6 are same voltage and 7 is max voltage

below is what they actually mean but they aren't labeled as such in code aurora source.
Code:
Levels 3-6 all correspond to 1.2V, level 7 corresponds to 1.325V. */
  enum {
          VDD_0 = 0,
          VDD_1 = 1,
          VDD_2 = 2,
          VDD_3 = 3,
          VDD_4 = 3,
          VDD_5 = 3,
          VDD_6 = 3,
          VDD_7 = 7,
          VDD_END
  };
i. the 49152 is the axiclk_freq which max is 200mhz on msm7x27

your entry is actually running an alternate 480mhz with the ahbbus way overclocked and the axiclk too low.

I case you were wondering this line is changing the above divider rules for the overclocking but only at freq above 600mhz.

Code:
a11_div = hunt_s->a11clk_src_div;
 
 
    if(hunt_s->a11clk_khz>600000) {
                    a11_div=0;
                    writel(hunt_s->a11clk_khz/19200, PLLn_L_VAL(0));
                    udelay(50);
            }
for example
{ 1, 864000, ACPU_PLL_0, 4, 0, 216000, 3, 7, 122880 },

its taking 864000/19200 = 45 and writing 45 using the ACPU_PLL_TCXO clk multiplier which is 19200. This results in underclocking pll0 to 864000khz and dividing it by a11_div=0 which is x+1 so its using pll0 at 8640000/1 instead of using the normal 960000khz/ (divider in freq table) of pll0. Its actually underclocking the pll0 which normally runs at a static 960mhz.
getitnowmarketing is offline  
Last edited by getitnowmarketing; November 30th, 2010 at 02:35 PM.
Reply With Quote
Old November 30th, 2010, 02:28 PM   #34 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

I actually fixed this later on. Now I'm using:

{ 1, 98304, ACPU_PLL_1, 1, 1, 98304, 0, 3, 61440 },

regarding b... I learned that when I failed to overclock the Samsung Moment. Though I had many people believing (including myself for a while) that the little 800mhz processor was running at 1.6ghz lol


Here are the indiviual patches. Not sure what I'm gonna use yet.

http://dl.dropbox.com/u/11516160/Optimus%20Test%20Files/patches.7z

Other interesting things to note.. If you enable lzma ramdisk, you can subsitute an lzma compressed ramdisk instead of gzip (install xz). I'm using a custom ramdisk on my phone with the modules on the ramdisk and /system symlinking to them.

Each time I compile a kernel I generate my custom boot.img for me, and the generic update.zip for everyone else. That one does NOT touch your ramdisk. Though the option to use lzma with my kernel is still there.

UBIFS is enabled on my kernel but the msm_nand won't accept ubiformat

Just experimenting like hell to speed up the phone. the slow NAND is the weakest point right now.
zefie is offline  
Last edited by zefie; November 30th, 2010 at 02:37 PM.
Reply With Quote
Old November 30th, 2010, 03:07 PM   #35 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 793 Times in 168 Posts
Default

Quote:
Originally Posted by zefie View Post
I actually fixed this later on. Now I'm using:

{ 1, 98304, ACPU_PLL_1, 1, 1, 98304, 0, 3, 61440 },

regarding b... I learned that when I failed to overclock the Samsung Moment. Though I had many people believing (including myself for a while) that the little 800mhz processor was running at 1.6ghz lol
that above is 125mhz there is no way to get 98304mhz with the dividers on 960, 245, 1200. You could underclock pll1 to 196mhz then divide by 2 but that will probably introduce instability on that clock for your device and will require writing similar code to oc patch for it.

pll1 is static clk of 245mhz/ 2 = 122.5mhz cpu_freq and ahb is 122.5mhz too in your code.

I have an archos tablet that uses ubifs and they had to support it in ramdisk and used /system on read-only cramfs so you can't mod /system.

FWIW I think nand does better performance than ubifs.

Its refreshing to see someone other than myself do some work on LG cdma androids. They represent a good value for the money and can be enhanced alot in the dev community.
getitnowmarketing is offline  
Last edited by getitnowmarketing; November 30th, 2010 at 03:22 PM.
Reply With Quote
Old November 30th, 2010, 03:21 PM   #36 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

So what does this do?

{ 1, 96000, ACPU_PLL_0, 1, 9, 48000, 1, 2, 61440 },

Edit: whatever it is, sure is slow!!! i locked it at 96mhz.. it didnt crash persay but it might as well have. UI is non-responsive. shell works, but seems to be ignoring my request to scale back up lol

did manage to recover though

might be too low, doesnt like to scale up if its under load sometimes
zefie is offline  
Last edited by zefie; November 30th, 2010 at 03:46 PM.
Reply With Quote
Old November 30th, 2010, 04:32 PM   #37 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Latest test kernel:
http://dl.dropbox.com/u/11516160/Optimus%20Test%20Files/zefie_test_2010-11-30_2.zip

removed 96000/98mhz failed experiments
lowest freq: 122880
readded 844mhz and 864mhz

slub memory
ext2/3/4 readded
ubifs removed
re-added autosched patch
removed bfq
enforced -O3 and -mfpu=vfp and -mfloat-abi=hard
enforced -mtune=arm1136jf-s
new toolchain (codesorcery gcc-4.5.1)
lzma ramdisk support
(wifi module has -Os due to bad code by broadcom)
removed remnant ethernet driver (?? perhaps from LGE's test board???)
COMPLETELY disabled debug in kernel (it wasn't what broken stencils, they work still)

probably more stuff I forgot

Kernel Source Tarball:
http://dl.dropbox.com/u/11516160/Optimus%20Test%20Files/thunderc_kernel_2.6.32.26_2010-11-30.tar.xz

(if you get 404, its still uploading, try again in 5 min)

*passes out*
zefie is offline  
Last edited by zefie; November 30th, 2010 at 04:58 PM.
Reply With Quote
Old November 30th, 2010, 07:00 PM   #38 (permalink)
Junior Member
 
Join Date: Nov 2010
Posts: 18
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by zefie View Post
Latest test kernel:
http://dl.dropbox.com/u/11516160/Optimus%20Test%20Files/zefie_test_2010-11-30_2.zip

removed 96000/98mhz failed experiments
lowest freq: 122880
readded 844mhz and 864mhz

slub memory
ext2/3/4 readded
ubifs removed
re-added autosched patch
removed bfq
enforced -O3 and -mfpu=vfp and -mfloat-abi=hard
enforced -mtune=arm1136jf-s
new toolchain (codesorcery gcc-4.5.1)
lzma ramdisk support
(wifi module has -Os due to bad code by broadcom)
removed remnant ethernet driver (?? perhaps from LGE's test board???)
COMPLETELY disabled debug in kernel (it wasn't what broken stencils, they work still)

probably more stuff I forgot

Kernel Source Tarball:
http://dl.dropbox.com/u/11516160/Optimus%20Test%20Files/thunderc_kernel_2.6.32.26_2010-11-30.tar.xz

(if you get 404, its still uploading, try again in 5 min)

*passes out*
Running this with ThundeROM 1.3. 1255 in quadrent @ 825mhz. Loving it!
bloodbought is offline  
Reply With Quote
Old December 1st, 2010, 12:02 AM   #39 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

My Optimus S can't handle above 806
Is there anything I can do so I can clock higher?
olmos.lalo is offline  
Reply With Quote
Old December 1st, 2010, 12:34 AM   #40 (permalink)
New Member
 
Join Date: Dec 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

There are sources of P500 (Optimus One) kernel. Could you please port this fixes to it?
GK-Sempai is offline  
Reply With Quote
sponsored links
Old December 1st, 2010, 08:53 AM   #41 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

New Kernel:

Same as previous one except:
Min freq: 245 as by Qualcomm standard due to no real power saving from 122mhz.
Max freq: 600 in kernel, for those who couldn't boot with my previous ones set to 787.

Everything else is the same.
(You can still overclock manually with SetCPU or a custom ramdisk)

Patch (apply to source released above):
Code:
--- config.old  2010-11-30 16:52:02.000000000 -0500
+++ .config     2010-12-01 09:35:50.000000000 -0500
@@ -319,8 +319,8 @@ CONFIG_MSM_RPC_OEM_RAPI=y
 CONFIG_MSM_RPCSERVER_HANDSET=y
 CONFIG_MSM_RMT_STORAGE_CLIENT=y
 CONFIG_MSM_CPU_FREQ_SET_MIN_MAX=y
-CONFIG_MSM_CPU_FREQ_MAX=787200
-CONFIG_MSM_CPU_FREQ_MIN=122880
+CONFIG_MSM_CPU_FREQ_MAX=600000
+CONFIG_MSM_CPU_FREQ_MIN=245760
 # CONFIG_MSM_HW3D is not set
 CONFIG_MSM_ADSP=y
 CONFIG_ADSP_RPC_VER=0x30002
Kernel:
http://dl.dropbox.com/u/11516160/Optimus%20Test%20Files/zefie_test_2010-12-01.zip
zefie is offline  
Last edited by zefie; December 1st, 2010 at 09:00 AM.
Reply With Quote
Old December 7th, 2010, 04:28 AM   #42 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 14
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 5 Times in 3 Posts
Default

Source for the T is finally up too.
Open Source Detail
LGP509TN
Please please please please
Joeseph Mother is offline  
Reply With Quote
Old December 13th, 2010, 04:16 AM   #43 (permalink)
New Member
 
Join Date: Jul 2010
Posts: 14
 
Device(s):
Carrier: Not Provided

Thanks: 4
Thanked 5 Times in 3 Posts
Default

Quote:
Originally Posted by zefie View Post
(You can still overclock manually with SetCPU or a custom ramdisk)
How do you set your overclock in the ramdisk? Not that I can put the ramdisk into the boot.img correctly anyway, I think I need to configure an offset because it stops after the lg logo every time, I keep trying to set init.rc to mount mmcblk0p2 /sd-ext as ext4 on boot, and then symlink /data to it for speed(I always heard there weren't enough writes to /system to make changing it worthwhile).
Joeseph Mother is offline  
Reply With Quote
Old December 14th, 2010, 04:31 PM   #44 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by Joeseph Mother View Post
How do you set your overclock in the ramdisk? Not that I can put the ramdisk into the boot.img correctly anyway, I think I need to configure an offset because it stops after the lg logo every time, I keep trying to set init.rc to mount mmcblk0p2 /sd-ext as ext4 on boot, and then symlink /data to it for speed(I always heard there weren't enough writes to /system to make changing it worthwhile).
in the root of the ramdisk look for something like init*qcom*sh

I think its like init.qcom.sh or init.rc.qcom.sh but it ends with ".sh" and has "qcom" and "init" in it. the last group in that file is what controls the optimus S, so change the 600000 to your stable max
zefie is offline  
Reply With Quote
The Following User Says Thank You to zefie For This Useful Post:
Joeseph Mother (December 14th, 2010)
Old December 23rd, 2010, 02:15 PM   #45 (permalink)
New Member
 
Join Date: Dec 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

can you help me out on this overclocking of lg optimus i am not to bright but i am determined
pjpk1957 is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Developer Forums > Getitnowmarketing
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 06:54 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.