[KERNEL][STOCK][CM11][CM12.1][CM13][SM-G313HZ][R8.5] OC Kernel for Samsung Galaxy V

Search This thread

doesntexits

Senior Member
Apr 12, 2015
1,330
1,748
/dev/null
As you could see in our CM11 thread, there's a custom kernel that we've integrated in latest CM11 builds
Now as CM11 was stable, I decided to cut the kernel to seperate system unit - The new custom kernel
Now let's make a start
Post 1: Introduction
Post 2: Features and Bugs
Post 3: How to post bugs
Post 4: Download links
Post 5: Changelog
[NOTE] This kernel is just for SM-G313HZ only. For G313H/ML users, since our CM11 works with those phone models, you can try this kernel. NOT COMPATIBLE with SM-G313HN or SM-G313HU

XDA:DevDB Information
OC Kernel for Galaxy V SM-G313HZ, Kernel for the Samsung Galaxy Ace 4

Contributors
doesntexits
Source Code: https://github.com/koquantam/android_kernel_oc_vivalto3gvn

Kernel Special Features: Described in post 2

Version Information
Status: Testing

Created 2016-03-09
Last Updated 2016-06-14
 

Attachments

  • Screenshot_2016-04-04-17-29-53.png
    Screenshot_2016-04-04-17-29-53.png
    47.4 KB · Views: 8,668
  • Screenshot_2016-04-04-17-29-04.png
    Screenshot_2016-04-04-17-29-04.png
    53.4 KB · Views: 8,239
  • Screenshot_2016-04-04-17-28-58.png
    Screenshot_2016-04-04-17-28-58.png
    45.6 KB · Views: 7,672
  • Screenshot_2016-04-04-17-28-50.png
    Screenshot_2016-04-04-17-28-50.png
    41.7 KB · Views: 6,857
  • Screenshot_2016-04-04-17-28-36.png
    Screenshot_2016-04-04-17-28-36.png
    92.8 KB · Views: 7,089
  • Screenshot_2016-04-24-18-34-31.png
    Screenshot_2016-04-24-18-34-31.png
    46.8 KB · Views: 7,208
Last edited:

doesntexits

Senior Member
Apr 12, 2015
1,330
1,748
/dev/null
What's new in this kernel versus stock CM11 one?
  • Upgraded to latest Linux mainline version (not yet, but it will)
  • Overclock support, up to 1,3GHz (HOT)
  • Ultra Kernel Samepage Merging (saves RAM)
  • Logcat toggle (enable/disable) through sysfs interface
  • zRAM with LZ4/ZLIB compressor, multiple zRAMs
  • New IO schedulers: ROW, DEADLINE, FIOPS, BFQ, ZEN, SIOPLUS (will be added more on future builds)
  • Governor: interactive, ondemand, userspace, performance, powersave, smartassv2, lulzactive2, intelliactive
  • zswap support (swap compression)
  • LZ4 kernel compression (CRYPTO, COMPRESS/DECOMPRESS,...)
  • F2FS support
  • Dalvik-cache on system partition (save internal storage space)
  • Something more!... will be continued

BUG(S):
  • For some users, camera is dead (here means not working)
  • Change zRAM size directly from userspace causes hard reboot immediately sometimes
 
Last edited:

doesntexits

Senior Member
Apr 12, 2015
1,330
1,748
/dev/null
How to post bugs

As you know, this is a kernel, so logcat is useless. We use "dmesg" to track what the kernel do and how it's done, what it's fault...
If you post logcat to a kernel dev, no helps. So now, a single rule: No logcats
To post bugs, please do this:
1. Make sure you have a computer running any Linux distros (e.g Ubuntu) (ignore this if you already have)
2. Plug your phone with USB cable plugged to computer
3. Open Terminal, type these (DO NOT MISS ANYTHING)
Code:
adb shell dmesg | tee dmesg.txt
The "tee" command will export your "dmesg" (driver messages) to your /home/<USER> folder (e.g from mine: /home/a1/dmesg.txt)
4. Post the full dmesg text logs to this thread
 
