[Samsung Galaxy A40 ROMs, Kernels, Recoveries, & Ot] Chatur27:
View attachment 5376017

Hi all,

this is the thread for a custom kernel i made for Samsung Galaxy A40.

The custom kernel has been named Eureka which is a greek work which means "I have found the solution". This multi-purpose kernel is the solution for battery, gaming, performance for A40. On creating this kernel, I believed that 1 kernel can be all of the above if properly tweaked!

As from Eureka R9.0, four kernel variants are available inside 1 same zip. This has been made possible using AROMA Installer.

Compatibility:

This kernel is compatible with AOSP GSIs/ROMs, OneUI2 and OneUI3. As from R9.0, there is only 2 variants of zip to download. One is called EMS and the other one is called HMP. Continue reading to learn more about them.

FEATURES:

* Disabled Samsung security features

* Enabled all governors + added other governors

* Overclocked CPU as follows:

BIG Cores: from 1768 MHz to 2288 MHz.​

LIL Cores: from 1586 MHz to 1794 MHz.​

* Underclocked CPU as follows:

BIG Cores: from 936 MHz to 208 MHz.​

LIL Cores: from 839 MHz to 208 MHz.​

* Added GPU thermal and voltage control

* Added latest boeffla wl blocker V 1.1.0 and disabled some wakelocks

* Network speed improvement

* Enable zram support and set default compressor as zstd.

* Switch to a lower charging voltage more quickly.

* GPU max frequency overclocked from 845 MHz to 1300 MHz

* Implemented Dynamic FSync 2.0

* Implemented a custom hotplug driver to enhance battery management

* Implemented Power Suspend driver

* High torch brightness on custom roms/gsis

* Has Spectrum support

* Automatic detection of magisk - If u are rooted, u don't need to flash magisk after kernel.

* Upstreamed kernel version from 4.4.177 to 4.4.302

* Built with Vortex Clang 14 toolchain with LTO. Reason: Better performance

* Support for EMS (Exynos Mobile Scheduler) added

Please read the changelog on github for full list of changes.

KNOWN ISSUES:

* Maybe ADB cannot be used at the same time as MTP

SOME MINOR TWEAKS FOR BEST GPU PERFORMANCE:

* Set GPU power policy to "always on"

* Set min and max GPU frequency to 1200/1300 MHz

* Disable GPU thermal manager to prevent GPU frequency from dropping

* Games don't require high CPU frequency because they depend more on GPU. You can therefore decrease CPU max frequencies to reduce heating of the device.

We have developed our own kernel manager called EKManager which is a fork of HkTweaks. It is compatible only with Eureka Kernels. You can download it from here:

LINK: Download EKManager app

Contact info:

Developers of Eureka Team:

* Telegram: @Chatur27, @Gabriel260BR and @roynatech

Channel for Eureka future updates:

* Telegram: https://t.me/eureka_kernel

Official discussion group for A40:

* Telegram: https://t.me/sga40

I'm grateful to KineSight for designing the logo.

* Telegram: @Kinesight

Reference about EMS kernel:

Energy Aware Scheduling (EAS) gives the scheduler the ability to predict the impact of its decisions on the energy consumed by CPUs. EAS relies on an Energy Model (EM) of the CPUs to select an energy efficient CPU for each task. Allowing to save up battery even further. EMS aka Exynos Mobile Scheduler, is a fork of EAS for Exynos. We ported to our 4.4.y kernel. As written above, EMS kernel is good for battery saving. Some words from kernel official docs: - EAS operates only on heterogeneous CPU topologies (such as Arm big.LITTLE) because this is where the potential for saving energy through scheduling is the highest.

EMS kernel + pwrutilx governor is very good at battery saving according to our test.

Reference about HMP kernel:

It's just the stock scheduler that comes with stock kernel. Basically it's the normal kernel.

What kernel variant to flash once inside AROMA installer?

1) AOSP Legacy Q/R/S - If you are using an old Eureka ROM which was released before February 2022, choose this.

2) AOSP Q/R/S (New) - If you are using an Eureka ROM built as from February 2022, choose this.

3) OneUI 2 - For any OneUI 2 roms (stock/ports).

4) OneUI 3 - For any OneUI 3 roms (stock/ports).

Download link for A40 (Read above to know which version to download for your OS):

All releases of Eureka for Q/R/S ROMs/GSIs (including OneUI)

Source code for my kernel:

Kernel source on GitHub

View attachment 5376037

If you love our work, thank us by donating. Your donation can help us rent a cloud sever to build kernels and roms faster :)

Link to PayPal: https://www.paypal.com/paypalme/chaturbaij