[Kernel] EX Kernel v1.7 (05/02/2013)

Search This thread

hafidzduddin

Senior Member
Oct 6, 2011
601
790
jakarta
Hello everybody, here is my first Custom Kernel for Galaxy Ace 2.

Features

  • TWRP Recovery
  • 22 Governor
  • 5 I/O Scheduler
  • Init.d Script Supported
  • Custom Bootanimation
  • CIFS Supported
  • zRAM Supported
  • SWAP Supported
  • NTFS Supported
  • Mali Tweak
  • Readahead Limit
  • LZMA Compression
  • Use SLQB Memory Allocator
  • Use JRCU
  • Fsync Controler
  • LMK Tweak


Governor:
Code:
wheatley, lazy, intellindemand, sakuractive, scary, interactive, smartassV2,
ondemandx, conservative, ondemand, userspace, powersave, pegasusq, lionheart,
performance, interactivex, hotplug, brazilianwax, minmax, lagfree, savagezen, 
and smartass

I/O Scheduler
Code:
noop, deadline, cfq, vr, and sio

Init.d Script:
*requirement : busybox
*recommended : lastest busybox

Custom Bootanimation:
* Put the bootanimation.zip in /system/media with right permissions.
* If there isn't any custom bootanimation, kernel will load Samsung official bootanimation.

CIFS support
i put cifs.ko in "/lib/modules/2.6.35.7/fs/cifs"
not be loaded by default for power saving

zRam:
* zRAM must be enabled by script/command.
* put this script in init.d
Code:
#!/system/bin/sh
# enable zRAM script

# zRAM Swap Disk Size: 64MB(64*1024*1024)
disksize=67108864;

# Set Size to system
echo $disksize > /sys/block/zram0/disksize;

# Enable Swap (Need BusyBox installed)
busybox mkswap /dev/block/zram0;
busybox swapon /dev/block/zram0;

SWAP:
*SWAP must use with a SWAP partition in sdcard.
Code:
  mkswap /dev/block/mmcblk1p2
  swapon /dev/block/mmcblk1p2

NTFS:
* Need a binary file "ntfs-3g". download here
* I put it in the flashable zip already.

Mali Tweak:
* Increased L2 cache max reads ( 28k -> 48k )
* Increased OS memory for buffer. ( 6m -> 10m )
* Decreased Job runtime (5000)
* Increased Mali Mem ([email protected] -> [email protected])

Readahead Limit
Code:
Limit default readahead size for small devices.
       disk size    readahead size
              1M                8k
              4M               16k
             16M               32k
             64M               64k
            256M              128k
              1G              256k
              4G              512k
             16G             1024k
             64G             2048k
            256G             4096k

Fsync Controler
Enable/disable single file/filesystem sync.

/sys/class/misc/fsynccontrol/fsync_enabled
enable = 1, disable = 0 (default enabled)

example init.d script :
Code:
#!/system/bin/sh
echo "0" > /sys/class/misc/fsynccontrol/fsync_enabled

Disabling single file/filesystem sync increases the risk of a data loss on a crash/freeze and potentially can lead to other side-effects.


Download

EX Kernel v1.7

eX-Kernel_v1.7 Download And Changelog

EX Kernel v1.2



EX Kernel v1

if you need Odin Flasher : Odin3-v3.04.zip
but i recommend to use dd cmd (dd if=/sdcard/kernel.bin.md5 of=/dev/block/mmcblk0p15)


Changelog :
Code:
[LIST]

[B]EX Kernel v1.2[/B]
[*]upgrade TWRP to 2.3.1.1
[*]remove cifs modules
[*]add bfq and anticipatory iosched
[*]remove some governor and add "skywalker, abyssplug, lulzactive, gallimaufry, gallimaufryx, aggressive, and aggressivex"
[*]remove fsync control
[*]add some tweak
[*]bootanim fix (need test)


[B]EX Kernel v1[/B]
[*]inital release
[/LIST]

BUG :
Code:
[LIST]
[*]need test[/LIST]


Thanks :


Thanks to everyone who helped and support me :):)

Special Thanks:

  • diego-ch
  • cocafe
  • adipat
  • oschmidt
  • amarullz


Older Kernel :


Source : https://github.com/hafidzduddin/GT-I8160_HD-Kernel


Sorry i just update flashable zip :)
If there are any issues, please report. :)
and if you like my work, Press THANKS Button Please. :)
 
Last edited:

tonus76

