[KERNEL MODULE] For ICS .587 Stock Kernel with Locked Bootloader [SMARTASSV2/SIO]

mdfzhi

Senior Member
Jun 15, 2011
4,148
3,853
0
First of all,
Code:
/*
 * Your warranty is now void.
 *
 * I am not responsible for bricked devices, dead SD cards,
 * thermonuclear war, or you getting fired because the alarm app failed. Please
 * do some research if you have any concerns about features included in this ROM/kernel/mods
 * before flashing it! YOU are choosing to make these modifications, and if
 * you point the finger at me for messing up your device, I will laugh at you.
 */



now this is for anyone with stock kernel and can't or wont unlock bootloader due to certain reason only they knew.
but for anyone who already unlocked bootloader don't bother with this, u got many choices of great kernel to flash :D

anyway for now i've compiled smartassv2 cpu governor and sio disk io scheduler as module that can be loaded onto stock kernel. tested by anerik on his locked bootloader phone. module is compiled using .587 kernel source, against lww/coconut defconfig but since all xperia 2011 shared the same source i assume this would work on all xperia 2011 running .587 stock kernel.

requirement:
- rooted
- busybox installed.
- cwm recovery for flashing.
- rom support init.d sysinit to load the module script automatically on boot, or smanager installed for u to load the script using it yourself.
- running stock .587 kernel

howto:
just flash via cwm and reboot. then use nofrills cpu control to change to smartassv2 or sio.

changelog:
smartassv2 update1:
- added fix for sysfs interface by M66B. should be able to tune smartassv2 via setcpu in governor tab.
- modify init.d script to calculate kallsyms_lookup_name address automatically.

credits:
AnDyX who originally posted thread on neo v forum and giving source on his github
anerik for testing this on his phone.
 

Attachments

Last edited:

pojhe

Senior Member
Aug 22, 2011
61
10
28
Klang
don't quote whole op. Maybe if you got files and change the commands... That's what common sense tells me, but annonymus is dev here, just tryin to help
sorry, thanks for remind me.. another one, I put the script in init.d but it not work after I reboot the device.. any advice?

Edit : Its working! thanx!!
 
Last edited:

Linshart

Senior Member
Jul 6, 2012
125
26
48
hi there,
tried to add this to the LT18i of my wife, but i´ve got an error message right after the first command, that grep was not found :( any other way to find that number without this grep thingy?
thanks in advance
 

najodleglejszy

Senior Member
Apr 21, 2012
620
211
0
unable to chmod [...]/sio-iosched.ko: read-only filesystem
which is weird, as I'm already using your smartassV2 module.
edit: so I just opened /system/lib/modules/ and I set the file's permissions manually to 755 (aka rwx-rx-rx) and then typed:
su
insmod /system/lib/modules/sio-iosched.ko
and it worked, I made the init.d the script and the sio scheduler sticks, so everything's well. just two commands instead of four, so less geeky way ;) but the most important thing is, I'm on locked BL with smartassV2 and sio!
 
Last edited:

Doubtfire

Senior Member
Oct 6, 2012
221
46
0
Mandaluyong City
honest question

Just an honest question guys,
i Admit im noob.

how can i create the init.d script.
im done in doing the smartass governor and it really works.
BIG thanks for that.! :thumbsup:
but i dont know how to create the init.d script. need more help!
thanks again more Power! ;) :)
 

diegodelp

Senior Member
Mar 13, 2012
229
13
0
doesnt work for me when I write the lines on terminal emulator nothings happens
Edit: For a simple synthax error didn't work! Good job!! but y didnt undertand how to make for got always this governor!
 
Last edited:

najodleglejszy

Senior Member
Apr 21, 2012
620
211
0
in reply to above 2 posts
how to make init.d script, so that you'll have smartassV2/sio after reboot:
1. copy the text from OP which is said to be put in the script
2. paste to notepad
3. choose "Save as...", type any name and select "all files (*.*)" in file type, so your file won't have any extension
4a. if your ROM has got init.d support or if you enabled it, put the script in /system/etc/init.d and set permissions to... I'm not sure, ----rwxr-x seems to work fine for me, while when using rwxrwxrwx or rwx-rx-rx the modules didn't want to stick.
4b. if you don't have init.d support and for some strange reason you don't want to enable it (how to? SEARCH), download Script Manager from Google Play, open your script with it and in popup windows tap "su" (the icon turns green) and "boot" (this one turns blue),
5. reboot and check if the modules stick
 
  • Like
Reactions: Doubtfire