yashsingh1/xdaforums huggingface dataset:
[8.9" Kindle Fire HD Android Development] Brandonrz:
Got it! Thanks for your help. My drivers ended up being fine, just for some reason wasn't installing. For those who may be in same situation here is what I did.

Go to start/computer, right click and hit properties. Go to device manager. Right click on Tate-PVT-08 and choose update driver software, then browse my computer for driver software, then let me pick from a list of device drivers on my computer. I moved down list and picked Kindle and it installed as adb composite interface or something like that. Once installed the device manager showed "Kindle" and my fastboot was working. :)

---------- Post added at 05:51 AM ---------- Previous post was at 05:01 AM ----------

uggg.. so i did all of the steps, but when i tried to boot into recovery. It just stayed at the blue logo, im restoring my backup
[8.9" Kindle Fire HD Android Development] badbutz:
@ Hashcode

I found kfhd8-twrp-2.6.0.0-recovery.img in your goo.im folders.

In your tutorial the 2.4 version of twrp is used. Is there any reason to use 2.4 instead of 2.6?
[8.9" Kindle Fire HD Android Development] badbutz:
Now I dared to follow your instructions.

Worked perfectly with my previously rooted 8.4.1 KFHD 8.9.

For whom it may concern:

I used the packages for adb and fastboot available in the repositories from my Ubuntu 13.04 (64 Bit):

sudo apt-get install android-tools-adb
sudo apt-get install android-tools-fastboot

Another note:

I could not find my sdcard in ubuntu. So I copied the files via adb:

adb push cm-10.1-20130604-UNOFFICIAL-jem.zip /sdcard/
adb push gapps-jb-20130301-signed.zip /sdcard/

Thanks again Hashcode for your great work!
[8.9" Kindle Fire HD Android Development] arda99:
2.6 is a new version. Hash released TWRP 2.6 on KFHD7 forum few days ago but didn't update the post here.
[8.9" Kindle Fire HD Android Development] CAL7:
Fastboot problems

I have a new-to-me Kindle Fire HD89. I rooted it fine (SU confirms). ADB talks to it great. Steps 1-4 seem to work great.

The stack override looks like this, which I think is good:

C:\Program Files\Android\android-sdk\platform-tools>adb devices
List of devices attached
B0C9100424470LWW device

C:\Program Files\Android\android-sdk\platform-tools>adb push stack /data/local/tmp/
256 KB/s (4096 bytes in 0.015s)

C:\Program Files\Android\android-sdk\platform-tools>adb shell su -c "dd if=/data/local/tmp/stack of=/dev/block/platform/omap/omap_hsmmc.1/by-name/system bs=6519488 seek=1"
0+1 records in
0+1 records out
4096 bytes transferred in 0.002 secs (2048000 bytes/sec)

It's 8.4.3, so I do Step 4.5 and this is where everything stops. I power it down, type:

fastboot -i 0x1949 flash bootloader kfhd8-u-boot-prod-8.1.4.bin

then power it up. Kindle screen shows "fastboot mode", but computer is < waiting for device >. Googling all over for an answer, I found this tip:

http://xdaforums.com/showpost.php?p=37882963&postcount=54

and this at least gets the fastboot mode device to show in Device Manager (was "Jem-PVT-Prod-04" but now shows as Android Phone -> Android ADB Interface).

If I kill (Ctrl-C) the fastboot command, and try "ADB devices", it shows no device. In whatever state it is now in, at least I can boot into stock Amazon.

I've looked everywhere that I can and am out of ideas. Help! (PLEASE)
[8.9" Kindle Fire HD Android Development] Hashcode:
adb mode isn't fastboot mode tho they sound similar.

Try:

fastboot devices

Also from the look of it, in Windows Device Manager you'll need to change the adb driver to something like "ADB Composite driver" which not only recognizes adb but also fastboot.

Hope that helps
[8.9" Kindle Fire HD Android Development] Hashcode:
Updated the OP with new 8.4.3 based files:

Freedom Boot.img

TeamWin Recovery (TWRP) 2.6.0.0

Amazon OS 8.4.3 (pre-rooted) found here:

http://goo.im/devs/Hashcode/jem/kfhd8-amazon-os-8.4.3.zip

md5sum: d67ab5cd944dbf9d9509b44aa1d4a7e3

Changelog: updated 2013-07-11

freedom boot.img (for use w/ stock Amazon OS + 2nd-bootloader):

[07/11] Updated w/ kernel from 8.4.3 release

Amazon OS .zip:

[07/11] Rebuilt on version 8.4.3 from Amazon

TeamWin Recovery (TWRP) 2.6.0.0

[07/11] USB Vendor ID / Product ID in recovery now matches stock Amazon OS

[07/11] Based on 8.4.3 stock kernel

[07/11] TWRP 2.6.0.0 update

[07/11] a TWRP change in sensor handling has made the UI feel MUCH more responsive

[07/11] Fixed recovery bootloop issue

[07/11] Added "EFS" partition backup option. Normally, don't need to make too many backups of this, but having a backup will enable you to recover HDMI keys, and some other data.
[8.9" Kindle Fire HD Android Development] ryanhein:
Hashcode, this newly update fixed my problem with the USB Vender ID, greatly appreciate your work! Thank you very much. :good:;)
[8.9" Kindle Fire HD Android Development] CAL7:
Thanks, Hashcode - for all your work, and particularly for helping me.

"fastboot devices" comes back blank and a command line.

I've focused on getting the fastboot mode Device Manager to show "Android Composite ADB Interface", which has been a challenge. Device Manager always shows it as "Android Phone -> Android ADB Interface". My efforts to get it be the Composite Driver were fruitless until I read the post:

http://xdaforums.com/showthread.php?t=2179748 which talks about looking up the HW Device ID and changing the driver inf file to include those hardware ID's and installed it. So, I made a copy of "Kindle Fire\Drivers\android_winusb.inf" to include the fastboot hardware id.

That, at least, changed things, but not sure if for the good. The Device Manager recognized the fastboot mode device and installed the "Android Composite ADB Interface".

Now, from the Command Prompt:

"fastboot devices" still gives a null response and next prompt

"fastboot -i 0x1949 getvar product" says

getvar: product FAILED (status read failed (Too many links))

finished. total time: 0.000s At least that's something!

"fastboot -i 0x1949 reboot"

actually does what it's supposed to (my one and only sign of fastboot success!)

"fastboot -i 0x1949 reboot-bootloader"

rebooting into bootloader...

FAILED (status read failed (Too many links))

finished. total time: 1.016s

That's where I am and don't know which way to go, except to beg for help. Can you give me any suggestions? Thank you!
[8.9" Kindle Fire HD Android Development] Hashcode:
I would double check that you are using the latest version of fastboot from the android SDK.

I've never seen the too many links message before.
[8.9" Kindle Fire HD Android Development] soupmagnet:
I looked into the "too many links" error, and while a lot of people seem to have the same problem from time to time, no one seems to have a solution. There was one thread on XDA where the users claimed to have success by switching to a different USB port or using a different USB cable altogether. I would say, try that, and if it doesn't work you can try a different fastboot.exe

And if all else fails, you can always use Linux. It's never let me down.
[8.9" Kindle Fire HD Android Development] Hashcode:
Who thinks I should write an APK installer for the initial installation of the 2nd-bootloader, TWRP and an automated re-install of the Amazon OS to fix any damage the stack drop did?
[8.9" Kindle Fire HD Android Development] soupmagnet:
I think it's a good idea. It would prevent a lot of mishaps at least. But I think it would be more likely for users to skip backing up the stock partitions. Could such an option be added to the apk?
[8.9" Kindle Fire HD Android Development] rebelduke:
I think it would be a great idea and very much appreciated!
[8.9" Kindle Fire HD Android Development] CAL7:
Thinking I might have confused things with my host computer that I've used with other ADB drivers, I tried going to a fresh system and new SDK and still had similar problems. But, I found the FireFlash utility and that allowed me to skip over my fastboot problems. Got it up and have hashcode's CM10 running now. Thank you.
[8.9" Kindle Fire HD Android Development] halfvast:
I have working 2nd bootloader and prerooted 8.41. Can I upgrade to 8.43 with zip hashcode posted few posts earlier or have I do alle steps over again from beginning?

And can I upgrade twrp just flashing?
[8.9" Kindle Fire HD Android Development] Hashcode:
You can use .zips to update to the 8.4.3 version of Amazon OS as well as the new version of TWRP:

TWRP thread for download: http://xdaforums.com/showthread.php?t=2218802

Amazon OS download link: http://goo.im/devs/Hashcode/jem/kfhd8-freedom-boot-8.4.3.img

Hope that helps,
[8.9" Kindle Fire HD Android Development] rebelduke:
I've updated using the latest files and I've received no error messages. However, when I press "volume up" and the power "on" switch I get the orange logo, then a blue logo and finally in the middle of the screen I see, in yellow the words "fastboot mode" with a nice blue arrow to the left of the "fastboot" word. Not sure what to do from here. I couldn't find any reference in the thread of someone having a similar problem. Any suggestions would be gratefully appreciated.
[8.9" Kindle Fire HD Android Development] 0killer:
Your flash went wrong. Download again, because file has been reuploaded by hash code. Then flash again.
[8.9" Kindle Fire HD Android Development] rebelduke:
That did it! Thanks!
[8.9" Kindle Fire HD Android Development] wingzero:
I am at Step 4 and trying to flash the kfhd8-u-prod-8.1.4.bin and I got an error message: "target reported max download size of 1006632960 bytes". I followed all the step as required but can't seem to get it pass step 4. Any help would be appreciated.
[8.9" Kindle Fire HD Android Development] Hashcode:
What's the exact command you are using for step 4
[8.9" Kindle Fire HD Android Development] wingzero:
I followed the steps from step 1 all the way to step 4 and everything were doing good till the last step of step 4. I entered this command: fastboot -i 0x1949 flash bootloader kfhd8-u-boot-prod-8.1.4.bin Then this message appear:

target reported max download size of 1006632960 bytes

error: cannot load 'kfhd8-u-boot-prod-8.1.4.bin
[8.9" Kindle Fire HD Android Development] soupmagnet:
What's the actual size of the bootloader you downloaded?
[8.9" Kindle Fire HD Android Development] wingzero:
It's 244kb. I downloaded it several times and the size is the same.

Oh crap! I use KFHD Restore Tool to try to restore the device and now I am stuck at the KindleFire logo.
[8.9" Kindle Fire HD Android Development] soupmagnet:
Before you do any more damage...did you check the md5sum of the files you downloaded?

And just to be sure...You do have a Kindle Fire HD 8.9, correct?

The KFHD8.9 can be put into fastboot mode by turning the device completely off, entering 'fastboot - i 0x1949 getvar product', then turning the device back on. Have you tried this to see if you can enable fastboot?

Before doing any of this, did you save your partition images as indicated in Step 1 of the instructions?

Also, it would be helpful to know what system you are running (Windows, Mac, etc.)
[8.9" Kindle Fire HD Android Development] wingzero:
I am runging Windows 7 64 bit and the KFHD 8.9. Yes, I did the backup, saved the files on my computer and deleted the backup images off the device(Bad move). And I can fastboot the kindle but when I enter 'fastboot - i 0x1949 getvar product', it saids cannot detect device. When I fastboot reboot, it just hang on the KindleFire logo. I'll do some more research and also wait for your guys assistances. Thanks.
[8.9" Kindle Fire HD Android Development] soupmagnet:
What fastboot.exe are you using? The one from KFFA?
[8.9" Kindle Fire HD Android Development] wingzero:
I just use the command prompt but I did tried the KFFA with the same result, wouldn't flash the bootloader. The device just stuck on the boot logo after reboot.
[8.9" Kindle Fire HD Android Development] soupmagnet:
That doesn't really answer the question.

When you enter fastboot commands, what directory are you in?
[8.9" Kindle Fire HD Android Development] wingzero:
I was in C:\Users\xxxx>
[8.9" Kindle Fire HD Android Development] soupmagnet:
:rolleyes: Okay, let's try this again....

Fill in the blank:

The "fastboot.exe" that I'm using to execute fastboot commands came from ___________.
[8.9" Kindle Fire HD Android Development] wingzero:
soupmagnet, I appreciate you taking your time to try to help me. I used the Kindle HD Unbrick method and copied my back-up images to that folder and successfully restored the device back to stock. Now I am not sure if I have the nerve to take another dive.

Alright! Successfully flashed with the device with the latest build.
[8.9" Kindle Fire HD Android Development] dssence:
Hi guys.. I have a question about step 2.2

It says to use kfhd8-freedom-boot-8.4.3.img

Same for step 5. The image file is 8.1.4

My current version on my Kindle is

8.1.3

What should I do?

Should I still use this image?

Just checking before I do anything.
[8.9" Kindle Fire HD Android Development] soupmagnet:
Do you have a factory cable?
[8.9" Kindle Fire HD Android Development] Hashcode:
Even if your version is 8.1.3 you can follow the instructions, but you *MUST* flash the either:

- the newest Amazon OS (8.4.3 .zip file)

- or CM10.1 after wiping data/cache
[8.9" Kindle Fire HD Android Development] dssence:
I do not. I will order one. But is it necessary at this stage? Or is this just in case I "brick" it?

Thanks Hashcode. I still have some questions regarding what I should do first.

Where do I get this from? I only see 8.4.1 in this thread of stock roms

http://xdaforums.com/showthread.php?t=2142241

Would it be the same to just enable OTA and download 8.4.3 and then root? Although I'd rather have the zip file with the already rooted rom.

So, with my current 8.1.3 I should:

1. Do EXACTLY the same steps and use the same files as in the first post of this thread. From steps 1 to 6.

No 8.4.3 stock OS at this point, correct?

2. wipe data/cache

3. Flash with CM 10.1

Is this correct?

Last question:

Can I still go back to a previous stock rom, let's say 8.1.4 even if I have kfhd8-freedom-boot-8.4.3.img on the kindle? I guess it's a requirement actually, but just asking because what you said in your reply.

EDIT:

Did everything and got CM 10.1 on my kindle! Yay!
[8.9" Kindle Fire HD Android Development] soupmagnet:
Ignore me...I forgot what thread this was in. The HD8.9 won't respond to a factory cable, so don't waste your money on one.
[8.9" Kindle Fire HD Android Development] GermanJPL:
hi hashcode, hi guys

I want my kindle fire hd 8.9 update, I have following this guide Introducing: the 2ndBootloader & TRWP installed Kindle Fire 2nd-bootloader + TWRP 2.4.4.0 for the KF HD 8.9 [04/02 8.3.0/TWRP].

I have

- Kfhd8-freedom-boot-8.3.0.img

- CM10.1 [05/14] ALPHA CM10.1 + + KERNEL 3.0.50

- Gapps-jb-20130301-signed.zip

used.

It has all worked out.

What steps are required to perform a clean update on the Kindle?

mfg

J-P
[8.9" Kindle Fire HD Android Development] Hashcode:
From now on to update for ROMs, you only need to place the ROM on your device, enter recovery, perform standard wipe (if needed) and then flash ROM + gapps.
[8.9" Kindle Fire HD Android Development] GermanJPL:
hi hashcode,

I'm aware of, but how do I update the Kindle Fire 2nd-bootloader + TWRP 2.6.0.0 HD 8.9 for the Kindle Fire?

mfg

J-P
[8.9" Kindle Fire HD Android Development] narse:
Not sure what you are asking. My understanding is that there isn't a 2nd boot loader to upgrade to do there is no reason to do this. TWRP 2.6.0.0 is also the most up to date but if a new version is available then you will be able to update it via a zip file.
[8.9" Kindle Fire HD Android Development] GermanJPL:
hi Narse,

sorry for my bad english, I'll try and explain again.

the reason for my question is that I have a part of the instructions translated into German in a German forum. There now appeared on the question of whether the 2nd-bootloader + TWRP 2.6.0.0 can simply update the zip file, or whether all necessary steps must be re-executed from the beginning. especially because the steps - files - have changed in point 2?

mfg

J-P
[8.9" Kindle Fire HD Android Development] Hashcode:
You can update just TWRP to the latest version here:

http://xdaforums.com/showthread.php?p=43527156
[8.9" Kindle Fire HD Android Development] GermanJPL:
Many many thanks to you hashcode, you're simply the best .... :highfive:

mfg

J-P
[8.9" Kindle Fire HD Android Development] stealthmouse:
Hashcode, do you still need sparsed backup files for a Mac? If so, I can work through it on a Mac and dropbox the files to you in the next day or two. Didn't see any updated info for Mac, so assumed you still needed them.
[8.9" Kindle Fire HD Android Development] Hashcode:
Yes, the community probably needs a sparsed set of restore files for Mac users based on 8.4.3. Tho, I'm not sure if anyone actually takes the time to manually restore their devices if they get into a bad situation. I'm pretty sure 99.9% go and download KFFA for the fix.
[8.9" Kindle Fire HD Android Development] GermanJPL:
hi hashcode,

I have the following problem ....

My Kindle Fire Hd 8.9 works with amazon os 8.3.1. then I have my Kindle with 2nd Boot Loader and trwp provided 2.4.4 and flashed CM 10.1.

Why do I get the command "fastboot-i 0x1949 getvar product" not in fastboot mode?

ADB and fastboot working fine, otherwise I could not flash. Even with the Amazon StockRom 8.4.3 http://xdaforums.com/showthread.php?t=2142241 I can not get into the fastboot mode.

When I start KF First Aide, I can easily start mode with the FastBoot option 1.

Any ideas or help for me to understand it?

mfg

J-P
[8.9" Kindle Fire HD Android Development] stealthmouse:
Sorry, got swamped with some other things. I concur re files; unfortunately, KFFA doesn't run on a Mac without either a VM or editing the script commands to their Mac counterparts. There are probably a few folks out there with no PC access, who could use the files. And good for archiving regardless.

Let me see what I can do on files. I'm on 8.4.6 now, but can restore it to 8.4.3 stock and sparse them—hopefully soon...

Thanks.
[8.9" Kindle Fire HD Android Development] GermanJPL:
sorry for the question,

now it works as described ... I had the cmd terminal window with the fastboot.exe the wrong path ....

now it works fine .....

mfg

German J-P
[8.9" Kindle Fire HD Android Development] kasek:
didn't work on my Fire HD 8.9 (V8.4.6), due to missing permissions.

Changed it to

adb push stack /sdcard
adb shell su -c "dd if=/sdcard/stack of=/dev/block/platform/omap/omap_hsmmc.1/by-name/system bs=6519488 seek=1"

Perhaps you might change your OP since /sdcard will always be writable.

Thanks for your tutorial!
[8.9" Kindle Fire HD Android Development] JustJinxed:
Stuck on KindleFire (blue logo)

Got the USB drivers working in ADB/Fastboot, and normal modes.

Downloaded stack, kfhd8-freedom-boot-8.4.3, kfhd8-twrp-2.6.0.0-recovery, kfhd8-u-boot-prod-8.1.4

Ran the sequence in the OP, didn't see any issues, rebooted and now I'm stuck at a blue kindlefire logo. Pressing up or down on the vol while booting and no twrp. I'm on a 8.9 LTE, not sure if that would make a diff or not.

I was going to try a revert using KFHD_SRTv1.3.5, but dunno if it is going to have LTE issues either at this point.

And.. I didn't back up because I didn't think I had anything on this thing to lose... lol *facepalm*

Any ideas how to get into twrp at this point would be greater. I can still reboot into fastboot mode, I just can't push anything into /sdcard/ at this point, that I know of.
[8.9" Kindle Fire HD Android Development] narse:
When I got my kindle in this state I restored from my backup and started again. As you didn't take a backup you can't do this :P but I think that the first aid toolkit on the following thread has a backup you can use to get it working again.

http://xdaforums.com/showthread.php?t=2096888
[8.9" Kindle Fire HD Android Development] SR4130:
OK here's my story. I just realized that development for this device finally picked up. So I charged it up and began. I had absolutely no knowledge of android SDK or even how to use adb commands or where to even type them at. I always flash my phone but this is way more difficult. I spent five hours last night and three hours this morning getting everything installed and working. I was having trouble connecting it to the computer, and i read that after 8.3.1 it's risky so i wanted to downgrade first since i was on 8.4.6, but i tried it anyways after i couldn't get it downgraded. Anyways I finally figured it all out through searching only, not one post asking for help. I followed instructions got the orange then blue logo, but it got stuck on the blue for a few mins. so I reset and tried to go straight into recovery and it worked. So I backed up my os and wiped and installed pacman and it booted perfectly. Thanks for everything. I now have a nice android tablet instead of a nice paper weight and no tablet, Lol.
[8.9" Kindle Fire HD Android Development] JustJinxed:
I'm not sure what I did wrong the first time, but I cleared all the files I downloaded, re-downloaded them, ran the first aid kid and went back over the instructions step by step, and everything is working now. (Kudos to that first aide, it is exactly what I needed to get stock rom and bootloader back on my kindle fire HD)

I know it's been awhile, but I figured I'd reply just so if anyone else runs into this they'll know it's just user error ;)
[8.9" Kindle Fire HD Android Development] binhgreat:
Does it work with 8.4.6?
[8.9" Kindle Fire HD Android Development] Prokeke:
Yes, as long as you can access fastboot and you have to be rooted to execute some of the command.
[8.9" Kindle Fire HD Android Development] Hashcode:
Updated the original post w/ TWRP 2.6.3.0 file links and info.

This is mostly for new installs. If you're already using TWRP you can update using the .zip file found here:

http://xdaforums.com/showthread.php?t=2218802
[8.9" Kindle Fire HD Android Development] justin_vn:
I tried so many time but in the command prompt when I typed adb it says adb﻿ is not recognized as internal or external command, operable program or batch file. please help.
[8.9" Kindle Fire HD Android Development] narse:
Adb.exe is a program that needs to be installed. It is usually installed as part of the android sdk, but can be installed separately. I would suggest googling as there are whole threads that describe installing and using adb. If you have already installed it and you can't run it from a cmd prompt, then you need to change directory to the folder that the exe is located in our add the folder to the path.
[8.9" Kindle Fire HD Android Development] justin_vn:
Thankyou. i fixed the ADB.

And now i back up system. But in SD card i can not see any file like boot0block.img or stock-recovery.img or stock-boot.img.

Then i start the Step 3: Install the stack override in /system

And it show : Can not stat: "stack": No such file or directory.

..................

one more thing is my version is 8.4.3. Is that ok?

Please help!
[8.9" Kindle Fire HD Android Development] narse:
Can you post the output from the screen when you're running the backup commands. You really want to get a good backup before you continue any further.
[8.9" Kindle Fire HD Android Development] justin_vn:
When i backup, cmd show like this. But i can not find any file in sdcard.
[8.9" Kindle Fire HD Android Development] soupmagnet:
Try this and see what comes up...

adb shell ls /sdcard/ | grep '.img'
[8.9" Kindle Fire HD Android Development] justin_vn:
grep is not recognizer T__________T....
[8.9" Kindle Fire HD Android Development] soupmagnet:
Sorry...typo. Forgot the quotes.

adb shell "ls /sdcard/ | grep '.img' "
[8.9" Kindle Fire HD Android Development] justin_vn:
Thankyou very much for helping me. Lock like there are some files in the sdcard. I showed all of the hide file, but can not see them.
[8.9" Kindle Fire HD Android Development] soupmagnet:
Looks like a Windows problem to me. Have you tried to pull those files from the device?

adb pull /sdcard/stock-boot.img