FORUMS

CloudPlayer: DIY HiFi Music Streaming Solution

In our Helpful Guide to Music Streaming Services, we mentioned several different services … more

Optimize Battery Life with This Useful App

Battery life is an important aspect of your smartphone, especially if you use it for more … more

The OnePlus 2 & The Year of Smartphone Compromises

We are very close to entering the last third of 2015, and we have now seen many of … more

OnePlus 2 Teardown, Major Android Vulnerability – XDA TV

The OnePlus 2 has been officially released. That and much more news is … more

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

45 posts
Thanks Meter: 49
 
By zhy0919, Member on 31st August 2014, 06:14 AM
Post Reply Subscribe to Thread Email Thread
Announcement from zhy0919: Kernel source: https://github.com/FandroidRelease/android_kernel_sony_u8500/tree/overclock Module code:private
3rd September 2014, 01:54 PM |#21  
Garcia98's Avatar
Senior Member
Flag Salamanca (Spain)
Thanks Meter: 1,409
 
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, 12:39 PM |#22  
OP Member
Thanks Meter: 49
 
More
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, 02:49 PM |#23  
Garcia98's Avatar
Senior Member
Flag Salamanca (Spain)
Thanks Meter: 1,409
 
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, 04:12 PM |#24  
OP Member
Thanks Meter: 49
 
More
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, 08:20 PM |#25  
Garcia98's Avatar
Senior Member
Flag Salamanca (Spain)
Thanks Meter: 1,409
 
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, 01:00 PM |#26  
OP Member
Thanks Meter: 49
 
More
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, 01:08 PM |#27  
Garcia98's Avatar
Senior Member
Flag Salamanca (Spain)
Thanks Meter: 1,409
 
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, 01:28 PM |#28  
OP Member
Thanks Meter: 49
 
More
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, 09:25 PM |#29  
Garcia98's Avatar
Senior Member
Flag Salamanca (Spain)
Thanks Meter: 1,409
 
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, 10:55 AM |#30  
Member
Flag Munich
Thanks Meter: 9
 
More
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