[KERNEL] ThundeRStormS kernel for Samsung Galaxy S10/N10 family - only Exynos

nalas

Senior Member
Nov 19, 2012
1,148
822
143
Poland
ThundeRStormS Galaxy S10/N10 Exynos family for OneUI Q
SM-G970F/N, SM-G973F/N, SM-G975F/N, SM-G977B/N
SM-N970F, SM-N971N, SM-N975F, SM-N976N, SM-N976B


Compatibility notes :
Only for Android OneUI Q odexed and deodexed roms S10/N10 Exynos family ROMs
AOSP is not supported !!!


Kernel features:
* Samsung source : DTJ4/DTJA
* Samsung os date patch : 2020-11
* Linux source : upstreamed to 4.14.133
* Removed Freqvar Tune - block edit time_rate by user
* App blocker : blocked LKT, Lspeed, NFS, FDE, Ferravolt (You can get restart the phone if You use this apps)
* Optimizations in Linux source
* Powersuspend drivers updated to v2.0
* Gentle Fair Sleepers support
* Adaptative Fast Charge
* Fsync Control toggle
* Mass Storage support
* Morosound v2.1.1 - thx to Moro
* Added a lot of TCP/IP algorythms
* Added a lot of I/O schedulers
* Added standard Wakelocks support
* Added Boeffla v1.1.0 Wakelocks Blocker support
* Added CPU govs: Blu_Schedutil, Ondemand, TS_Schedutil
* Added editable by user up/down rate-limit in TS_Schedutil
* Battery settings: Store Mode, Charging Levels and Unstable Power Detection
* Added Power Energy consumption tracking (in last_kmsg) from Linux 5.x
* Support FlatMem
* Support Frandom x15 faster then Linux Urandom - disabled bcose Srandom is enabled
* Support Srandom x150 faster then Linux Urandom
* Disabled VNSwap and ZRAM - no needed for 8GB of RAM devices
* Support F2FS, CIFS and NTFS (R/W)
* Support Frandom (10x faster then Linux Urandom)
* Device Tree Blobs support (dtb and dtbo) [Underclock Littel CPU to 130MHz, disable Freqvar up/down_limit_rate_us - user can edit it in ts_schedutil settings, CPU/GPU optimizations)
* Support Underclock for GPU to 100MHz (only with DBT/DTBO partitions flashed)
* Support Battery settings : Charging Level, Store Mode, Unstable Power Detection
* Support Init.d scripts: /vendor/etc/init.d
* ThunderTweaks v1.0.7.2
* Magisk 21.1 Offcial build in kernel - thx to CruelKernel Team
* Optimized for battery life
* Compiled via GCC 6.0.1, GCC 8.0.1 (Samsung S20), GCC 10.2 (Arter97 & Cruel) and Clang 12.0 (Proton) toolchain
* Kernel use an AROMA installer to help guide you through the installation.

Recommended Apps:
To tweak most of the settings in the kernel, I recommend using ThunderTweaks app.
_________________________________________________

IMPORTANT INFORMATIONS:
1. WARNING: YOU UNDERSTAND THAT INSTALLING CUSTOM FIRMWARE/ROM/KERNEL IS AT YOUR OWN RISK!!!
2. YOUR WARRANTY CAN BE 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
the finger at me for messing up your device, You can't blame me for this fact."

3. NO REQUESTS!!!

_________________________________________________

INSTALLATION PROCESS:

FOR STOCK ODEX/DEODEX ROMS - read carefully
  • FIRST - Clear cache apps like Kernel Adiutor or MTweaks or another one in system app menager !!!
  • Backup EFS, DTB, DTBO, DATA and KERNEL as always in TWRP !!!
  • Download the latest kernel version zip file
  • Use only not patched (magisk) recovery - kernel has magisk build-in
  • Flash the CLEAN ROM, next restore Your DATA and flash the kernel zip with root or not
  • Choose aroma selection | If You don't know what Device Tree Blobs are and how to use it so don't flash it - You can brick Your phone !!!
  • If You have fingerprint patter problem pls use link from CruelKernel for patch img file for another date. Link
  • Reboot
  • ThunderTweaks app is copied to Your sdcard/ThunderTweaks folder. You can install it manually.

PROBLEMS / BUGS:
No f2fs partition support - Kernel support this kind of system files, if You can't get acces to this so look ROM you are using support f2fs or not.
You can look into fstab.exynos9820 file located in /vendor/etc/ folder.
If in line with DATA partition is only ext4 - so means ROM not support f2fs.
-------------------------------
Device Tree Blobs will be present on all another kernels (are in dtb/dtbo partition so flashing only boot.img not helps) - so if You want to change it for stock or another kernel You have to flash this partitions via ODIN or TWRP.
If You have no frequencies lower then stock so You have not flashed modified DTB/DTBO partitions !!!
-------------------------------

Make F2FS working:
- Make backup You fstab file first : /vendor/etc/fstab.exynos9820
- Edit Your fstab file by add this two lines:
/dev/block/platform/13d60000.ufs/by-name/cache /cache f2fs rw,nosuid,nodev,noatime,inline_xattr,flush_merge,nobarrier wait,check,formattable - makes bootloop
/dev/block/platform/13d60000.ufs/by-name/userdata /data f2fs noatime,nosuid,nodev,discard,usrquota,grpquota,fsync_mode=nobarrier wait,check,quota
- or rename this file (View attachment fstab.exynos9820.txt) to fstab.exynos9820 and copy via TWRP to system_root/vendor/etc/ folder and set permissiont by chmod to 0644 and reboot the phone.
- F2FS is full support now.

Back to stock/previouse Device Tree Blobs:
1) ODIN
- Unpack dtb.img.lz4 and dtbo.img.lz4 from Your latest stock frimware AP....md5
- Pack this two files to dtb.tar archive file
- Run latest Odin and Unset Auto Reboot, add dtb.tar to AP section, add Home_CSC to CSC section, next connect Your device in Dwonload Mode, Flash
- Reboot.
2) Flashable TWRP
- use flashable zip file from another kernel - flash via TWRP
- You can make dtb/dtbo as a flashable zip file and flash it via TWRP | for flash use :
dd if=/tmp/your_name_folder/dtb.img of=/dev/block/platform/13d60000.ufs/by-name/dtb bs=4096
dd if=/tmp/your_name_folder/dtbo.img of=/dev/block/platform/13d60000.ufs/by-name/dtbo bs=4096

Thanks for reports.
_________________________________________________

CREDITS :
- The Linux Kernel Archive for the Linux Patches https://www.kernel.org/
- Samsung Open Source Release Center for the Source code http://opensource.samsung.com/
- @osm0sis for Android Image Kitchen and anykernel2 https://forum.xda-developers.com/showthread.php?t=2073775
- Magisk and SuperSu Team for root method
- @evdenis Denis Efremov and Cruel Team for source, Samsung updates and help.
- MoRoGoKu, Anan1211, Pascua28, Corsicanu
- Ambasadii
- @TheMadScientist, @bartolomeo10, @touseef77, @okij, @tin2404 and tester group.
_________________________________________________

SOURCE of the kernel:
GitHub:
https://github.com/ThunderStorms21th/Galaxy-S10
_________________________________________________

Contributors:
@nalas
ThundeRStormS Team
_________________________________________________

DISCUSSION:
Telegram Group:
Link
Telegram News Channel:
Link
_________________________________________________

Version Information:
Statsus : Stable
Current version : AiO v1.4 (All in One)
Release Date : 2020-12-18

_________________________________________________
DONATION:
If you liked my work, you can collaborate by giving thanks and with some donation to continue working hard.
Thank you very much to all.
DONATION

_________________________________________________
CHANGELOGS & DOWNLOADS in 2nd post
_________________________________________________
 
Last edited:

nalas

Senior Member
Nov 19, 2012
1,148
822
143
Poland
DOWNLOADS and CHANGELOGS

Changelogs:

ThunderStorms-Kernel-Q-v1.4 : 18.12.2020

* Samsung source : DTJ4/DTJA
* Linux source : upstreamed to 4.14.133
* Samsung os patch level: 2020-11
* Removed Freqvar Tune - block edit time_rate by user
* Optimizations in Linux source
* Support CIFS and NTFS
* Support Init.d scripts: /vendor/etc/init.d
* Added app blocker : feravolt, FDE, NFS, LKT, Lspeed
* Support Underclock for Little CPU to 130MHz (only with DBT/DTBO partitions flashed)
* Support Underclock for GPU to 100MHz (only with DBT/DTBO partitions flashed)
* Enabled by default WQ_POWER_EFFICIENT
* Support FlatMem
* Tick HZ set at 100Hz
* Disabled some debuggers
* Support Battery settings
* Support Srandom x150 faster then Linux Urandom and 15x faster then Frandom
* Disabled VNSwap and ZRAM - no sense use it for 8GB of RAM
* Added Power Energy consumption tracking (in last_kmsg) from Linux 5.x
* ThunderTweaks v1.0.7.2 (added Battery settings)
* Added ThunderTweaks - 4 profiles
* Battery settings: Store Mode, Charging Levels and Unstable Power Detection
* Added Frandom support - is 10x faster then Linux Urandom
* Magisk 21.1 Offcial build in kernel - thx to CruelKernel Team
* Compiled via Arter97 (GCC 10.2), Cruel (GCC 10.2) and Proton (Clang 12.0) toolchain
* Optimized for battery life
* Rest like in release 1.3

