• Introducing XDA Computing: Discussion zones for Hardware, Software, and more!    Check it out!
  • Fill out your device list and let everyone know which phones you have!    Edit Your Device Inventory

[EOL][KERNEL][STABLE][TW][N][7.0][CRC7][23.04.18][SM-G95XF/FD/N] BatKernel V2.1.1

Status
Not open for further replies.
Search This thread

GeyerA

Senior Member
Apr 6, 2009
983
1,586
Germany, Gerolzhofen
Hi, built the kernel with your code crosscompiling linaro 6.4.1 and flashed on Alexndr's dev_base. All great. Thanks a lot...
 

Attachments

  • 20180330_231149.jpg
    20180330_231149.jpg
    169.7 KB · Views: 687
Last edited:

ghul21

Senior Member
Feb 8, 2011
2,459
3,302
Bielsko-Biała ( Łódź )
BatKernel V2.1.0:
- Based on latest CRC7 source code
- Ramdisk updated to CRC7
- Linux updated to 4.4.125

I suggest you to only use this kernel on CRC7 based roms (not matching rom/kernel version can lead to bootloop). About the wifi it's still the same, your rom has to be updated to get it to work :) (same request as initial V2.0.0)

Download:
Via GrifoDev
Via AFH


I know it's a problem with a copy paste and can be simply fixed by delete


ro.config.knox=v0

In system/etc/prop.default

But I have a one other question. Did u remove frp lock in your kernel?

Thx Luca and have a nice day ?
 
Last edited:

alexega

Senior Member
Nov 17, 2013
95
529
Moscow
BatKernel V2.1.0:
- Based on latest CRC7 source code
- Ramdisk updated to CRC7
...
Thanks you !!! Was waiting for Your kernel !!! But there's a problem with the battery ... the phone drains faster than on the stock kernel. Will there be corrections?
Android 7 - batstock-great!
Android 7.1.1 - IronKernel-great!
Android 8 - batkernel - good ... no great !?
 

xFirefly93

Senior Member
Jan 10, 2018
1,423
2,292
Timrå
Thanks you !!! Was waiting for Your kernel !!! But there's a problem with the battery ... the phone drains faster than on the stock kernel. Will there be corrections?
Android 7 - batstock-great!
Android 7.1.1 - IronKernel-great!
Android 8 - batkernel - good ... no great !?

Check your wakelocks (both partial and kernel wakelocks) and alarms with BetterBatteryStats.
 

almoniplo

Member
Nov 7, 2017
12
1
Im trying to compile BatKernel 1.2 and put it in BatRom 1.2, using aarch64-cortex_a53-linux-gnueabi-GNU-6.3.0 toolchain as written in the kernel's Makefile.
After downloading your BatKernel 1.2, all I did was extract it from zip, change the Makefile's toolchain, make defconfig with the correct model and then make the image.
Then I extract the BatStock boot.image, replace the kernel with mine and repack it again.
When I pick my kernel in Aroma menu in BatRom - I get bootloop
When picking your kernel - everything works fine of course
Im using SM-G950F with AQF7 release

What is the problem? And I'd rather use those versions and not update the kernel if 1.2 is compatible...

Thanks a lot! :)

Edit:
I think I have a problem with my pack/unpack boot.img script..
If I unpack and pack your original boot.img (originally 33MB) I get a 31MB boot.img..
I use bootimg_tools mkbootimg/split_boot scripts:
Code:
split_boot boot.img
mkbootimg --kernel boot.img-kernel --ramdisk boot.img-ramdisk.cpio.gz -o ../boot.img
 
Last edited:

Tkkg1994

Inactive Recognized Developer / Contributor
Jun 10, 2014
10,138
29,150
Coding City
Im trying to compile BatKernel 1.2 and put it in BatRom 1.2, using aarch64-cortex_a53-linux-gnueabi-GNU-6.3.0 toolchain as written in the kernel's Makefile.
After downloading your BatKernel 1.2, all I did was extract it from zip, change the Makefile's toolchain, make defconfig with the correct model and then make the image.
Then I extract the BatStock boot.image, replace the kernel with mine and repack it again.
When I pick my kernel in Aroma menu in BatRom - I get bootloop
When picking your kernel - everything works fine of course
Im using SM-G950F with AQF7 release

What is the problem? And I'd rather use those versions and not update the kernel if 1.2 is compatible...

Thanks a lot! :)

