[MiNote2][KERNEL][HMP/MIUI][Linux 3.18.31] Floppy Kernel [RC1.3][13/01/18]

Search This thread

Jonas Cardoso

Senior Member
Mar 22, 2014
1,681
2,978
22
São José dos Campos
tadmLKY.png

Floppy is kernel for all custom rom based on LineageOS 14.1, 15.1 and Miui , support the Xiaomi Mi Note 2

Code:
#include <disclaimer.h>

* Your warranty is now void. *
* No guaranteed this'll explode your device, be careful, follow the instructions ! *
*don't point at me if your alarm dies after flashing this kernel ! *

waNnsNO.png


  • Based on Linux Kernel 3.18.31
  • Based on LineageOS Kernel
  • GCC Linaro 7.2.1, UBERTC 8.0, SaberMod 7.0 and Google 4.9
  • Governors: Impulse, Despair, Zzmove, Darkness, Blu_active, ElementalX, Interactive, Conservative, Ondemand, Powersave, Lionheart, Userspace, Bioshock, Alucard, Hyper, Wheatley, Nightmare, Dancedance, Adaptive, Pegasusq, Chill, Cafactive and Performance.
  • I/O Schedulers: Noop, Deadline, Cfq, Fiops, Bfq, Zen, Sio, Sioplus, Maple and Tripndroid.
  • Compiled with -Os
  • Full Linaro Optimizations ON
  • Optimized Parameters from L Speed @Paget96
  • Google Snappy Algorithm
  • ARM RWSEM Algorithm
  • Charge Control module - credits : xNombre
  • Wireless adapter (LIB80211, RTL8180, RTL8187, MAC80211, EEPROM: LEGACY, MAX6875, 93CX6, 93XX46)
  • Spectrum support
  • Kexec HardBoot support
  • Wireguard
  • Kernel Samepage Merging (KSM)
  • Dynamic File Sync and Asynchronous FIle Sync - credits : andip71 | Francisco Franco
  • Passing SafetyNet
    [*] Frandom - Entropy Generator
  • USB OTG NTFS r/w Support
  • SYSInterface Gentle Fair Sleepers
    [*] Some CFLAGS optimizations
  • Performance enhancements
  • OC Slimbus frequencies to provide better sound quality
  • Lazyplug - credits : arter97 | frap129
  • Backlight Dimmer
  • Arch Power saving - credits : kirananto | Cl3Kener
  • Adreno Idler- credits : arter97 | yarpiin
    [*] Intelli-Thermal v3.0 - credits : faux123
  • Support f2fs, exfat, ntfs filesystem
  • Quick WakeUp Driver and power suspend 1.7 - credits : Paul Reioux | Jean-Pierre Rasquin | Francisco Franco
  • Support cpu boost, cpu input boost and fingerprint boost
  • MDSS color control (Kcal v2) - credits : flar2 | andip71
  • Sysfs interface to Enable/Disable CRC - credits : whyorean
    [*] Sysfs interface CPU Vdd levels
  • Boeffla wl blocker v1.1.0: sensor_ind, msm_hsic_host, wlan_rx, wlan_ctrl, wlan, ipa, qcom rx and more - credits : Francisco Franco | andip71
  • Vibration Control Intensity
  • TCP Congestion Algorithms: Westwood (default), Reno, Bic, Highspeed, Hybla, HTCP, Vegas, Scalable, Lp, Yeah and Illinois.
  • And much more!

attachment.php


First time:
  • Reboot to recovery
  • Flash FloppyKernel.zip
  • Flash magisk (optional to get root)
  • Wipe cache e dalvik cache
  • Reboot

Update the kernel:
  • Reboot to recovery
  • Flash FloppyKernel.zip
  • Wipe cache e dalvik cache
  • Reboot

Coming from another kernel:
  • Reboot to recovery
  • Flash your ROM
  • Flash FloppyKernel.zip
  • Flash magisk (optional to get root)
  • Wipe cache e dalvik cache
  • Reboot
attachment.php



x0v1bDE.png



fItpw4J.png



CfTUolj.png


  • Donate here, if you like my work!!!

Yk4zsQa.png


  • LineageOS
  • Mi5Devs
  • @GreekDragon

