• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!

[KERNEL][i9500][TW] KudKernel [DISCONTINUED]

Status
Not open for further replies.
Search This thread

Ngadhnjim

Senior Member
Sep 26, 2015
1,002
172
Prishtina

hansonchen

Senior Member
Jun 14, 2012
578
307
v4.0 is re-uploaded again, now on AndroidFileHost!
So I removed the board check because it never works on TWRP :/

Btw, here's another test build; where the suspected culprit reverted.

Ok, this build seems to have fixed the hangs/reboots. Running fine now. Will update if i find any hiccups. Btw, what's rq affinity? They're set to 2 by default & internal read ahead @1024kb. Any improvements with these settings?
 

krasCGQ

Recognized Contributor
Apr 13, 2015
5,436
4,952
21
Kendari
kud.my.id
Xiaomi Mi 9 SE
Ok, this build seems to have fixed the hangs/reboots. Running fine now. Will update if i find any hiccups. Btw, what's rq affinity? They're set to 2 by default & internal read ahead @1024kb. Any improvements with these settings?
RQ Affinity is set to 2 to make all I/O requests to be done at the same CPU as they're created from.

I/O read ahead for internal storage is set to 1024 kB for optimal I/O performance with 16 GB storage.

Sent from my ASUS_Z00A using XDA Labs
 

krasCGQ

Recognized Contributor
Apr 13, 2015
5,436
4,952
21
Kendari
kud.my.id
Xiaomi Mi 9 SE
Uploaded preview builds for TW and CM (using AnyKernel), introducing Synapse support and more...
Thanks to @asad007 for everything! LMAO

Note:
I uploaded 2 TW versions, one using UBUHPB2 ramdisk and one using the latest UBUHPG1 ramdisk. KudKernel Lite release is postponed.

EDIT: In CM version, SELinux is disabled until we managed to find out the culprit.

EDIT #2: Synapse support is for Screen and Audio (auto-generated)

EDIT #3: I forgot to adjust ramdisk settings on PG1 ramdisk so scripts and init.d won't work on that version. - Also Synapse -

EDIT #4: Old attachments removed. See my latest post.
 

Attachments

  • KudKernelTW-test-PB2.img
    6 MB · Views: 113
Last edited:

asad007

Senior Member
Oct 14, 2011
1,957
1,960
Uploaded preview builds for TW and CM (using AnyKernel), introducing Synapse support and more...
Thanks to @asad007 for everything! LMAO

Note:
I uploaded 2 TW versions, one using UBUHPB2 ramdisk and one using the latest UBUHPG1 ramdisk. KudKernel Lite release is postponed.

EDIT: In CM version, SELinux is disabled until we managed to find out the culprit.

EDIT #2: Synapse support is for Screen and Audio (auto-generated)

EDIT #3: I forgot to adjust ramdisk settings on PG1 ramdisk so scripts and init.d won't work on that version. - Also Synapse -
CM version won't install if the already present kernel uses anything other than gzip compression for ramdisk, i saw the anykernel script, i think it needs editing.

Sent From S4 Powered By LWK
 

krasCGQ

Recognized Contributor
Apr 13, 2015
5,436
4,952
21
Kendari
kud.my.id
Xiaomi Mi 9 SE
CM version won't install if the already present kernel uses anything other than gzip compression for ramdisk, i saw the anykernel script, i think it needs editing.
Yeah. I'll try to inject AnyKernel.sh with if clause for ramdisk compression, but I hope things are going well.

I only inject the AnyKernel.sh to use kernel's defined cmdline.

Sent from my ASUS_Z00A using XDA Labs
 

krasCGQ

Recognized Contributor
Apr 13, 2015
5,436
4,952
21
Kendari
kud.my.id
Xiaomi Mi 9 SE
Reuploaded CM zip and PG1 ramdisk version.

Changes:
CM:
[AnyKernel] Support for decompressing lzma, xz, and lzo compressed ramdisks.
[AnyKernel] Inject ramdisk patch inside AnyKernel script instead
** Both of them needs testing **

TW-PG1:
Proper ramdisk changes.


@thaibinh262: If I could, especially without the device in my hand LMAO!
 

Attachments

  • KudKernelTW-test-PG1(2).img
    6 MB · Views: 143
  • KudKernelCM-test2.zip
    5.2 MB · Views: 9

kongacute

Senior Member
Jul 10, 2015
1,000
622
22
Ha Noi
Reuploaded CM zip and PG1 ramdisk version.

Changes:
CM:
[AnyKernel] Support for decompressing lzma, xz, and lzo compressed ramdisks.
[AnyKernel] Inject ramdisk patch inside AnyKernel script instead
** Both of them needs testing **

TW-PG1:
Proper ramdisk changes.


@thaibinh262: If I could, especially without the device in my hand LMAO!
Waiting for ur fully support synapse ver. And i dont understand known issue in v4. Those issue are big problem?
 

krasCGQ

Recognized Contributor
Apr 13, 2015
5,436
4,952
21
Kendari
kud.my.id
Xiaomi Mi 9 SE
v4.1 is released! Enjoy.

Just some info:
If something went wrong on CM zip, unpack, edit anykernel.sh, and replace this line:
Code:
cmdline=`console=ttySAC2,115200n8 vmalloc=512M androidboot.console=ttySAC2 androidboot.hardware=universal5410 androidboot.selinux=disabled`;
With:
Code:
cmdline=`cat *-cmdline`;

Pack again and flash zip.
I'm just doing some experiments on AnyKernel2 template.
 
  • Like
Reactions: zuziemanis

Ngadhnjim

Senior Member
Sep 26, 2015
1,002
172
Prishtina
v4.1 is released! Enjoy.

Just some info:
If something went wrong on CM zip, unpack, edit anykernel.sh, and replace this line:
Code:
cmdline=`console=ttySAC2,115200n8 vmalloc=512M androidboot.console=ttySAC2 androidboot.hardware=universal5410 androidboot.selinux=disabled`;
With:
Code:
cmdline=`cat *-cmdline`;

Pack again and flash zip.
I'm just doing some experiments on AnyKernel2 template.

install OK booted but wether ,media storage ,setings manymore has stoped
 
  • Like
Reactions: Razor22

krasCGQ

Recognized Contributor
Apr 13, 2015
5,436
4,952
21
Kendari
kud.my.id
Xiaomi Mi 9 SE
install OK booted but wether ,media storage ,setings manymore has stoped
Which ROM?

EDIT:
This is what I actually hate.
When I push test builds, everyone just download, download, flash, and no one give feedback (even a little). When a final build is released 'blindly' due to no feedback over previous test build, everyone would complain blah blah...
I would definitely remove v4.1 if this issue affect both TW and CM.

EDIT #2:
I actually have @zuziemanis as my unexpected tester (? LMAO), but having only a tester doesn't mean anything since he use his own stock deodexed ROM, while most of TW users here are using ported ROM. I need more and more testers since I don't have control over my phone anymore.

If I get headache of all sudden because this, I would discontinue my kernel development on i9500 using the same way as j2lte (eliminating all links).

Sent from my ASUS_Z00A using XDA Labs
 
Last edited:

Ngadhnjim

Senior Member
Sep 26, 2015
1,002
172
Prishtina
Which ROM?

EDIT:
This is what I actually hate.
When I push test builds, everyone just download, download, flash, and no one give feedback (even a little). When a final build is released 'blindly' due to no feedback over previous test build, everyone would complain blah blah...
I would definitely remove v4.1 if this issue affect both TW and CM.

EDIT #2:
I actually have @zuziemanis as my unexpected tester (? LMAO), but having only a tester doesn't mean anything since he use his own stock deodexed ROM, while most of TW users here are using ported ROM. I need more and more testers since I don't have control over my phone anymore.

If I get headache of all sudden because this, I would discontinue my kernel development on i9500 using the same way as j2lte (eliminating all links).

Sent from my ASUS_Z00A using XDA Labs