Edit:
I think I have a problem with my pack/unpack boot.img script..
If I unpack and pack your original boot.img (originally 33MB) I get a 31MB boot.img..
I use bootimg_tools mkbootimg/split_boot scripts:
Code:
split_boot boot.img
mkbootimg --kernel boot.img-kernel --ramdisk boot.img-ramdisk.cpio.gz -o ../boot.img
I suggest you to use the following tool for unpack/repack your img. At least I use it and it works perfectly:
AIK
 
  • Like
Reactions: GeyerA

almoniplo

Member
Nov 7, 2017
12
1
I suggest you to use the following tool for unpack/repack your img. At least I use it and it works perfectly:
AIK

Thats the one I use.. maybe Im using it wrong :confused:

Anyway, I used another tool for packing/unpacking boot.img
When I unpack and pack your boot.img - Everything works fine
When I unpack yours, replace your kernel with a kernel I compiled from your sources using the defconfig, and then pack - The phone boots fine except the "KERNEL IS NOT SEANDROID ENFORCING" flag
When I unpack yours, replace your kernel with a kernel I compiled from your sources using deconfig but also remove something via menuconfig (NFC for example), pack again - The phone is stuck on Samsung Galaxy S8 screen (not bootloop) with the red flag.

Since compiling your kernel with defconfig works fine, the problem is not the toolchain or my build... However I can't change the defconfig

1. Why changing the .config file after defconfig causes the freeze?
2. How do I remove the red flag on boot logo?

Thank you :)
 

Tkkg1994

Inactive Recognized Developer / Contributor
Jun 10, 2014
10,138
29,150
Coding City
Thats the one I use.. maybe Im using it wrong :confused:

Anyway, I used another tool for packing/unpacking boot.img
When I unpack and pack your boot.img - Everything works fine
When I unpack yours, replace your kernel with a kernel I compiled from your sources using the defconfig, and then pack - The phone boots fine except the "KERNEL IS NOT SEANDROID ENFORCING" flag
When I unpack yours, replace your kernel with a kernel I compiled from your sources using deconfig but also remove something via menuconfig (NFC for example), pack again - The phone is stuck on Samsung Galaxy S8 screen (not bootloop) with the red flag.

Since compiling your kernel with defconfig works fine, the problem is not the toolchain or my build... However I can't change the defconfig

1. Why changing the .config file after defconfig causes the freeze?
2. How do I remove the red flag on boot logo?