Senior Member
Sep 26, 2012
106
26
Burgas, Bulgaria
Hello everybody, here is my first Custom Kernel for Galaxy Ace 2.

Features

  • TWRP Recovery
  • Governor : wheatley, lazy, intellindemand, sakuractive, scary, interactive, smartassV2, ondemandx, conservative, ondemand, userspace, powersave, pegasusq, lionheart, and performance
  • I/O Scheduler : noop, deadline, cfq, vr, and sio
  • Init.d Script Supported
  • Custom Bootanimation
  • CIFS Supported
  • zRAM Supported
  • SWAP Supported
  • NTFS Supported
  • 1025kb sdcard max readahead
  • Sched Tweak
  • TCP Optimized
  • LZMA Compression
  • Use SLAB Memory Allocator

Init.d Script:
*requirement : busybox
*recommended : lastest busybox

Custom Bootanimation:
* Put the bootanimation.zip in /system/media with right permissions.
* If there isn't any custom bootanimation, kernel will load Samsung official bootanimation.

zRam:
* zRAM must be enabled by script/command.
* put this script in init.d
Code:
#!/system/bin/sh
# enable zRAM script

# zRAM Swap Disk Size: 64MB(64*1024*1024)
disksize=67108864;

# Set Size to system
echo $disksize > /sys/block/zram0/disksize;

# Enable Swap (Need BusyBox installed)
busybox mkswap /dev/block/zram0;
busybox swapon /dev/block/zram0;

NTFS:
* Need a binary file "ntfs-3g". download here
* I put it in the flashable zip already.


Download

I8160

I8160P [NFC Version] (need tester)



Changelog :
Code:
29/10/2012
[LIST]
[*]back to old ramdisk (TWRP 2.2.1) in order to fix tether issue
[*]fix error in function "usleep_range" when compile kernel
[*]modified LMK
[*]add more governor & iosched
[*]remove some Useless driver & tweak
[*]remove zCache
[/LIST]



Thanks :


Thanks to everyone who helped and support me :):)

Special Thanks:

  • diego-ch
  • cocafe
  • adipat
  • oschmidt


Source : GT-I8160_HD_Kernel_TWRP.tar.gz


If there are any issues, please report. :)
and if you like my work, Press THANKS Button Please. :)
GT-I8160_HD-Kernel_TWRP.zip not work fpr me.
 

malamharian

Senior Member
Oct 12, 2012
295
45
after i try GT-I8160-TWRP-Kernel.tar.md5 and GT-I8160_HD-Kernel_TWRP.zip i dont have any problem
i use odin to flash GT-I8160-TWRP-Kernel.tar.md5
and use recovery to flash GT-I8160_HD-Kernel_TWRP.zip
:confused::confused:

rom what you use?

Kyrillos rom. And i was unable to go to recovery too.

Sent from my GT-I8160 using xda app-developers app
 
Last edited:
  • Like
Reactions: hafidzduddin

jeev_one

Senior Member
Aug 1, 2012
54
3
great job- does it fix the Wifi tether?

Hey Hafidz

great job....i'd love to flash this....could you confirm if Wifi tether works on this now?
 

hafidzduddin

Senior Member
Oct 6, 2011
601
790
jakarta
Kyrillos rom. And i was unable to go to recovery too.

Sent from my GT-I8160 using xda app-developers app

I used your previous twrp 2.3.1.1 recovery.

ok, after i test flash my kernel when i use Kyrillos rom and twrp 2.3.1.1 i dont have any problem.

i flash kyriloss rom, i flash my old kernel (twrp 2.3.1.1), and then i restore my data.
after that I flash my new kernel (twrp 2.2.1) and i dont have any problem.

i use Odin3 v3.04 to flash my kernel via odin
try to use dd cmd (dd if=/sdcard/kernel.bin.md5 of=/dev/block/mmcblk0p15)

Hey Hafidz

great job....i'd love to flash this....could you confirm if Wifi tether works on this now?

yes because i rollback twrp 2.3.1.1 to twrp 2.2.1

Will Jetmod work with this kernel?

i dont know. i dont have jetmod rom :D
 

Attachments

  • Odin3-v3.04.zip
    521.1 KB · Views: 4,737
Last edited:

sdke

Senior Member
May 19, 2012
118
22
JetRom works with it.

But I think SuspressedRom is now a better rom/port
 

