yashsingh1/xdaforums huggingface dataset:
[Fire HD 8 and HD 10 Android Development] yhuang168:
Tried several time with same error as below. May you please help~ thanks in advance.

I am on Ubuntu 16.04

error message:

yhuang168@utto:~$ sudo ./bootrom.sh

[2019-05-12 22:43:59.642617] Waiting for bootrom

[2019-05-12 22:44:48.137029] Found port = /dev/ttyACM0

[2019-05-12 22:44:48.146033] Handshake

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 495, in read

raise SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)')

serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "main.py", line 92, in <module>

main()

File "main.py", line 54, in main

handshake(dev)

File "/home/yhuang168/modules/handshake.py", line 9, in handshake

dev.handshake()

File "/home/yhuang168/modules/common.py", line 100, in handshake

c = self._writeb(b'\xa0')

File "/home/yhuang168/modules/common.py", line 95, in _writeb

return self.dev.read()

File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 505, in read

raise SerialException('read failed: %s' % (e,))

serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
[Fire HD 8 and HD 10 Android Development] DragonFire1024:
Reset the terminal. Carefully disconnect the tablet from PC and open the back and disconnect the battery cable. Repeat the script with the battery unplugged. Make sure you have as close to a full charge as possible or you will have to perform a few other steps because the tablet won't stay powered on long enough for the payload to fully loaded.
[Fire HD 8 and HD 10 Android Development] yhuang168:
Thanks a lot for the reply. However, the battery was disconnected per prior instructions. I did close the terminal and tried again several times, same errors occurred. After the handshake, I keep getting :"device reports readiness to read but returned no data' errors...

Any advises will be much appreciated .

yhuang168@utto:~$ sudo ./bootrom.sh

[2019-05-12 22:43:59.642617] Waiting for bootrom

[2019-05-12 22:44:48.137029] Found port = /dev/ttyACM0

[2019-05-12 22:44:48.146033] Handshake

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 495, in read

raise SerialException('device reports readiness to read but returned no data (device disconnected or multiple access on port?)')

serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected or multiple access on port?)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "main.py", line 92, in <module>

main()

File "main.py", line 54, in main

handshake(dev)

File "/home/yhuang168/modules/handshake.py", line 9, in handshake

dev.handshake()

File "/home/yhuang168/modules/common.py", line 100, in handshake

c = self._writeb(b'\xa0')

File "/home/yhuang168/modules/common.py", line 95, in _writeb

return self.dev.read()

File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 505, in read

raise SerialException('read failed: %s' % (e,))

serial.serialutil.SerialException: read failed: device reports readiness to read but returned no data (device disconnected or multiple access on port?)
[Fire HD 8 and HD 10 Android Development] DragonFire1024:
Are you shorting the point?
[Fire HD 8 and HD 10 Android Development] yhuang168:
Yes, after the script was run, 'Waiting for bootrom' prompted.. Once the other end of USB is connected with shorting the point.. the process started with error messages.
[Fire HD 8 and HD 10 Android Development] floridabeachbreeze:
I am running on 5.6.4.0 with TWRP, Magisk 19.3 , and unlocked bootloader. Wanting to know if these steps are required if I downgrade to a lower version. Can't I just flash through twrp a lower version for downgrading?
[Fire HD 8 and HD 10 Android Development] DB126:
Reposted same question after 24 hours; not cool. No, you can't downgrade FireOS via simple TWRP flash.
[Fire HD 8 and HD 10 Android Development] DragonFire1024:
It requires modifying the updater script. But yes you can technically downgrade. However there is no guide on how to do so.

---------- Post added at 03:19 AM ---------- Previous post was at 03:18 AM ----------

On the 10 you can. You need to modify the updater script in the .bin update.
[Fire HD 8 and HD 10 Android Development] DB126:
I should have been more explicit. One cannot simply rename and flash an unmodified FireOS .bin via TWRP and expect a happy outcome.
[Fire HD 8 and HD 10 Android Development] CountryPeplano:
Got this as a reply from terminal "Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 265, in open

self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)

FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyACM0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "main.py", line 92, in <module>

main()

File "main.py", line 51, in main

dev.find_device()

File "/home/connor/Desktop/unbrick/modules/common.py", line 80, in find_device

self.dev = serial.Serial(port, BAUD, timeout=TIMEOUT)

File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in __init__

self.open()

File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 268, in open

raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))

serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0"
[Fire HD 8 and HD 10 Android Development] DragonFire1024:
Uninstall modem manager.

sudo apt remove modem-manager

And

sudo apt install python3 python3-serial

Reboot linux
[Fire HD 8 and HD 10 Android Development] Dan_firehd:
According to this author, the answer seems to be YES:

https://xdaforums.com/showpost.php?p=79491467&postcount=14
[Fire HD 8 and HD 10 Android Development] DB126:
Perhaps for minor updates/rollbacks that so not involve kernel/bootloader components. Best not to generalize based on a single data point.
[Fire HD 8 and HD 10 Android Development] CountryPeplano:
Yeah, that didn't work. Now I am getting this:

[2019-06-18 10:01:28.923894] Found port = /dev/ttyACM0

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 265, in open

self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)

FileNotFoundError: [Errno 2] No such file or directory: '/dev/ttyACM0'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "main.py", line 92, in <module>

main()

File "main.py", line 51, in main

dev.find_device()

File "/home/connor/Desktop/unbrick/modules/common.py", line 80, in find_device

self.dev = serial.Serial(port, BAUD, timeout=TIMEOUT)

File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 240, in __init__

self.open()

File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 268, in open

raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg))

serial.serialutil.SerialException: [Errno 2] could not open port /dev/ttyACM0: [Errno 2] No such file or directory: '/dev/ttyACM0'
[Fire HD 8 and HD 10 Android Development] DragonFire1024:
Is the device in boot rom mode?
[Fire HD 8 and HD 10 Android Development] CountryPeplano:
I mean it's got a black screen. So I'd assume so. When plugged into a laptop or tower you can hear the device connect and disconnect rapidly.
[Fire HD 8 and HD 10 Android Development] DragonFire1024:
Then it's not quite there. You need to absolutely make sure the device is powered off. Press and hold the power button for at least 30 seconds. Run the script, short the point and plug tablet into pc. No need to unplug battery yet.
[Fire HD 8 and HD 10 Android Development] yhuang168:
Try to get another USB cable... I switched couple of cables and it worked~~
[Fire HD 8 and HD 10 Android Development] twocrows:
Kindle HD 8 2016 (Ver 6)

Does anyone know (or have a picture) of where to short for Kindle HD 8 2016 (Gen 6)?

I get similar error messages that others have gotten for other Kindle 2017/2018 versions that indicate that the point needs to be shorted but of course mine is different. I know this page says HD 10 2017, but thought it could work on my 2016, so am not blaming anyone. So it may very well be that it will never work and be a brick forever...

Am asking with the slim hope another has come across this issue.

Can post log files/errors if that would help. I can post pictures of the board too.

Thanks for all/any help!
[Fire HD 8 and HD 10 Android Development] Rortiz2:
We don't know were is the point. Can you post photos of the motherboard?
[Fire HD 8 and HD 10 Android Development] twocrows:
Here are some starter pictures of the motherboard. Will take more in the morning of the other side of the board and any areas that may be out of focus. Thank you again!
[Fire HD 8 and HD 10 Android Development] DragonFire1024:
Though the board looks different from the HD 10 the points do look like there are about the same place. On your first photo if you were to stand the photo straight up and down, near the bottom of the picture next to the WL symbol near the center there are six points. They are right next to each other and they are smaller than all the other ones surrounding them. On the HD 10 it is one of those six points. Without taking the back off of the one I currently have in my hand I cannot tell you exactly which one it is. That's just my two cents but of course I could be wrong.
[Fire HD 8 and HD 10 Android Development] Rortiz2:
Cool. As dragonfire said, try with that pins. For see if it's in BootROM run lsusb and if it says:

MT6627 Phone ---> BootROM

MT65xx Preloader ---> Preloader Mode

Once you know what is the point, please upload a photo of were is it.

We cannot unlock it but we can clean the rpmb block /dev/block/rpmb for bypass the anti-rollback and make the to boot.
[Fire HD 8 and HD 10 Android Development] :
Alrighty, here’s my question: what is absolutely necessary to do in order to get to the pin that needs to be shorted? Is the board accessible without remove tape and disconnecting cables? If so, why is that in the guide?
[Fire HD 8 and HD 10 Android Development] DragonFire1024:
You will have to remove the back. I'll take a picture of the board when I get a chance to show you the pins. But if you downgrade brick, you don't need to open the back.
[Fire HD 8 and HD 10 Android Development] k4y0z:
What do you think, why it's in the guide? :rolleyes:

The testpoint is on the back of the board.
[Fire HD 8 and HD 10 Android Development] :
Thanks for the specification.
[Fire HD 8 and HD 10 Android Development] johnjingle:
I bricked the HD10 installing in fastboot b/c USB port was disconnected. I unbricked with this guide even with a bad USB connection.

Awesome tutorial, it worked flawlessly!

I know the USB port was not working correctly before this guide, but now it won't charge or connect to PC. Is there anyway to fix it? I don't have the soldering tools to replace it.

I have 50% battery left.
[Fire HD 8 and HD 10 Android Development] skkece98:
RuntimeError: bad gpt

Hi Experts,

initially my HD10 was updated with latest(Fire OS 5.6.4.0), but I tried downgrade with bin file in XDA, it was update-kindle-suez-40.6.2.6_user_626533320. wipe data and cache. so I got my HD10 hard bricked,

I have tried this posting, with Ubuntu1604, however, I faced below error message

-

[2019-09-14 23:09:36.077140] gpt_parsed = {'recovery_x': (174080, 34816), 'tee2': (32768, 10240), 'userdata': (4383744, 56236032), 'metadata': (43008, 80896), 'PMT': (7168, 9216), 'boot': (60619776, 225280), 'system': (208896, 3306496), 'lk': (20480, 2048), 'boot_x': (141312, 32768), 'MISC': (123904, 1024), 'proinfo': (1024, 6144), 'tee1': (22528, 10240), 'dkb': (18432, 2048), 'reserved': (124928, 16384), 'kb': (16384, 2048), 'cache': (3515392, 868352)}

Traceback (most recent call last):

File "main.py", line 92, in <module>

main()

File "main.py", line 67, in main

raise RuntimeError("bad gpt")

-

in case my gtp_parsed message, there are different between this guide and mine,

userdata and boot are different number, and I don't have recovery field, but only I have boot_x and recovery_x.

is there any who has same situation with me?

please somebody help me.
[Fire HD 8 and HD 10 Android Development] Rortiz2:
You used amonet by k4y0z so yout gpt is different and this method will not work. Go to k4y0z's unlock thread and use bootrom-step.sh.

Regards!
[Fire HD 8 and HD 10 Android Development] shadowcliffs:
I rooted HD10 7th on 5.6.4.0 but forgot to disable OTA, and it updated to the latest version which can't be rooted. Then I followed some online tutorial to downgrade the os to 5.6.4.0.636558520 through stock recovery and adb sideload. The process completed with success, but my device wont boot. Is it bricked?
[Fire HD 8 and HD 10 Android Development] DragonFire1024:
If I were a betting man, I would say yes. Does your PC recognize it at all, even if for a second?
[Fire HD 8 and HD 10 Android Development] shadowcliffs:
At last I have time to look into this.

lsusb shows

Bus 002 Device 014: ID 0e8d:2000 MediaTek Inc. MT65xx Preloader

So the device is in preloader-mode, right? Do I have to open the back and do the short thing. The back looks pretty tight, what's the trick to open it up? TIA.
[Fire HD 8 and HD 10 Android Development] DragonFire1024:
At this point I believe you do have to take the back off. The back isn't real secure so anything resembling a pry tool will work. Start at the bottom right, just above the corner and work your way around gently, counterclockwise. The middle, closer to the top, is the most secure and on pretty good. That was my trouble area when I had to open it.
[Fire HD 8 and HD 10 Android Development] shadowcliffs:
I have the back or case opened with two credit card, and followed each steps, but after plugging in USB while shorting the dot, nothing happened. I got serial port error before the back is opened. Could it's a sign that something is broken by me during the back opening process? I'm so tired of this, it's going back to Amazon.

---------- Post added at 06:40 PM ---------- Previous post was at 06:32 PM ----------

I have the back or case opened with two credit card, and followed each steps, but after plugging in USB while shorting the dot, nothing happened. I got serial port error before the back is opened. I don't have jumper cable so I used a tie, the one we use to tie trash bags with a metal cord inside.

Could it be a sign that something is broken by me during the back opening process?

Do we have to disconnect battery and display? I found the PCB board can be turned to right using the right side as the axis without disconnecting those two cable.
[Fire HD 8 and HD 10 Android Development] DragonFire1024:
I do not have a board in front of me at the moment. There should be roughly 6 points all next to each other. I do not recall off the top of my head exactly which one of them it is you have to try each one until you find it. shorting any of the points will not damage the device so far as I know I have shorted all of those six in the beginning and I still have all of the tablets and they still work. I will pull a board out when I get a chance. I believe I do have one that is not attached to anything at the moment. I'll take a quick picture of those points. You do not need to disconnect the battery or display at least not yet and you may not even have to do so.
[Fire HD 8 and HD 10 Android Development] Rortiz2:
Try to short with the battery disconected.

Enviado desde mi Aquaris M8 mediante Tapatalk
[Fire HD 8 and HD 10 Android Development] DragonFire1024:
If he has to do that, it will also likely require an edit to the script to allow enter to be tapped. I'll have to look back on where that edit needs to go.
[Fire HD 8 and HD 10 Android Development] retyre:
There's no need for any edit to the script. It has always included a pause for user input. In an earlier post, you told him/her to try all the six points and that you will look at one of your boards and take a picture. Why? The OP has always included a picture of the PCB with a clear marking of which point to short. There's no need for trial-and-error.

To shadowcliffs: Opening the back should not have resulted in damage to the PCB. Disconnect the battery and display cables, remove the PCB from the case, and try again. If you don't have jumper wire, use a metal clip. Get a second pair of hands to help. Tell us what you see with lsusb as you do this.
[Fire HD 8 and HD 10 Android Development] Rortiz2:
Thanks. It was more than obvious.

Enviado desde mi WAS-LX1A mediante Tapatalk
[Fire HD 8 and HD 10 Android Development] DragonFire1024:
:rolleyes: No need to be so sarcastic. I don't generally look at the op when replying to a message unless I need to.
[Fire HD 8 and HD 10 Android Development] Aditya7890:
Hi,

I have followed this but got a run time error at the final stage. could some one please look into it. [MENTION=3497316]retyre[/MENTION]

C:\Users\Aditya\Desktop\Amazon fire test\unbrick_suez\modules>py main.py

[2019-10-08 18:10:06.740527] Waiting for bootrom

[2019-10-08 18:10:20.294028] Found port = COM7

[2019-10-08 18:10:20.355146] Handshake

[2019-10-08 18:10:20.379262] Disable watchdog

* * * Remove the short and press Enter * * *

[2019-10-08 18:10:22.255903] Init crypto engine

[2019-10-08 18:10:22.295195] Disable caches

[2019-10-08 18:10:22.298591] Disable bootrom range checks

[2019-10-08 18:10:22.389094] Load payload from ../brom-payload/build/payload.bin = 0x45D0 bytes

[2019-10-08 18:10:22.410695] Send payload

[2019-10-08 18:10:23.380884] Let's rock

[2019-10-08 18:10:23.388181] Wait for the payload to come online...

[2019-10-08 18:10:26.947162] all good

[2019-10-08 18:10:27.039975] Check GPT

Traceback (most recent call last):

File "main.py", line 92, in <module>

main()

File "main.py", line 61, in main

switch_user(dev)

File "main.py", line 32, in switch_user

block = dev.emmc_read(0)

File "C:\Users\Aditya\Desktop\Amazon fire test\unbrick_suez\modules\common.py", line 183, in emmc_read

raise RuntimeError("read fail")

RuntimeError: read fail

I tried many times but still getting this. I even tried commenting some lines which are showing error.

I have tried in Ubuntu also. Got struck in previous steps.

ubuntu@ubuntu:~/Downloads/unbrick_suez$ sudo ./bootrom.sh

[2019-10-09 02:09:27.992710] Waiting for bootrom

[2019-10-09 02:09:59.662228] Found port = /dev/ttyACM0

[2019-10-09 02:09:59.662673] Handshake

[2019-10-09 02:09:59.663532] Disable watchdog

* * * Remove the short and press Enter * * *

[2019-10-09 02:10:01.012143] Init crypto engine

[2019-10-09 02:10:01.028942] Disable caches

[2019-10-09 02:10:01.029548] Disable bootrom range checks

[2019-10-09 02:10:01.040796] Load payload from ../brom-payload/build/payload.bin = 0x45D0 bytes

[2019-10-09 02:10:01.045503] Send payload

4173140033

4161912080

Traceback (most recent call last):

File "main.py", line 92, in <module>

main()

File "main.py", line 57, in main

load_payload(dev, "../brom-payload/build/payload.bin")

File "/home/ubuntu/Downloads/unbrick_suez/modules/load_payload.py", line 137, in load_payload

dev.write32(load_addr, words)

File "/home/ubuntu/Downloads/unbrick_suez/modules/common.py", line 154, in write32

self.check_int(self.dev.read(4), word) # echo word

File "/home/ubuntu/Downloads/unbrick_suez/modules/common.py", line 91, in check_int

self.check(test, gold)

File "/home/ubuntu/Downloads/unbrick_suez/modules/common.py", line 87, in check

raise RuntimeError("ERROR: Serial protocol mismatch")

RuntimeError: ERROR: Serial protocol mismatch

Thank you,

Aditya
[Fire HD 8 and HD 10 Android Development] Rortiz2:
raise RuntimeError("ERROR: Serial protocol mismatch")

Looks like you're in Preloader.

Did you disabled modemmanager?

Try shorting again.

If not, try without battery connected
[Fire HD 8 and HD 10 Android Development] ducksoup18:
I attempted to install LOS12.1 onto the hd10 but realized i needed to downgrade from the latest rom. I downloaded update-kindle-40.6.2.6_user_626533320.bin and sideloaded it. Install went fine, then rebooted and now the screen is just black. I plug it into my computer and the computer recognizes it, but then disconnects from it. It keeps happening. Seems like some type of bootloop? Anyone have any idea how to fix this? I saw an article on here for an older fire that required some factory usb cable and/or using KFFA or something but wanted to see if anyone has experienced this and has a more simple fix.
[Fire HD 8 and HD 10 Android Development] cddepppp256:
The PCB seems to be locked down by two clips. Should I just pull harder on the PCB, or is there something I'm not getting about removing the PCB? The only thing I can find about removing it is for the Fire HD 10 2015. Thanks!
[Fire HD 8 and HD 10 Android Development] jlim0930:
i have a HD8 7th gen and i guess i am stuck with the anti-rollback. screen doesnt come on and when connected to the computer and pressing the power button i hear it connect and disconnect.

anyone know how to resolve this for the HD8? which points to short?
[Fire HD 8 and HD 10 Android Development] memaxef:
I am getting a bad response in the handshake. I am pretty sure that ModeManager is inactive. Any idea about the problem?

Here is the stack trace:

Waiting for bootrom
Found port = /dev/ttyACM0
Handshake
Disable watchdog
b''
b'\x00\x01'
Traceback (most recent call last):
File "main.py", line 92, in <module>
main()
File "main.py", line 54, in main
handshake(dev)
File "/home/memaxef/unbrick_suez/modules/handshake.py", line 11, in handshake
dev.write32(0x10007000, 0x22000000)
File "/home/memaxef/unbrick_suez/modules/common.py", line 150, in write32
self.check(self.dev.read(2), b'\x00\x01') # arg check
File "/home/memaxef/unbrick_suez/modules/common.py", line 87, in check
raise RuntimeError("ERROR: Serial protocol mismatch")
RuntimeError: ERROR: Serial protocol mismatch
[Fire HD 8 and HD 10 Android Development] Rortiz2:
This means you are in Preloader mode instead of BootROM mode.

Try to short again, or use other object to short.

If still the same try with the battery disconnected.

Cheers!
[Fire HD 8 and HD 10 Android Development] memaxef:
Worked perfectly, thanks.