XDA:DevDB Information
Floppy Kernel, Kernel for the Xiaomi Mi Note 2

Contributors
Jonas Cardoso, InsideMuz
Source Code: https://github.com/JonasCardoso/android_kernel_xiaomi_msm8996

Kernel Special Features: A magical support, I am all day here, reading the publications of the posts, ready to help in any doubt (unless you have not read the OP that contains the information that you need).

Version Information
Status: Stable
Current Stable Version: RC1.3
Stable Release Date: 2018-01-13

Created 2018-01-08
Last Updated 2018-08-20
 

Jonas Cardoso

Senior Member
Mar 22, 2014
1,681
2,978
22
São José dos Campos
ywYaI6v.png

RC1 - 28/11/2017


  • Changes from source "LineageOS/android_kernel_xiaomi_msm8996"
  • kernel: support for GCC 5, 6 and 7
  • cpufreq: added new governor
  • block: added new iosched
  • filesystem: add NTFS r/w support
  • power : power_suspend 1.7 - credits : Paul Reioux | Jean-Pierre Rasquin
  • sched: Add SysInterface for GENTLE_FAIR_SLEEPERS
  • int_sqrt: Improve 3x faster integer sqrt
  • sync: Dynamic Sync Control 2.0
  • fs: Async I/O latency to a ssd greatly increased, 34% gain (Creds: kl…
  • include: Set 1024KB as Max Read ahead - more performance now
  • thermal : intelli-Thermal v3.0
  • ASoC: wcd9335: Sound control
  • msm8996: all variants same clock
  • staging: Google Snappy
  • Power : Add Quick WakeUp Driver
  • cmdline: Safetynet
  • fs: add exfat support
  • cpufreq: show cpu voltages via sysfs 009a6c0
  • cpufreq: Add CPU Input Boost Driver : SultanXDA
  • cpufreq: cpu-boost: Optimizations
  • fs: Dynamic Sync Control 2.0 and MDSS color control
  • drivers: Slimbus Overclock
  • gemini: Enable All TCP Congestion Algorithms
  • OC : Standard MSM8996 Frequency CPU | GPU
  • devfreq : Add Adreno Idler
  • cpufreq: add fingerprintboost and lazyplug
  • drivers: intelli-Thermal v3.0
  • version: floppykernel RC1


RC1.1 - 10/12/2017


  • SoundControl: fixed speaker \o/
  • ramdisk: add tweaks on init.floppy.rc
  • char: disabled frandom
  • gemini: enabled ksm
  • gcc: support gcc 7.x and 8.0 (Linaro and UBERTC)
  • zip-creator: add spectrum support
  • drivers: misc: implement usb fast charge mode
  • version: floppykernel RC1.1 62e569c
  • zip-creator: delete zip build 8ae3d63


RC1.2 - 27/12/2017


  • android: binder
  • ALSA: compress: Add DSD format support for ALSA
  • ALSA: compress: Add APTX format support in ALSA
  • firmware: Update synaptic
  • firmware: Update fte8716
  • spectrum: don't change clock cpu
  • kernel: added support to lithium
  • kernel: added support to natrium
  • kernel: added support to scorpio
  • msm8996: Overclocking frequencies
  • msm: qdsp6v2: Allow 320K AAC encoding
  • Add Kexec HardBoot Support
  • Revert "drivers: intelli-Thermal v3.0"
  • Merge tag 'LA.UM.5.5.r1-06400-8x96.0' into HEAD
  • drivers: staging: Update qcacld-2.0 driver
  • version: floppykernel rc1.2
  • build.sh: update device.prop
  • defconfig: CPU and GPU more battery-friendly
  • wakeup: More Wakelocks


RC1.3 - 13/01/2018


  • zip-creator: update AnyKernel2
  • build.sh: update device.prop
  • defconfig: CPU and GPU more battery-friendly
  • zip-creator: update AnyKernel Setup
  • wakeup: More Wakelocks
  • msm: mdss: kcal: Add KCAL support for post processing control [v2] 6b40a22
  • zram: LZ4 after LZ0
  • block: Add Maple I/O Scheduler
  • zip-creator: Patch to remove dm-verity
  • gcc8: fix warnings
  • defconfig: Wireless Adapter
  • net/wireguard: add wireguard importer
  • zip-creator: device check
  • dtbTool: now dtbTool will be built
  • travis: GitHub Release
  • zip-creator: update patchs
  • boeffla_wl_blocker: update to wakelock blocker driver v1.1.0 3efdcbf
  • defconfig: enable lazyplug a9785fe
  • defconfig: enable adreno idler a5d0558
  • cpufreq : Add Chill CPU Governor - credits : Joe Maples (@frap129) 6d26826
  • cpufreq: Add CAF-Active Governer - credits : Jean-Pierre Rasquin 4ba764b
  • version: floppykernel rc1.3 34479b6
  • travis: deploy in lineage-14.1 branch e5f4308
 
Last edited:

Jonas Cardoso

Senior Member
Mar 22, 2014
1,681
2,978
22
São José dos Campos
attachment.php

Frequently asked questions

Q: Will this conflict with any mod I'm using?
A: As long as it doesn't have any entropy related stuff, its okay. Since the kernel already comes with an inbuilt entropy generator, it will conflict with the ones from mod, causing a poor, stuttered performance!

Q: Deep Sleep isnt working for me, Google Services causing wake-locks, what to do?
A: Go to settings, Privacy, Privacy Guard, All apps, long press Google Services, and deny/disable wake-locks! (Thanks to @Paget96 for the solution)

Q: Which version should I flash?
A: Flash kernel with toolchain that you prefer.

Q: What is the difference between the UBERTC, Linaro, SaberMod and Google toolchain? Which one is the best?
A: It's a good read on the toolchain UBERTC you are wanting to know more about it, this for Linaro, this for SaberMod and this for Google.

Q: What is the difference between the HMP and Miui kernel?
A: Miui folder is for miui roms -> xiaomi.eu, MiuiBR and other derivatives from miui official. HMP folder is for aosp rom and derivatives -> Aosp, Lineage and other derivatives from aosp

Q: Is your kernel secure?
A: You MAY face some issues, but it's safe! My cell phone has not exploded yet.

Q: WiFi doesnt work for me.
A: Reflash ROM and Kernel.

Q: What application can I use to configure the kernel?
A: Use Spectrum, and if you have enough knowledge of what to modify or do in the application use together Kernel Adiutor.

Q: Can I use the kernel source in my ROM?
A: If you want to use my kernel in your ROM, just put my name in the credit, just like I did.

Q: Does your kernel support writing to the NTFS file system?
A: Yeeh, you can use flash drives and HD with NTFS via OTG.

Q: My cpu clock is locked with any governor.
A: Just disable the thermal control in the kernel temperature settings.

Q: I have problems with your kernel.
A: Take a logcat and kmesg, this website and this video should help you

Q: Why does my magisk and root disappear after installing your kernel?
A: The kernel script makes changes that directly interfere with both, reinstall the magisk that it will function normally, follow this installation line always: FloppyKernel -> Magisk -> Reboot system.

Q: Does your kernel support Miui ROM?
A: Yes, support was added in "RC1.2".

Q: Why did your kernel go straight to "RC1.2"?
A: Because it is based on the FloppyKernel for MI5, which is already in RC1.2.

Q: What is the "Battery" profile in the spectrum?
A: Based on Project Zhana & X.A.N.A was made for trying to be as efficient as possible without compromising the performance. Thanks to the discovery on Voltages used by our SD820 I could make a profile that utilizes more the BIG cluster. My first attempt was to move ALL the load to the BIG cluster, it was against anything that I have learned about little. BIG CPU but I tried, it turned really good at first, low usage was just amazing... But on more usage things didn't go that good. So what I did it was to give a twist to things, but not such twist. It kind of works like Nameless and Shotgun, Mostafa Wael and I worked the same idea. #LITTLE cluster will be running on low-mid frequencies but delivers full performance when is needed. # BIG Cluster will help LITTLE ease Load, but in a great way than before. Things can be done faster and more efficient giving us profit in form of battery. It should run smooth on all scenarios, but you guys tell me. You can easily get around 7~9 hours SOT for 24 hours even more If you don't play game. This will, of course, may vary, but it will definitely be better.

Q: What is the "Balanced" profile in the spectrum?
A: Based on GhostPepper was made to uses a quantized, frequency-aligned parametric curve to influence low core clock rates while providing extremely smooth transitions from each clock rate and exceptional battery life. Really well-defined clock speed escalation for a good battery and performance.

Q: What is the "Performance" profile in the spectrum?
A: Based on FusionP this profile brings a more "agressive" way to scale frequencies. It will scale frequencies sooner(regarding load values from cpu) and will use more the big cluster to provide more performance doing the tasks on hands. Battery should not take a big hit but using heavy demanding tasks you can expect a higher drain.

Q: What is the "Gaming" profile in the spectrum?
A: Based on Burnout PR5, this profile's main goal is to provide absolute maximum performance when needed, but lies low quite well. You see, some times I see the CPU hitting some of the high freqs of 1190 while making something as simple as watching YouTube or playing some spotify tracks needlessly, and sometimes I feel it is a bit slower than it should be in things like brute multitasking. Most profiles do aim at bringing a mid-ground to rest on. But with the sensible words of one of my favourite idols Jeremy Clarkson, he says 'Power solves everything' and right he is. By eliminating the mid freqs of the Little cluster and efficiently using some specific frequency steps, you get some power savings by staying on lower freqs as much as possible, and even on brutal tasks you get the job done faster as well, since the CPU will give you all the power to finish the job as fast as it can, and hit back to idle faster.

Q: I want more information about your spectrum profiles.
A: Read this thread.

Q: I want more information about governors, I/O Scheduler, Hotplug, TCP Algorithms and other things.
A: Read this thread.

attachment.php
 
Last edited:

alexmanu1

Senior Member
Feb 9, 2016
406
117
Constanta
Redmi Note 8 Pro
Hi! I tried the new version of the kernel on mi-globe 7.12.21 rom with twrp 3.2.1 .
I think i am doing something wrong as it does not boot, even if i install the latest magisk v15.
It gets to the boot image and then it shuts down the phone.
Then i reinstall mi-globe rom that comes with the stock kernel and it is fine.
 

Inky

Member
Oct 11, 2016
27
5
@Jonas Cardoso I've a question, could you compile WiFi monitor mode with your kernel? Its a tool which let's you capture wifi packages, and enables to use tools like pcap for android.
Thanks in advance.
 

Knz7777

Senior Member
Dec 31, 2017
73
11
Yeeh, is with OC in CPU, can you get a screen the table clocks with kernel adiutor for me?
Use spectrum for configure kernel, have four profiles and kernel adiutor if necessary

Im currently waiting for the device, when it will be in my hands, i will do it. Im planning to use miui.pro with your kernel.

---------- Post added at 02:36 PM ---------- Previous post was at 02:32 PM ----------

And i tried to read about different types of compiling, still i cant understand what to download) ubertc, linaro?) Is there any difference for thr enduser?
 

