Welcome to XDA

Search to go directly to your device's forum

Register an account

Unlock full posting privileges

Ask a question

No registration required
Post Reply

[KERNEL][OC][V3] Fandroid Kernel V3 with dynamic cpu overclock

OP zhy0919

Announcement from zhy0919: Kernel source: https://github.com/FandroidRelease/android_kernel_sony_u8500/tree/overclock Module code:private
3rd September 2014, 02:54 PM   |  #21  
Garcia98's Avatar
Senior Member
Flag Salamanca (Spain)
Thanks Meter: 930
 
918 posts
Join Date:Joined: Mar 2013
Donate to Me
More
Quote:
Originally Posted by zhy0919

Really thanks... By the way where can I find documentations about novathor CPUs? And how to modify u8500 cpu's pll register(what value can be set and why)? Thanks for your answer!!

Well, since ST-Ericsson disappeared is really hard to find documentation about NovaThor platform.

You can look at this commit as an example about how to change frequency: https://github.com/Garcia98/android_...169873964b2fce

But if you change a lot the frequency you'll also have to change voltage values.

BTW, you can check ARM PLL value at /d/clk/show
4th September 2014, 01:39 PM   |  #22  
OP Member
Thanks Meter: 42
 
43 posts
Join Date:Joined: Mar 2013
Quote:
Originally Posted by Garcia98

Well, since ST-Ericsson disappeared is really hard to find documentation about NovaThor platform.

You can look at this commit as an example about how to change frequency: https://github.com/Garcia98/android_...169873964b2fce

But if you change a lot the frequency you'll also have to change voltage values.

BTW, you can check ARM PLL value at /d/clk/show

Thanks
As I know db8500 cpufreq initialization is done after the basic kernel init. So it seems that I can change the value in a kernel module by calculating the db8500_prcmu_write address. Am I right?
4th September 2014, 03:49 PM   |  #23  
Garcia98's Avatar
Senior Member
Flag Salamanca (Spain)
Thanks Meter: 930
 
918 posts
Join Date:Joined: Mar 2013
Donate to Me
More
Quote:
Originally Posted by zhy0919

Thanks
As I know db8500 cpufreq initialization is done after the basic kernel init. So it seems that I can change the value in a kernel module by calculating the db8500_prcmu_write address. Am I right?

Well, the initialitazion of DB8500 is the first thing in boot process, you maybe can change ARM PLL register with a module, but as the function used is defined in a GPLv2 module your module has to be GPL'd too
The Following User Says Thank You to Garcia98 For This Useful Post: [ View ]
4th September 2014, 05:12 PM   |  #24  
OP Member
Thanks Meter: 42
 
43 posts
Join Date:Joined: Mar 2013
Quote:
Originally Posted by Garcia98

Well, the initialitazion of DB8500 is the first thing in boot process, you maybe can change ARM PLL register with a module, but as the function used is defined in a GPLv2 module your module has to be GPL'd too

Can I just calculate the address of the function and call it to avoid GPL problem? Thanks
4th September 2014, 09:20 PM   |  #25  
Garcia98's Avatar
Senior Member
Flag Salamanca (Spain)
Thanks Meter: 930
 
918 posts
Join Date:Joined: Mar 2013
Donate to Me
More
Quote:
Originally Posted by zhy0919

Can I just calculate the address of the function and call it to avoid GPL problem? Thanks

If you call a function under GPL your module have to be under GPL
5th September 2014, 02:00 PM   |  #26  
OP Member
Thanks Meter: 42
 
43 posts
Join Date:Joined: Mar 2013
Quote:
Originally Posted by Garcia98

If you call a function under GPL your module have to be under GPL

What if:
A GPL module which redirect the GPL function to a non-GPLfunction
Another private source module which calls the non-GPL function in GPL module

I'm only trying to make my source private because of some algorithms...

Thanks!
5th September 2014, 02:08 PM   |  #27  
Garcia98's Avatar
Senior Member
Flag Salamanca (Spain)
Thanks Meter: 930
 
918 posts
Join Date:Joined: Mar 2013
Donate to Me
More
Quote:
Originally Posted by zhy0919

What if:
A GPL module which redirect the GPL function to a non-GPLfunction
Another private source module which calls the non-GPL function in GPL module

I'm only trying to make my source private because of some algorithms...

Thanks!

Put a code example about that situation
5th September 2014, 02:28 PM   |  #28  
OP Member
Thanks Meter: 42
 
43 posts
Join Date:Joined: Mar 2013
Quote:
Originally Posted by Garcia98

Put a code example about that situation

in module module_gpl.ko

int export_func_test(int arg)
{
return gpl_function(arg);
}
EXPORT_SYMBOL(export_func_test);


then call it in another private module
5th September 2014, 10:25 PM   |  #29  
Garcia98's Avatar
Senior Member
Flag Salamanca (Spain)
Thanks Meter: 930
 
918 posts
Join Date:Joined: Mar 2013
Donate to Me
More
Quote:
Originally Posted by zhy0919

in module module_gpl.ko

int export_func_test(int arg)
{
return gpl_function(arg);
}
EXPORT_SYMBOL(export_func_test);


then call it in another private module

It's the same
The Following User Says Thank You to Garcia98 For This Useful Post: [ View ]
8th September 2014, 11:55 AM   |  #30  
Member
Flag Munich
Thanks Meter: 4
 
41 posts
Join Date:Joined: Jun 2014
How can i install this kernel?

Sent from my Xperia P using XDA Free mobile app

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes