Unbrick Fire TV Stick 4K. Help!

navin23

Member
Sep 29, 2018
35
1
8
I can't get logcat to run when I'm in twrp and then terminal. I'm getting not found. I tested it on a working 4k stick and getting the same message. On the working 4k sitck i can run the command when the stick is fully up and i can adb to it.

Do i have to mount a partition?
 

Pachacouti

Senior Member
Jul 8, 2020
100
8
18
Well, I've the same problem, tried several stock updates, cant flash anything, thought the problem lay in boot.img preventing updates due to firmware versions being written to boot.img like they used to, got this error:

fastboot flash boot boot.img
fastboot: core/libsparse/sparse.cpp:131: int write_all_blocks(struct sparse_file *, struct output_file *): Assertion `pad >= 0' failed.
Aborted (core dumped

Any ideas?
 

Sus_i

Senior Member
Apr 9, 2013
973
352
83
I can't get logcat to run when I'm in twrp and then terminal. I'm getting not found. I tested it on a working 4k stick and getting the same message. On the working 4k sitck i can run the command when the stick is fully up and i can adb to it.

Do i have to mount a partition?
Logcat isn't aviable in TWRP (there is a TWRP logfile instead).

Assertion `pad >= 0' failed.
Aborted (core dumped

Any ideas?
Fastboot needs an update...
What OS are you using? FireISO?
 

Pachacouti

Senior Member
Jul 8, 2020
100
8
18
Yeah, I'm using the origional fireiso from 6.2.7.1 days, is there a newer version? I've just tried so many different roms I cant understand why none work, when they all did before the black screening. My very active imagination tell's me it's something to do with vendor, in that I 'THINK' that when trying the markus stuff, something I noticed was background blah blah, and I thought this is contained in VENDOR, and to the best of my limited knowledge, the part I seem to be stuck with is the boot animation screen telling my thinking that this is the scource of the problem.

Alas, I've copied my 'test's' for today, and post them here in the hope someone can shed some light, please notice my correcions where I've overlooked and corrected:

[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# ./bootrom-step.sh
[2021-01-25 13:44:29.174814] Waiting for bootrom
[2021-01-25 13:45:52.130635] Found port = /dev/ttyACM0
[2021-01-25 13:45:52.131412] Handshake
[2021-01-25 13:45:52.132109] Disable watchdog

* * * If you have a short attached, remove it now * * *
* * * Press Enter to continue * * *


[2021-01-25 13:45:54.153343] Load payload from ../brom-payload/stage1/stage1.bin = 0x27C bytes
[2021-01-25 13:45:54.283447] Let's rock
[2021-01-25 13:45:54.290300] Waiting for stage 1 to come online...
[2021-01-25 13:45:54.292376] All good
[2021-01-25 13:45:54.292712] Load 2nd stage payload
[2021-01-25 13:45:54.298009] Load payload from ../brom-payload/stage2/stage2.bin = 0x36D4 bytes
[2021-01-25 13:45:54.298266] Send 2nd stage payload
[2021-01-25 13:45:54.316818] Party time
[2021-01-25 13:45:54.317930] Waiting for stage 2 to come online...
[2021-01-25 13:45:54.483663] All good
[2021-01-25 13:45:54.485498] Check GPT
[2021-01-25 13:45:54.613426] gpt_parsed = {'lk': (1024, 2048), 'tee1': (3072, 10240), 'tee2': (13312, 10240), 'boot': (23552, 32768), 'recovery': (56320, 32768), 'logo': (89088, 7168), 'kb': (96256, 2048), 'dkb': (98304, 2048), 'MISC': (100352, 2048), 'vendor': (102400, 307200), 'system': (409600, 2252800), 'cache': (2662400, 1048576), 'userdata': (3710976, 11562591), '': (0, 1)}
[2021-01-25 13:45:54.613969] Check boot0
[2021-01-25 13:45:54.653867] Check rpmb
[2021-01-25 13:45:54.859630] Clear preloader header
[4 / 4]
[2021-01-25 13:45:54.957718] Downgrade rpmb
[2021-01-25 13:45:54.960525] Recheck rpmb
[2021-01-25 13:45:55.841753] rpmb downgrade ok
[2021-01-25 13:45:55.843671] Flash tz
[7265 / 7265]
[2021-01-25 13:47:40.472287] Flash lk
[613 / 613]
[2021-01-25 13:47:49.334939] Flash lk-payload
[6 / 6]
[2021-01-25 13:47:49.464637] Inject microloader
[2 / 2]
[2021-01-25 13:47:49.618067] Force fastboot
[2021-01-25 13:47:49.713403] Flash preloader
[294 / 294]
[2021-01-25 13:47:59.000340] Reboot
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# ./fastboot-step.sh
Sending 'recovery' (11592 KB) OKAY [ 0.607s]
Writing 'recovery' OKAY [ 0.706s]
Finished. Total time: 1.370s
OKAY [ 0.002s]
Finished. Total time: 0.002s

Your device will now reboot into TWRP.

[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb push Debloated6.2.7.7v1.1.zip /sdcard/Debloated6.2.7.7v1.1.zip
* daemon not running; starting now at tcp:5037
* daemon started successfully
Debloated6.2.7.7v1.1.zip: 1 file pushe...14.3 MB/s (540304832 bytes in 36.151s)
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe cache
Formatting Cache using mke2fs...
Done.
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe data
Wiping data without wiping /data/media ...
Done.
Formatting cache using mke2fs...
Done.
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe dalvik
Wiping Cache & Dalvik...
-- Dalvik Cache Directories Wipe Complete!
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe /system
Formatting System using mke2fs...
Done.
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp install /sdcard/Debloated6.2.7.7v1.1.zip
Installing zip file '/sdcard/Debloated6.2.7.7v1.1.zip'
Checking for Digest file...
[amonet] Load microloader from recovery...
[amonet] Remove boot patch...
[amonet] OK
Copying system image...
Copying vendor image...
Copying kernel...
************************
* Magisk v20.0 Installer
************************
- Mounting system
- Mounting vendor
- Target image: /dev/block/mmcblk0p4
- Device platform: arm
- Constructing environment
- Unpacking boot image
- Checking ramdisk status
- Stock boot image detected
- Backing up stock boot image
- Patching ramdisk
- Repacking boot image
- Flashing new boot image
- Unmounting partitions
- Done
script succeeded: result was [/system][amonet] Install boot patch...
[amonet] OK
[amonet] Install recovery patch...
[amonet] ALREADY_INSTALLED
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell reboot -p
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb devices
List of devices attached

[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb devices
List of devices attached

[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# fastboot devices
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# ./gpt-fix.sh
[2021-01-25 13:59:19.092889] Waiting for bootrom
[2021-01-25 13:59:21.388711] Found port = /dev/ttyACM0
[2021-01-25 13:59:21.389608] Handshake
[2021-01-25 13:59:21.390277] Disable watchdog

* * * If you have a short attached, remove it now * * *
* * * Press Enter to continue * * *


[2021-01-25 13:59:23.400802] Load payload from ../brom-payload/stage1/stage1.bin = 0x27C bytes
[2021-01-25 13:59:23.432656] Let's rock
[2021-01-25 13:59:23.439613] Waiting for stage 1 to come online...
[2021-01-25 13:59:23.441697] All good
[2021-01-25 13:59:23.442051] Load 2nd stage payload
[2021-01-25 13:59:23.442654] Load payload from ../brom-payload/stage2/stage2.bin = 0x36D4 bytes
[2021-01-25 13:59:23.442971] Send 2nd stage payload
[2021-01-25 13:59:23.461299] Party time
[2021-01-25 13:59:23.462542] Waiting for stage 2 to come online...
[2021-01-25 13:59:23.628154] All good
[2021-01-25 13:59:23.630594] Flashing GPT
[34 / 34]
[2021-01-25 13:59:24.139693] Check GPT
[2021-01-25 13:59:24.259657] gpt_parsed = {'lk': (1024, 2048), 'tee1': (3072, 10240), 'tee2': (13312, 10240), 'boot': (23552, 32768), 'recovery': (56320, 32768), 'logo': (89088, 7168), 'kb': (96256, 2048), 'dkb': (98304, 2048), 'MISC': (100352, 2048), 'vendor': (102400, 307200), 'system': (409600, 2252800), 'cache': (2662400, 1048576), 'userdata': (3710976, 11562591), '': (0, 1)}
[2021-01-25 13:59:24.260454] Check boot0
[2021-01-25 13:59:24.300580] Check rpmb
[2021-01-25 13:59:24.506064] Clear preloader header
[4 / 4]
[2021-01-25 13:59:24.603698] Downgrade rpmb
[2021-01-25 13:59:24.606382] Recheck rpmb
[2021-01-25 13:59:25.487599] rpmb downgrade ok
[2021-01-25 13:59:25.488789] Flash tz
[7265 / 7265]
[2021-01-25 14:01:10.090943] Flash lk
[613 / 613]
[2021-01-25 14:01:18.939849] Flash lk-payload
[6 / 6]
[2021-01-25 14:01:19.066572] Inject microloader
[2 / 2]
[2021-01-25 14:01:19.214850] Force fastboot
[2021-01-25 14:01:19.310700] Flash preloader
[294 / 294]
[2021-01-25 14:01:28.591374] Reboot
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# ./fastboot-step.sh
Sending 'recovery' (11592 KB) OKAY [ 0.605s]
Writing 'recovery' OKAY [ 0.707s]
Finished. Total time: 1.330s
OKAY [ 0.002s]
Finished. Total time: 0.002s

Your device will now reboot into TWRP.

[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb push boot_mantis_6.2.7.6_R1.zip /sdcard/boot_mantis_6.2.7.6_R1.zip
boot_mantis_6.2.7.6_R1.zip: 1 file pus...d. 14.5 MB/s (8656383 bytes in 0.570s)
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]#
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe cache
Formatting Cache using mke2fs...
Done.
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe data
Wiping data without wiping /data/media ...
Done.
Formatting cache using mke2fs...
Done.
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe dalvik
Wiping Cache & Dalvik...
-- Dalvik Cache Directories Wipe Complete!
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell mount -o rw /system
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe /system
Formatting System using mke2fs...
Done.
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp install /sdcard/boot_mantis_6.2.7.6_R1.zip
Installing zip file '/sdcard/boot_mantis_6.2.7.6_R1.zip'
Checking for Digest file...
[amonet] Load microloader from recovery...
[amonet] Remove boot patch...
[amonet] OK
Target: Amazon Mantis - FireTV 4k
Flashing 6.2.7.6 custom kernel for mantis
Done....
[amonet] Install boot patch...
[amonet] OK
[amonet] Install recovery patch...
[amonet] ALREADY_INSTALLED
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# ./fastboot-step.sh
< waiting for any device >
^C
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell reboot recovery
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb push update-kindle-mantis-NS6276.zip /sdcard/update-kindle-mantis-NS6276.zip
update-kindle-mantis-NS6276.zip: 1 fil...14.1 MB/s (637905522 bytes in 42.998s)
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe cache
Formatting Cache using mke2fs...
Done.
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe data
Wiping data without wiping /data/media ...
Done.
Formatting cache using mke2fs...
Done.
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe dalvik
Wiping Cache & Dalvik...
-- Dalvik Cache Directories Wipe Complete!
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe /system
Formatting System using mke2fs...
Done.
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp install /sdcard/update-kindle-mantis-NS6276.zip
Installing zip file '/sdcard/update-kindle-mantis-NS6276.zip'
Checking for Digest file...
[amonet] Load microloader from recovery...
[amonet] Remove boot patch...
[amonet] OK
Target: Amazon/mantis/mantis:6.0/NS6276/2933N:user/amz-p,release-keys
Patching system image unconditionally...
Patching vendor image unconditionally...
script succeeded: result was [1.000000][amonet] Install boot patch...
[amonet] OK
[amonet] Install recovery patch...
[amonet] ALREADY_INSTALLED
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell
~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 646136 188 645948 0% /dev
tmpfs 646136 876 645260 0% /tmp
/dev/block/mmcblk0p13
5624972 2426852 2892672 46% /data
/dev/block/mmcblk0p13
5624972 2426852 2892672 46% /sdcard
/dev/block/mmcblk0p12
499656 444 462516 0% /cache
~ # reboot -p
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# ./bootrom-step.sh
[2021-01-25 14:11:27.843930] Waiting for bootrom
[2021-01-25 14:11:30.391853] Found port = /dev/ttyACM0
[2021-01-25 14:11:30.392816] Handshake
[2021-01-25 14:11:30.393592] Disable watchdog

* * * If you have a short attached, remove it now * * *
* * * Press Enter to continue * * *


[2021-01-25 14:11:32.404620] Load payload from ../brom-payload/stage1/stage1.bin = 0x27C bytes
[2021-01-25 14:11:32.433046] Let's rock
[2021-01-25 14:11:32.439912] Waiting for stage 1 to come online...
[2021-01-25 14:11:32.442011] All good
[2021-01-25 14:11:32.442366] Load 2nd stage payload
[2021-01-25 14:11:32.442986] Load payload from ../brom-payload/stage2/stage2.bin = 0x36D4 bytes
[2021-01-25 14:11:32.443305] Send 2nd stage payload
[2021-01-25 14:11:32.461854] Party time
[2021-01-25 14:11:32.463050] Waiting for stage 2 to come online...
[2021-01-25 14:11:32.618966] All good
[2021-01-25 14:11:32.620687] Check GPT
[2021-01-25 14:11:32.739454] gpt_parsed = {'lk': (1024, 2048), 'tee1': (3072, 10240), 'tee2': (13312, 10240), 'boot': (23552, 32768), 'recovery': (56320, 32768), 'logo': (89088, 7168), 'kb': (96256, 2048), 'dkb': (98304, 2048), 'MISC': (100352, 2048), 'vendor': (102400, 307200), 'system': (409600, 2252800), 'cache': (2662400, 1048576), 'userdata': (3710976, 11562591), '': (0, 1)}
[2021-01-25 14:11:32.740325] Check boot0
[2021-01-25 14:11:32.780156] Check rpmb
[2021-01-25 14:11:32.985718] Clear preloader header
[4 / 4]
[2021-01-25 14:11:33.083608] Downgrade rpmb
[2021-01-25 14:11:33.086201] Recheck rpmb
[2021-01-25 14:11:33.967640] rpmb downgrade ok
[2021-01-25 14:11:33.969007] Flash tz
[7265 / 7265]
[2021-01-25 14:13:18.529028] Flash lk
[613 / 613]
[2021-01-25 14:13:27.373717] Flash lk-payload
[6 / 6]
[2021-01-25 14:13:27.500961] Inject microloader
[2 / 2]
[2021-01-25 14:13:27.646905] Force fastboot
[2021-01-25 14:13:27.741918] Flash preloader
[294 / 294]
[2021-01-25 14:13:37.041373] Reboot
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# fastboot devices
G070VM1602140DDA fastboot
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# fastboot format vendor
mke2fs 1.44.4 (18-Aug-2018)
Creating filesystem with 38400 4k blocks and 38400 inodes
Filesystem UUID: db3920ef-aa04-41f8-8a46-c8369befc15c
Superblock backups stored on blocks:
32768

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

Sending 'vendor' (132 KB) OKAY [ 0.008s]
Writing 'vendor' OKAY [ 0.033s]
Finished. Total time: 0.098s
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# fastboot format system
mke2fs 1.44.4 (18-Aug-2018)
Creating filesystem with 281600 4k blocks and 70416 inodes
Filesystem UUID: 686f14fa-b7b9-4b52-b125-c9985db359ac
Superblock backups stored on blocks:
32768, 98304, 163840, 229376

Allocating group tables: done
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

Sending 'system' (636 KB) OKAY [ 0.034s]
Writing 'system' OKAY [ 0.087s]
Finished. Total time: 0.157s
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# fastboot format cache
mke2fs 1.44.4 (18-Aug-2018)
Creating filesystem with 131072 4k blocks and 32768 inodes
Filesystem UUID: 7a04d300-b3d5-4940-a9fb-8999d8c5f6e2
Superblock backups stored on blocks:
32768, 98304

Allocating group tables: done
Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

Sending 'cache' (324 KB) OKAY [ 0.018s]
Writing 'cache' OKAY [ 0.056s]
Finished. Total time: 0.102s
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# fastboot format userdata
mke2fs 1.44.4 (18-Aug-2018)
Creating filesystem with 1445323 4k blocks and 361440 inodes
Filesystem UUID: 39ac3d48-f8a5-4dbe-a19a-c2138cfce8cb
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736

Allocating group tables: done
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done

Sending 'userdata' (2940 KB) OKAY [ 0.148s]
Writing 'userdata' OKAY [ 0.253s]
Finished. Total time: 0.447s
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# fastboot erase boot
Erasing 'boot' OKAY [ 0.012s]
Finished. Total time: 0.017s
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# ./fastboot-step.sh
Sending 'recovery' (11592 KB) OKAY [ 0.605s]
Writing 'recovery' OKAY [ 0.706s]
Finished. Total time: 1.328s
OKAY [ 0.002s]
Finished. Total time: 0.002s

Your device will now reboot into TWRP.

[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb push update-kindle-mantis-NS6276.zip /sdcard/update-kindle-mantis-NS6276.zip
update-kindle-mantis-NS6276.zip: 1 fil...14.0 MB/s (637905522 bytes in 43.315s)
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]#
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb push Magisk-v20.4.zip /sdcard/Magisk-v20.4.zip
Magisk-v20.4.zip: 1 file pushed. 14.2 MB/s (5942417 bytes in 0.398s)
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe cache
Formatting Cache using mke2fs...
Done.
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe data
Wiping data without wiping /data/media ...
Done.
Formatting cache using mke2fs...
Done.
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe dalvik
Wiping Cache & Dalvik...
-- Dalvik Cache Directories Wipe Complete!
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp wipe /system
Formatting System using mke2fs...
Done.
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp install /sdcard/boot_mantis_6.2.7.6_R1.zip
Unable to locate zip file '/sdcard/boot_mantis_6.2.7.6_R1.zip'.
Installing zip file '/sdcard/boot_mantis_6.2.7.6_R1.zip'
Checking for Digest file...
Failed to map file '/sdcard/boot_mantis_6.2.7.6_R1.zip'
Error installing zip file '/sdcard/boot_mantis_6.2.7.6_R1.zip'
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp install /sdcard/update-kindle-mantis-NS6276.zip
Installing zip file '/sdcard/update-kindle-mantis-NS6276.zip'
Checking for Digest file...
[amonet] Load microloader from recovery...
[amonet] Remove boot patch...
[amonet] NOT_INSTALLED
Target: Amazon/mantis/mantis:6.0/NS6276/2933N:user/amz-p,release-keys
Patching system image unconditionally...
Patching vendor image unconditionally...
script succeeded: result was [1.000000][amonet] Install boot patch...
[amonet] OK
[amonet] Install recovery patch...
[amonet] ALREADY_INSTALLED
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell twrp install /sdcard/Magisk-v20.4.zip
Installing zip file '/sdcard/Magisk-v20.4.zip'
Checking for Digest file...
[amonet] Load microloader from recovery...
[amonet] Remove boot patch...
[amonet] OK
***********************
Magisk 20.4 Installer
***********************
- Mounting /system
- Mounting /vendor
- Target image: /dev/block/mmcblk0p4
- Device platform: arm
- Constructing environment
- Unpacking boot image
- Checking ramdisk status
- Stock boot image detected
- Patching ramdisk
- Repacking boot image
- Flashing new boot image
- Unmounting partitions
- Done
[amonet] Install boot patch...
[amonet] OK
[amonet] Install recovery patch...
[amonet] ALREADY_INSTALLED
Done processing script file
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell reboot recovery
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell
~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 646136 156 645980 0% /dev
tmpfs 646136 32 646104 0% /tmp
/dev/block/mmcblk0p13
5624972 672664 4646860 13% /data
/dev/block/mmcblk0p13
5624972 672664 4646860 13% /sdcard
/dev/block/mmcblk0p12
499656 464 462496 0% /cache
~ # cd /dev
/dev # ls
BOOT kmsg ptyp8 ttyp6
MTK_SMI loop-control ptyp9 ttyp7
Vcodec memory_bandwidth ptypa ttyp8
Vcodec1 metrics ptypb ttyp9
__properties__ mt_xgpt ptypc ttypa
ashmem mtk_disp_mgr ptypd ttypb
binder mtk_stc ptype ttypc
bleremote_audio mtk_vq_mgr ptypf ttypd
block mtp_usb pvr_sync ttype
bus network_latency random ttypf
console network_throughput snd tun
cpu_dma_latency null socket uhid
device-mapper ppp sw_sync uinput
devmap psaux trustzone urandom
dri ptmx tty usb-ffs
full pts ttyS0 vitals
fuse ptyp0 ttyS1 vndbinder
graphics ptyp1 ttyS2 watchdog
hdmitx ptyp2 ttyp0 watchdog0
hw_random ptyp3 ttyp1 xt_qtaguid
hwbinder ptyp4 ttyp2 zero
iio:device0 ptyp5 ttyp3
input ptyp6 ttyp4
ion ptyp7 ttyp5
/dev # cd boot
/sbin/sh: cd: can't cd to boot
/dev # /
/sbin/sh: /: Permission denied
/dev # exit
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]# adb shell
~ # cat /proc/mounts
rootfs / rootfs rw,seclabel 0 0
tmpfs /dev tmpfs rw,seclabel,nosuid,relatime,mode=755 0 0
devpts /dev/pts devpts rw,seclabel,relatime,mode=600 0 0
proc /proc proc rw,relatime,gid=3009,hidepid=2 0 0
sysfs /sys sysfs rw,seclabel,relatime 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
none /acct cgroup rw,relatime,cpuacct 0 0
tmpfs /tmp tmpfs rw,seclabel,relatime 0 0
none /config configfs rw,relatime 0 0
adb /dev/usb-ffs/adb functionfs rw,relatime 0 0
/dev/block/mmcblk0p13 /data ext4 rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0
/dev/block/mmcblk0p13 /sdcard ext4 rw,seclabel,nosuid,nodev,noatime,discard,noauto_da_alloc,data=ordered 0 0
/dev/block/mmcblk0p12 /cache ext4 rw,seclabel,nosuid,nodev,noatime,noauto_da_alloc,data=ordered 0 0
~ # reboot -p
[[email protected] /run/media/root/Studio/x86/Android/Firestick/kamakiri]#

Edit: Notice in my 'df' - that vendor is missing, should it not show there?
 
Last edited:

navin23

Member
Sep 29, 2018
35
1
8
I tried backing up and restore the following partitions from a working 4k stick, but still getting stuck at the firetv black screen.

//Backup 4k stick partition//

dd if=/dev/block/mmcblk0p11 of=/sdcard/system.img


dd if=/dev/block/mmcblk0p10 of=/sdcard/vendor.img


dd if=/dev/block/mmcblk0p4 of=/sdcard/boot.img



//Restore 4k stick partition//

dd if=/sdcard/system.img of=/dev/block/mmcblk0p11

dd if=/sdcard/vendor.img of=/dev/block/mmcblk0p10

dd if=/sdcard/boot.img of=/dev/block/mmcblk0p4


 
Last edited:

Pachacouti

Senior Member
Jul 8, 2020
100
8
18
I take it your backup was made before black screen?

Any chance of those img's for testing, or how would I extract them from stock firmware?

I made a 4 way otg, 2 x firestick connection ends, 1 usb female socket, and the other a male, male is now powering the firestick, female plugs a dual male into pc, so I can reboot without losing power to the firestick lol...

I'm beginning to think I've been hit with an amazon brick update..

edit: after a reboot of lappy with firestick in fastboot mode, I managed to flash origional 7.1 boot, now gonna kamakiri it again o see if it makes a difference...

Fireiso needs updated, you were right about fastboot :)
 

navin23

Member
Sep 29, 2018
35
1
8
No, i have another 4k stick. The backup file size is below, however the stock boot image size is 7.7MB. I might try to flash the stock again and see what happens.

You can rename the stock image extension to .zip and get the boot.image file. I don't see the vendor image in the stock image file.

vendor.img 150 MB
boot.img 16 MB


Nice, are you able to adb to the stick without going into twrp or run the rooting script with your setup?
 

Pachacouti

Senior Member
Jul 8, 2020
100
8
18
Kind of, I cant properly use 1.2 win version, but can now reboot fom fireiso keeping stick in fastboot mode:


C:\platform-tools_r30.0.5-windows>fastboot devices

C:\platform-tools_r30.0.5-windows>fastboot reboot recovery
< waiting for any device >
^C
C:\platform-tools_r30.0.5-windows>fastboot flash recovery twrp.img
< waiting for any device >
^C
C:\platform-tools_r30.0.5-windows>fastboot devices

C:\platform-tools_r30.0.5-windows>fastboot devices
G070VM1602140DDA fastboot

C:\platform-tools_r30.0.5-windows>fastboot devices

C:\platform-tools_r30.0.5-windows>fastboot devices

C:\platform-tools_r30.0.5-windows>fastboot devices

C:\platform-tools_r30.0.5-windows>fastboot devices
G070VM1602140DDA fastboot

C:\platform-tools_r30.0.5-windows>fastboot flash recovery twrp.img
Sending 'recovery' (11592 KB) OKAY [ 0.540s]
Writing 'recovery' OKAY [ 0.700s]
Finished. Total time: 1.270s

C:\platform-tools_r30.0.5-windows>adb push update-kindle-mantis-NS6271.zip /sdca
rd/update-kindle-mantis-NS6271.zip
* daemon not running; starting now at tcp:5037
* daemon started successfully
update-kindle-mantis-NS6271.zip: 1 fil...25.5 MB/s (634614294 bytes in 23.743s)

C:\platform-tools_r30.0.5-windows>adb shell
~ # ←[6ndf
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 646136 156 645980 0% /dev
tmpfs 646136 32 646104 0% /tmp
/dev/block/mmcblk0p13
5559420 1399840 3854136 27% /data
/dev/block/mmcblk0p13
5559420 1399840 3854136 27% /sdcard
/dev/block/mmcblk0p12
499656 476 462484 0% /cache
~ # ←[6nadb shell twrp install /sdcard/update-kindle-mantis-NS6271.zip
/sbin/sh: adb: not found
~ # ←[6nexit

C:\platform-tools_r30.0.5-windows>adb shell twrp install /sdcard/update-kindle-m
antis-NS6271.zip
Installing zip file '/sdcard/update-kindle-mantis-NS6271.zip'
Checking for Digest file...
[amonet] Load microloader from recovery...
[amonet] Remove boot patch...
[amonet] OK
Target: Amazon/mantis/mantis:6.0/NS6271/2493N:user/amz-p,release-keys
Patching system image unconditionally...
Patching vendor image unconditionally...
script succeeded: result was [1.000000][amonet] Install boot patch...
[amonet] OK
[amonet] Install recovery patch...
[amonet] ALREADY_INSTALLED
Done processing script file

C:\platform-tools_r30.0.5-windows>adb shell reboot -p

C:\platform-tools_r30.0.5-windows>C:\platform-tools_r30.0.5-windows\bootrom-step
.cmd
Traceback (most recent call last):
File "main.py", line 6, in <module>
from common import Device
File "C:\platform-tools_r30.0.5-windows\modules\common.py", line 6, in <module
>
import serial
ModuleNotFoundError: No module named 'serial'
C:\platform-tools_r30.0.5-windows>

It would appear I cant run this in windows due to missing module serial.

Now here's the strangest thing:

I mentioned earlier about a brief white amazon logo that faded out after a second, never been able to reproduce it.. until just before I did what's pasted above. The thing is, I still have to use fireiso just to kick the firestick into fastboot mode, but with extra power added so I can reboot laptop without losing fastboot mode on firestick, I took the boot.img from the origional 7.1, flashed it in windows, then flashed the upade as posted. I got a brief glimpse of the white amazon logo, which lasted all of 1. sumat seconds, before black screen kicked in again.

Now what ese can I flash?

I think we need an updated kamakiri and updated fireiso, they are no longer of use by my experience.
 

0815hoffi

Senior Member
Dec 22, 2019
378
112
53
Munich
github.com
Maybe try to unroot.

Extract boot.bin from update-kindle-mantis-NS6271.zip

Twrp wipe data, dalvic, cache and system.
Twrp flash update-kindle-mantis-NS6271.zip
#adb shell reboot-amonet
#fastboot flash boot boot.img
#fastboot reboot

All in row without reboot.

Let it normal boot after # fastboot reboot

If it not work, root it again.

Only a Idea, I don't know if this fix your Problem.
 

Pachacouti

Senior Member
Jul 8, 2020
100
8
18
sounds like it might work, but I reckon amazon have sent some update, because I attempted the latest debloat 7.7 and again, BRIEFLY saw the android logo, ie, not the white firestick of earlier version, and it went back to black screen. I reckon trying to dowgrade back to 7.1 is a no-no, because I got out of this before, by flashing 7.3, which took 3 updates from amazon before I could actually sign in, this took me to 7.6, which also crashed after a nights viewing, and since then I've been unable to get passed the black screen, albeit now I at least see the beginning of the 2nd logo, be that firetv or android, depending on rom.

You were spot on with the adb/fastboot being out of date, but I really gettin fed up trying to flash using fireiso, only to have to reboot over and over, only to find out fireiso is more hassle than its worth now... amazon must be kickin themselves now that no-one has updated the adb, I'll bet thats what they did.. blocked kamakiri with a fastboot update...
 

Pachacouti

Senior Member
Jul 8, 2020
100
8
18
And I reckon it's because we dont know the full directory structure to delete any offending partions/mounts that may contain whatever is causing the black screen. I'm kinda pulling my hair out knowing fireiso is now useless, because devs are to busy re-writing the same debloat stuff from last year, too busy to know what we've been hit with will hit them too, I mean, latest update I got was 7.6, and wonder if because I flashed 7.7, which may not be out here yet, that I cant downgrade, hence wiping the boot got me to at least see the 2nd logo, albeit for a second, but if this is true, I'd have to wait on a 7.8 update to fix it, because no one seems to have a clue anymore, all they do is use magisk, which is now a target if u ask me... magisk root for those that wont ever get it...

soz guys, but this site has got so depressin it's like, maybe I should debloat the site, maybe we'll find what we're looking for...
 
Last edited:

Pachacouti

Senior Member
Jul 8, 2020
100
8
18
These were helpfull, I take it the amonet lines were your attempts at a reflash?

2 things stood out to my untrained eye, markus errors, and in last log, line 2096

init.svc.set_permissive=stopped = initial service set, but what service? This initial service being stopped, is it normal? Cause the stick initialises during the 2nd screen

How do I obtain these logs from mine?

can you get a log from a stock flash?
 

Sus_i

Senior Member
Apr 9, 2013
973
352
83
You were spot on with the adb/fastboot being out of date, but I really gettin fed up trying to flash using fireiso, only to have to reboot over and over, only to find out fireiso is more hassle than its worth now... amazon must be kickin themselves now that no-one has updated the adb, I'll bet thats what they did.. blocked kamakiri with a fastboot update...
No :D
The fireISO is fine, you just need to update the fastboot package with the common pacman command... ;)
Connect the fireISO to the internet and then run this in a terminal window: pacman -Sy fastboot
This needs to be done at every reboot...