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 MODULE] Extra modules pack v0.1.3 (feat. overclock) [OMAP4 kernel 3.0.8]

OP whirleyes

6th July 2012, 12:17 PM   |  #1  
whirleyes's Avatar
OP Retired Recognized Developer
Thanks Meter: 1,847
 
832 posts
Join Date:Joined: Aug 2007
Donate to Me
More
Some extra kernel modules for you & me.

Modules :
Quote:

filesystem

  • ntfs.ko (read/write support)
  • cifs.ko (with extra attributes)
kernel hacking
  • symsearch.ko (Unexported symbol finder by Skrilax_CZ)
CPU scaling governor (back ported from other dev)
  • cpufreq_interactiveX.ko [@] (interactiveX V2 governor by imoseyon)
    early suspend support and hotplugging
  • cpufreq_hotplugX.ko [@] (hotplugX governor by imoseyon)
    early suspend support and tweaks
  • cpufreq_smartass2.ko [@] (SmartassV2 governor by erasmux)
  • cpufreq_pegasusq.ko [@] (Samsung multi-core governor)
    based on modification done by Gokhanmoral
  • cpufreq_boostedASSv2.ko [@] (a modified smartassv2 governor)
    ported from BMc08GT
CPU/GPU frequency control
  • cpu-control.ko [@] (Tweak CPU frequency & voltage to your like)
    my 1st kernel module. based on milestone overclock & opptimizer.
I/O scheduler
  • sio-iosched.ko (Simple IO scheduler)
    based on Noop, Deadline and V(R) IO schedulers. In android world, simple is better
modules with [@] mark requires symsearch.ko to operate

These kernel module will work for most Motorola omap4 device. (kernel 3.0.8 only)

Disclaimer : I don't write all of these modules. Only make a few changes/tweak for it to work on our device. Enjoy!
Kernel version : 3.0.8
Kernel source : 67.42.17.XT910S.SKT.en.KR
Compiler setup : CodeSourcerey arm-2012.03-56-arm-none-eabi (-O2 optimization)
Build revision : Project Lense build *.*
Change logs:
Quote:

0.1.1
- Add Simple I/O scheduler.
0.1.2
- Recompile with -O2 flag. I notice some instability when using -O3 flag
- Tweaked sio scheduler
- Add tweaked pegasusq governor.
0.1.3
- Add cpu overclock/underclock module
- Add boostedASSv2 governor

Source code :Download link :
  • extra_kernel_modules_0.1.3.zip - contains all the modules
  • init.d_n_governor_installer_0.1.3.zip - optional. init.d installer (load all modules to memory on startup).

Update : Add a preview of Tweakerz app.
- Include all kernel module. Module are loaded from app storage.(no install /alter system partition.)
- Load/unload kernel module on-the-fly (No save setting or set on boot option)
- Set CPU voltage/freq via GUI (No persist option yet)[/LIST]
Last edited by whirleyes; 27th November 2012 at 10:25 AM.
The Following 77 Users Say Thank You to whirleyes For This Useful Post: [ View ]
6th July 2012, 12:18 PM   |  #2  
whirleyes's Avatar
OP Retired Recognized Developer
Thanks Meter: 1,847
 
832 posts
Join Date:Joined: Aug 2007
Donate to Me
More
Easy Install method: (For init.d)
Quote:

  1. Reboot to recovery
  2. Install extra_kernel_modules_0.1.zip
  3. Install init.d_n_governor_installer.zip (Thanks to core720)

Install guide for adding init.d script via Script Manager - SManager app
Quote:

1.Extract all *.ko files from extra_kernel_modules_0.1.2.zip to /system/lib/modules
2.Open Script Manager, Create new script / modify existing script

Code:
#!/system/bin/sh
insmod /system/lib/modules/symsearch.ko
insmod /system/lib/modules/cpufreq_interactiveX.ko
insmod /system/lib/modules/cpufreq_hotplugX.ko
insmod /system/lib/modules/cpufreq_smartass2.ko
insmod /system/lib/modules/cpufreq_pegasusq.ko
insmod /system/lib/modules/sio-iosched.ko
3.Save to /system/etc/init.d/

Q: How to load a cpufreq governor
Quote:

1.Load symsearch.ko
2.Load your choice of governor
3.Enable it

Code:
insmod /system/lib/modules/symsearch.ko
insmod /system/lib/modules/cpufreq_interactiveX.ko
echo interactivex > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Q: What is the best cpu-freq governor
Quote:

maybe this will help you choose/tweak

Q: How to load cpu frequency/voltage (underclock/overclock)
Quote:

1.Load symsearch.ko
2.Load cpu_control.ko

Code:
insmod /system/lib/modules/symsearch.ko
insmod /system/lib/modules/cpu_control.ko

Q: How to change cpu frequency & voltage
Quote:

echo id frequency(Mhz) voltage(mV) > /proc/cpu_control/tweak_cpu
example :

Code:
echo 0 196 980 > /proc/cpu_control/tweak_cpu
echo 1 500 1195 > /proc/cpu_control/tweak_cpu
echo 2 750 1320 > /proc/cpu_control/tweak_cpu
echo 3 1000 1388 > /proc/cpu_control/tweak_cpu
echo 4 1350 1410 > /proc/cpu_control/tweak_cpu
ICS kernel default voltage&frequency table
Code:
Id      Freq    Volt(mV)
0       300     1025
1       600     1200
2       800     1325
3       1000    1388
4       1200    1398
GB kernel default voltage&frequency table
Code:
Id      Freq    Volt(mV)
0       300     1025
1       600     1200
2       800     1313
3       1000    1374
4       1200    1375
** voltage min : 830mV, max : 1410mV

More/Details about cpu_control.ko module
Quote:

  • To view ICS default frequency-voltage table
    Code:
    cat /proc/cpu_control/opp_table_default
  • To view current frequency-voltage table
    Code:
    cat /proc/cpu_control/opp_table_current
  • To view current CPU & GPU frequency
    Code:
    cat /proc/cpu_control/frequency_current

Last edited by whirleyes; 27th July 2012 at 04:29 PM.
The Following 18 Users Say Thank You to whirleyes For This Useful Post: [ View ]
6th July 2012, 12:28 PM   |  #3  
farhanito's Avatar
Senior Member
Flag Jakarta
Thanks Meter: 223
 
871 posts
Join Date:Joined: Aug 2010
More
Quote:
Originally Posted by whirleyes

cpufreq governor install method
1.Load symsearch.ko
2.Load your choice of governor
3.Enable it

Code:
insmod /system/lib/modules/symsearch.ko
insmod /system/lib/modules/cpufreq_interactiveX.ko
echo interactivex > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor

Will this survive a reboot Whirleyes?
6th July 2012, 12:31 PM   |  #4  
whirleyes's Avatar
OP Retired Recognized Developer
Thanks Meter: 1,847
 
832 posts
Join Date:Joined: Aug 2007
Donate to Me
More
NO.. use init.d or custom init to have it persist.

I've upload new version of bootmenu with 2nd-init support today.
Just waiting for Google Play to start distributing it
The Following 5 Users Say Thank You to whirleyes For This Useful Post: [ View ]
6th July 2012, 01:36 PM   |  #5  
J.Y.Daddy's Avatar
Senior Member
Flag Seoul
Thanks Meter: 924
 
559 posts
Join Date:Joined: Jul 2011
More
Awesome!
"67.42.17.XT910S.SKT.en.KR" is our Razr(Korea Razr).
is that kernel source has been opened?

Thanks for your work!
I'll try to test on my razr.
6th July 2012, 02:43 PM   |  #6  
whirleyes's Avatar
OP Retired Recognized Developer
Thanks Meter: 1,847
 
832 posts
Join Date:Joined: Aug 2007
Donate to Me
More
Quote:
Originally Posted by J.Y.Daddy

Awesome!
"67.42.17.XT910S.SKT.en.KR" is our Razr(Korea Razr).
is that kernel source has been opened?

Thanks for your work!
I'll try to test on my razr.

see this thread for all link .. ICS source code is now available!
The Following 2 Users Say Thank You to whirleyes For This Useful Post: [ View ]
6th July 2012, 04:08 PM   |  #7  
core720's Avatar
Senior Member
Thanks Meter: 1,745
 
1,460 posts
Join Date:Joined: Feb 2012
Donate to Me
good work
6th July 2012, 05:04 PM   |  #8  
core720's Avatar
Senior Member
Thanks Meter: 1,745
 
1,460 posts
Join Date:Joined: Feb 2012
Donate to Me
I've created an installer that includes support for automatic load init.d modules so they can select with SetCPU or other similar program....
Attached Files
File Type: zip extra_kernel_modules_0.1.zip - [Click for QR Code] (855.0 KB, 819 views)
The Following 3 Users Say Thank You to core720 For This Useful Post: [ View ]
6th July 2012, 05:39 PM   |  #9  
whirleyes's Avatar
OP Retired Recognized Developer
Thanks Meter: 1,847
 
832 posts
Join Date:Joined: Aug 2007
Donate to Me
More
Quote:
Originally Posted by core720

I've created an installer that includes support for automatic load init.d modules so they can select with SetCPU or other similar program....

Thanks.. but to be more efficient, I would like to have them separated.

1. User install my module pack. (extra_kernel_modules_*.zip)
2. User install init.d loader. (init.d_n_governor_installer.zip
The Following User Says Thank You to whirleyes For This Useful Post: [ View ]
6th July 2012, 05:49 PM   |  #10  
Member
Flag Toeldo, Ohio
Thanks Meter: 13
 
90 posts
Join Date:Joined: Apr 2010
More
Quote:
Originally Posted by core720

I've created an installer that includes support for automatic load init.d modules so they can select with SetCPU or other similar program....

I tried to use your flashable zip. It doesn't work, but I found that after I chmod 777 the 90module in the init.d folder it works flawlessly. So I think you need to add that set permissions to your script.

*edited for grammar issues. It was bugging me that my You're and Your was wrong.
Last edited by robertwhitten87; 6th July 2012 at 05:54 PM.

The Following User Says Thank You to robertwhitten87 For This Useful Post: [ View ]
Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes