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

droidbits

Senior Member
Mar 14, 2013
883
508
0
☆ ☆ ☆ ☆ ☆
Hi there an0nym0us_!

Thanks for the kernel module first of all...THANKS already given mate.

I followed everything to the letter and everything went smooth, like both instalations...I actually and interestingly got the same value 0x as in your tutorial [I'm on a LWW] but at the end of it I go to my SetCPU app and I see no Governor nor SIO! I've tried to install it over twice and installation went smooth again but nothing.

By the way, I have ROM Viper V4 running which is based on 4.0.4 .587 but do you think it may be the reason ie: I'm not on original ICS 4.0.4 ROM?

Cheers mate for your work!
 
Last edited:

mdfzhi

Senior Member
Jun 15, 2011
4,148
3,853
0
the modules will be load by init.d script so u need to have working init.d, or if u want to load the script manually u can do it with smanager from market. either way the 0xVALUE for smartassv2 need to be explicitly change in the script to match yours, even if u got the same VALUE as example on first post.
 
  • Like
Reactions: droidbits

droidbits

Senior Member
Mar 14, 2013
883
508
0
☆ ☆ ☆ ☆ ☆
the modules will be load by init.d script so u need to have working init.d, or if u want to load the script manually u can do it with smanager from market. either way the 0xVALUE for smartassv2 need to be explicitly change in the script to match yours, even if u got the same VALUE as example on first post.
Yes, I unpacked the zip and went to the init.d script and changed the 0xVALUE then saved the script as "all files" and went to /system/etc/init.d and inserted the script [which showed as text file?] and then gave the correct permissions as already shown in the thread. I repacked the zip and put it in my SD and then Recovery, install, etc. I do have init.d.
 
Last edited:

droidbits

Senior Member
Mar 14, 2013
883
508
0
☆ ☆ ☆ ☆ ☆
could u post your edited script here?
Sure...here:

#!/system/bin/sh

if busybox [ -e /system/lib/modules/cpufreq_smartass2.ko ];
then
chown root.root /system/lib/modules/cpufreq_smartass2.ko
chmod 0755 /system/lib/modules/cpufreq_smartass2.ko
insmod /system/lib/modules/cpufreq_smartass2.ko lookup_address=0x80106aec return 0
fi;

Sorry about the mess tried to upload file but showed invalid.
 

Kordius

Senior Member
Jul 13, 2012
385
177
0
Poland
Odp: [KERNEL MODULE] For ICS .587 Stock Kernel with Locked Bootloader [SMARTASSV2/SIO

Can anyone making flashable zip ? ;>

Sent from my GT-I9000 using xda premium
 

mdfzhi

Senior Member
Jun 15, 2011
4,148
3,853
0
Sure...here:

#!/system/bin/sh

if busybox [ -e /system/lib/modules/cpufreq_smartass2.ko ];
then
chown root.root /system/lib/modules/cpufreq_smartass2.ko
chmod 0755 /system/lib/modules/cpufreq_smartass2.ko
insmod /system/lib/modules/cpufreq_smartass2.ko lookup_address=0x80106aec return 0
fi;

Sorry about the mess tried to upload file but showed invalid.
valid for u is this

Code:
#!/system/bin/sh

if busybox [ -e /system/lib/modules/cpufreq_smartass2.ko ];
then
	chown root.root /system/lib/modules/cpufreq_smartass2.ko
	chmod 0755 /system/lib/modules/cpufreq_smartass2.ko
	insmod /system/lib/modules/cpufreq_smartass2.ko lookup_address=0x80106aec
else
	return 0
fi;


anyway could u test this two?
this should calculate the VALUE automatically without needed to manually define it.

code 1

Code:
#!/system/bin/sh

VALUE=`cat /proc/kallsyms | grep kallsyms_lookup_name | awk '{print $1}'`

if busybox [ -e /system/lib/modules/cpufreq_smartass2.ko ];
then
	chown root.root /system/lib/modules/cpufreq_smartass2.ko
	chmod 0755 /system/lib/modules/cpufreq_smartass2.ko
	insmod /system/lib/modules/cpufreq_smartass2.ko lookup_address=0x$(echo $VALUE | awk '{print $2}')
else
	return 0
fi;


code 2

Code:
#!/system/bin/sh

VALUE1=`cat /proc/kallsyms | grep kallsyms_lookup_name | awk '{print $1}'`
VALUE2=`echo $VALUE | awk '{print $2}'`

if busybox [ -e /system/lib/modules/cpufreq_smartass2.ko ];
then
	chown root.root /system/lib/modules/cpufreq_smartass2.ko
	chmod 0755 /system/lib/modules/cpufreq_smartass2.ko
	insmod /system/lib/modules/cpufreq_smartass2.ko lookup_address=0x$VALUE2
else
	return 0
fi;


dont edit anything, just paste to 33smartass and reboot (make sure the 33smartass got correct permission). do tell if any of code 1 or code 2 works. should be easier for everyone if it work.
 
  • Like
Reactions: droidbits

mdfzhi

Senior Member
Jun 15, 2011
4,148
3,853
0
Not at all. Just CPU governor written by other people, not a single code in it written by me :p
I just compile and share, not something revolutionary :eek:
 
  • Like
Reactions: droidbits

droidbits

Senior Member
Mar 14, 2013
883
508
0
☆ ☆ ☆ ☆ ☆
Hi there an0nym0us_!

I have not forgotten about the testing...just haven't been successful on a part which want to retry and also short for time during the day but will continue tomorrow and post results.

Glad I can help you also.
 
Last edited:

droidbits

Senior Member
Mar 14, 2013
883
508
0
☆ ☆ ☆ ☆ ☆
do tell if any of code 1 or code 2 works. should be easier for everyone if it work.
Hi an0nym0us_!

Well,I'm just not getting the gov nor the io...could be the Viper V4 because it's all super tweaked I don't know OR I must be missing something and now I wanna get rid of those read only texts in my init.d so I'll just google it. Spent a few hours trying it though...gonna play some poker now to unwind!!!

Cheers anyway mate! Sorry couldn't be much help to ya.:(
 

mdfzhi

Senior Member
Jun 15, 2011
4,148
3,853
0
Hi an0nym0us_!

Well,I'm just not getting the gov nor the io...could be the Viper V4 because it's all super tweaked I don't know OR I must be missing something and now I wanna get rid of those read only texts in my init.d so I'll just google it. Spent a few hours trying it though...gonna play some poker now to unwind!!!

Cheers anyway mate! Sorry couldn't be much help to ya.:(
u doesn't need to test anymore, i confirm myself its working. the smartassv2 update1 and sio zip is working just fine on stock .587 kernel. if it doesn't work for u then either u doesn't have working init.d or u doesn't have proper busybox installed, or both.
 
  • Like
Reactions: droidbits