ThunderStorms-DTB/DTBO-v1.4 : 18.12.2020
* Samsung source : DTJ4/DTJA
* Linux source : 4.14.133
* Freqvar Tune - removed block edit up/down_rate_limit_us
* Support for lower frequencies in Little CPU to 130 MHz
* Support for lower frequencies in GPU back to 156 MHz
* Optimized for GPU / CPU
* Optimized for battery life
* Rest like in release v1.3

ThunderStorms-Kernel-Q-v1.3 : 01.12.2020

* Samsung source : DTJ4/DTJA
* Linux source : upstreamed to 4.14.133
* Samsung os patch level: 2020-11
* Added support for SM-G973N device
* Removed Freqvar Tune - block edit time_rate by user
* Optimizations in Linux source
* Support CIFS and NTFS
* Support Init.d scripts: /vendor/etc/init.d
* Added app blocker : feravolt, FDE, NFS, LKT, Lspeed
* Support Underclock for Little CPU to 130MHz (only with DBT/DTBO partitions flashed)
* Support Underclock for GPU to 100MHz (only with DBT/DTBO partitions flashed)
* Enabled by default WQ_POWER_EFFICIENT
* Support FlatMem
* Disabled some debuggers
* Support Battery settings
* Support Frandom x15 faster then Linux Urandom
* Added Power Energy consumption tracking (in last_kmsg) from Linux 5.x
* ThunderTweaks v1.0.7.2 (added Battery settings)
* Added ThunderTweaks - 4 profiles
* Battery settings: Store Mode, Charging Levels and Unstable Power Detection
* Added Frandom support - is 10x faster then Linux Urandom
* Magisk 21.1 Offcial build in kernel - thx to CruelKernel Team
* Compiled via Arter97 (GCC 10.2), Cruel (GCC 10.2) and Proton (Clang 12.0) toolchain
* Optimized for battery life
* Rest like in release 1.2

ThunderStorms-DTB/DTBO-v1.3 : 01.12.2020
* Samsung source : DTJ4/DTJA
* Linux source : 4.14.133
* Freqvar Tune - removed block edit up/down_rate_limit_us
* Support for lower frequencies in Little CPU to 130 MHz
* Support for lower frequencies in GPU to 100 MHz
* Optimized for GPU / CPU
* Optimized for battery life
* Rest like in release v1.2


ThunderStorms-Kernel-Q-v1.2 : 05.11.2020

* Samsung source : DTI8
* Samsung os patch level: 2020-09
* Removed Freqvar Tune - block edit time_rate by user
* Optimizations in Linux source
* Support CIFS and NTFS
* Support Init.d scripts: /vendor/etc/init.d
* Added app blocker : feravolt, FDE, NFS, LKT, Lspeed
* Support Underclock for Little CPU to 187MHz (only with DBT/DTBO partitions flashed)
* ThunderTweaks v1.0.7.2 (added Battery settings)
* Added ThunderTweaks - 4 profiles
* Battery settings: Store Mode, Charging Levels and Unstable Power Detection
* Added Frandom support - is 10x faster then Linux Urandom
* Magisk 21.0 Offcial build in kernel - thx to CruelKernel Team
* Compiled via Clang 6.0.1, Arter97 (Clang 10.2), Sasmung S20 (Clang 8.01) and Proton (Clang 9.0) toolchain
* Optimized for battery life
* Rest like in realease 1.1

ThunderStorms-DTB/DTBO-v1.2 : 05.11.2020
* Samsung source : DTI8
* Linux source : 4.14.113
* Freqvar Tune - removed block edit up/down_rate_limit_us
* Support for lower frequencies in Little CPU to 187 MHz
* Optimized for GPU / CPU
* Optimized for battery life
* Initial Release


ThunderStorms-Kernel-Q-v1.1 : 15.09.2020

