yashsingh1/xdaforums huggingface dataset:
[8.9" Kindle Fire HD Android Development] field3d:
I mean this.

I mean with the commands I gave this commands:

adb shell su -c "mount -o remount,rw ext4 /system"
adb shell su -c "mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak"
adb shell su -c "mount -o remount,ro ext4 /system"

fastboot -i 0x1949 flash boot kfhd8-freedom-boot.img
fastboot -i 0x1949 flash recovery kfhd8-twrp-2.3.3.0-recovery.img
fastboot -i 0x1949 reboot

In other words just flash the images on the device after make this last command:

fastboot -i 0x1949 reboot

Never booted again the kindle stuck in logo I can´t wipe nothing is totally dead the only way I can revive is restoring with the previous backup I made like you say in your posts:

fastboot -i 0x1949 flash boot boot.img
fastboot -i 0x1949 flash recovery recovery.img
fastboot -i 0x1949 flash system system.img # This one will take a few minutes
fastboot -i 0x1949 reboot

With that lives the kindle but I can´t install the 2nd boot loader is what I said :(

I have 8.1.4.

Thank you
[8.9" Kindle Fire HD Android Development] twa_priv:
After you restore your backup you might need to flash the stack override again.

adb push stack /data/local/tmp/
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"

Then proceed with renaming install-recovery.sh and flashing freedom boot and twrp as you did before.

That's what I needed to do after losing the ability to boot into recovery.
[8.9" Kindle Fire HD Android Development] Thepooch:
adb shell su -c "mount -o remount,rw ext4 /system"
adb shell su -c "mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak"
adb shell su -c "mount -o remount,ro ext4 /system"

Also if you fail to do this correctly you will get stuck at the logo or when you try to access recovery it will claim bad boot image and either send you to stock recovery or straight into fastboot. Truthfully I think your missing a step or your not installing the stack file correctly or your not wiping correctly prior to flashing the zip. Backing up the stock images is not nearly as intergral as the rest of the process for bootloader install a single typo makes the difference between good and bad on this deal. Hashcode has laid each step out well enough that you can literally copy and paste each command and it will work. If you need help getting through it we should hook up again and I will walk you through each step so that next time you have a better idea of what needs to be done.
[8.9" Kindle Fire HD Android Development] field3d:
Need to override

I think I need to override like you say but gives me exactly that 2 commands permission denied or not permissions something like that how can I enable permissions to override the stack?

Now the question if I override once I have permissions can I lost all the applications and data inside? If yes how can I make a backup of apps and their data? After override I´ll restore the backup of that apps to avoid install one by one and the contents too.

Yes the Thepooch I see that 2 commands gave that error in case I can´t would be nice like the other day.

Thank you
[8.9" Kindle Fire HD Android Development] Thepooch:
Any errors during the process is a very good indication of why things are running amuck and not completing the task largely it could boil down to getting your drivers working properly. When executing any of the shell commands you may get a prompt to grant shell permission you must grant in order for it to work or you will get permission denied. A linux setup would make this much easier for you.
[8.9" Kindle Fire HD Android Development] Thepooch:
http://db.tt/ZNYlKiYp install this if it can't find busybox on your system make sure it gets installed to xbin then run the smart install that will help you with your recovery.sh problem.
[8.9" Kindle Fire HD Android Development] field3d:
ok

Ok I'll try to install but just a question what is for busybox? I heard in many places about that and the script where I installed the google apps said couldn't install busybox app I ignored that until now you are talking about it.

And the other question "smart install" is an option of busybox or where can I find?

Thank you
[8.9" Kindle Fire HD Android Development] Thepooch:
Just open the app it will run a check, select install location xbin it might try to default to bin don't let it do that choose xbin then click install and select smart install. Make sure you grant permission upon launch of the app for superuser. All the time, energy, questions and problems could have been solved in about 20 mins by running a couple of scripts on a live usb and being done with it. Stop fiddle farting around with windows seems to have only caused you trouble just sayin Good luck.
[8.9" Kindle Fire HD Android Development] LivingChampion:
My Kindle is stuck on the Kindle Fire orange logo after following all the steps. Luckily I the backup recovery and boot helped me get it running again. Having a bit of trouble getting it done, will try again tomorrow. If anyone has any pointers other than trying again, please reply back to me.
[8.9" Kindle Fire HD Android Development] Thepooch:
Yeah try this http://xdaforums.com/showthread.php?t=2162973 .
[8.9" Kindle Fire HD Android Development] Thepooch:
Any errors during the setup?
[8.9" Kindle Fire HD Android Development] dagelo:
note

wrong topic -- sorry
[8.9" Kindle Fire HD Android Development] field3d:
FInally I could

Finally I could instal TWRP is ok the problem was busybox. Now the question How can I remove totally TWRP in case not needed anymore?

Thank you
[8.9" Kindle Fire HD Android Development] soupmagnet:
Re: [BOOTLOADER] Install 2nd-bootloader for Custom ROMs on KFireHD 8.9

Instructions from the OP...in case you missed them.
[8.9" Kindle Fire HD Android Development] field3d:
Thank you

I thought was another thing but is I know what I do now thank you.
[8.9" Kindle Fire HD Android Development] Thepooch:
No you don`t remove twrp. Why would you remove your custom recovery?
[8.9" Kindle Fire HD Android Development] field3d:
I mean.

I just mean a future inncase of sell the kindle or return to Amazon in a far future not now. Just wanted to know.

This weekend I'll play with the linux finally just to learn the device is working 100% now except the Time Warner cable. But to play I'll play with backtrack and ubuntu to see wha happen with the soup.

Thank you
[8.9" Kindle Fire HD Android Development] lordmuggins:
Also stuck here at the KF logo. Awaiting my fastboot cable to arrive. Instructions were followed precariously, to a tee with no errors whatsoever.
[8.9" Kindle Fire HD Android Development] Technogen:
Reflash your stock recovery. The fastboot cable doesn't work on the KFHD89 just use fastboot commands from adb.
[8.9" Kindle Fire HD Android Development] Thepooch:
I will almost bet your issue is busybox related, the one vital part to getting the recovery.sh command done correctly requires busybox. For some reason binr4y roots okay but I dont believe it installs busybox. I never had any issues after obtianing root and installing gplay busybox was the first thing I installed.
[8.9" Kindle Fire HD Android Development] lordmuggins:
Sorry, I actually have a KFHD7 - the two almost identical posts are confusing. I followed the HD7 instructions, not these ones. But even if I was stuck in the same position on a 8.9, suggesting to use adb when someone is in a bootloop doesn't make sense to me. Can you explain that?
[8.9" Kindle Fire HD Android Development] Thepooch:
You said you were stuck at the logo technically that`s not a bootloop a bootloop actually is a physical loop from what I have seen. When your flashing a bootloader thats done in fastboot and that is different than adb in fact in fastboot adb is not functional. When your using the wrong instructions and files no wonder you are stuck at the logo. I was talking about busybox Im confused at what that has to do with adb in the first place.
[8.9" Kindle Fire HD Android Development] Poke851Le:
Update TWRP 2.4.2.0

Thank you Hashcode for updating TWRP 2.4.2.0

Anyone who didn't update TWRP can follow the next link (http://goo.im/devs/Hashcode/jem/kfhd8-twrp-2.4.2.0-recovery.img)
[8.9" Kindle Fire HD Android Development] wojo797:
Having trouble flashing the 2.4.2.0 update ...... through fastboot?
[8.9" Kindle Fire HD Android Development] Poke851Le:
yes, in fastboot mode, "fastboot -i 0x1949 flash recovery kfhd8-twrp-2.4.2.0-recovery.img"
[8.9" Kindle Fire HD Android Development] wojo797:
Thank you
[8.9" Kindle Fire HD Android Development] Technogen:
What does 2.4.2.0 offer?
[8.9" Kindle Fire HD Android Development] Slimepuppy:
http://teamw.in/project/twrp2

;)
[8.9" Kindle Fire HD Android Development] field3d:
Tested on LTE

I tested on Amazon 8.9 OS 8.1.4 LTE 64gb model and works perfect! In the post say not tested on LTE well I made the test and works very good!
[8.9" Kindle Fire HD Android Development] lp894:
When I try to download any of the files, goo.im says they're no longer there?
[8.9" Kindle Fire HD Android Development] muiriddin:
I have read that goo.im was having some trouble the last couple of days. That may be the cause of the trouble you are having.
[8.9" Kindle Fire HD Android Development] Hashcode:
I realize there's a new 8.3.0 update for the Kindle Fire HD 8.9 and that these instructions may need altering.

TREAD LIGHTLY.
[8.9" Kindle Fire HD Android Development] soupmagnet:
Okay so, to make sure I understand correctly... The bootloader that comes with the latest update (8.3.0) has been patched, and the original instructions for installing the second bootloader will NOT WORK. And the potential fix for this is to flash a bootloader from a previously unpatched software version?

Are there any indications from the latest update that would suggest this would be dangerous to attempt or are you just being cautious? There seems to have been no real danger in flashing stock images before this. What would cause this situation to be any different? I am more than willing to put this to the test but if you have pertinent information that I'm not aware of, please let me know.
[8.9" Kindle Fire HD Android Development] Hashcode:
Right now, there is no indication that flashing back the 8.1.4 bootloader will have any adverse affects.

The justification: the MLO.bin (x-loader) component is EXACTLY the same in the 8.3.0 update. The md5sum matches to the file in the 8.1.4 release. This is the binary which loads and validates the bootloader.

I also compared sources from the older u-boot to the new u-boot and there were only 2 changes:

1. The security hole plugged:

Just the order in which the certificate/content is validated. The change was to validate the certificate itself first, then load the boot.img from the mmc and then run a hash check on the contents. Previously, they loaded the boot.img first, then checked the certificate / contents afterwards.

2. The initial charging loop check has some minor delay changes. I think they're allowing another second or 2 for the charger check to make sure there's enough juice to fully boot the device. A minor tweak at best.
[8.9" Kindle Fire HD Android Development] soupmagnet:
Good to know. I think I still have a backup of the original bootloader from sometime in early February. I'll flash it later today when I have time and see if all hell breaks loose. Do you happen to have an MD5sum for the old bootloader?
[8.9" Kindle Fire HD Android Development] Hashcode:
I have a link to the 8.1.4 u-boot (bootloader) file here:

http://goo.im/devs/Hashcode/jem/kfhd8-u-boot-prod-8.1.4.bin

md5sum a56f24c0c01aaea4bf408bc710faadaa

(You SHOULD check this before using fastboot -- downloads CAN be corrupted)

And this is flashed via fastboot with:

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

Still holding off on an OP update till we get a few confirmations that this works.
[8.9" Kindle Fire HD Android Development] soupmagnet:
[EDIT:] CONFIRMED: Flashing the kfhd8-u-boot-prod-8.1.4.bin through ADB works just fine. No brick. I get the blue Kindle Fire logo as before after the stack override is installed. TWRP is installed and it works. Currently running CM10.1.
[8.9" Kindle Fire HD Android Development] Hashcode:
Thanks for testing that soupmagnet :)

Added STEP 4.5 to the OP to include flashing of 8.1.4 bootloader for those on software version 8.3.0 or greater.
[8.9" Kindle Fire HD Android Development] rwideman:
Is there any updates on moving to 2.4.x? There are 5 updates to the rom since 2/1/13.

UPDATE: nm, didnt want to read 12 pages of updates. I just bought the KFHD 8.9 and am impatient. PEBKAC.....
[8.9" Kindle Fire HD Android Development] soupmagnet:
Well, if there was any doubt before, I think it's safe to say Amazon's software dept.

definitely

keeps an eye on these forums. I wonder how many of us active users are actually corporate spies ;)
[8.9" Kindle Fire HD Android Development] rwideman:
I am encountering a few issues:

1) I see 8 files show up when clicking on this link.

2) After I run runme.bat to root and KFHD89 is rebooted I see a pixelated N and the locked screen shows pixelated too. KFHD89 runs SLOW at this point.

3) When I do step 3 "adb push stack /data/local/tmp/" I get:

D:\android\sdk\platform-tools>adb push stack /data/local/tmp/

cannot stat 'stack': No such file or directory

I am using Root_with_Restore_by_Bin4ry_v25 to root the device.
[8.9" Kindle Fire HD Android Development] O2-GUY:
help?

Hi peeps very good work, after years on windows OS i went over to urrrrrr(iphone) sorry

i have moved to android for my mobile HTC one x+ and and the fire HD to replace my apple products

not worked on android before is this something as a newbie i should attempt or does anyone know of

a youtube visual aid i can use to help ?

thanks

carl
[8.9" Kindle Fire HD Android Development] Santos1204:
Stuck

Hi,

Could I grab a little help please?

I've followed all hash-codes steps on the 1st post, with the exception of placing the;

cm-10.1-20130227-UNOFFICIAL-jem.zip

gapps-jb-20130301-signed.zip

I left them downloading whilst getting on with the other steps. Assuming I could do them once the rest had been completed (as the files were slow to download)

My Kindle boots into the twrp-2.4.2.0 console after flashing up the yellow, then blue logos (although won't boot into the original O/S now) my question is how do I get the two files back over to it so I can flash to the CM O/S? When I user adb I get;

./adb devicesList of devices attached

????????????	no permissions

(I've restarted adb server a few times..)

And any attemped copy over to the device as in adb push results in no permissions on the device.

Kinda stuck, can someone please help :/

Chris
[8.9" Kindle Fire HD Android Development] timnan:
Re: [BOOTLOADER] Install 2nd-bootloader for Custom ROMs on KFireHD 8.9

Connect your kindle as MTP device, then you will be able to do anything just like a SD card.
[8.9" Kindle Fire HD Android Development] Santos1204:
Thanks, I've tried using qmtp, unfortunately it can't detect the device. Interestingly when I reboot the fire and repeatedly run ./adb devices it does show up a device briefly then reverts to ?????????? :/
[8.9" Kindle Fire HD Android Development] Slimepuppy:
You'll need to go back to the beginning and push the operating system you want to run with Fastboot. Do you want to run CM10 or the stock Kindle OS? Hashcode has a version of the Fire HD's 8.1.4 you can flash with TWRP. Otherwise, push CM10 and Gapps.

Once the files are on your Kindle, then you boot into TWRP and flash the new OS and Google apps.

OR...

Download Hashcode's V8.1.4 file and flash that instead.

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

You need a version of Android running to use the Fire as an MPT device, but with only TWRP installed, you don't yet have Android. You do have Fastboot, however.

Good Luck!
[8.9" Kindle Fire HD Android Development] Santos1204:
Thanks for coming back to me. I can't push anything to the device to load. If I start again;

./adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"

error: insufficient permissions for device

./adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"

error: insufficient permissions for device

/adb devices

List of devices attached

????????????	no permissions
[8.9" Kindle Fire HD Android Development] chmilu:
I finally got it done today after several days trial.
[8.9" Kindle Fire HD Android Development] Santos1204:
Managed to get the rom an apps over to the device, basically the device would let me copy files over for a very brief time before it loaded the twrp stuff. So I had to keep trying to push the files over while it was booting, bit of a bodge but eventually copied both files over. I've now managed to run cynogenmod successfully.

Thanks for the suggestions.
[8.9" Kindle Fire HD Android Development] bakib:
Experience with rooting, bootloader etc on Mac

Hi, I want to thank you for what you are doing for kindle users :).

Here is my experience:

- maybe someone dont know, that all files (you are working with) have to be in the same folder as adb, fastboot are, otherwise they have to change command (I didnt have problem, but someone dont understand those commands)

- after each adb command I had to turn off and turn kindle a start another adb command (it couldnt handle them in row)

- link to bootloader is not working, here is one which is working:

goo.im/devs/Hashcode/jem/kfhd8-u-boot-prod-8.1.4.bin

- in step 5 I had to change file name to new one: fastboot -i 0x1949 flash recovery kfhd8-twrp-2.4.2.0-recovery.img

- some games (beach buggy, toy truck rally 3D) flip upside down when they start and I cannot change it (this should go to another thread, but it is no issue basicly)

That is all I think. I hope, that helps.

If you will have any questions about my experience, please ask :)
[8.9" Kindle Fire HD Android Development] praed0r:
I cannot get my Kindle to boot into the OS after installing the 2nd bootloader - I have followed all the steps twice now, double checked the checksums of downlaoded files and have no problems during the various ADB and Fastboot steps, but when I reboot, the tablet always hangs at boot and eventually ends up in recovery - I have tried wiping Cache and Dalvic- makes no difference, the only way I can get it to boot is to restore my stock partition backups (which works fine) - can anyone shed any light on this for me please - pulling out hair here.
[8.9" Kindle Fire HD Android Development] Hashcode:
I updated the instructions today to account for most people being on the 8.3.0 software. The biggest change is a new freedom-boot using the 8.3.0 kernel image.

And I fixed the u-boot link (again). It's getting mangled by XDA's URL handling.
[8.9" Kindle Fire HD Android Development] Hashcode:
Also, for those looking to flash the stock 8.3.0 ROM pre-rooted w/ Superuser.apk, you can grab it here:

http://xdaforums.com/showthread.php?t=2142241
[8.9" Kindle Fire HD Android Development] arda99:
Question: if I have 8.1.4 with TWRP already, do I need to upgrade with the new freedom-boot image? or is the old 8.1.4 setup compatible with 8.3.0 flashable zip?
[8.9" Kindle Fire HD Android Development] Hashcode:
The 8.3.0 flash .zip includes the freedom-boot-8.3.0.img file when you flash it.
[8.9" Kindle Fire HD Android Development] praed0r:
Finally managed to brick my first device - downloading a fastboot SRT image to try and get back on track - I've no ADB now - only fastboot....damn!!
[8.9" Kindle Fire HD Android Development] Hashcode:
Updated the 2nd-bootloader install w/ a new TWRP file for version 2.4.4.0.

And, if you already have the 2nd-bootloader installed, you can jump to this thread and install only the TWRP update:

http://xdaforums.com/showthread.php?t=2218802
[8.9" Kindle Fire HD Android Development] rwideman:
I am having the darnedest time with rooting and what not. My understanding is this walk through requires root. Correct?

If so, I have tried using these 2 methods:

Root_with_Restore_by_Bin4ry_v25

[ROOT][HOW TO] Root the Kindle Fire HD and 2 with Windows - Noob (Simple) Version

The Noob method is specific to 8.1.3 but others have mentioned it works for them on 8.3 as well. I am not getting root no matter which method. I have noticed that running Busybox_Installer_4.1.apk it does state I have root but when using suchecker.apk it states I do not. I also never get a request for root access by any app from Superuser.apk.

I am currently restored to 8.3. Any help would be appreciated.
[8.9" Kindle Fire HD Android Development] lizzord30:
Is it posible to access the sdcard folder from using usb mount? I do usb mount and nothing shows up on my computer with it connected to usb. Am I doing something wrong? on my phone with CWM the usb mount is more reliable then when in android but TWRP seams not so much... Thanks for the help!
[8.9" Kindle Fire HD Android Development] rwideman:
I think part of my problem is I cant get into fastboot or get it to work.

The command:

fastboot -i 0x1949 getvar product

never displays anything and just sits, the KFHD just keeps booting into normal mode.

I have verified the KFHD serial does show up using "adb devices".

Suggestions?
[8.9" Kindle Fire HD Android Development] Hashcode:
The /data/media mounts are not sharable in TWRP atm. (This is what the /sdcard actually is).
[8.9" Kindle Fire HD Android Development] Hawk600:
Thank you very much HashCode! Your work is invaluable!

I followed (very carefully) the OP steps and everything went smooth until I decided to install the latest CM10.

Flashing CM10 was fine using the updated TWARP however I am now getting a Cyanogemod boot loop.

Tried to clean Dalvik and cache but no luck!

Any suggestions guys?

Thanks!!!
[8.9" Kindle Fire HD Android Development] Hashcode:
Yes, you will need to double check that your fastboot driver is detecting correctly. It's different between linux/windows. Google is your friend. :)
[8.9" Kindle Fire HD Android Development] Hawk600:
Hashcode, I think I need your help now, :)

Because I wasn't able to boot into CM10, I tried to restore the backup I made with TWARP but it just failed and rebooted, than I got stuck in the Blue Fire logo. Booted back to TWARP and tried CM10 again but still spinning logo!

Could you please tell me the fastboot commands to restore 8.30 or 8.14 back so I can start over?

Thank you!

NEVER MIND!

Just got CM10 working after many tries between restore Amazon 8.30 rooted and reinstall CM10.

I got it working after doing a Factory reset in TWARP!

It looks like just cleaning cache and Dalvik wasn't enough.

Thanks again Hashcode!
[8.9" Kindle Fire HD Android Development] rwideman:
Hashcode,

I have installed the drivers several times from several different locations. I do have Kindle Fire > Android Composite ADB Interface listed in Device Manager.

Searching google sends me to old versions of KFU that didnt work either as it states waiting for device.
[8.9" Kindle Fire HD Android Development] soupmagnet:
Considering this is a Development forum, and your question falls more under the "help & troubleshooting" category, you would probably get your problem solved much faster if you ask your question in the KFHD 8.9 Q&A Help & Troubleshooting forum, located here.
[8.9" Kindle Fire HD Android Development] rwideman:
To let you know what has occurred I have root now. I did the following:

Root_with_Restore_by_Bin4ry_v25, doing this 2x to root device (root not working)

KFFirstAide64, also doing 2x to root device and root working validated via suchecker

fastboot still not working......

Thanks

rwideman
[8.9" Kindle Fire HD Android Development] jeevas.v:
Tried directly flashing twrp on 8.3.0 and ended with a bricked device.

Tried directly flashing twrp on 8.3.0 and ended with a bricked device with the the Orange kindle fire logo staying endlessly.

I can enter fastboot, but that is it.

Device: Kindle fire HD 8.9 WiFI only 16GB

OS: Ubuntu/Fedora

ADB and Fastboot from latest Android SDK

Need help urgently.

I don't have any recovery files with me. Please help