Last edited:

doesntexits

Senior Member
Apr 12, 2015
1,330
1,748
/dev/null
CHANGELOG

  • Release 1
    1. Initial release
  • Release 2
    • Re-enabled zCache
    • Added KSM (Kernel Samepage Merging)
    • Fixed lags, underclocked to 1,4GHz and GPU to 300MHz
    • Reserved zRAM size to 90MB (explain later)
    • Re-enabled memory cgroups (better memory allocation)
  • Release 3
    • zswap revert back to LZO compression (you can change this through sysfs)
    • zRAM moved to block driver, also reverted to LZO compression by default (thanks to @psych.half)
    • Disabled zCache (this does nothing but lags)
    • Added new governors: smartassv2, lulzactive
    • zRAM now compresses 18% of RAM (this is the main cause of lags, and our device only have 512MB RAM, not much so multitasking only possible if we use ordinary swap)
    • ZSMALLOC moved to kernel mainline (ported from Linux 3.18)
    • Random reboots disappeared (yay!)
    • Minimum clock speed now 500MHz
    • Snappy compression algorithm, will be implemented on zRAM
  • Release 4
    • Switched from KSM to UKSM (Ultra Kernel Samepage Merging)
    • zRAM increased to 35% of RAM (161MB)
    • Logcat now can be disabled through sysfs interface
    • ROW IO scheduler as default
    • Increased IO readahead to 1024KB
    • ....
  • Release 5
    • Decreased IO readahead to 128KB by default (this fixes massive lag as our device can't handle too many IO operations)
    • Fixed giant hole memory. Now every task managers shows correct results
  • Release 6
    • Re-compiled with Linaro 5.2 toolchain
    • Allow setting zRAM disksize, compressor and swappiness through build.prop
    • New governor: intelliactive
  • Release 7.1
    • Upgraded to Linux 3.10.20
    • New TCP algorithms: westwood, reno, bic, htcp, veno
    • Dalvik-cache on /system partition (CM-11.0 only) (significantly save internal storage space) (NEW!) (thanks to @ngoquang2708 for this idea)
  • Release 7.2
    • Upgraded to Linux 3.10.22
  • Release 8
    • Upgraded to Linux 3.10.31
    • (NEW!) Stock support
    • Support LZ4HC (high compression) for zRAM
    • /tmp folder added, in case some root apps need that and mounted as tmpfs
    • Improved memory management
  • Release 8.1
    • Added 250MHz minimum clock speed
    • zswap disabled by default (enable through build.prop by adding "ro.config.zswap.enabled=true")
    • Disabled unaligned memory access for faster memory operations
  • Release 8.2
    • Fix bootloop on CM12.1
  • Release 8.3
    • Upgraded to Linux 3.10.34
    • [CM-11.0] Switched dalvik-cache location to /cache to prevent ROM reinstalling when you want to wipe dalvik-cache, also fix app installation issue
  • Release 8.4
    • Maximum OC clock decreased to 1.3GHz (as 1.4GHz causes random crashes/reboots)
    • Added zlib compressor for zRAM, switched back to default lzo compressor
    • (AGAIN) zswap enabled by default
    • Multiple zRAMs are back, now is 2 zRAMs for better performance
    • [CM-11.0] Permanently mounted /system partition RW, moved dalvik-cache to /system partition (this fixes apps instalation issue, and because /cache partition is too small)
 
Last edited:

doesntexits

Senior Member
Apr 12, 2015
1,330
1,748
/dev/null
@hendrulll @JeffersonCaf
Weird. The kernel really works with build 20160213. Why the hell it doesn't work with you guys? Or... I've to give a simple boot.img which is be able to flash over TWRP only?
You should see in "Kernel version", it was being built yesterday LOL
attachment.php
 

Attachments

  • Screenshot_2016-03-11-12-36-32.png
    Screenshot_2016-03-11-12-36-32.png
    92.1 KB · Views: 14,833
  • Like
Reactions: hendramuhhh

hendramuhhh

Senior Member
Dec 29, 2014
50
2
Hmm, I still got soft brick with my device after installing your kernel, even if I install from build 20160213 after wipe everything, but when I try to flash @cleverior.ipul kernel a.k.a getux kernel its worked like a charm. Any reason?
 

doesntexits

Senior Member
Apr 12, 2015
1,330
1,748
/dev/null
Hmm, I still got soft brick with my device after installing your kernel, even if I install from build 20160213 after wipe everything, but when I try to flash @cleverior.ipul kernel a.k.a getux kernel its worked like a charm. Any reason?

You know what, his kernel is completely based on stock CM11, just adds a lower CPU frequency (1100MHz)
And new kernel build will be released after some minutes, just waiting for it to compiling and I'll release it as a boot.img (flash through TWRP)
This time it's completely compatible with CM11 build 20160213
 
Last edited:

doesntexits

Senior Member
Apr 12, 2015
1,330
1,748
/dev/null
New kernel build! Changes:
  • Re-enabled zCache
  • Added KSM (Kernel Samepage Merging)
  • Fixed lags, underclocked to 1,4GHz and GPU to 300MHz
  • Reserved zRAM size to 90MB (explain later)
  • Re-enabled memory cgroups (better memory allocation)
Boot image added to downloads section. Please choose the latest boot image to make sure you're in latest kernel build. Flash through TWRP recovery
 
Last edited:
  • Like
Reactions: JeffersonCaf

JeffersonCaf

Senior Member
Nov 17, 2015
156
59
Samsung Galaxy Ace 4
Moto G4 Plus
New kernel build! Changes:
  • Re-enabled zCache and disable zswap, since zswap only applies on swap file or ordinary swap partition (not RAM-based swap partition)
  • Added KSM (Kernel Samepage Merging)
  • Fixed lags, underclocked to 1,4GHz and GPU to 300MHz
  • Reserved zRAM size to 90MB (explain later)
  • Re-enabled memory cgroups (better memory allocation)
Boot image added to downloads section. Please choose the latest boot image to make sure you're in latest kernel build. Flash through TWRP recovery

Well it's working on SM-G313ML, but i noticed when the CPU frequency goes to 384 MHz the phone freezes :)
Edit: and some random reboots too.
 
Last edited:

doesntexits

Senior Member
Apr 12, 2015
1,330
1,748
/dev/null
Well it's working on SM-G313ML, but i noticed when the CPU frequency goes to 384 MHz the phone freezes :)
Edit: and some random reboots too.

Well, switch the min CPU freq to 600MHz in Performance Settings section, and tick "Set on boot" too
Edit: Random reboots due to the old build with 1,5GHz, the CPU voltage is too high, leads to the phone randomly reboots
 
Last edited:
  • Like
Reactions: JeffersonCaf

doesntexits

Senior Member
Apr 12, 2015
1,330
1,748
/dev/null
R3 has released! Changes:
  • zswap revert back to LZO compression (you can change this through sysfs)
  • zRAM moved to block driver, also reverted to LZO compression by default (thanks to @psych.half)
  • Disabled zCache (this does nothing but lags)
  • Added new governors: smartassv2, lulzactive
  • zRAM now compresses 18% of RAM (this is the main cause of lags, and our device only have 512MB RAM, not much so multitasking only possible if we use ordinary swap)
  • ZSMALLOC moved to kernel mainline (ported from Linux 3.18)
  • Random reboots disappeared (yay!)
  • Minimum clock speed now 500MHz
  • Snappy compression algorithm, will be implemented on zRAM
Boot image added to Downloads section. Please choose the latest boot image to make sure you're in latest kernel build. Flash through TWRP recovery
 
  • Like
Reactions: JeffersonCaf

JeffersonCaf

Senior Member
Nov 17, 2015
156
59
Samsung Galaxy Ace 4
Moto G4 Plus
R3 has released! Changes:
  • zswap revert back to LZO compression (you can change this through sysfs)
  • zRAM moved to block driver, also reverted to LZO compression by default (thanks to @psych.half)
  • Disabled zCache (this does nothing but lags)
  • Added new governors: smartassv2, lulzactive
  • zRAM now compresses 18% of RAM (this is the main cause of lags, and our device only have 512MB RAM, not much so multitasking only possible if we use ordinary swap)
  • ZSMALLOC moved to kernel mainline (ported from Linux 3.18)
  • Random reboots disappeared (yay!)
  • Minimum clock speed now 500MHz
  • Snappy compression algorithm, will be implemented on zRAM
Boot image added to Downloads section. Please choose the latest boot image to make sure you're in latest kernel build. Flash through TWRP recovery

Yeah it's working (SM-G313ML) but i noticed when the CPU frequency go to 500MHz the phone freezes (i've changed the min to 1GHz, but shows 768MHz on SetCPU o_O) and freezes too when change the governor to interactive, well the random reboots has dessapeared (yay!²) thx for all that work bro :D
 
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 10
    As you could see in our CM11 thread, there's a custom kernel that we've integrated in latest CM11 builds
    Now as CM11 was stable, I decided to cut the kernel to seperate system unit - The new custom kernel
    Now let's make a start
    Post 1: Introduction
    Post 2: Features and Bugs
    Post 3: How to post bugs
    Post 4: Download links
    Post 5: Changelog
    [NOTE] This kernel is just for SM-G313HZ only. For G313H/ML users, since our CM11 works with those phone models, you can try this kernel. NOT COMPATIBLE with SM-G313HN or SM-G313HU

    XDA:DevDB Information
    OC Kernel for Galaxy V SM-G313HZ, Kernel for the Samsung Galaxy Ace 4

    Contributors
    doesntexits
    Source Code: https://github.com/koquantam/android_kernel_oc_vivalto3gvn

    Kernel Special Features: Described in post 2

    Version Information
    Status: Testing

    Created 2016-03-09
    Last Updated 2016-06-14
    5
    What's new in this kernel versus stock CM11 one?
    • Upgraded to latest Linux mainline version (not yet, but it will)
    • Overclock support, up to 1,3GHz (HOT)
    • Ultra Kernel Samepage Merging (saves RAM)
    • Logcat toggle (enable/disable) through sysfs interface
    • zRAM with LZ4/ZLIB compressor, multiple zRAMs
    • New IO schedulers: ROW, DEADLINE, FIOPS, BFQ, ZEN, SIOPLUS (will be added more on future builds)
    • Governor: interactive, ondemand, userspace, performance, powersave, smartassv2, lulzactive2, intelliactive
    • zswap support (swap compression)
    • LZ4 kernel compression (CRYPTO, COMPRESS/DECOMPRESS,...)
    • F2FS support
    • Dalvik-cache on system partition (save internal storage space)
    • Something more!... will be continued

    BUG(S):
    • For some users, camera is dead (here means not working)
    • Change zRAM size directly from userspace causes hard reboot immediately sometimes
    4
    Highest free RAM ever :D
    hZHQZy1.png
    4
    For now i'll pause this project, as there're lots of exams and things to do in my real life
    As the time the exams are finished, i'll be back with our beloved Galaxy V, so don't ask "When will you come back?"
    And the CM12.1 project will be maintained by @ngoquang2708, so don't worry, he's still working with this phone, maybe CM13 is good when CM12.1 is stable :D
    Anyway... see you guys later
    4
    R6 is here! Changes (noticeable only)
    • Re-compiled with Linaro 5.2 toolchain
    • Allow setting zRAM disksize, compressor and swappiness through build.prop
    • New governor: intelliactive

    Q: How do I change zRAM disksize through build.prop?
    A: That's easy. Because zRAM is not initialized on boot so you need to add the following line on build.prop:
    Code:
    ro.config.zram.disksize=(disksize)
    Here's an example with 256MB zRAM (this value is calculated in bytes):
    Code:
    ro.config.zram.disksize=268435456

    After doing changes, remember to reboot the phone. Again, boot images (CM11 and CM12.1) are added in Downloads section. Please choose the latest one to make sure you're in latest kernel build