[KERNEL][FireTV Stick 4K] Custom Kernel For AFTV 4k - 6.2.9.4

Search This thread

fluffi444

Senior Member
Nov 19, 2012
1,600
930
Amazon Fire TV
Samsung Galaxy S9+
Sry for my dump question but i dont wanna brick my device. I'm currently on Fire TV Stick 4K 6.2.8.1 r3_4054 Fully Patched Rom (from here). I need exfat/ntfs Support. Which Version of your Kernel i should Install? I dont wanne lose Root. Is it recommended to make a Backup through twrp? Thx

It's quite easy:
Flash in one TWRP Session in following order:
1 - boot_mantis_6.2.8.1_R1(not_tested).zip - Author wrote not tested, but I guess it should be fine!
2 - Magisk-v25.2.zip - Even if installed, flash it again for kernel patching
3 - AFTV4k_Selinux_Magisk_Module.zip
4 - AFTV_exFAT-NTFS-F2FS-EXT4_OTG_SUPPORT_v1.4.1.zip
 

subhash_india

Senior Member
Jul 1, 2021
65
10
It's quite easy:
Flash in one TWRP Session in following order:
1 - boot_mantis_6.2.8.1_R1(not_tested).zip - Author wrote not tested, but I guess it should be fine!
2 - Magisk-v25.2.zip - Even if installed, flash it again for kernel patching
3 - AFTV4k_Selinux_Magisk_Module.zip
4 - AFTV_exFAT-NTFS-F2FS-EXT4_OTG_SUPPORT_v1.4.1.zip
Wait , it's better- Flash 6.2.8.1_r2., that fixes Netflix/TZ, afterwards you can flash any other FW again
 

jorges4lu2

Member
Jun 12, 2009
10
0
@cityhunter_1919_xyz i never used a pre-rooted rom so i can't guarantee that the procedure will be smooth .

Those steps look fine to me,but after flashing 6.2.9.4 (step 1),you should mount "system" partition ,then use TWRP's File Manager to delete these two files :

/system/bin/efuse_check.sh
/system/bin/ewritter

Then it should be safe to procede with the other steps (my kernel has the efuse stuff removed ,so it's also safe).

As long as you stay unlocked ,it should be possibile to downgrade ,but you might need to downgrade the TZ too ,can't say for sure cause i never tried to downgrade from 6.2.9.4.
Hi.

I'm currently on 6.2.8.1 rooted and I want to update to 6.2.9.4 in addition to flash the custom kernel.

I'm just afraid of the updates. Once I flashed everything and restart to system will the fire stick update? What should I do in order to avoid the updates?

Thanks in advance
 

bibikalka

Senior Member
May 14, 2015
1,488
1,137
Hi.

I'm currently on 6.2.8.1 rooted and I want to update to 6.2.9.4 in addition to flash the custom kernel.

I'm just afraid of the updates. Once I flashed everything and restart to system will the fire stick update? What should I do in order to avoid the updates?

Thanks in advance

Easy. In TWRP, backup all you have first, just in case. Then, flash stock 6.2.9.4 renamed to zip, then 6.2.9.4 custom kernel from here, then Magisk 25.2 all in one TWRP session. If you had MAgisk already, it'll find the modules. If not - reboot to TWRP, and flash required magisk modules too.
 
  • Like
Reactions: jorges4lu2

LesGaR

Senior Member
Easy. In TWRP, backup all you have first, just in case. Then, flash stock 6.2.9.4 renamed to zip, then 6.2.9.4 custom kernel from here, then Magisk 25.2 all in one TWRP session. If you had MAgisk already, it'll find the modules. If not - reboot to TWRP, and flash required magisk modules too.
Hi! if I flash stock 6.2.9.4 renamed to zip, how to prevent e-fuse blow?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 16
    Warning !!! Use this kernel on your own risk !!! I can't be held responsible for any kind of damage or data loss !!!
    Features:
    • SDCARDFS
    • exFAT and F2FS support
    • Wireguard
    • Advanced TCP options
    • CIFS and NFS support
    • Insecure ADB

    v1 -6.2.6.8-Changelog
    v1 -6.2.6.8-Changelog
    • defconfig: Enable SDCARDFS
    • sdcardfs: Fix sdcardfs to stop creating cases-sensitive duplicate entries.
    • ANDROID: sdcardfs: Make WARN_RATELIMIT to pr_debug
    • ANDROID: sdcardfs: Add missing break
    • ANDROID: Sdcardfs: Move gid derivation under flag
    • ANDROID: mnt: Fix freeing of mount data
    • config: Add full mantis config
    • defconfig: Enable Wireguard
    • net: Add Wireguard importer
    • defconfig: Disable Amazon Metrics
    • defconfig: Enable Advanced TCP Congestion
    • defconfig: Enabled IKCONFIG_PROC
    • defconfig: Enable Network Filesystems
    • defconfig: Enable CIFS support
    • fs:Enable NFS support
    • fs: Enable exFAT Filesystem
    • fs: Add exFAT support
    • defconfig: Enable F2FS

    v1 -6.2.7.1-Changelog
    v1 -6.2.7.1-Changelog
    • defconfig: Enable SDCARDFS
    • sdcardfs: Fix sdcardfs to stop creating cases-sensitive duplicate entries.
    • ANDROID: sdcardfs: Make WARN_RATELIMIT to pr_debug
    • ANDROID: sdcardfs: Add missing break
    • ANDROID: Sdcardfs: Move gid derivation under flag
    • ANDROID: mnt: Fix freeing of mount data
    • config: Add full mantis config
    • defconfig: Enable Wireguard
    • net: Add Wireguard importer
    • defconfig: Disable Amazon Metrics
    • defconfig: Enable Advanced TCP Congestion
    • defconfig: Enabled IKCONFIG_PROC
    • defconfig: Enable Network Filesystems
    • defconfig: Enable CIFS support
    • fs:Enable NFS support
    • fs: Enable exFAT Filesystem
    • fs: Add exFAT support
    • defconfig: Enable F2FS


    v2 -6.2.7.1-Changelog
    v2 -6.2.7.1-Changelog
    Enabled XPAD driver (this will enable support for Microsoft XBOX gamepads)


    v3 -6.2.7.1-Changelog
    v3 -6.2.7.1-Changelog
    Wireguard not working issue is now fixed (please install the AFTV4k_Selinux_Magisk_Module.zip after installing the kernel)


    v1 -6.2.7.3-Changelog
    v1 -6.2.7.3-Changelog
    • defconfig: Enable SDCARDFS
    • sdcardfs: Fix sdcardfs to stop creating cases-sensitive duplicate entries.
    • ANDROID: sdcardfs: Make WARN_RATELIMIT to pr_debug
    • ANDROID: sdcardfs: Add missing break
    • ANDROID: Sdcardfs: Move gid derivation under flag
    • ANDROID: mnt: Fix freeing of mount data
    • config: Add full mantis config
    • defconfig: Enable Wireguard
    • net: Add Wireguard importer
    • defconfig: Disable Amazon Metrics
    • defconfig: Enable Advanced TCP Congestion
    • defconfig: Enabled IKCONFIG_PROC
    • defconfig: Enable Network Filesystems
    • defconfig: Enable CIFS support
    • fs:Enable NFS support
    • fs: Enable exFAT Filesystem
    • fs: Add exFAT support
    • defconfig: Enable F2FS
    • Enabled XPAD driver (this will enable support for Microsoft XBOX gamepads)
    • Wireguard fix (please install the AFTV4k_Selinux_Magisk_Module.zip after installing the kernel)


    R1 -6.2.7.6-Changelog
    R1 -6.2.7.6-Changelog
    • defconfig: Enable SDCARDFS
    • sdcardfs: Fix sdcardfs to stop creating cases-sensitive duplicate entries.
    • ANDROID: sdcardfs: Make WARN_RATELIMIT to pr_debug
    • ANDROID: sdcardfs: Add missing break
    • ANDROID: Sdcardfs: Move gid derivation under flag
    • ANDROID: mnt: Fix freeing of mount data
    • config: Add full mantis config
    • defconfig: Enable Wireguard
    • net: Add Wireguard importer
    • defconfig: Disable Amazon Metrics
    • defconfig: Enable Advanced TCP Congestion
    • defconfig: Enabled IKCONFIG_PROC
    • defconfig: Enable Network Filesystems
    • defconfig: Enable CIFS support
    • fs:Enable NFS support
    • fs: Enable exFAT Filesystem
    • fs: Add exFAT support
    • defconfig: Enable F2FS
    • Enabled XPAD driver (this will enable support for Microsoft XBOX gamepads)
    • Wireguard fix (please install the AFTV4k_Selinux_Magisk_Module.zip after installing the kernel)


    R3 -6.2.7.7-Changelog
    R3 -6.2.7.7-Changelog
    • 2f447f82b defconfig: Enable USB Serial FTDi-SIO
    • 8b84c88e9 defconfig: Enable XPAD driver
    • ec89c3cc8 defconfig: Enable UVCVIDEO
    • 67ca709a6 defconfig: Enable SDCARDFS
    • f4f1b3fa0 sdcardfs: Fix sdcardfs to stop creating cases-sensitive duplicate entries.
    • b1eeb0fef ANDROID: sdcardfs: Make WARN_RATELIMIT to pr_debug
    • b6a76bbb2 ANDROID: sdcardfs: Add missing break
    • 962bd1f78 ANDROID: Sdcardfs: Move gid derivation under flag
    • 705999951 ANDROID: mnt: Fix freeing of mount data
    • 9f15be5ad defconfig: Enable Wireguard
    • 883a014a9 net: Add Wireguard importer
    • 68b1bb60b defconfig: Disable Amazon Metrics
    • efd514f93 defconfig: Enable Advanced TCP Congestion
    • ae7306d2d defconfig: Enabled IKCONFIG_PROC
    • 73017ed8e defconfig: Enable Network Filesystems
    • 149dc468c defconfig: Enable CIFS support
    • f0d5ceb5a fs:Enable NFS support
    • 485fce697 fs: Enable exFAT Filesystem
    • a61103c71 fs: Add exFAT support
    • 5a43a9876 defconfig: Enable F2FS
    • 99f0df6ac Initial commit - Amazon FireTV 4K - 6.2.7.7


    R3 -6.2.9.3-Changelog
    R3 -6.2.9.3-Changelog
    • Sync with Amazon's 6.2.8.9 release (latest kernel source available)


    R2 -6.2.9.4-Changelog
    R2 -6.2.9.4-Changelog
    • Sync with Amazon's 6.2.9.4 release (latest kernel source available)
    • Requires a TZ update ,otherwise Dolby Vision will not work.
      You can find a TWRP flashable zip attached to this post (mantis_tz_update_6.2.9.4.zip)


    Installation:
    • Download and install with TWRP
    • If you are rooted,flash Magisk after flashing the kernel (installing Magisk is mandatory if you want to avoid issues and use all kernel features or my Magisk modules )
    • Install the kernel modules with Magisk (optional - only required if you need uvcvideo and advanced TCP)
    • Install AFTV4k_Selinux_Magisk_Module.zip ( this is mandatory if you want to avoid issues and use all kernel features or my Magisk modules )
    • Reboot
    Kernel Modules and AFTV4K_CIFS_MOUNTING_MODULE :
    • Download and install with Magisk Manager
    • Reboot

    AFTV4K_CIFS_MOUNTING_MODULE:
    • Download AFTV4K_CIFS_MOUNTING_MODULE.zip
    • Unpack the module
    • Open service.sh with a text editor (on Windows i recommend Notepad ++) replace user, pass and path with your own values
    • Repack the module and install with Magisk Manager
    • Reboot
    Source Code -> Github
    3
    Thx! Next step would be to switch the internal storage to F2FS. xD
    3
    New version (6.2.7.7) it's up!!
    This time some extra work was required, thx to Amazon devs, because they "trimmed" the kernel sources, basically removing most of the code required for this custom kernel.
    3
    I flashed this new 6.2.7.7 R3 + Magisk (2 files) on top of R2, and everything works so far. Did not reflash Magisk modules which were already there.

    exFAT access seems fluid, thanks for the feature again!!!
    Great! Yeah, it should be much more stable than NTFS.
    Paragon"s new NTFS driver should work much better, but i don't see an easy way to port it to FireTV4k.
    However, if this it's working stable (exFAT + F2FS) then we don't have to worry about it. :D
    3
    Here are two 6.2.8.0 kernel builds :

    1) 6.2.8.0_r1
    This build is in sync with Amazon's source + all the features from the previous version

    2)6.2.8.0_no_efuse
    This is experimental and it's the same as R1 but on this one i also disabled the efuse_check script from running on boot. Probably it's useful only for those who didn't updated to 6.2.8.0 yet and it must be installed right after you install 6.2.8.0 with TWRP (so you won't let the new OS to boot and launch the script)
    There are not enough infos about this efuse stuff, so this is a version i made for myself, just to test if there are any issues after disabling efuse_check on boot.

    BTW, i noticed that on 6.2.8.0 it takes longer for FireOS to boot, nut i don't know if it's related to my kernel or not because i never used 6.2.8.0 with the stock kernel.