Top Liked Posts

  • There are no posts matching your filters.
  • 87
    Hello everybody, here is my first Custom Kernel for Galaxy Ace 2.

    Features

    • TWRP Recovery
    • 22 Governor
    • 5 I/O Scheduler
    • Init.d Script Supported
    • Custom Bootanimation
    • CIFS Supported
    • zRAM Supported
    • SWAP Supported
    • NTFS Supported
    • Mali Tweak
    • Readahead Limit
    • LZMA Compression
    • Use SLQB Memory Allocator
    • Use JRCU
    • Fsync Controler
    • LMK Tweak


    Governor:
    Code:
    wheatley, lazy, intellindemand, sakuractive, scary, interactive, smartassV2,
    ondemandx, conservative, ondemand, userspace, powersave, pegasusq, lionheart,
    performance, interactivex, hotplug, brazilianwax, minmax, lagfree, savagezen, 
    and smartass

    I/O Scheduler
    Code:
    noop, deadline, cfq, vr, and sio

    Init.d Script:
    *requirement : busybox
    *recommended : lastest busybox

    Custom Bootanimation:
    * Put the bootanimation.zip in /system/media with right permissions.
    * If there isn't any custom bootanimation, kernel will load Samsung official bootanimation.

    CIFS support
    i put cifs.ko in "/lib/modules/2.6.35.7/fs/cifs"
    not be loaded by default for power saving

    zRam:
    * zRAM must be enabled by script/command.
    * put this script in init.d
    Code:
    #!/system/bin/sh
    # enable zRAM script
    
    # zRAM Swap Disk Size: 64MB(64*1024*1024)
    disksize=67108864;
    
    # Set Size to system
    echo $disksize > /sys/block/zram0/disksize;
    
    # Enable Swap (Need BusyBox installed)
    busybox mkswap /dev/block/zram0;
    busybox swapon /dev/block/zram0;

    SWAP:
    *SWAP must use with a SWAP partition in sdcard.
    Code:
      mkswap /dev/block/mmcblk1p2
      swapon /dev/block/mmcblk1p2

    NTFS:
    * Need a binary file "ntfs-3g". download here
    * I put it in the flashable zip already.

    Mali Tweak:
    * Increased L2 cache max reads ( 28k -> 48k )
    * Increased OS memory for buffer. ( 6m -> 10m )
    * Decreased Job runtime (5000)
    * Increased Mali Mem ([email protected] -> [email protected])

    Readahead Limit
    Code:
    Limit default readahead size for small devices.
           disk size    readahead size
                  1M                8k
                  4M               16k
                 16M               32k
                 64M               64k
                256M              128k
                  1G              256k
                  4G              512k
                 16G             1024k
                 64G             2048k
                256G             4096k

    Fsync Controler
    Enable/disable single file/filesystem sync.

    /sys/class/misc/fsynccontrol/fsync_enabled
    enable = 1, disable = 0 (default enabled)

    example init.d script :
    Code:
    #!/system/bin/sh
    echo "0" > /sys/class/misc/fsynccontrol/fsync_enabled

    Disabling single file/filesystem sync increases the risk of a data loss on a crash/freeze and potentially can lead to other side-effects.


    Download

    EX Kernel v1.7

    eX-Kernel_v1.7 Download And Changelog

    EX Kernel v1.2



    EX Kernel v1

    if you need Odin Flasher : Odin3-v3.04.zip
    but i recommend to use dd cmd (dd if=/sdcard/kernel.bin.md5 of=/dev/block/mmcblk0p15)


    Changelog :
    Code:
    [LIST]
    
    [B]EX Kernel v1.2[/B]
    [*]upgrade TWRP to 2.3.1.1
    [*]remove cifs modules
    [*]add bfq and anticipatory iosched
    [*]remove some governor and add "skywalker, abyssplug, lulzactive, gallimaufry, gallimaufryx, aggressive, and aggressivex"
    [*]remove fsync control
    [*]add some tweak
    [*]bootanim fix (need test)
    
    
    [B]EX Kernel v1[/B]
    [*]inital release
    [/LIST]

    BUG :
    Code:
    [LIST]
    [*]need test[/LIST]


    Thanks :


    Thanks to everyone who helped and support me :):)

    Special Thanks:

    • diego-ch
    • cocafe
    • adipat
    • oschmidt
    • amarullz


    Older Kernel :


    Source : https://github.com/hafidzduddin/GT-I8160_HD-Kernel


    Sorry i just update flashable zip :)
    If there are any issues, please report. :)
    and if you like my work, Press THANKS Button Please. :)
    25
    eX Kernel V1.7

    ChangeLog:
    • Implement Headset volume control
    • CWM RECOVERY
    • zRAM Supported
    • SWAP Supported
    • Fsync Control
    • mali_l2_max_reads unlocked
    • Mali : disable state tracking
    • Mali : OS_MEM = 8
    • Mali: gpu utilization timeout 500ms -> 1000ms
    • Disable GENTLE_FAIR_SLEEPERS
    • SLUB Tweak
    • Remove Some Governor

    Download :


    eX-Kernel V1.7


    HOW TO :

    Headset volume control
    Code:
    To enable:
    echo 1 > /sys/module/snd_soc_ab8500_audio/parameters/hsx_boost
    
    To disable:
    echo 0 > /sys/module/snd_soc_ab8500_audio/parameters/hsx_boost
    
    P.S  Need to stop music for seconds (let ab8500 asoc powers off),and turn on music to take effect 
    
    Enjoy! :)

    Fsync Control
    Code:
    To enable:
    echo "1" > /sys/class/misc/fsynccontrol/fsync_enabled
    
    To disable:
    echo "0" > /sys/class/misc/fsynccontrol/fsync_enabled
    
    P.S  Disabling single file/filesystem sync increases the risk of a data loss on a crash/freeze and potentially can lead to other side-effects.

    Change mali_l2_max_reads value
    Code:
    echo 0x00000030 > /sys/module/mali/parameters/mali_l2_max_reads;
    
    P.S 
    0x00000030 = 48
    The values you `echo` must be HEX
    BUT,if it doesnt or feels lagged,remove this script.
    For me,48kb works well.


    Special Thanks : my bro @cocafe

    SOURCE : https://github.com/hafidzduddin/GT-I8160_Kernel-GB
    17
    Ambient Light Sensor for i8160 - idea how to ulock

    I did not know where to post it, so I post it here. Maybe it will be usefull for any kernelsmith, not only hafidzduddin, bagnz0r or antsm ... or maybe it is just bu11sh1t. I am not expert ... I may be wrong.

    FACT 1:
    Galaxy Ace 2 i8160 uses TAOS TMD 2672 as proximity sensor, because in:
    GT-I8160_Kernel\arch\arm\configs\u8500_rev00_codina_open_defconfig
    we have:
    Code:
    CONFIG_PROXIMITY_TMD2672=y
    i8160 uses just proximity sensing with following drivers :
    GT-I8160_Kernel\drivers\sensor\proximity\tmd2672.c

    FACT 2:
    TMD 2672 is proximity sensor chip:
    http://www.ams.com/eng/Products/Light-Sensors/Proximity-Detection
    http://eon.businesswire.com/news/eo...ent-light-and-proximity-detection-sensors/TSL

    On internet there are source codes for drivers for all TAOS txx2x7x Device family members including tmd2671 floating around:
    http://lxr.free-electrons.com/source/drivers/staging/iio/light/tsl2x7x_core.c
    they allow to compile kernel with ALS and proximity support for tmd2671.

    FACT 3:
    TMB2672 is tiny 2x2 mm piece of SMD on the right side. The red light highlighted in red box is the IR diode, which helps more precise proximity readings:
    proximity.jpg
    module.jpg

    On the secong photo you see the whole MODULE-SENSOR+RCV(GT-I8160) - GH59-12018A. Both sensors are sealed.

    FACT 4:
    According to AMS site, TMD2672 is only proximity detector (source), but from its technical specs it looks like CH0 Photodiode could also work like Ambient Light Sensor. In TSL2772 (ALS and Proximity Detector) technical specs, on Functional Diagram the only difference between proximity detection and ALS is the "Prox Integration" element. And because of this I have made an assumption that TMD2672 can also work as ambient light sensor.

    I have sent an email to J. August Brenner, who is author of TAOS TSL2X7X driver. From his driver and data sheet of TMD2672 it looks like this sensor can be used as ALS also.

    IDEA:
    Maybe there is a way to compile new TAOS driver into existing kernel and somehow "unleash" Ambient Light Sensor in Galaxy ACE 2?

    Usefull or useless stuff ... let the kernelsmith decide:


    UPDATE 14.01.2013: Edited all facts with actual state of knowledge. Stay in touch...
    11
    Finally modules loaded yeaaah :D:D

    Sent from my GT-I8160 using xda premium
    10
    success

    yeaaah kernel 3.x