Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,728,773 Members 53,129 Now Online
XDA Developers Android and Mobile Development Forum

[KERNEL MODULE] Extra modules pack v0.1.3 (feat. overclock) [OMAP4 kernel 3.0.8]

Tip us?
 
whirleyes
Old
(Last edited by whirleyes; 27th November 2012 at 09:25 AM.)
#1  
whirleyes's Avatar
Retired Recognized Developer - OP
Thanks Meter 1825
Posts: 832
Join Date: Aug 2007

 
DONATE TO ME
Prompt [KERNEL MODULE] Extra modules pack v0.1.3 (feat. overclock) [OMAP4 kernel 3.0.8]

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]
those were the days...
The Following 77 Users Say Thank You to whirleyes For This Useful Post: [ Click to Expand ]
 
whirleyes
Old
(Last edited by whirleyes; 27th July 2012 at 03:29 PM.)
#2  
whirleyes's Avatar
Retired Recognized Developer - OP
Thanks Meter 1825
Posts: 832
Join Date: Aug 2007

 
DONATE TO ME
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
those were the days...
The Following 18 Users Say Thank You to whirleyes For This Useful Post: [ Click to Expand ]
 
farhanito
Old
#3  
farhanito's Avatar
Senior Member
Thanks Meter 222
Posts: 850
Join Date: Aug 2010
Location: Jakarta
Quote:
Originally Posted by whirleyes View Post
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?
______________________________________
Spyder --> EndeavorU --> Mako --> d802
 
whirleyes
Old
#4  
whirleyes's Avatar
Retired Recognized Developer - OP
Thanks Meter 1825
Posts: 832
Join Date: Aug 2007

 
DONATE TO ME
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
those were the days...
The Following 5 Users Say Thank You to whirleyes For This Useful Post: [ Click to Expand ]
 
J.Y.Daddy
Old
#5  
J.Y.Daddy's Avatar
Senior Member
Thanks Meter 923
Posts: 559
Join Date: Jul 2011
Location: Seoul
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.
 
whirleyes
Old
#6  
whirleyes's Avatar
Retired Recognized Developer - OP
Thanks Meter 1825
Posts: 832
Join Date: Aug 2007

 
DONATE TO ME
Quote:
Originally Posted by J.Y.Daddy View Post
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!
those were the days...
The Following 2 Users Say Thank You to whirleyes For This Useful Post: [ Click to Expand ]
 
core720
Old
#7  
core720's Avatar
Senior Member
Thanks Meter 1241
Posts: 1,190
Join Date: Feb 2012

 
DONATE TO ME
good work
EPSILON PROJECT - Motorola Atrix - Motorola Razr - Samsung Galaxy S2 - Samsung Galaxy Note - Samsung Galaxy S3 - HTC One X - Galaxy Note 2 - Motorola Razr HD - LG Optimus G - Nexus 4 - Samsung Galaxy S4 - Nexus 5

 
core720
Old
#8  
core720's Avatar
Senior Member
Thanks Meter 1241
Posts: 1,190
Join Date: 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, 799 views)
EPSILON PROJECT - Motorola Atrix - Motorola Razr - Samsung Galaxy S2 - Samsung Galaxy Note - Samsung Galaxy S3 - HTC One X - Galaxy Note 2 - Motorola Razr HD - LG Optimus G - Nexus 4 - Samsung Galaxy S4 - Nexus 5

The Following 3 Users Say Thank You to core720 For This Useful Post: [ Click to Expand ]
 
whirleyes
Old
#9  
whirleyes's Avatar
Retired Recognized Developer - OP
Thanks Meter 1825
Posts: 832
Join Date: Aug 2007

 
DONATE TO ME
Quote:
Originally Posted by core720 View Post
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
those were the days...
The Following User Says Thank You to whirleyes For This Useful Post: [ Click to Expand ]
 
robertwhitten87
Old
(Last edited by robertwhitten87; 6th July 2012 at 04:54 PM.)
#10  
Member
Thanks Meter 9
Posts: 61
Join Date: Apr 2010
Location: Ohio
Quote:
Originally Posted by core720 View Post
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.

The Following User Says Thank You to robertwhitten87 For This Useful Post: [ Click to Expand ]
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes