[DEV][Kernel]White-Kernel 12/18 ! V:1.3.3[Final release][ZRAM][100+ patches]and more

Search This thread

kawe42

Member
Apr 20, 2009
22
9
Cologne
Working

Yes init.d is working.
Tried it with link2sd

(1) flashed Stock Rom with odin :good:
(2) flashed Kernel 0.7.2 :good:
(3) installed root via cwm :good:
(4) booted up and installed busybox 1.20 with busybox installer :good:
(5) created init.d folder manually :good:
(6) installed link2sd -> script was created in init.d -> booted up working :good:
 
  • Like
Reactions: whitexp

kawe42

Member
Apr 20, 2009
22
9
Cologne
Seems its not fully working!

I just tried to install BacemTweak, copied its script to /etc/init.d but it doesn't work on boot -> cat /proc/sys/bacem/volt/cpu returns nothing

with smanager by setting flags su and boot for that script I could get it to work

But strangely link2sd is working without smanager.

With kernel 0.7.0 init.d didn't work at all and I had to start it as I described by setting su and boot.

Maybe you could review your Kernel again?
 

whitexp

Senior Member
Jan 3, 2012
1,071
3,205
Rio De Janeiro
madteam.co
Amazfit
Seems its not fully working!

I just tried to install BacemTweak, copied its script to /etc/init.d but it doesn't work on boot -> cat /proc/sys/bacem/volt/cpu returns nothing

with smanager by setting flags su and boot for that script I could get it to work

But strangely link2sd is working without smanager.

With kernel 0.7.0 init.d didn't work at all and I had to start it as I described by setting su and boot.

Maybe you could review your Kernel again?


please

answer these questions!
rom:
busybox installed? :
root? :
 

b16h22

Senior Member
Apr 30, 2012
1,154
2,234
Seems its not fully working!

I just tried to install BacemTweak, copied its script to /etc/init.d but it doesn't work on boot -> cat /proc/sys/bacem/volt/cpu returns nothing

with smanager by setting flags su and boot for that script I could get it to work

But strangely link2sd is working without smanager.

With kernel 0.7.0 init.d didn't work at all and I had to start it as I described by setting su and boot.

Maybe you could review your Kernel again?

Did you put the modules in lib/modules/

sent while doin' some burnouts
 

kurotsugi

Senior Member
Feb 12, 2012
2,507
1,796
yogyakarta
I found three different common method to run init.d script? which method did you use?
1. using sysinit file in /system/bin and run that file via "run sysinit" command in init.rc
2. using sysinit file in /sbin (used in vivek and mar-oc kernel) sometimes didn't work
3. using the method explained in mikstev's thread (add "start service sysinit bla bla bla" in init.rc file)

there are also irfan's method and another similar method outside there but its quite complicated. so in total, we have 5 different method to run init.d script.
 

whitexp

Senior Member
Jan 3, 2012
1,071
3,205
Rio De Janeiro
madteam.co
Amazfit
I found three different common method to run init.d script? which method did you use?
1. using sysinit file in /system/bin and run that file via "run sysinit" command in init.rc
2. using sysinit file in /sbin (used in vivek and mar-oc kernel) sometimes didn't work
3. using the method explained in mikstev's thread (add "start service sysinit bla bla bla" in init.rc file)

there are also irfan's method and another similar method outside there but its quite complicated. so in total, we have 5 different method to run init.d script.

hmmmmmmmm

this method !!

in init.rc !!

service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
disabled
oneshot
 
  • Like
Reactions: marcellp

whitexp

Senior Member
Jan 3, 2012
1,071
3,205
Rio De Janeiro
madteam.co
Amazfit
thats the method number three. if we're using that method we should also add "start sysinit" before "class start default". have you did that?

example:
start sysinit
service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
disabled
oneshot
class_start default
bla bla bla
its ????




...

but
I think it still will not work ...
I found a solution!

add file sysinit in /system/bin
with

#!/system/bin/sh

export PATH=/sbin:/system/sbin:/system/bin:/system/xbin
/system/bin/logwrapper run-parts /system/etc/init.d

with
set_perm 0 2000 0755 SYSTEM:bin/sysinit

or integrate sysinit file in sbin!


what you consider better?

I think in the future to use this method http://xdaforums.com/showthread.php?t=1671670!
 
Last edited:
  • Like
Reactions: marcellp

kurotsugi

Senior Member
Feb 12, 2012
2,507
1,796
yogyakarta
nope...if you scroll up you'll find "class start default" line. above that line we should put "start sysinit" it will be like this
Code:
 start sysinit

class start default
...bla bla bla
...bla bla bla
service sysinit /system/bin/logwrapper /system/xbin/busybox run-parts /system/etc/init.d
disabled
oneshot
...bla bla bla
you can see this file for further details. we can also use sysinit file but we have to put that file on the kernel installer. about your link...thats the method number 5. its quite complicated to use especially for newb, so personally I won't use it.
 
  • Like
Reactions: whitexp

Top Liked Posts

  • There are no posts matching your filters.
  • 176
    Broadcom finally help me in development . thankyou broadcom !





    You like my hard work ?
    consider making a donation !
    http://xdaforums.com/donatetome.php?u=4418296
    sigpic4418296_1.gif



    No need mirrors

    kernel for Galaxy Y (GT-5360)
    Version: Olders Versionsmediafire
    Version: 0.8.0 RC3mediafire
    Version: 1.3.3 MOD EDIT: Link Removed
    Version: 1.3.3mediafire without AD



    LOG:
    version 0.1
    added adb suport
    added init.d
    added dnsproxyd

    Version 0.2
    added droidwall support

    Version 0.3
    added cpu governors ( conservative, userspace, powersave )

    Version 0.3.1
    added cpu governor (interactive ) thanks infarburgs for governor !

    Version 0.3.5
    added cpu governor smartassV2

    Version 0.4.0
    added swap suport
    zramswap
    zramswap compression !

    Version 0.6.0
    applied patch
    CPUSpy support app (http://goo.gl/qEQxw)
    3 cpu frequencies (312,624 and 832 mhz)
    fixed error in reading CPU clock

    Version 0.6.5
    add i/o schedulers
    cfq-iosched
    deadline-iosched
    sio-iosched
    vr-iosched

    Version 0.7.0
    support EXT2/3/4 and JBD2
    fixed compatibility with alls governors
    tweaked ondemand governor and smartassV2

    Version 0.7.2 RC
    fixed init.d (no work )

    Version 0.7.3
    fixed init.d (finally) :highfive:

    Version 0.8.0RC
    using merruk ramdisk!
    added clockwork!
    added root (super user)
    added busybox
    added other things !

    Version 0.8.0 RC 2
    removed superuser (90 % user using custom roms )
    fixed compatibility with roms !

    Version 0.8.0 RC 3
    fixed busybox
    fixed compatibility with alllllls roms ! (creeds,repencis,bla bla ,blu blu !! :D )

    Version 1.0
    - Added support alls bootanimations like my kernel cm9 (its in ramdisk )
    - 5 frequencies (832-624-468-312-156) merged from kurotsugi
    - + profiles of brightness merged from koneu
    - fixes for clocks speeds ...
    - tweak block size of files (more speed in read and write )

    Version 1.0.1
    - fixed bug where some of governors not worked

    Version 1.2.0
    - Added Zram (read post 2 for more informations )
    - More netfilters
    - EXT4 support for system,data and cache
    - Fixed minor bugs

    Version 1.2.5
    - minor fixes
    - update busybox (some apps can not detect it (same system installer app) but a lot of titanium and other vain decta it .. anyway he is working
    - added 2 metods init.d now ...

    Version 1.3.3
    - + 100 patches on kernel linux
    - tweaks and patches for system rfs ,ext 2,ext3, ext4
    - modified memory allocation on kernel linux
    - battery drain reduced with +20 tweaks ...
    - more thinks ( i no remeber )
    -PS : need install new wifi driver ! go for wifi theard

    Instructions for .tar file:
    Download odin 1.8.5 mediafire
    Connect phone in download mode
    Select PDA
    Select kernel
    Press start
    Ready

    Instructions for .zip file:
    Download cwm mediafire
    Turn on recovery mode
    Install from sdcard*
    Select cwm madteam
    In cwm select install zip from sdcard
    Select kernel.zip*
    YES and enjoy ;)









    thanks for :
    Maroc
    irfanbagus
    mikstev
    savie
    hellock(merged thinks on ramdisk )

    If it helps you, please press thanks
    53
    zRAM
    What is zRAM?

    This is a mainline kernel feature for Compressed RAM block device support (CONFIG_ZRAM)
    http://en.wikipedia.org/wiki/ZRam

    Like many of the other tweaks done in the Android world, ZRAM is another one of them that is controversial, probably because people only think in terms of immediate performance they can measure easily with benchmarks etc. *Here is my take...think I will add this to the Q&A section as well.

    But, will it make my device faster? Will I score higher on benchmarks?
    It depends, but for normal usage, the answer is no. zRAM is most useful for those that are configuring Android to be a true multitasking workhorse. For example, if I enable zRAM, open an bunch of apps at one time, and actually start to work towards depleting the memory of the system. *For example, say I open system tuner, a browser with several tabs, a word processing app, a game, and perhaps a picture viewing app or a movie. If I don't formally close out of each one by hitting back and just begin switching between apps and the home screen, you will see zRAM start showing benefits.*

    If you tweak the Android memory and swappiness settings, this can also be useful in this type of environment.

    So, unless you have a heavy workload as stated above, then it won't be of a lot of use for the casual user.

    How do I enable zram?
    It must be enabled by a script. Some ROMs may support activating it. If you need to do it yourself you have two choices.

    1) Save this to a file and run the script from terminal, Script Manager or System Tuner.
    2) Or better yet, save this to a file called 90zram (or whatever you prefer) in /system/etc/init.d and automate it (The ROM's ramdisk needs to supports init.d)

    Code:
    #!/system/bin/sh
    # auto zram activation init script with busybox search
    # by show-p1984
    
    echo "[90ZRAM]: Firing up /system/etc/init.d/90zram";
    
    if [ ! -e /sys/block/zram0/disksize ] ; then
            echo "[90ZRAM]: ERROR unable to find /sys/block/zram0/disksize";
            echo "[90ZRAM]: Is this a ZRAM kernel?";
            echo "[90ZRAM]: ZRAM NOT ACTIVATED. (404)";
    else
            #find busybox in /system
            bblocation=$(find /system/ -name 'busybox')
            if [ -n "$bblocation" ] && [ -e "$bblocation" ] ; then
                    echo "[90ZRAM]: busybox found in:" $bblocation;
                    echo "[90ZRAM]: Setting ZRAM disksize.";
                    echo $((100*1024*1024)) > /sys/block/zram0/disksize
    
                    echo "[90ZRAM]: Starting ZRAM...";
                    bblocation=${bblocation%/*}
                    cd $bblocation
                    ./busybox mkswap /dev/block/zram0
                    ./busybox swapon /dev/block/zram0
    
                    echo "[90ZRAM]: ZRAM activated.";
            else
                    echo "[90ZRAM]: ERROR! busybox not found!";
                    echo "[90ZRAM]: Is busybox installed? Symlinks set?";
                    echo "[90ZRAM]: ZRAM NOT ACTIVATED. (404)";
            fi
    fi

    Performance Tweaks
    These are a couple of tweaks that many are using for faster benchmarks and better battery performance. Google it and decide for yourself if you like the risk or not. I recommend that you do a full backup in recovery and regularly backup your /data partion or cloud sync if you enable these options. Will many run them daily as I now do, there is some additional risk. These can be added to scripts and automated via init.d or other apps/tools that support them.

    To disable fsync for better battery and better disk i/o performance:

    Code:
    echo 0 > /sys/class/misc/fsynccontrol/fsync_enabled

    To enable fsync for better data integrity (default)

    Code:
    echo 1 > /sys/class/misc/fsynccontrol/fsync_enabled

    Faster disk i/o - remount /data partition with noauto_da_alloc option (google it, better battery, less data integrity)

    Code:
    mount -o remount,noauto_da_alloc /data /data
    28
    kernel build from GT-S5360_GB_Opensource_Update2 (opensource samsung )
    version 2.6.35.7


    Sources



    https://github.com/Whitexp/GT-S5360-opensource-Update-2
    15
    new script for zram !

    hey guys
    install it via cwm http://www.mediafire.com/?kua21it474gjh82 (new script for zram ! ) :good:
    and zram work perfect ! :p


    bye !
    11
    Hello after a loooong time finally am in xda :) new graphic's and other things :)

    and the new kernel from Gustavo here :) it's great the 2nd best one after Merruk's Kernel :) and now he is the first one great work :)

    and i have some surprises to this community me and Gustavo (whitexp) :) we are back for you working on the shadow :)

    after some days or week's you will see new things here :) good luck for other and thanks Gustavo