* Samsung source : DTH7
* Samsung os patch level: 2020-09
* Removed Freqvar Tune - block edit time_rate by user
* Optimizations in Linux source
* Support CIFS and NTFS
* Support Init.d scripts: /vendor/etc/init.d
* Added app blocker : feravolt, FDE, NFS, LKT, Lspeed
* ThunderTweaks v1.0.6.0
* Magisk 20.4 Offcial build in kernel - thx to CruelKernel Team
* Compiled via Clang 6.0.1, arter97 and proton toolchain
* Optimized for battery life
* Rest like in realease 1.0


ThunderStorms-Kernel-Q-v1.0 : 28.08.2020

* Samsung source : CTG4 - thx to CruelKernel Team
* Linux source : 4.14.113 - thx to CruelKernel Team
* Removed Freqvar Tune - block edit time_rate by user
* Optimizations in Linux source
* Powersuspend drivers updated to v2.0
* Gentle Fair Sleepers support
* Added Adaptative Fast Charge
* Added Fsync Control toggle
* Added Morosound v2.1.1 - thx to Moro
* Added a lot of TCP/IP algorythms
* Added a lot of I/O schedulers
* Added standard Wakelocks support
* Added Boeffla v1.1.0 Wakelocks Blocker support
* Added CPU govs: Blu_Schedutil
* Added editable by user up/down rate-limit in Schedutil
* Support F2FS, CIFS and NTFS (R/W)
* Support Init.d scripts: /vendor/etc/init.d
* ThunderTweaks v1.0.6.0
* Magisk 20.4 Offcial build in kernel - thx to CruelKernel Team
* Optimized for battery life
* Initial Release

_________________________________________________

DOWNLOAD:
ThundeRStorms AiO all releases - Link
_________________________________________________
 
Last edited:

hanspampel

Senior Member
Dec 7, 2011
2,114
3,093
203
Why do do patch the cruel kernel?:eek: Its pre-rooted (build in magisk) like this kernel, cause this one is build from cruel sources. So no need of patching twrp or something. And yes, you can flash it ontop.
 
  • Like
Reactions: yuri76 and nalas

nalas

Senior Member
Nov 19, 2012
1,148
822
143
Poland
I have format data and cache with filesystem f2fs but it doesn't work. How can i activate f2fs?

Sry for my bad english, im german.
Kernel support f2fs. In TWRP You have to select if i good remember in WIPE section for change format partition ane select f2fs but i dont know if cache is a good idea for f2fs.
Im not using f2fs so idk in 100% how to make it but maybe another user knows?
 

Trackdeluxe

Member
Nov 17, 2012
32
15
0
Aachen
Kernel support f2fs. In TWRP You have to select if i good remember in WIPE section for change format partition ane select f2fs but i dont know if cache is a good idea for f2fs.
Im not using f2fs so idk in 100% how to make it but maybe another user knows?
Yeah, my data partition is f2fs but it booting and booting, It does not come out of the samsung logo.
 

yuri76

Senior Member
Jun 8, 2011
588
63
28
milano
Why do do patch the cruel kernel?:eek: Its pre-rooted (build in magisk) like this kernel, cause this one is build from cruel sources. So no need of patching twrp or something. And yes, you can flash it ontop.
Bad. I keep having black screen

Inviato dal mio SM-G975F utilizzando Tapatalk
 

hanspampel

Senior Member
Dec 7, 2011
2,114
3,093
203
Ive flashed it ontop 3.4rc1 and my selfcompiled based on 3.4 stable. It works. Did you patched it or not? Is your twpr patched? If so, try without patching twrp. Whats your ROM you are using?
 

yuri76

Senior Member
Jun 8, 2011
588
63
28
milano
Ive flashed it ontop 3.4rc1 and my selfcompiled based on 3.4 stable. It works. Did you patched it or not? Is your twpr patched? If so, try without patching twrp. Whats your ROM you are using?
The twrp is patched inside AP. I have a galaxy s10 plus with Cardhd

Inviato dal mio SM-G975F utilizzando Tapatalk
 

nalas

Senior Member
Nov 19, 2012
1,148
822
143
Poland
The twrp is patched inside AP. I have a galaxy s10 plus with Cardhd

Inviato dal mio SM-G975F utilizzando Tapatalk
Pls read the thread....Is written so use twtp not patched in INSTALLATION section.


* Use only not patched (magisk) recovery - kernel has magisk build-in

Wysłane z mojego SM-G973F przy użyciu Tapatalka