[KERNEL] OC/UV Kernel (test) - T-Mobile LG G2x

Hi,
avetny asked me to take a look at the g2x kernel to add OC/UV, so i did build a kernel with oc/uv added. You can read more about the kernel on the o2x thread. With this kernel you should be able to use Pimp My Cpu to manage cpuspeed/voltages on the fly.
I do not own a g2x device so i could not test this kernel, try at your own risk.
g2x-kernel-2.6.32.9-fakeShmoo-cpasjuste.5.zip : db7a11365e8520424f1ed579b666623f
EDIT :
Since i do not have the device, if someone wants to continue the work (fix wifi/bt) you'll find the sources and changes here : https://github.com/Cpasjuste/android_kernel_lg_p999/commits/fakeShmoo
Note that you NEED to add "init.d" support to the kernel initramfs :
Add at the end of the init.rc script :
Code:
# Execute files in /etc/init.d before booting
service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
disabled
oneshot
And maybe the "99complete" script to "/system/etc/init.d" :
Code:
#!/system/bin/sh
sync;
setprop mcr.filesystem.ready 1;

Thanks a lot for this. Look forward to giving it a go

Kernel boots fine, however,it breaks wifi. Will continue testing and see how everything else it

jlevy73 said:
Kernel boots fine, however,it breaks wifi. Will continue testing and see how everything else it
Click to expand...
Click to collapse
Arg that's strange, i don't see why wifi would be broken :/

Cpasjuste said:
Arg that's strange, i don't see why wifi would be broken :/
Click to expand...
Click to collapse
It is...when I flashed I say the wifi modules loading.
But wow, this kernel is fast. Smartbench just shot through the roof.

jlevy73 said:
It is...when I flashed I say the wifi modules loading.
But wow, this kernel is fast. Smartbench just shot through the roof.
Click to expand...
Click to collapse
Note that it's not OC by default. Could you try Pimp My Cpu on it to see if it work ? Thanks
For the wifi module, i'll wait for "avetny" if he knows anything.

Cpasjuste said:
Note that it's not OC by default. Could you try Pimp My Cpu on it to see if it work ? Thanks
For the wifi module, i'll wait for "avetny" if he knows anything.
Click to expand...
Click to collapse
That's what I mean by wow it's fast. I installed pimp my cpu and have it running @ 1200/300 while I do some benchmarking. Pimp my cpu is working very well.

jlevy73 said:
That's what I mean by wow it's fast. I installed pimp my cpu and have it running @ 1200/300 while I do some benchmarking. Pimp my cpu is working very well.
Click to expand...
Click to collapse
Ha that's very cool. Many thanks for the "bravery"
Just need to fix wifi now :x
I won't be able to do so myself without a device to test so some help will be required. The recovery install script just copy the "drivers/net/wireless/bcm4329/wireless.ko" module to "/system/lib/modules/wireless.ko" on the device. Maybe on the g2x the modules are located somewhere else.

Cpasjuste said:
Ha that's very cool. Many thanks for the "bravery"
Just need to fix wifi now :x
I won't be able to do so myself without a device to test so some help will be required. The recovery install script just copy the "drivers/net/wireless/bcm4329/wireless.ko" module to "/system/lib/modules/wireless.ko" on the device. Maybe on the g2x the modules are located somewhere else.
Click to expand...
Click to collapse
Let me check to see where the drivers are located.

jlevy73 said:
Let me check to see where the drivers are located.
Click to expand...
Click to collapse
Update: Yep it's located in /system/lib/modules
Upon quick look it appears as though the permissions for the .ko file might be incorrect. Let me try something to see if it helps.

jlevy73 said:
Update: Yep it's located in /system/lib/modules
Upon quick look it appears as though the permissions for the .ko file might be incorrect. Let me try something to see if it helps.
Click to expand...
Click to collapse
Your right, this could maybe be the problem.

jlevy73 said:
Kernel boots fine, however,it breaks wifi. Will continue testing and see how everything else it
Click to expand...
Click to collapse
Getting the same wifi problem.
But besides that everything seems to be working fine.

Tried playing around with the permissions but that didn't seem to help. Also BT appears to be break with this kernel.

Also confirmed wifi is broken with this kernel.

flak0 said:
Also confirmed wifi is broken with this kernel.
Click to expand...
Click to collapse
Can you try turning on BT and seeing if that's broken for you as well? Thanks

Is dmesg spitting out anything of interest?

Confirmed. I wonder if we push the original wireless.ko if.it will work?

Since i do not have the device, if someone wants to continue the work you'll find the sources and changes here : https://github.com/Cpasjuste/android_kernel_lg_p999/commits/fakeShmoo
Note that you NEED to add "init.d" support to the kernel initramfs :
Add at the end of the init.rc script :
Code:
# Execute files in /etc/init.d before booting
service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
disabled
oneshot
And maybe the "99complete" script to "/system/etc/init.d" :
Code:
#!/system/bin/sh
sync;
setprop mcr.filesystem.ready 1;

Checking dmsg now

I can also confirm that the kernel works well with OC/UV but WiFi does not work. Bluetooth isn't working for me either.

Related

Rebuild Rogers kernel for tethering

I've got Ubuntu up and running and I'm willing to rebuild the kernel to enable tethering.
Problem 1 is that I have not received my Magic yet
Problem 2 is that I have no idea what I need to do
So who wants to help?
sammypwns said:
I've got Ubuntu up and running and I'm willing to rebuild the kernel to enable tethering.
Problem 1 is that I have not received my Magic yet
Problem 2 is that I have no idea what I need to do
So who wants to help?
Click to expand...
Click to collapse
I'll help. I've got tethering working using Azilink, but it would be nice to get it working using the Hero's built-in tethering option. Here's my post at ubuntuforums.org:
http://ubuntuforums.org/showthread.php?t=1202059
So are you rebuilding the kernel to get the iptables? I can't even get to make Ubuntu see the Magic as a communications device now.
It took me about 15 minutes to get the SDK up and running on Ubuntu 32 bit but I don't know where to find the source for the kernel or evena copy of the kernel itself. Once I have those it shouldn't take more than 5 minutes to compile the kernel including iptables. In fact if I had the source to a kernel that does allow tethering it would be even faster because I could just drag and drop what I need into the build directory. I haven't seen the source but I think that the HTC branded kernel only differs by a few files and it might even be easier to move the HTC files to the Google kernel. Need more help and testers.
sammypwns said:
It took me about 15 minutes to get the SDK up and running on Ubuntu 32 bit but I don't know where to find the source for the kernel or evena copy of the kernel itself. Once I have those it shouldn't take more than 5 minutes to compile the kernel including iptables. In fact if I had the source to a kernel that does allow tethering it would be even faster because I could just drag and drop what I need into the build directory. I haven't seen the source but I think that the HTC branded kernel only differs by a few files and it might even be easier to move the HTC files to the Google kernel. Need more help and testers.
Click to expand...
Click to collapse
Do you have the port tools? They allow you to unpack the boot.img. I'll upload the port tools for you:
http://www.mediafire.com/?fnzdtnj4gmy
Just put all of the tools in your /android/tools folder.
To unpack the boot.img, you just have to run this command:
unpack-H.pl boot.img
Click to expand...
Click to collapse
That's it. Good-luck. Messing around with the kernel is way above my know-how.
@hotweiss thanks a bunch
This guide shows you how to push the IP tables on the Magic:
http://android-unleashed.com/2008/1...d-g1-phone-with-iptables-no-proxy-needed.html
do I just need to incorprate the iptables binary with the kernel when I build it. Again I haven't seen either kernel to compare them.
sammypwns said:
do I just need to incorprate the iptables binary with the kernel when I build it. Again I haven't seen either kernel to compare them.
Click to expand...
Click to collapse
Haven't done it myself yet, but it looks like it's just an issue of following a few steps. The biggest problem right now is to make Ubuntu see the Magic as a modem.
again I don't have my magic yet so I can't comment on that but if anyone has a google branded version could you please check and see if you can get ubuntu to recognize it as a modem. if so then we know that it has only to do with the kernel itself.
EDIT: Also I can't get unpack-H.pl to work, i keep getting bash: /home/sammy/android-sdk-linux_x86-1.5_r2/tools/unpack-H.pl: Permission denied
sammypwns said:
again I don't have my magic yet so I can't comment on that but if anyone has a google branded version could you please check and see if you can get ubuntu to recognize it as a modem. if so then we know that it has only to do with the kernel itself.
EDIT: Also I can't get unpack-H.pl to work, i keep getting bash: /home/sammy/android-sdk-linux_x86-1.5_r2/tools/unpack-H.pl: Permission denied
Click to expand...
Click to collapse
right click on unpack-H.pl, set the permissions, and make it executable.
hotweiss said:
This guide shows you how to push the IP tables on the Magic:
http://android-unleashed.com/2008/1...d-g1-phone-with-iptables-no-proxy-needed.html
Click to expand...
Click to collapse
well you dint need go all the steps , just pushing iptables and insmod should be enough if you use wifi tethering app. but is the kernel in htc magic and g1 the same , do they run the same binary ?
i will check it but dont know if it works.
Edit :
No ipfilter in the kernel = not working
the binary itself works just fine (strange)
its because the kernel is missing netfilter too. there are actually 3 things we require for this to work. we need to build netfilter as a module, build iptables as a module and then include the iptables binary so that other programs can talk to it. unfortunately i don't have a magic but if you could pm me your im screen names we could do this faster
sammypwns said:
its because the kernel is missing netfilter too. there are actually 3 things we require for this to work. we need to build netfilter as a module, build iptables as a module and then include the iptables binary so that other programs can talk to it. unfortunately i don't have a magic but if you could pm me your im screen names we could do this faster
Click to expand...
Click to collapse
Things will be complicated by the fact that the Rogers and T-Mobile Magic's are different. I'm still confident that we'll work it out.
hotweiss the google branded ion does not require these modules

[HOWTO] Permanently disable perflock on HTC stock kernel

SetCPU 2.0.2 now has perflock disabler support for HTC-kernel 2.6.32.15 which is needed to underclock the CPU because HTC don't want us to mess with the CPU clockspeed on stock kernel. This feature is fine and I use it with JuiceDefender to lock my device to 245 MHz on standby to get slightly more juice. The only drawback is that SetCPU doesn't allow to disable perflock automatically on boot. I found it annoying to disable perflock everytime I reboot, therefore I checked out how SetCPU disables perflock. SetCPU comes with a kernel module that disables the perflock when loaded (it seems to hook into the perflock_notifier_call of the perflock module and resets the settings). I managed to load this module on startup of the device so I can use it with JuiceDefender even without SetCPU installed or enabling it after every reboot. It works great...
SetCPU is a brilliant app like its author coolbho3000 (thank you!).
For this reason I don't post the kernel modules or an update.zip, but share this knowledge in a very loose howto.
So basically this is what to do:
1. Extract the kernel module perflock_disable3215.ko from SetCPU.
Use apktool or just unzip to extract it from the apk.
2. Hexedit the module to change the vermagic string.
The vermagic string have to match the kernel you use. Otherwise, it won't load.
Check the other modules for the correct vermagic.
3. In recovery mode push the module to /system/lib/modules
Maybe you should change the permissions to match the other modules.
4. Load the kernel module with insmod.
For the module to work you have to provide the perflock_notifier_call_addr parameter.
You can get it from /proc/kallsyms. It's a mermory address something like "c443223". Load the kernel module like this:
insmod /system/lib/modules/perflock_disable3215.ko perflock_notifier_call_addr=0xc443223
5. Check if kernel module is loaded.
If insmod doesn't report any errors, check with lsmod if the module is loaded.
If insmod reports errors, you most likely messed up the module while changing the vermagic.
6. Check if perflock is disabled in SetCPU.
If the module is working you should be able to underclock the CPU in SetCPU.
7. Hack a init script to load the module on boot.
The script should rgep the perflock_notifier_call_addr and load module with the correct parameter.
That's it!
If it works for you, buy SetCPU on market!
have fun...
Fantastic,
but a little bit more complicated.
I think you definitely should attach update.zip. But still useful information.
Edit:
Sorry, LeeDroid's mod already has this module. Hypothetically you don't have to change anything regarding that module.
Here is update zip for STOCK ROOTED FROYO ROM. This update will flash modified boot.img (it is necessary, because stock rom at default doesn't execute scripts from /init.d folder during boot..)
Hi,
Anyone who did the update zip for Eclair could upload, please? Would really apreciate.
robto said:
Hi,
Anyone who did the update zip for Eclair could upload, please? Would really apreciate.
Click to expand...
Click to collapse
Has anyone used the update.zip that can confirm it works
There are custom kernel for the Desire Eclair ROMs that aren't perflocked. On what ROMs / devices are you guys?
Ignore....
Hey all,
That procedure seems way too complicated for me
So far, I was using pinky's rom which comes with permanent perflock disabled. I just switched to LeeDroid's rom which doesn't seem to have this feature.
Would there be an easy way to have this done? (like flashing a zip?)
Cheers
http://dl.dropbox.com/u/31174/android/perflock-disabler-2.6.32.15-gf9c0527-signed.zip
ranwej said:
Here is update zip for STOCK ROOTED FROYO ROM. This update will flash modified boot.img (it is necessary, because stock rom at default doesn't execute scripts from /init.d folder during boot..)
Click to expand...
Click to collapse
What's exactly in that boot.img? Could you please post some kind of release notes? I don't like (nor should anyone flash) unknown binaries. Thanks
FloHimself said:
http://dl.dropbox.com/u/31174/android/perflock-disabler-2.6.32.15-gf9c0527-signed.zip
Click to expand...
Click to collapse
Will this work on a stock Froyo (ie HTC) rooted ROM?
EDIT: Did a nandroid and flashed it. Doesn't seem to work... Maybe the stock ROM isn't running the init script as mentioned previously?
FloHimself said:
There are custom kernel for the Desire Eclair ROMs that aren't perflocked. On what ROMs / devices are you guys?
Click to expand...
Click to collapse
HTC Legend with rooted Eclair 2.05.405.2, kernel version 2.6.29-5f084974.
Psych0Chimp said:
Will this work on a stock Froyo (ie HTC) rooted ROM?
EDIT: Did a nandroid and flashed it. Doesn't seem to work... Maybe the stock ROM isn't running the init script as mentioned previously?
Click to expand...
Click to collapse
yes I am just looking for the same to use with the stock HTC kernel ...its on my stock rooted 2.2 Froyo
Psych0Chimp said:
Will this work on a stock Froyo (ie HTC) rooted ROM?
EDIT: Did a nandroid and flashed it. Doesn't seem to work... Maybe the stock ROM isn't running the init script as mentioned previously?
Click to expand...
Click to collapse
playya said:
yes I am just looking for the same to use with the stock HTC kernel ...its on my stock rooted 2.2 Froyo
Click to expand...
Click to collapse
Have you tried the update zip from post 4?
robto said:
HTC Legend with rooted Eclair 2.05.405.2, kernel version 2.6.29-5f084974.
Click to expand...
Click to collapse
This is the .29 kernel and needs the other module from SetCPU...
perflock_disable is now under GPL and source is available upon request...
All kernel modules are automatically under the GPL if they are distributed. It's a legal requirement.
New perflock_disable update.zip for 2.6.32.15-gf9c0527
New signed update.zip to disable perflock for the stock 2.6.32.15-gf9c0527 kernel image:
Mirror: trisk.acm.jhu.edu/perflock_disable-2.6.32.15-gf9c0527-20100831.zip
I updated the init script to handle errors:
Code:
#!/system/bin/sh
#
# Load perflock_disable for htc-kernel
addr=`awk '$3 == "perflock_notifier_call" { print "0x"$1; }' /proc/kallsyms`
if [ -n "$addr" ]; then
insmod /system/lib/modules/perflock_disable3215.ko "perflock_notifier_call_addr=$addr"
if [ $? -eq 0 ]; then
echo "+++ perflock disabled"
exit 0
fi
fi
echo "+++ perflock could not be disabled"
I'll try to obtain the source for perlock_disable, since the author has offered (and is required to) to provide it on request.
teppic74 said:
All kernel modules are automatically under the GPL if they are distributed. It's a legal requirement.
Click to expand...
Click to collapse
Really? Since when? Why then ATI and nVIDIA offer their parts of modules under proprietary licence?

Kernel- Ziggy Kernel - update 11/24- credit to ziggy471

11-24-2010 UPDATE
http://www.ziggy471.com/2010/11/24/ziggy471-kernels-incbravoevo-updated-24-nov/
11-14-2010 UPDATE
http://www.ziggy471.com/2010/11/14/ziggy471-kernels-incbravoevo-updated-14-nov/
11-13-2010 UPDATE
http://www.ziggy471.com/2010/11/13/ziggy471-kernels-incbravoevo-updated-13-nov/
11-05-2010 UPDATE - Sorry for the late update!
http://www.ziggy471.com/2010/11/05/ziggy471-evo-kernels-fps-fixed-updated-5-nov/
10-28-2010 UPDATE
http://www.ziggy471.com/2010/10/28/betaziggy471-evo-kernel-updated-28-oct/
10-26-2010 UPDATE!
ZIGGY updated the kernel. Here is the link. (It's the link that has evo in it)
http://www.ziggy471.com/2010/10/26/...credible-aospevobravo-kernels-updated-26-oct/
ZIGGY, thanks for visiting this thread and thanks for a great kernel.
10-25-2010
Hey Everyone, first of all I DO NOT take any credit for this kernel. I came across it in Myn's Rom thread and since it didn't have it's own thread, I just wanted to start one so people could find it easily. I also noticed it in VirusRom's thread. So whoever ziggy is, thanks a lot! I'm getting great battery life on this kernel and according to the threads, it looks like others are also. Here's the link to ziggy471 website with the download. Thanks again ziggy!
http://www.ziggy471.com/downloads/?did=31
source can be found here ~~~> https://github.com/ziggy471/linux-2.6.32.25/tree/evo
gotshores said:
Hey Everyone, first of all I DO NOT take any credit for this kernel. I came across it in Myn's Rom thread and since it didn't have it's own thread, I just wanted to start one so people could find it easily. I also noticed it in VirusRom's thread. So whoever ziggy is, thanks a lot! I'm getting great battery life on this kernel and according to the threads, it looks like others are also. Here's the link to ziggy471 website with the download. Thanks again ziggy!
http://www.ziggy471.com/downloads/?did=31
Click to expand...
Click to collapse
+1 on this bro! Found the kernel this morning while looking for bakes kernel lol. Awsome one got lil lags here n their but can b workable
Sent from my PC36100 using Tapatalk
ya man, i ran it the other day and had great battery, but i thought it had affected my 4g connection, so i flashed another kernel. i reflashed ziggy's today because i missed the battery effect and i haven't had any issues all day (4G connects just fine). I not too technical, so i don't know the in's and out's of this kernel, but i do notice my battery life at the end of the day.
you said that you came across it on Myn's ROM. Is that the ROM your currently running? Just want to see how it works on others
ya, i'm using myn's rom and have only used that so far. would be interesting to see how it run's on other roms
im using a htc evo 4g with ziggys Ziggy471Kernel-EVO-update_signed-10242010-1644
on the download page it says alot but doesnt really explain how to access anything.
http://www.ziggy471.com/2010/10/23/z...kernel-23-oct/
i cannot adb in, says device not found, but via terminal if i do lsmod i get this
bcm4329 210342 0 – live 0xbf000000
if i try init.d or /proc/undervolt i get permission denied.
i did enter SU before entering anything, i dont know whats going on.
if i do cat /proc/undervolt i get the list of undervolt values like shown a few pages ago...
can anyone help?
Ziggy471 HTC EVO Kernel 23 Oct
NOTICE: I am not responsible for anything that may or may not happen to your phone, except for maybe it running faster. You break it, you fix it.
23 Oct 2010:
Kernel version 2.6.32.24
Overclocked
1.28GHz, I don’t recommend this setting, it doesn’t appear to work on the newer Desire ports. I recommend 1.113 or 1.15.
BFS 357 CPU Scheduler
BFQ IO Scheduler
Swap enalbed
SLUB (Unqueued Allocator)
All CPU governors, Interactive is the default
CPU Undervolt control via /proc/undervolt – built in, not a module
http://forum.xda-developers.com/showthread.php?t=775997&highlight=voltage+module
Fix for slow SD card access
http://forum.xda-developers.com/showthread.php?t=815557
CIFS
EXT4
TUN
A few tweaks here and there.
etc…
Also included in the update:
1. For any ROM that has busybox’s run-parts enabled, I added a screen state frequency/governor switching script, located in /system/etc/init.d. This means you do not have to use setcpu to control the frequency or governor anymore. If you prefer not using this script, delete it
The defaults for the script:
AWAKE_GOVERNOR=”interactive”
AWAKE_GOVERNOR_FREQENCY_MAX=”1113600″
AWAKE_GOVERNOR_FREQENCY_MIN=”245000″
SLEEP_GOVERNOR=”powersave”
SLEEP_GOVERNOR_FREQENCY_MAX=”460800″
SLEEP_GOVERNOR_FREQENCY_MIN=”245000″
2. remount script that will be installed to /system/bin.
Valid input format:
remount [ro|rw|status]
ro = read only (default)
rw = read write (to make modifications)
status = current mount mode
3. hosts file that blocks most ads, if you find more, let me know
also new kernel released on the 24th...
http://virusrom.com/Kernels/Ziggy471/Ziggy471Kernel-EVO-update_signed-10242010-1644.zip
hmm might give this kernel a try...I'm willing to try anything to save battery life...
intheb0x said:
Ziggy471 HTC EVO Kernel 23 Oct
NOTICE: I am not responsible for anything that may or may not happen to your phone, except for maybe it running faster. You break it, you fix it.
23 Oct 2010:
Kernel version 2.6.32.24
Overclocked
1.28GHz, I don’t recommend this setting, it doesn’t appear to work on the newer Desire ports. I recommend 1.113 or 1.15.
BFS 357 CPU Scheduler
BFQ IO Scheduler
Swap enalbed
SLUB (Unqueued Allocator)
All CPU governors, Interactive is the default
CPU Undervolt control via /proc/undervolt – built in, not a module
http://forum.xda-developers.com/showthread.php?t=775997&highlight=voltage+module
Fix for slow SD card access
http://forum.xda-developers.com/showthread.php?t=815557
CIFS
EXT4
TUN
A few tweaks here and there.
etc…
Also included in the update:
1. For any ROM that has busybox’s run-parts enabled, I added a screen state frequency/governor switching script, located in /system/etc/init.d. This means you do not have to use setcpu to control the frequency or governor anymore. If you prefer not using this script, delete it
The defaults for the script:
AWAKE_GOVERNOR=”interactive”
AWAKE_GOVERNOR_FREQENCY_MAX=”1113600″
AWAKE_GOVERNOR_FREQENCY_MIN=”245000″
SLEEP_GOVERNOR=”powersave”
SLEEP_GOVERNOR_FREQENCY_MAX=”460800″
SLEEP_GOVERNOR_FREQENCY_MIN=”245000″
2. remount script that will be installed to /system/bin.
Valid input format:
remount [ro|rw|status]
ro = read only (default)
rw = read write (to make modifications)
status = current mount mode
3. hosts file that blocks most ads, if you find more, let me know
also new kernel released on the 24th...
http://virusrom.com/Kernels/Ziggy471/Ziggy471Kernel-EVO-update_signed-10242010-1644.zip
Click to expand...
Click to collapse
Is there a changelog for the latest?
Trying it now. I wonder why he left out 2 of the most popular frequencies 1119 and 1228. Goes from 1115 to 1280, thats a pretty big jump......
myn said on his thread that he can confirm that adb doesn't work on the kernel released on the 24th also. if ziggy gets adb to work, he's gonna recommend it. i don't use adb, i do use terminal emulator every now and then, but haven't check to see if that wouldn't work either.
phistyle said:
hmm might give this kernel a try...I'm willing to try anything to save battery life...
Click to expand...
Click to collapse
I just grabbed it and id say Im a heavy user and i took it off the charger at 4:30am and it just died on me at 11 something ... id say pretty good battery life... using Myn's Rom
Problem with the broken adb shell is that it's causing some users to have problems using Titanium Backup. I love the kernel, but won't use it as a daily driver until Ti works without issue.
gotshores said:
myn said on his thread that he can confirm that adb doesn't work on the kernel released on the 24th also. if ziggy gets adb to work, he's gonna recommend it. i don't use adb, i do use terminal emulator every now and then, but haven't check to see if that wouldn't work either.
Click to expand...
Click to collapse
Crazy, ADB works fine for me with the one from the 24th.
do i have to go into adb shell in order to change the clock speed?
sorry im a newb...
f10g44 said:
do i have to go into adb shell in order to change the clock speed?
sorry im a newb...
Click to expand...
Click to collapse
you can use setcpu or Overclock wideget
nugzo said:
Crazy, ADB works fine for me with the one from the 24th.
Click to expand...
Click to collapse
you lucky ****er lol,
i think your the ONLY one adb shell is working for!
ugh,
we need to get someone in here that knows how to run and tweak this kernel.
its got so much crap built in and its hard to access it all, i wish there was a write up for us evo owners...
someone get ziggy in here or someone that knows about this!
The kernel that was released on the 24th seems to be well put together, I'm oc to the fullest and stable as can be, will report back what the battery life is.
Funny thing my ADB has nvr been broken and the 24th works fine for me
Sent from my phone.. I think Tapatalk???

[CUSTOM][KERNEL][HOWTO] Droidwall on the Samsung Galaxy Y

Hi there
I got droidwall running on the SGY.
Please first read the whole post. I add changes at the end of it.
Here's what I did:
1. follow this great tut from irfanbagus. Thanks a lot irfanbagus!
2. After running "make bcm21553_totoro_05_defconfig", set this in .config:
CONFIG_IP_NF_TARGET_REJECT=y
CONFIG_NETFILTER_XT_MATCH_OWNER=y
and continue irfanbagus's steps
3. Install the new boot.img, e.g. via mai77's method as shown here
4. Profit! (as in: use droidwall )
Notes:
Alternatively the changes in .config could be set in cm21553_totoro_05_defconfig or via make menuconfig
If you don't have your boot.img as a normal file, run this in adb, then pull the file:
dd if=/dev/block/bml7 of=/data/local/boot.img
I was surprised that there was no such modified kernel till now. Maybe this is because the TARGET_REJECT option is essential but only XT_MATCH_OWNER is largely discussed when dealing with droidwall.
See attachment (mikstev_SGY_Kernel_netfilter_for_droidwall_boot.img.zip) for a boot.img with only these modifications.
Please test and report. I only tested blacklist/whitelist mode with Google Play blocked/allowed on Wifi connection, but it worked.
Edit 1: I've added the necessary (and probably some more) modules so that droidwall's logging works. Use the second attached file instead the first one.
Here are the changes I made, compared to normal .config:
CONFIG_NETFILTER_NETLINK=y
CONFIG_NETFILTER_NETLINK_LOG=y
CONFIG_NETFILTER_XT_MATCH_OWNER=y
CONFIG_IP_NF_TARGET_REJECT=y
CONFIG_IP_NF_TARGET_LOG=y
CONFIG_IP_NF_TARGET_ULOG=y
I guess the first two aren't necessary but I didn't bother to check every single module if it's the correct one which droidwall needs for logging. However this shouldn't matter anyway. See mikstev_SGY_Kernel_netfilter_for_droidwall_with_log_boot.img.zip
Edit 2: Due to request I've added init.d support to the latest release. Thanks irfanbagus! See mikstev_SGY_Kernel_droidwall_initd_boot.img.zip
Edit 2.5: Seems only the following modules are required but that only as a side note:
CONFIG_NETFILTER_XT_MATCH_OWNER=y
CONFIG_IP_NF_TARGET_REJECT=y
CONFIG_IP_NF_TARGET_LOG=y
Edit 3: New method for adding init.d support to a (newest) boot.img, with kernel modules for droidwall (+logging) and init.d scripts to load these modules. Please read the readme, if you have questions, post here. Special thanks to irfanbagus See mikstev_add_initd_to_boot.img__kernel_modules_initd_scripts_for_droidwall.zip
Edit 4: Thanks to an idea by irfanbagus and another tutorial to include init.d support by kurotsugi, here's another release. Adding init.d support is now easier with kurotsugi's method plus there's a update.zip (modules_droidwall_signed.zip) which does the other steps for you (copying the modules, init.d scripts and applying the correct permissions for these files). NOTE: this update.zip is yet untested. If you test it please report. See mikstev_add_initd_to_boot.img__kernel_modules_initd_scripts_for_droidwall_v2.zip
Edit 5: The update.zip from edit 4 seems to work. If you're using a kernel with init.d support you only need to install the update.zip and it should work fine.
good job. i know droidwall depend on other kernel features beside CONFIG_NETFILTER_XT_MATCH_OWNER. since i don't have plan to use droidwall, i don't bother to find it.
Profit indeed! It works! Good job, mikstev! I was able to block dolphin HD on my phone just to test if it works and it did, much to my delight!
And to irfanbagus as well for that wonderful guide on how to compile a kernel.
Great job, guys!
Now let's hope that all the other kernel developers include this small bit of configuration in their builts
finally! ive been waiting for this for ages. thank you very muchhhh!
Sent from my GT-S5360 using xda premium
Logging doesn't work yet. I'll try the solution from highlandsun: http://forum.xda-developers.com/showpost.php?p=11110889&postcount=357 tonight and upload new kernel if successful.
No need for so much hassel
Just use "lbe privacy guard" (free in store) it has much more features than droidwall and it doesnt require any special kind of kernel.
Y u no press "thanks"!?
Sent from my GT-S5360 using XDA
Ok, logging works now, I'll upload the new kernel. See first post.
devilrulz4ever said:
No need for so much hassel
Just use "lbe privacy guard" (free in store) it has much more features than droidwall and it doesnt require any special kind of kernel.
Y u no press "thanks"!?
Sent from my GT-S5360 using XDA
Click to expand...
Click to collapse
It seems that there're at least some people who see this differently. Here're some of my reasons, why I prefer droidwall over LBE Privacy Guard:
- it's a good and easy to use firewall. Not more, nor less. That's what I want.
- no "hassel" (to use your words) with resticting internet access of "trusted" apps
- I did not find a way in LBE to block LBE from using internet. In the iptables rules created by Droidwall I can clearly see that droidwall is not allowed = blocked
@mikstev: I'm just curious...is it based on sgy's newest kernel?
I think so, the source code is the one mentioned in irfanbagus' post (update2) which I linked above.
nice...I can integrate dualboot and data-2sd mod into this kernel easily. thx
i got other option to make droidwall work.
on init.rc i added this line:
service netfilter /system/bin/iptables
disabled
oneshot
this also work with avast firewall..
gear12 said:
i got other option to make droidwall work.
on init.rc i added this line:
service netfilter /system/bin/iptables
disabled
oneshot
this also work with avast firewall..
Click to expand...
Click to collapse
Can anyone confirm this? I can't see how this could replace the missing kernel modules.
mikstev said:
Can anyone confirm this? I can't see how this could replace the missing kernel modules.
Click to expand...
Click to collapse
nope. iptables only a user space application that depend on kernel features. and you can't call iptables without command/params.
the firewall works great, also, I can see the logs but after disconnecting from the internet and a few minutes the log is empty again, is this normal or a bug?
off topic:
and can I make a request? can you make the your boot.img support init.d as well? please...
Adam_Blade said:
the firewall works great, also, I can see the logs but after disconnecting from the internet and a few minutes the log is empty again, is this normal or a bug?
Click to expand...
Click to collapse
Yep, I noticed this too. The droidwall source seems ok at first glance and I don't think it's related to the netfilter modules etc. My guess would be that it's dmesg's fault, maybe the log is truncated or something but this is just speculation. I'll investigate in this in a few days. Maybe someone else knows why this happens?
Adam_Blade said:
and can I make a request? can you make the your boot.img support init.d as well? please...
Click to expand...
Click to collapse
Sorry, I currently don't have the necessary skills, so if you're looking for a quick solution you might better ask someone else for help. (Especially since there're already kernels with this feature and including the modifications for netfilter/droidwall should be trivial). However as I wanted to build up my knowledge regarding android/kernel development anyway, I'll try to add this feature one time, but that surely would take >1 week.
Regarding dmesg: the buffer size is set by CONFIG_LOG_BUF_SHIFT=19 which means 2^19 Bytes = 512KiB. I'll check later if this relatively huge size is really used up.
@mikstev: make init.d support kernel is easy. we only have to add a few script inside init.rc file. we can do it easily by using dsixda's kitchen or put the script manually. you can see my modified init.rc here http://www.mediafire.com/?cc1kg8s7cx27onb
I believe the script that have to be added is
service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
disabled
oneshot
Just to get sure: the init.rc which needs to be modified is the one in the initial ramdisk and not in the kernel (zImage), right?

[KERNEL] MultiTasker (beta test)

Well, after doing some testing with this for the last couple days I have had great results. The actual kernel is untouched, since we don't have source yet, but the initramfs has been tweaked to provide proper multitasking capabilities.
Compatible with 1.85 ONLY!
Features:
Insecure (adb always runs as root)
Better multitasking (still sucks, but better)
Init.d Support (run user scripts on boot)
Download:
deprecated
Instructions
Flash from fastboot
Update: I just tested things out with angry birds space, the game will pause and stay in memory like it should, but it will kick all other apps out and cause them to reload.
designgears said:
Well, after doing some testing with this for the last couple days I have had great results. The actual kernel is untouched, since we don't have source yet, but the initramfs has been tweaked to provide proper multitasking capabilities.
This is a beta test, I tested it will standard apps, I have yet to test it with games. Please report what you find!
Compatible with 1.85 ONLY!
Download:
http://www.gigashare.in/91105
Instructions
Flash from fastboot
Click to expand...
Click to collapse
Thanks DG!
have you made this boot.img insecure in the init.rc?
Zarboz said:
Thanks DG!
have you made this boot.img insecure in the init.rc?
Click to expand...
Click to collapse
heh, no, totally forgot about that, meant to.
edit:
just updated the link with one that is
Thanks DG, testing now
EDIT: From preliminary testing it looks like it can handle around 3 small tasks (like a webpage, google music, and gmail) pretty easily. But when you get to 4 it kicks out the oldest task there.
designgears said:
heh, no, totally forgot about that, meant to.
edit:
just updated the link with one that is
Click to expand...
Click to collapse
can't wait for them to let out kernel source i wanna get to building !
this just made my day
adb root
adbd is already running as root
who cares if multitasking works we have a unsecured image to play with now
thanks again and another #win for sure
What device / ROM did you test on?
EDIT: Worked on mine!
Thanks!
What tool did you use to pack / unpack this?
I tired with DSI Kitchen and it only caused no boot. How did you do this?
init.d support?
scrosler said:
What tool did you use to pack / unpack this?
I tired with DSI Kitchen and it only caused no boot. How did you do this?
init.d support?
Click to expand...
Click to collapse
Not sure what tool you are talking about but I had also tried this:
http://forum.xda-developers.com/showthread.php?t=1659584
And I was ending up with a bootloop every time before the animation.
scrosler said:
What tool did you use to pack / unpack this?
I tired with DSI Kitchen and it only caused no boot. How did you do this?
init.d support?
Click to expand...
Click to collapse
waiting for reply as well so we can play with stuff
this is great, i would love to know what you used to unpack it as well and if it does support init.d
rohan32 said:
Not sure what tool you are talking about but I had also tried this:
http://forum.xda-developers.com/showthread.php?t=1659584
And I was ending up with a bootloop every time before the animation.
Click to expand...
Click to collapse
Pretty much the same tool but different. But that exactly what was happening to me too.
I decompiled this boot.img and it doesnt have init.d support. Maybe OP will add it
I am using the same method as dsixda uses in his kitchen to extract it. The build command is a bit different tho.
mkbootimg --cmdline 'console=ttyHSL0,115200,n8' --kernel <kernel path> --ramdisk <ramdisk path> --base 80400000 --ramdiskaddr 81800000
You have to set the ramdiskaddr, and it has to be set after the base or it will be overwritten.
-------------
and multitasking still sucks.. lol, I think we will need kernel source to fix it properly.
designgears said:
I am using the same method as dsixda uses in his kitchen to extract it. The build command is a bit different tho.
mkbootimg --cmdline 'console=ttyHSL0,115200,n8' --kernel <kernel path> --ramdisk <ramdisk path> --base 80400000 --ramdiskaddr 81800000
You have to set the ramdiskaddr, and it has to be set after the base or it will be overwritten.
-------------
and multitasking still sucks.. lol, I think we will need kernel source to fix it properly.
Click to expand...
Click to collapse
Well you got us unsecured boot.img!!!!!!
Going to try your command to see if I can get init.d working... Unless of course you can beat me to it
Thanks DG for deciding to mod for the One X. You and scrosler do awesome work. Two awesome developers on board.
Sent from my HTC One X using XDA
Got init.d support!!!!!!!!!!!!!!!!!!!!!!
Here it is!
Thanks for the help OP!!!!!!!!!
I attached it to this post if you dont want it here I will remove it.
scrosler said:
Got init.d support!!!!!!!!!!!!!!!!!!!!!!
Here it is!
Thanks for the help OP!!!!!!!!!
I attached it to this post if you dont want it here I will remove it.
Click to expand...
Click to collapse
sweet! did you set it up with logwrapper?!
designgears said:
sweet! did you set it up with logwrapper?!
Click to expand...
Click to collapse
No, I just took your boot.img and added modded init.rc. I have to head to work now so I cant play any more but I wnated to try what you told me about the command line parameters and it worked perfect!
Thanks for helping me figure this out. I had been pulling my hair out (what little left I have).
designgears said:
Instructions
Flash from fastboot
Click to expand...
Click to collapse
fastboot flash <imagename> ?
Thank you
nugzo said:
fastboot flash <imagename> ?
Thank you
Click to expand...
Click to collapse
fastboot flash boot imagename.img
nugzo said:
fastboot flash <imagename> ?
Thank you
Click to expand...
Click to collapse
fastboot flash boot <path/to/img>

Categories

Resources