sorry i complete sleepy ,TW Rom Ale95 V6.1..
its ok ,when i se beta i known it that cannot work good :good::good: sorry bad english here
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 22
    kud_logo.png

    Join KudKernel's Hangouts group for tests builds and previews before every new release.
    Click here to join.


    NOTE: Thread as per v4.1 and may or may not available on last build.

    Code:
    /*
     * Your warranty is now void.
     *
     * I am not responsible for bricked devices, dead SD cards,
     * thermonuclear war, or you getting fired because the alarm app failed. Please
     * do some research if you have any concerns about features included in this KERNEL
     * before flashing it! YOU are choosing to make these modifications, and if
     * you point your finger at me for messing up your device, I will laugh at you.
     */

    Features
    Main features
    • Built using I9500XXUHPB3 kernel source
    • [TW] Built using modified I9500UBUHPG1 ramdisk
    • [CM] Using AnyKernel2 template for unified support
    • Compiled using Hyper Toolchain 6.1.x, SaberMod with Uber dependencies
    • Using -Ofast flag for speed
    • Full ARM and VFPv4 optimizations
    • Updated OSRC to version 3.4.5 (proper implementation)
    • XZ kernel compression
    • [TW] GZIP ramdisk compression
    • Included Stericson's latest BusyBox 1.24.2
    • [TW] SELinux is forced permissive
    • [CM] SELinux disabled
    • A7 frequencies unlocked
    • Kernel debloated from useless features
    • Optimized and patched kernel source

    Key features
    • Ultra Kernel Samepage Merging (UKSM) support (default: Disabled)
    • mDNIe screen, CPU voltage, and Wolfson sound control support
    • Synapse support for screen and audio
    • Using ARM-optimized SHA-1 and AES crypto routines
    • HTC's Asynchronous File Sync (Async Fsync)
    • Init.d support
    • USB-OTG support
    • CIFS, NFS support
    • [CM] F2FS support
    • L2TP, PPP support
    • Selectable CPU governors:
      ondemand (default), interactive, conservative, performance, alucard, darkness, intelliactive, lionheart, zzmoove
    • Selectable I/O schedulers:
      noop (default), row, cfq, deadline, bfq, fiops, sioplus, tripndroid, zen
    • Selectable TCP congestion algorithms:
      westwood (default), cubic, bic, reno, htcp, highspeed, hybla, vegas, scalable, lp, veno, yeah, illinois

    Downloads

    Installation instructions
    1. Make sure you've the latest version of TWRP or GearCM Recovery.
    2. Reboot to Recovery mode by combination of Power+Home+Vol(+) buttons.
    3. Select Install from TWRP screen.
    4. Select KudKernel .zip file.
    5. Swipe Flash button.
    6. Finally wipe cache and dalvik. (optional)
    7. Reboot to system.

    Known issues
    Don't report issues that are already listed here.
    • Kernel status changed from beta to experimental due to some unexpected behavior (continuous FCs, random reboots, etc.). Testers required to test every changes into kernel.
    • Sometimes, CPU will only bump itself up to 1200-1400 MHz. A normal reboot would fix this.
    • This kernel will negate any benchmarking app, since most debugging features have been disabled for best user experience.

    More to know...
    • Bug reports without good explanation or logs are ignored.
    • Request for feature(s) that could break stability aren't accepted.
    • You're not allowed to include my kernel as your work's default kernel. Instead, please include KudKernel Lite. (coming soon)

    Special thanks
    • Samsung OSRC Team
    • UBER TOOLCHAINS, SaberMod Team
    • Linaro Team
    • CodeAurora Team
    • @frap129 - Hyper Toolchains
    • @osm0sis - AnyKernel2 template
    • @VoLTaqe - Some help
    • @AndreiLux
    • @maxfu
    • @Alberto96
    • @asad007

    XDA:DevDB Information
    KudKernel [i9500], Kernel for the Samsung Galaxy S4

    Contributors
    krasCGQ, asad007
    Source Code: https://github.com/krasCGQ/KudKernel-universal5410

    Kernel Special Features: See above.

    Version Information
    Status: No Longer Updated
    Current Stable Version: v3.3
    Stable Release Date: 2016-07-07
    Current Beta Version: v5.0_b2
    Beta Release Date: 2016-10-11

    Created 2016-06-03
    Last Updated 2016-11-07
    8
    Status & known issues
    • Totally rebased from a clean source.
    • Compiled using Linaro GCC 6.1.1 instead of Hyper 6.1.x SMxU which I used before on my v1.0-v4.1 kernel releases.
    • Synapse support is removed from the kernel. Use this script by @vishal thakar from now and so on. All bugs and issues regarding Synapse (except for errors due to unimplemented features) should be reported on that thread.
    • Negative Toggle seems do nothing when triggered. (probably won't be fixed)
    • [SRTIKE]Kernel booted, but would freeze in a minute or so, probably something went wrong with my new commits...[/STRIKE] | Fixed in v5.0_b2

    Update logs
    Last release:
    v5.0_b2 (see some latest pages)

    Older releases:
    v4.1 [29-08-2016]
    • Would be written later. (couldn't remember...)

    v4.0 [25-08-2016]
    • Rebased using I9500XXUHPB3 kernel sources
    • Using full ARM, VFPv4, and NEON optimizations
    • Included Stericson's latest BusyBox 1.24.2
    • Reverted kernel version to 3.4.5
    • Added new CPU governors: darkness, lionheart, zzmoove
    • Added new I/O schedulers: bfq, row
    • Added I/O read ahead and swappiness tweaks (might be overridden by kernel tuning app)
    • Added Wolfson sound control
    • Fixed init.d again
    • (Finally) Fixed Private Mode again
    • Disabled Android Logger
    • Disabled WiFi scanning on boot
    • Disabled UKSM by default
    • Disabled useless stuffs
    • Disabled some more debugging stuffs
    • Removed sio I/O scheduler
    • Tweaked UKSM to be more quiet
    • Optimized kernel, check GitHub repo for changes.

    v3.3 [07-07-2016]
    • Re-enable all TCP congestion algorhythms

    v3.2 [07-07-2016]
    • Patch again the kernel to 3.4.10
    • Compiled with NEON optimization
    • Added tripndroid I/O scheduler (a bit unstable)
    • Added Async Fsync from HTC

    v3.1 [06-07-2016]
    • Reverted kernel patch to 3.4.5
    • Added sioplus I/O scheduler
    • Set noop as default I/O scheduler
    • Some ramdisk tweaks:
      - Threw away Knox related commands
      - Deleted 'force-set' cfq as default I/O scheduler
      - Put KudScripts execution command into init.rc instead of init.extra.rc (but KudScripts.sh itself is on /sbin)

    v3.0 [05-07-2016]
    • Added mDNIe screen control support
    • Added CPU Voltage control support
    • Fixed ext4 issues
    • Fixed init.d support (it was broken on all versions before)
    • Disabled "Add Random" and "I/O Stats"
    • Disabled almost all debugging stuffs to improve performance
    • Disabled powersave and userspace CPU governors (useless)
    • Tweaked UKSM (using init script inside ramdisk) to use lower CPU resources (20%)
    • Changed ramdisk compression to LZO

    v2.1m [27-06-2016]
    • Kernel compiled using Hyper Toolchain 6.1.x, SaberMod with Uber dependencies
    • Enforce the permissive SELinux (unchangeable anymore!)
    • Removed -fgraphite flag (it's useless I think)

    v2.0 [19-06-2016]
    • Unlocked all lower A7 frequencies
    • Added UKSM support (using version 0.1.2.3)
    • Added alucard and intelliactive CPU governors
    • Added fiops, sio, and zen I/O schedulers

    v1.1 [05-06-2016]
    • Fixed Private Mode
    • Enabled USB-OTG support

    v1.0 [03-06-2016]
    • Initial release.
    8
    Hi everyone...
    I've read all suggestions and here's the currently workmap for the next version:
    Note: It would be potential for me to jump over to v2.0 due to upcoming major changes I've done.
    • Implemented UKSM v0.1.2.3
    • Unlocked all A7 frequencies
    • Set A7 frequency limit between 250-1200 MHz and A15 frequency limit between 1300-1600 MHz.
    • Porting Samsung codes to fully support GCC 6.0 (WIP; approx. 40% done); also need to tweak Makefile so it would skip some warnings because nothing could be done...

    It's all done on my very own PC now. It would be signed with a new RSA 4096 bit key and will available only on a .zip file based on download counts.

    And yet, I need to take a rest. It's late night here.
    Oyasumi~~
    If you need a spoiler about what word is this:
    Oyasumi is a Japanese word that means good night.
    A bit off-topic, is it?


    Sent from my ASUS_Z00A using XDA Labs
    8
    Change init.container.rc from my ramdisk and it will fix your private mode problem. About default governor do not change from default governor parameter .defconfig change with .sh and it will set some needed parameter with ondemand and change with interactive. Good luck
    7
    I'm trying to implement Synapse support into the kernel, plus Indonesian localization :D

    Hope it's going well guys!

    A spoiler attached :p

    Sent from my ASUS_Z00A using XDA Labs