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

Search This thread

BakaValen

Senior Member
May 17, 2011
78
4
ASUS ROG Phone 5
I have no idea why it doesn't work.Check this thread, iirc other people had similar issues and it was discussed (and fixed), so it might help you too.

Also, i don't understand what CIFS module has to do with the USB devices!?
I have had a good look on this thread and can't see any fix. I'll just keep experimenting I guess...

I mentioned CIFS module as it's part of the installs I used from here. Thought it might be a good idea to mention it just in case.
 

bibikalka

Senior Member
May 14, 2015
1,430
1,114
@Pretoriano80

I installed Apps2SD PRO and noticed that there is zram turned on in the swap section by default. Is it coming from this kernel mod, or the stock kernel?

I added more swap on /cache, will see if it helps.

Also, I may try to move some apps to a USB drive via Apps2SD, and check out how they work.
 

bibikalka

Senior Member
May 14, 2015
1,430
1,114
Did USB speed test, 42 MB/s. Between USB2 & USB3.

Code:
1|mantis:/mnt/media_rw/9884-7880/multy # time dd if=test.bin  of=/dev/null bs=67108864
130+1 records in
130+1 records out
8733564826 bytes transferred in 208.181 secs (41951786 bytes/sec)
    3m28.23s real     0m00.02s user     0m19.95s system
 

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,939
OP was updated with 6.2.9.3 boot image.
It's based on 6.2.8.9 kernel source ,which is the latest available from Amazon.
Efuse related stuff was removed from the ramdisk ,so there's no need to "patch" it yourself .
 
  • Like
Reactions: bibikalka and Sus_i

bibikalka

Senior Member
May 14, 2015
1,430
1,114
OP was updated with 6.2.9.3 boot image.
It's based on 6.2.8.9 kernel source ,which is the latest available from Amazon.
Efuse related stuff was removed from the ramdisk ,so there's no need to "patch" it yourself .
About 12 months after I started using this. Your kernel is still the best - exFAT support is amazingly fast (not clunky like via Paragon), I am using my 4k stick as a versatile media player.
 
  • Like
Reactions: Pretoriano80

dedekwien

New member
Nov 27, 2014
2
0
Hi Pretoriano 80
is there any solution for FireTv 4K with OS 6.2.9.4
and is it possible to doing boot from 6.2.9.3?
BR
 

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,939
I wasn't aware that Amazon released another firmware update .
However ,i will try to release a new kernel after switching my FireTV 4k to the new version.

Amazon hasn't released a new kernel source ,so if they changed anything ,then it's impossible for me to know (except for the ramdisk).
 

fluffi444

Senior Member
Nov 19, 2012
1,592
926
@Pretoriano80
Would you pls let me know if we can use Kernel 6.2.9.4 also on ROM 6.2.8.9?
I ask because there is some usefull stuff available for ROM 6.2.8.9 - especially the SweenWolf Patch...
Looks like that developent stopped for newer ROMS than 6.2.8.9....

Many Thanks.

Plan is to use (would be also the Flashing Order in one TWRP session....)
Stock ROM 6.2.8.9
Your Kernel (to get extFAT/NTFS)
SweenWolf Patch (Patch - 6.2.8.9 (mantis / Firestick 4k) [Final])
Magisk 25.2 (+Modules: AFTV4k_Selinux + NTFS/F2FS/EXT4/exFAT OTG)
 

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,939
There's only one way to find out...but i won't recommend you flashing 6.2.9.4 on older FireOS.

I can't promise you anything ,but i may be able to provide you a 6.2.8.9 custom boot.img,but i won't be able to test it on my FTV4k.
 
  • Like
Reactions: fluffi444

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,939
@Pretoriano80
Would you pls let me know if we can use Kernel 6.2.9.4 also on ROM 6.2.8.9?
I ask because there is some usefull stuff available for ROM 6.2.8.9 - especially the SweenWolf Patch...
Looks like that developent stopped for newer ROMS than 6.2.8.9....

Many Thanks.

Plan is to use (would be also the Flashing Order in one TWRP session....)
Stock ROM 6.2.8.9
Your Kernel (to get extFAT/NTFS)
SweenWolf Patch (Patch - 6.2.8.9 (mantis / Firestick 4k) [Final])
Magisk 25.2 (+Modules: AFTV4k_Selinux + NTFS/F2FS/EXT4/exFAT OTG)
I have attached a custom 6.2.8.9 boot.img,please let me know if it works!

OP was also updated with a new 6.2.9.4 release which is now based on latest kernel source available from Amazon (6.2.9.4) .
 

Attachments

  • custom_boot_mantis_6.2.8.9_R1.zip
    8.3 MB · Views: 12
  • Like
  • Love
Reactions: fluffi444 and Sus_i

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,939
NOTICE: The new 6.2.9.4 kernel require a TZ update ,otherwise Dolby Vision will not work (there were some DoVi related changes in the latest kernel source ).

I will attach a TWRP flashable version of the 6.2.9.4 TZ image to the OP.
 
  • Like
Reactions: fluffi444 and Sus_i
Dec 29, 2022
11
4
NOTICE: The new 6.2.9.4 kernel require a TZ update ,otherwise Dolby Vision will not work (there were some DoVi related changes in the latest kernel source ).

I will attach a TWRP flashable version of the 6.2.9.4 TZ image to the OP.
I am currently using rbox's 6.2.8.1_r3
Is the following procedure correct to use this kernel (6.2.9.4)?
① Change the version of fire OS to 6.2.9.4. (Using TWRP)
https://gist.github.com/JulyIghor/d3d3dd460527a1d2b5b67954160d4abf
・update-kindle-mantis-NS6294_user_4339_0008356164484.bin (change bin to zip)

② Flash custom_boot_mantis_6.2.9.4_R2.zip
③ Flash mantis_tz_update_6.2.9.4.zip
④ Flash any magisk

*Is it possible to go back to the old version (6.2.8.1) again?
(Is it possible to use TWRP again?)
 
  • Like
Reactions: fluffi444

Pretoriano80

Senior Member
Jun 9, 2010
3,259
2,939
@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.
 
  • Like
Reactions: fluffi444
Dec 29, 2022
11
4
@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.
Thank you for your reply.

I was saved because I didn't know how to upgrade from the unlocked state of the OS. (I couldn't try it because I thought TWRP would be gone.)

Since the RAM increased from 1.3GB to 1.8GB on a terminal (6.2.9.4) where TWRP cannot be installed, I wanted to check if the RAM increased by upgrading the unlocked version, so I will try it.
 
Dec 29, 2022
11
4
Thanks to you, I was able to successfully update to 6.2.9.4.
However, RAM remained at 1.3GB as far as Diskinfo and System Status Monitor show.

The erroneously updated individual (no TWRP) certainly has 0.5GB of RAM, but it is unknown how it increased.

6294_root.jpg
6294_no-TWRP.jpg
 

fluffi444

Senior Member
Nov 19, 2012
1,592
926
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.

Sry for my late reply - And thanks for the Kernel 6.2.8.9

Perfect! I asked my self the same question (Downgrade from 6.2.8.9 or 6.2.9.4). And I am aware of the efuse stuff.
After reading many topics here I learned much... Thanks to you and the other Pro's here as Sus_i.

Plan is to integrade the "Deleting efuse burner" stuff in one of the flashing scripts in "updater-script" file...
Maybe into your mantis_tz_update_6.2.9.4.zip or in the Kernel.zip - before flashing...
Code:
mount("ext4", "EMMC", "/dev/block/platform/soc/11230000.mmc/by-name/system", "/system", "");
ui_print("Deleting efuse burner");
delete("/system/bin/efuse_check.sh",
       "/system/bin/ewriter");
unmount("/system");

Actually I wonder why an TZ update is needed if we flash original bin/zip.
Looks like the TZ.img is also flashed during main software flashing - Or am I wrong?
Code:
package_extract_file("images/tz.img", "/dev/block/platform/soc/11230000.mmc/by-name/tee1");
package_extract_file("images/tz.img", "/dev/block/platform/soc/11230000.mmc/by-name/tee2");

EDIT (I think I got it :) )
Your script flashes TZ to tee1_real
Code:
package_extract_file("images/tz.img", "/dev/block/platform/soc/11230000.mmc/by-name/tee1_real");
package_extract_file("images/tz.img", "/dev/block/platform/soc/11230000.mmc/by-name/tee2_real");
 
Last edited:

co4

Senior Member
Dec 8, 2016
69
55
Google Pixel 2 XL
OnePlus 9
Is it possible to flash this on a new fire stick all I want is a decent launcher with no bloody adverts and Amazon decided to prevent anything from working anymore, accessibility is blocked, all I've managed to do is debloat.

I don't fear attempting soldering or anything but I also don't want to brick my device.

I'm not interested in IPTV stuff and most 'guides' online seem to be aimed at Kodi jailbreaks.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 2
    @Pretoriano80
    Would you pls let me know if we can use Kernel 6.2.9.4 also on ROM 6.2.8.9?
    I ask because there is some usefull stuff available for ROM 6.2.8.9 - especially the SweenWolf Patch...
    Looks like that developent stopped for newer ROMS than 6.2.8.9....

    Many Thanks.

    Plan is to use (would be also the Flashing Order in one TWRP session....)
    Stock ROM 6.2.8.9
    Your Kernel (to get extFAT/NTFS)
    SweenWolf Patch (Patch - 6.2.8.9 (mantis / Firestick 4k) [Final])
    Magisk 25.2 (+Modules: AFTV4k_Selinux + NTFS/F2FS/EXT4/exFAT OTG)
    I have attached a custom 6.2.8.9 boot.img,please let me know if it works!

    OP was also updated with a new 6.2.9.4 release which is now based on latest kernel source available from Amazon (6.2.9.4) .
    2
    NOTICE: The new 6.2.9.4 kernel require a TZ update ,otherwise Dolby Vision will not work (there were some DoVi related changes in the latest kernel source ).

    I will attach a TWRP flashable version of the 6.2.9.4 TZ image to the OP.
    1
    NOTICE: The new 6.2.9.4 kernel require a TZ update ,otherwise Dolby Vision will not work (there were some DoVi related changes in the latest kernel source ).

    I will attach a TWRP flashable version of the 6.2.9.4 TZ image to the OP.
    I am currently using rbox's 6.2.8.1_r3
    Is the following procedure correct to use this kernel (6.2.9.4)?
    ① Change the version of fire OS to 6.2.9.4. (Using TWRP)
    https://gist.github.com/JulyIghor/d3d3dd460527a1d2b5b67954160d4abf
    ・update-kindle-mantis-NS6294_user_4339_0008356164484.bin (change bin to zip)

    ② Flash custom_boot_mantis_6.2.9.4_R2.zip
    ③ Flash mantis_tz_update_6.2.9.4.zip
    ④ Flash any magisk

    *Is it possible to go back to the old version (6.2.8.1) again?
    (Is it possible to use TWRP again?)
    1
    @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.
  • 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.