Thank you :)
1. Changing the .config doesn't freeze the phone, disabling NFC however breaks it. You can enable or disable additional governors or 3rd party features without any issues, just don't disabled needed thing such as bluetooth, nfc and so on (you can always check the logs why it doesn't boot)
2. You can use my build.sh, it automatically fixes that red text. Or you put this into your terminal

Code:
echo SEANDROIDENFORCE >> image-new.img
 

almoniplo

Member
Nov 7, 2017
12
1
1. Changing the .config doesn't freeze the phone, disabling NFC however breaks it. You can enable or disable additional governors or 3rd party features without any issues, just don't disabled needed thing such as bluetooth, nfc and so on (you can always check the logs why it doesn't boot)
2. You can use my build.sh, it automatically fixes that red text. Or you put this into your terminal

Code:
echo SEANDROIDENFORCE >> image-new.img

Thanks!
How do I check the boot logs?
And I had disabled NFC and others in previous Galaxy models without any problems.
How do you suggest to disable them other than removing their support from the kernel?
 

Tkkg1994

Inactive Recognized Developer / Contributor
Jun 10, 2014
10,138
29,150
Coding City
Thanks!
How do I check the boot logs?
And I had disabled NFC and others in previous Galaxy models without any problems.
How do you suggest to disable them other than removing their support from the kernel?
Your questions about how to take logs are very general, please don't use the support thread for my kernel for this... thanks for your understanding!

Also just because it worked previously doesn't mean it works on the latest phones. That's just a hint
 

Tkkg1994

Inactive Recognized Developer / Contributor
Jun 10, 2014
10,138
29,150
Coding City
Final release of BatKernel

BatKernel V2.1.1 Final:
- Fixed issues with deodexed roms not creating dalvik-cache files (thanks @mwilky )
- Linux updated to 4.4.128

Download:
Via GrifoDev
Via AFH

As written above, this will be the last release of this kernel. This kernel will also be included in the upcoming V2.0.0 BatMan-Rom release :good:
 

palamosteliaro

Senior Member
Jan 14, 2009
117
40
BatKernel V2.1.1 Final:
As written above, this will be the last release of this kernel. This kernel will also be included in the upcoming V2.0.0 BatMan-Rom release :good:

Thanks for everything bro! I have been checking every day for an Oreo S8 ROM coming from you. Using your ROMs on all my devices (s4, Tab S, S7, S8) never had issues, by far the best Samsung Roms!
 
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 24
    BatKernel for SM-G95XF/FD/N models

    screen_shot_2017-03-29_at_17.35.22.png


    Supports Touchwiz Roms with AQG5 and higher, for bases below AQGX, use 1.2.x release version!

    IF YOU FOLLOW MY STEPS BELOW, YOU WILL LOSE YOUR WARRANTY, KNOX WILL DISPLAY 0x1! I'M NOT RESPONSIBLE FOR ANY DAMAGED DEVICE!

    If you want to take my work and need it somewhere, or do other things with it, ask me first for the permission. Otherwise you are not allowed to take it! Thank you :)!

    Features of this Kernel:
    - Build with latest 6.4.1 GNU GCC toolchain by @djb77
    - Build with CRC7 kernel source code
    - Latest Linux version 4.4.128, is always up to date
    - Performance and Batterylife improved
    - Choose between different CPU governors: performance, powersave, userspace, ondemand, interactiv (default), conservative, schedutil
    - Includes latest CRC7 ramdisk
    - I/O schedulers: CFQ (Default), No-op, Deadline, BFQ
    - F2FS enabled for /data and /cache disabled on 1.2.2 for testing
    - NTFS enabled
    - TCP (Network) control: Bic (default), Reno, cdg, cubic, dctcp, Westwood, Highspeed, Hybla, HTCP, Vegas, Veno, Scalable, LP, Yeah, Illinois, Lia, Olia, Wvegas, balia
    - SeLinux is set to permissive
    - All samsung security related configs disabled (as knox, tima, restrict rooting)

    Download:
    V2.1.1 on AndroidFilehost (Oreo)
    V1.8.0 on AndroidFilehost (Nougat)
    Via Grifo Development Thread

    Bugs/Problems:
    - None

    Instructions:
    0. Have a working recovery and encryption removed!
    1. Download kernel
    2. Boot into twrp recovery mode
    3. Flash kernel
    4. Flash any other file which affects ramdisk (Magisk or SuperSU)
    5. Reboot

    If you wanna join the beta tester group, download yourself telegram and click on the chat link: Telegram Group

    Support:
    If you like my work, feel free to hit thanks and/or give me a small donation by clicking the link right below. Thank you very much in any way! :D :good:

    PayPal

    Credits/Thanks:
    - Samsung for sources
    - the great linus for his amazing kernel source
    - Jesec for his workaround, without him custom kernels won't be possible on the s8!

    XDA:DevDB Information
    BatKernel SM-G95XF, Kernel for the Samsung Galaxy S8

    Contributors
    Tkkg1994
    Source Code: https://github.com/Tkkg1994/BatKernel

    Kernel Special Features: Close to Stock Kernel

    Version Information
    Status: Stable
    Current Stable Version: V2.1.1
    Stable Release Date: 2018-04-23

    Created 2017-07-14
    Last Updated 2018-04-23
    21
    Oreo arrives

    BatKernel V2.0.0:
    - Rebased on latest CRB7 source code (Oreo)
    - Ramdisk update to CRB7 (Oreo)
    - DON'T use this on Nougat
    - Linux update to latest 4.4.124
    - Toolchain updated
    - Camera bins updated to CRB7 @Noxxxious
    - Updated AIK to latest 3.2 release
    - If you got issues with your wifi, you were previously using a "dirty" hack to get wifi working. I can confirm that wifi works fine on a full stock rom. If wifi doesn't work, please tell your rom developer to fix it :fingers-crossed:

    I know, I might not be the fastest here to update the kernels. But I can assure you that everything works fine on this Oreo kernel (as long as the rom+kernel combination matches of course). Also as you may have noticed, I changed the name to BatKernel (instead of BatStock-Kernel), I initially planned to do 2 versions (1 batstock kernel and 1 batkernel), but I simply don't have the time for that, so let's use the BatKernel as main name :)

    I'm sorry about the delay and wish you all happy flashing time now! Have fun :fingers-crossed:

    I'd appreciate it if you hit the thanks button (of course only if you enjoy it :D ) :good:

    Download:
    Via GrifoDev
    Via AFH
    20
    BatStock-Kernel V1.6.0

    BatStock-Kernel V1.6.0:
    - Updated source of the kernel to AQJ1
    - Updated ramdisk to AQJ1
    - Updated linux to latest 4.4.95
    - Updated patched firmware binaries to AQJ1

    Wish all (who celebrate) a happy halloween :)

    Download links:
    Download via GrifoDev
    Download via AFH

    For support I'd highly appreciate hitting the thanks button, thank you guys! :good:
    19
    Changelog:

    Nougat:
    BatStock-Kernel V1.0:
    - Initial testing release (not on XDA)

    BatStock-Kernel V1.0.1:
    - Fixed slow read speed
    - enabled f2fs
    - enabled ntfs
    - enabled all included govs/tcp/ioscheds
    - random driver updates

    BatStock-Kernel V1.1.0:
    - Based on latest AQE5 source code
    - Updated ramdisk to AQEB
    - Added init.d support
    - Hopefully fixed some issues with shealth
    - Updated linux to most recent 4.4.69
    - Changes made by samsung in source code: led cover support, some other battery updates, display updates (mainly for red tint), other small fixes

    BatStock-Kernel V1.2.0:
    - Based on latest AQF7 release
    - Updated ramdisk to AQF7
    - Updated Linux to 4.4.74
    - ext4: fix data exposure after a crash (which should maybe fix the random reboots)
    - Updated included camera binaries

    BatStock-Kernel V1.2.2:
    - Reverted an alarmtimer update which could have broken some deepsleep things
    - Added support for private mode
    - Updated linux to 4.4.76
    - Added stock init file (without being patched for f2fs, means f2fs won't work right now) to see if that has something to do with continous bootloops

    BatStock-Kernel V1.3.2:
    - Remember, this kernel won't boot on AQF7 or lower bases, only on AQG5 or highter!!
    - Added BFQ ioscheduler
    - Updated resetprop from latest magisk release
    - Updated Linux version to 4.4.82
    - Added Spectrum support (right now it will only change cpugovs, this will be extended in future releases)
    - Updated ramdisk to AQGB
    - Updated source code to AQGB

    BatStock-Kernel V1.4.0:
    - Kernel base updated to AQH3
    - Ramdisk updated to AQH3
    - Linux updated to most recent 4.4.83
    - Switched back to an older version of the toolchain

    BatStock-Kernel V1.4.1:
    - Linux updated to 4.4.87
    - Toolchain switched to GNU GCC 6.4.0 build by @djb77
    - Small adjustments to make your experience even greater!

    BatStock-Kernel V1.5.0:
    - Updated base of the kernel to AQI7
    - Updated ramdisk to AQI7
    - Linux updated to 4.4.92
    - Toolchain switched to GNU GCC 6.4.1 build by @djb77
    - Updated camera binaries to AQI7 thanks to @geiti94
    - Enabled dex on all hdmi adapters thanks to @kbarni

    BatStock-Kernel V1.6.0:
    - Updated source of the kernel to AQJ1
    - Updated ramdisk to AQJ1
    - Updated linux to latest 4.4.95
    - Updated patched firmware binaries to AQJ1

    BatStock-Kernel V1.7.0:
    - Source code update to AQK7
    - Ramdisk update to AQK7
    - Linux update to latest 4.4.102

    BatStock-Kernel V1.8.0:
    - Source code update to AQL5
    - Ramdisk update to AQL5
    - Linux update to latest 4.4.111
    - Toolchain updated
    - AIK updated to latest v3.1

    Oreo:
    BatKernel V2.0.0:
    - Rebased on latest CRB7 source code (Oreo)
    - Ramdisk update to CRB7 (Oreo)
    - DON'T use this on Nougat
    - Linux update to latest 4.4.124
    - Toolchain updated
    - Camera bins updated to CRB7 @Noxxxious
    - Updated AIK to latest 3.2 release
    - If you got issues with your wifi, you were previously using a "dirty" hack to get wifi working. I can confirm that wifi works fine on a full stock rom. If wifi doesn't work, please tell your rom developer to fix it :good:

    BatKernel V2.1.0:
    - Based on latest CRC7 source code
    - Ramdisk updated to CRC7
    - Linux updated to 4.4.125

    BatKernel V2.1.1 Final:
    - Fixed issues with deodexed roms not creating dalvik-cache files (thanks @mwilky )
    - Linux updated to 4.4.128
    18
    New kernel arrives

    BatStock-Kernel V1.8.0:
    - Source code update to AQL5
    - Ramdisk update to AQL5
    - Linux update to latest 4.4.111
    - Toolchain updated
    - AIK updated to latest v3.1

    Download:
    Via GrifoDev
    Via AFH

    If you appreciate the update, I'll really love if you hit the thanks button :victory: