[KERNEL][DIPPER] [Kernel 4.9.290][MIUI & AOSP] BAALAM Kernel

Search This thread

LowTension

Recognized Developer
Jan 27, 2014
333
717
Narnia
Xiaomi Mi 8
Xiaomi Poco F3
baalam.png

Code:
/*
* I am not responsible for bricked devices, dead SD cards, thermonuclear
* war, or the current covid-19 pandemic caused by you following these
* directions. YOU are choosing to make these modificiations, and
* if you point your finger at me for messing up your device, I will
* laugh at you.
*/

BAALAM Kernel is based on LineageOS 18.1 sources compiled with Proton Clang.

Features

- Linux Kernel version 4.9.290
- Merged latest CAF tag
- Merged Latest LineageOS 18.1 commits
- I/O Schedulers: deadline, noop, cfq, zen, maple, anxiety
- Boeffla wakelock blocker
- Westwood, BBR, reno, cubic TCP Congestion
- Simple Low Memory Killer
- Fsync Control
- Drivedroid support
- Disabled Gentle Fair Sleepers
- LZ4 Compression Algorithm by default
- Cache tweaks
- CRC Check Disabled
- Zipped up with latest AnyKernel3
- WireGuard VPN support
- SafetyNet Flags Patch
- USB Fast Charge (900 mAh)
- TCP Tweaks
- Sound Control
- KCal Control
- AdrenoBoost
See all commits




Installation

1.- Download zip
2.- Boot to recovery mode
3.- Make a backup of your current boot.img/kernel
4.- Flash zip
5.- Reboot system

Note: Not all features comes enabled when you've flashed this kernel, you need a kernel manager to enable/disable or adjust some tweaks.

You need a kernel manager app like SmartPack(free), EX Kernel Manager(paid)...

Downloads

Android 10 & 11

MIUI

Android 12





XDA: DevDB Information
Baalam, Kernel for the Xiaomi Mi 8

Contributors

ZonaRMR
Source Code: https://github.com/ZonaRMR/baalam_android_kernel_xiaomi_sdm845

Kernel Special Features:

Version Information
Status:
Stable
Current Stable Version: 1.5.1
Stable Release Date: 2021-10-22
 
Last edited:

LowTension

Recognized Developer
Jan 27, 2014
333
717
Narnia
Xiaomi Mi 8
Xiaomi Poco F3

Changelogs

Android 10 & 11

v1.5.1
Code:
- Upstreamed to Linux Kernel v4.9.290

v1.5
Code:
- Upstreamed to Linux Kernel v4.9.287
- msm-4.9 patches from CodeAurora
- Added AdrenoBoost

v1.4.2
Code:
- simple_lmk: Thaw victims upon killing them
- simple_lmk: Make the reclaim thread freezable
- Upstreamed to Linux Kernel v4.9.284
- Revert "ARM64: dts: Force warm reboot in order to preserve mem"

v1.4.1
Code:
- Upstreamed to Linux Kernel v4.9.283

v1.4
Code:
- Enabled Westwood, BBR TCP congestion
- TCP tweaks
- arm64: Select ARCH_HAS_FAST_MULTIPLIER
- cpuidle: Allow enforcing deepest idle state selection
- alarmtimer: Add ndelay for tight loop
- cpu-boost: Bind to LITTLE cpus and reduce RT prio
- cpu-boost: Rework scheduling setup
- cpu-boost: Reduce input boost time interval
- drivers/usb: Add Drivedroid Support
- arch/arm64: dts: disable dfps in jdi fhd panel
- soc: qcom: subsystem_restart: Prevent kernel panic caused by modem crash
- Upstreamed to Linux Kernel v4.9.282
v1.3
Code:
- mm: swap: swap pages one at a time
- mm: Default to 128KB readahead
- drm-msm-dsi: add backlight min option
- Kcal:  drm: msm: kcal: make the userspace module param vars static and use short instead of integers
- Kcal:  kcal: pie: fix used pcc setup for sde path
- Kcal: drm: msm: kcal: hue, saturation, value and contrast adjustments
- Kcal: drm: msm: kcal: export rgb to userspace and clean it up
- Kcal: kcal: sde_hw: color proc v4: add RGB bias
-zram: fix idle/writeback string compare
- Sound Control: techpack: sound_control: remove the speaker bits
- Sound Control: wcd934x: sound control: reset headphone digital gain to user val
- Sound Control: wcd934x: add sound control
-arm64/configs: zram: enable zram-writeback
-arm64/dts: sdm845-sde: Enable PM QoS for SDM845 rotator
-ARM: dts: sdm845: Disable LPM wakeup prediction for the big cluster
-ARM: dts: sdm845: Disable expedited RCU grace periods after init
-ARM: dts: sdm845: Disable unhandled or broken IRQ monitoring
-ARM: dts: sdm845: Suppress verbose output during boot
-ARM: dts: msm: Update PM-QoS values for sdm84
-ARM: dts: msm: alter disable load to 0 for DSI supplies on sdm845
-mm: Increment kswapd_waiters for throttled direct reclaimers
-buffer: eliminate the need to call free_more_memory() in __getblk_slo
-buffer: grow_dev_page() should use __GFP_NOFAIL for all case
-buffer: have alloc_page_buffers() use __GFP_NOFA
-mm: vmpressure: Fix rampant inaccuracies caused by stale data usa
-mm: vmpressure: Fix a race that would erroneously clear accumulated data
-mm: vmpressure: Ignore costly-order allocations for direct reclaim to
-mm: vmpressure: Don't export tunables to userspace
-VFS: use synchronize_rcu_expedited() in namespace_unlock()
-mm: Don't stop kswapd on a per-node basis when there are no waiters
-mm: vmpressure: Ignore allocation orders above PAGE_ALLOC_COSTLY_ORDER
-mm: Don't warn on page allocation failures for OOM-killed processes
-mm: vmpressure: Don't cache the window size
-mm: vmpressure: Interpret zero scanned pages as 100% pressure
-mm: vmpressure: Don't exclude any allocation types
-mm: Stop kswapd early when nothing's waiting for it to free pages
-simple_lmk: enhances and fixes
-UPSTREAM: lib/decompress_unlz4: change module to work with new LZ4 module version
-lz4: fix compress max output bound
-UPSTREAM: lib: update LZ4 compressor module
-zram: Use lz4 compression by default if present
-fastchg.c: Enable USB3 fast charge by default
1.2.1
Code:
- Upstreamed to Linux Kernel 4.9.281

v1.2
Code:
-ARM64: dts: qcom: sdm845: Remove AVB check
-arm64: lib: memory utilities optimization
-drivers: misc: implement usb fast charge mode
-proc: cmdline: Patch SafetyNet flags
-rmnet_data: Disable useless logging
-ipv4/tcp: Force applications to use TCP_NODELAY to improve network latency
-block: Add Anxiety I/O scheduler
-f2fs: Enlarge min_fsync_blocks to 20
-Introducing Touchboost driver(disable by default)
-msm_performance: Disable boosting when battery saver is on
-cmdline: replace instead of remove for SafetyNet CTS pass


v1.0
Code:
- Merge tag 'v4.9.280'of https://kernel.googlesource.com/pub/scm/linux/kernel/git/stable/linux-stable
- Merge tag 'LA.UM.8.3.c25-03100-sdm845.0'of https://source.codeaurora.org/quic/la/kernel/msm-4.9
- boeffla_wl_blocker: update to wakelock blocker driver v1.1.0
- simple_lmk: Introduce Simple Low Memory Killer for Android
- mm: Adjust dirty ratio percentage
- mm: Disable readahead by default
- fs: Reduce cache pressure
- IO Scheduler: Enable all IO Sched and set CFQ as default
- block: add MAPLE I/O scheduler
- block: add zen scheduler
- Added fsync on/off support.
- zram: use lz4 compression by default
- core: disable crc check
- kernel/sched/features: Disabled Gentle Fair Sleepers
- setlocalversion: remove -dirty
- setlocalversion: removed -g{commitish}, the 12 hex chars of kernel string append


See all the commits
 
Last edited:

GalalMoustafa

Senior Member
Aug 5, 2015
94
31
28
alexandria
Is this kernel compatible with miui ? What about dc dimming in miui and brightness bar values and net speed monitor ?
New Build 1.5 : https://www.mediafire.com/file/4ff2ij4u4w10ove/BAALAMKernel-v1.5-dipper.zip/file

- Upstreamed to Linux Kernel v4.9.287
- msm-4.9 patches from CodeAurora
- Added AdrenoBoost

See changelogs in post #2
Hello, can you reply my questions? or development stopped for this kernel ?
 
  • Like
Reactions: trung335

LowTension

Recognized Developer
Jan 27, 2014
333
717
Narnia
Xiaomi Mi 8
Xiaomi Poco F3
Last edited:
  • Like
Reactions: pawo99 and trung335

guzmangreen

Member
Jun 17, 2022
13
2
Hi, does anybody know if battery idle mode working on Android 12 or 13 with this kernel? It's working on Poco F1 similar phone, but it has different kernel. You can see that in this video on YT
 

Top Liked Posts