Jonas Cardoso

Senior Member
Mar 22, 2014
1,681
2,978
22
São José dos Campos
Im currently waiting for the device, when it will be in my hands, i will do it. Im planning to use miui.pro with your kernel.

---------- Post added at 02:36 PM ---------- Previous post was at 02:32 PM ----------

And i tried to read about different types of compiling, still i cant understand what to download) ubertc, linaro?) Is there any difference for thr enduser?

miui pro dont work with my kernel
 

Top Liked Posts

  • There are no posts matching your filters.
  • 6
    tadmLKY.png

    Floppy is kernel for all custom rom based on LineageOS 14.1, 15.1 and Miui , support the Xiaomi Mi Note 2

    Code:
    #include <disclaimer.h>
    
    * Your warranty is now void. *
    * No guaranteed this'll explode your device, be careful, follow the instructions ! *
    *don't point at me if your alarm dies after flashing this kernel ! *

    waNnsNO.png


    • Based on Linux Kernel 3.18.31
    • Based on LineageOS Kernel
    • GCC Linaro 7.2.1, UBERTC 8.0, SaberMod 7.0 and Google 4.9
    • Governors: Impulse, Despair, Zzmove, Darkness, Blu_active, ElementalX, Interactive, Conservative, Ondemand, Powersave, Lionheart, Userspace, Bioshock, Alucard, Hyper, Wheatley, Nightmare, Dancedance, Adaptive, Pegasusq, Chill, Cafactive and Performance.
    • I/O Schedulers: Noop, Deadline, Cfq, Fiops, Bfq, Zen, Sio, Sioplus, Maple and Tripndroid.
    • Compiled with -Os
    • Full Linaro Optimizations ON
    • Optimized Parameters from L Speed @Paget96
    • Google Snappy Algorithm
    • ARM RWSEM Algorithm
    • Charge Control module - credits : xNombre
    • Wireless adapter (LIB80211, RTL8180, RTL8187, MAC80211, EEPROM: LEGACY, MAX6875, 93CX6, 93XX46)
    • Spectrum support
    • Kexec HardBoot support
    • Wireguard
    • Kernel Samepage Merging (KSM)
    • Dynamic File Sync and Asynchronous FIle Sync - credits : andip71 | Francisco Franco
    • Passing SafetyNet
      [*] Frandom - Entropy Generator
    • USB OTG NTFS r/w Support
    • SYSInterface Gentle Fair Sleepers
      [*] Some CFLAGS optimizations
    • Performance enhancements
    • OC Slimbus frequencies to provide better sound quality
    • Lazyplug - credits : arter97 | frap129
    • Backlight Dimmer
    • Arch Power saving - credits : kirananto | Cl3Kener
    • Adreno Idler- credits : arter97 | yarpiin
      [*] Intelli-Thermal v3.0 - credits : faux123
    • Support f2fs, exfat, ntfs filesystem
    • Quick WakeUp Driver and power suspend 1.7 - credits : Paul Reioux | Jean-Pierre Rasquin | Francisco Franco
    • Support cpu boost, cpu input boost and fingerprint boost
    • MDSS color control (Kcal v2) - credits : flar2 | andip71
    • Sysfs interface to Enable/Disable CRC - credits : whyorean
      [*] Sysfs interface CPU Vdd levels
    • Boeffla wl blocker v1.1.0: sensor_ind, msm_hsic_host, wlan_rx, wlan_ctrl, wlan, ipa, qcom rx and more - credits : Francisco Franco | andip71
    • Vibration Control Intensity
    • TCP Congestion Algorithms: Westwood (default), Reno, Bic, Highspeed, Hybla, HTCP, Vegas, Scalable, Lp, Yeah and Illinois.
    • And much more!

    attachment.php


    First time:
    • Reboot to recovery
    • Flash FloppyKernel.zip
    • Flash magisk (optional to get root)
    • Wipe cache e dalvik cache
    • Reboot

    Update the kernel:
    • Reboot to recovery
    • Flash FloppyKernel.zip
    • Wipe cache e dalvik cache
    • Reboot

    Coming from another kernel:
    • Reboot to recovery
    • Flash your ROM
    • Flash FloppyKernel.zip
    • Flash magisk (optional to get root)
    • Wipe cache e dalvik cache
    • Reboot
    attachment.php



    x0v1bDE.png



    fItpw4J.png



    CfTUolj.png


    • Donate here, if you like my work!!!

    Yk4zsQa.png


    • LineageOS
    • Mi5Devs
    • @GreekDragon

    XDA:DevDB Information
    Floppy Kernel, Kernel for the Xiaomi Mi Note 2

    Contributors
    Jonas Cardoso, InsideMuz
    Source Code: https://github.com/JonasCardoso/android_kernel_xiaomi_msm8996

    Kernel Special Features: A magical support, I am all day here, reading the publications of the posts, ready to help in any doubt (unless you have not read the OP that contains the information that you need).

    Version Information
    Status: Stable
    Current Stable Version: RC1.3
    Stable Release Date: 2018-01-13

    Created 2018-01-08
    Last Updated 2018-08-20
    4
    It is with regret that I come to inform that the Kernel Floppy project is canceled, I have a very big problem that is lack of time, I am student and I have to focus on my studies, so it is difficult to work with kernel and to study, I really tried to update the kernel with the new changes of xiaomi, but this is taking a lot of time and generating many problems, I hope you understand, I will not delete the kernel source, anyone who feels like it, can continue the project with complete freedom, it was very well the time I was here contributing to the community, I was very happy in that time with the positive feedback I got from you, but everything has an end and that is the moment. Thanks for everything, my friends.
    2
    ywYaI6v.png

    RC1 - 28/11/2017


    • Changes from source "LineageOS/android_kernel_xiaomi_msm8996"
    • kernel: support for GCC 5, 6 and 7
    • cpufreq: added new governor
    • block: added new iosched
    • filesystem: add NTFS r/w support
    • power : power_suspend 1.7 - credits : Paul Reioux | Jean-Pierre Rasquin
    • sched: Add SysInterface for GENTLE_FAIR_SLEEPERS
    • int_sqrt: Improve 3x faster integer sqrt
    • sync: Dynamic Sync Control 2.0
    • fs: Async I/O latency to a ssd greatly increased, 34% gain (Creds: kl…
    • include: Set 1024KB as Max Read ahead - more performance now
    • thermal : intelli-Thermal v3.0
    • ASoC: wcd9335: Sound control
    • msm8996: all variants same clock
    • staging: Google Snappy
    • Power : Add Quick WakeUp Driver
    • cmdline: Safetynet
    • fs: add exfat support
    • cpufreq: show cpu voltages via sysfs 009a6c0
    • cpufreq: Add CPU Input Boost Driver : SultanXDA
    • cpufreq: cpu-boost: Optimizations
    • fs: Dynamic Sync Control 2.0 and MDSS color control
    • drivers: Slimbus Overclock
    • gemini: Enable All TCP Congestion Algorithms
    • OC : Standard MSM8996 Frequency CPU | GPU
    • devfreq : Add Adreno Idler
    • cpufreq: add fingerprintboost and lazyplug
    • drivers: intelli-Thermal v3.0
    • version: floppykernel RC1


    RC1.1 - 10/12/2017


    • SoundControl: fixed speaker \o/
    • ramdisk: add tweaks on init.floppy.rc
    • char: disabled frandom
    • gemini: enabled ksm
    • gcc: support gcc 7.x and 8.0 (Linaro and UBERTC)
    • zip-creator: add spectrum support
    • drivers: misc: implement usb fast charge mode
    • version: floppykernel RC1.1 62e569c
    • zip-creator: delete zip build 8ae3d63


    RC1.2 - 27/12/2017


    • android: binder
    • ALSA: compress: Add DSD format support for ALSA
    • ALSA: compress: Add APTX format support in ALSA
    • firmware: Update synaptic
    • firmware: Update fte8716
    • spectrum: don't change clock cpu
    • kernel: added support to lithium
    • kernel: added support to natrium
    • kernel: added support to scorpio
    • msm8996: Overclocking frequencies
    • msm: qdsp6v2: Allow 320K AAC encoding
    • Add Kexec HardBoot Support
    • Revert "drivers: intelli-Thermal v3.0"
    • Merge tag 'LA.UM.5.5.r1-06400-8x96.0' into HEAD
    • drivers: staging: Update qcacld-2.0 driver
    • version: floppykernel rc1.2
    • build.sh: update device.prop
    • defconfig: CPU and GPU more battery-friendly
    • wakeup: More Wakelocks


    RC1.3 - 13/01/2018


    • zip-creator: update AnyKernel2
    • build.sh: update device.prop
    • defconfig: CPU and GPU more battery-friendly
    • zip-creator: update AnyKernel Setup
    • wakeup: More Wakelocks
    • msm: mdss: kcal: Add KCAL support for post processing control [v2] 6b40a22
    • zram: LZ4 after LZ0
    • block: Add Maple I/O Scheduler
    • zip-creator: Patch to remove dm-verity
    • gcc8: fix warnings
    • defconfig: Wireless Adapter
    • net/wireguard: add wireguard importer
    • zip-creator: device check
    • dtbTool: now dtbTool will be built
    • travis: GitHub Release
    • zip-creator: update patchs
    • boeffla_wl_blocker: update to wakelock blocker driver v1.1.0 3efdcbf
    • defconfig: enable lazyplug a9785fe
    • defconfig: enable adreno idler a5d0558
    • cpufreq : Add Chill CPU Governor - credits : Joe Maples (@frap129) 6d26826
    • cpufreq: Add CAF-Active Governer - credits : Jean-Pierre Rasquin 4ba764b
    • version: floppykernel rc1.3 34479b6
    • travis: deploy in lineage-14.1 branch e5f4308
    2
    Build with last changes, I'll pack some way to automate this, my PC is not as fast to make the builds
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone