[BOOTLOADER] 2nd-bootloader for Custom ROMs on KFireHD 8.9 [06/24 CM12.1/TWRP 2.8.x]

Search This thread

rwideman

Senior Member
Aug 20, 2010
96
3
It started the upgrade when I entered the amazon credentials for registering the device. I canceled it and retried the twrp install and it worked.

So now I have twrp and nothing else. Then to instal the Hashcode's cm10.1 I used the adb sideload two times. First to install the rom-zip file and then to install the gapps-zip.

So now I have functional cm10.1 kfhd8.9". Thanks for your helponce again.

Mine updated, without signing into my account, when I first turned on WiFi and connected.
 

ryanb4614

Member
Jul 9, 2008
12
0
Hello. I just received my kindle fire hd 8.9" software 8.3. I was trying to see what I can do with the device. I am very new to tablets. I did a root with the binary tool which went great... Then I installed KindleFree which automatically installed google apps, Apex Launcher, SuperUser etc.
I figured I can just do a factory reset and everything would be gone. Well its not. The super user I still listed along with the other google apps, market place, etc.
I want it back to the factory state. How can I achieve this? I tried following the instructions on here but I cannot get anywhere.
I open CMD:
adb devices
Unrecognized command.
I do not have this directory:
C:\android-sdk\platform-tools
I downloaded: Android SDK and run the setup nothing happens.

I have windows 7

PLEASE HELP, i just don't want to brick this tablet and have it back to how it was!
 

apd

Senior Member
Dec 8, 2006
1,532
239
London
Xiaomi Mi 11 Ultra
Hello. I just received my kindle fire hd 8.9" software 8.3. I was trying to see what I can do with the device. I am very new to tablets. I did a root with the binary tool which went great... Then I installed KindleFree which automatically installed google apps, Apex Launcher, SuperUser etc.
I figured I can just do a factory reset and everything would be gone. Well its not. The super user I still listed along with the other google apps, market place, etc.
I want it back to the factory state. How can I achieve this? I tried following the instructions on here but I cannot get anywhere.
I open CMD:
adb devices
Unrecognized command.
I do not have this directory:
C:\android-sdk\platform-tools
I downloaded: Android SDK and run the setup nothing happens.

I have windows 7

PLEASE HELP, i just don't want to brick this tablet and have it back to how it was!

Are you running the ADB commands in a command line from the directory where the sdk / adb is situated (android sdk usually installed to windows 7 in C:\Users\USERNAME\AppData\Local\Android\android-sdk\platform-tools where USERNAME is your account name) or have you added that path to the Environment variables? If not, your computer won't be able to find adb
 

ryanb4614

Member
Jul 9, 2008
12
0
Well now I have a brick device. I just want this back to stock, how it was when I first opened the box. I can get the fastboot mode screen up, if I do not go into fastboot it just stays on the ORANGE kindle logo. My computer also is making a sound like normal when I am plugging it into the USB to my computer but is not showing up under "my computer" HELP!!!!
 
Last edited:

lizzord30

Senior Member
Feb 20, 2013
65
20
Sorry this is slightly off topic but when you make the image backups is their a way to backup the data partition also? If so what is the command! Thank you!!
 

soupmagnet

Retired Forum Moderator
Jan 7, 2012
3,990
2,587
Austin, TX
Google Pixel 6
Sorry this is slightly off topic but when you make the image backups is their a way to backup the data partition also? If so what is the command! Thank you!!
You'll need a partition on the device large enough to hold the image. Considering the data partition is the largest, it probably won't work ;)

You may be able to use adb to pull the contents of your data partition and create a disk image from that, but because of its size you'll never be able to flash it in fastboot.
 
Last edited:

Thepooch

Senior Member
Mar 31, 2012
2,490
1,051
Well now I have a brick device. I just want this back to stock, how it was when I first opened the box. I can get the fastboot mode screen up, if I do not go into fastboot it just stays on the ORANGE kindle logo. My computer also is making a sound like normal when I am plugging it into the USB to my computer but is not showing up under "my computer" HELP!!!!
That's due to improperly installing the stack file Soupmagnet has a easy fix for it but you need to run Linux on a live USB. Your not permanently bricked so relax. Keep it powered off till someone can help you fix it like me or Soupmagnet if you can catch us online
 

lokadero

Member
Jan 25, 2010
25
1
Chicago
thanks for the detailed tutorial although i had many problems as i had no experiences with adb.

i first tried to get 2nd bootloader using kindle firstaide after losing root with 8.3.0 update but that got me to red wipe screen.
then i used that program to restore to 8.1.4, then came here to try this manually.
i skipped loading 8.1.4 bootloader thinking i already have 8.1.4 restored, so why should i.
i got red wipe screen again.
well, i did not skip the 8.1.4 bootloader process this time and finally got it.

CM10.1 is great!
 

irsmurfette

Member
Nov 12, 2010
11
0
Where to put files...

I'm a total newb. I have no idea where to save this stuff so that the commands actually work instead of just telling me the files can't be found. Sorry for being such a newbie newb.
 

rwideman

Senior Member
Aug 20, 2010
96
3
Finally got cm10 installed after using soupkit and finishing with linux to get TWRP and cm installed. Tablets never looked so gorgeous

Sent from my ADR6425LVW using xda premium
 

rha_december

Senior Member
Jan 29, 2012
135
11
Fayetteville
I've followed the instructions word for word... like 3 times, and every time I keep getting into a loop and it keeps booting into TWRP :(
Then I'd have to start all over again.
 

soupmagnet

Retired Forum Moderator
Jan 7, 2012
3,990
2,587
Austin, TX
Google Pixel 6
I've followed the instructions word for word... like 3 times, and every time I keep getting into a loop and it keeps booting into TWRP :(
Then I'd have to start all over again.
Use fastboot to restore your saved partition images (8.14 bootloader, stock boot.img, stock recovery.img, & stock system.img), then try again

Sent from my Amazon Kindle Fire HD using Tapatalk 2
 

DesignGrits

Senior Member
Apr 10, 2011
4,629
1,124
Seattle
I am stuck on

"STEP 4.5: APPLIES IF YOU ARE ON SOFTWARE VERSION 8.3.0 OR GREATER"

because when I run cmd with the following command while the kindle is off and then connect usb and I reboot it, the device does not seem to go in to fastboot.

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

I have Android SDK installed with all of the tools and android 4.2.2/4.1.2 packages installed. I also am running cmd directly from the "sdk/platform-tools" folder where I have all my files.

I am running windows 8 with a Kindle Fire HD 8.9 on 8.3.0 firmware. I am currently installing the SDK on another computer with windows 7 to see if their is an issue with the OS but I doubt that since I have used cmd for rooting other devices.

Any tricks on getting the device to fastboot so I can flash the bin and img file?
 

jeevas.v

Member
Jun 24, 2009
29
6
You have to first issue the command before connecting your kindle to your PC. Once the command is issued it will wait for the fastboot device. Then you connect the device (which is in switched off state) to PC.

Sent from my Amazon Kindle Fire HD 8.9 using xda app-developers app
 
Last edited:

DesignGrits

Senior Member
Apr 10, 2011
4,629
1,124
Seattle
You have first issue the command before connecting your kindle to your PC. Once the command is issued it will wait for the fastboot device. Then you connect the device whichnos already switched off to PC.

Sent from my Amazon Kindle Fire HD using xda app-developers app

I updated my post. I had it disconnected from the kindle before, I then powered off the device, ran the command, and then connected it to kindle....kindle auto boots and goes to lock screen....cmd still says "waiting for device"
 

jeevas.v

Member
Jun 24, 2009
29
6
Frankly speakly I never used windows in any of my personal computers since 2006. The first thing I would do as soon as I get a new PC to liberate it:) . coming to your problem, yes it looks like a windows driver/permission issue. If you have non win8 PC you can easily try living distro like Ubuntu. You need only he fast boot binary. No need of the full SDK.

Sent from my Amazon Kindle Fire HD using xda app-developers app
 

DesignGrits

Senior Member
Apr 10, 2011
4,629
1,124
Seattle
Just finished trying window 7 compute and it didn't work either. I read here "http://xdaforums.com/showthread.php?t=2217299" that these guys were able to verify this process for downgrading to 8.14 but after that I would still need to flash the freedom boot and recovery. I might have to take it to work with me or something and test on another computer over there. So weird, I have debugging enabled and unknown sources.
 

soupmagnet

Retired Forum Moderator
Jan 7, 2012
3,990
2,587
Austin, TX
Google Pixel 6
Just finished trying window 7 compute and it didn't work either. I read here "http://xdaforums.com/showthread.php?t=2217299" that these guys were able to verify this process for downgrading to 8.14 but after that I would still need to flash the freedom boot and recovery. I might have to take it to work with me or something and test on another computer over there. So weird, I have debugging enabled and unknown sources.
USB debugging and "unknown sources" has nothing to do with how your device receives fastboot commands. What are you using to install your drivers?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 91
    Introducing: Kindle Fire 2nd-bootloader + TWRP 2.8.x.x for the Kindle Fire HD 8.9

    *** USE AT YOUR OWN RISK! WHILE I TRY MY BEST TO PROVIDE WORKING KERNELS/ROMS, I AM NOT RESPONSIBLE IF THIS SOFTWARE OR ANYTHING I'VE WORKED ON SUDDENLY FRIES YOUR DEVICE. ***

    ** THESE FILES WILL ONLY WORK ON A KINDLE FIRE HD 8.9. DO NOT ATTEMPT TO USE THESE FILES ON ANY OTHER DEVICE. **

    ** WHEN MODDING THE KFIRE HD YOU SHOULD HAVE WORKING FASTBOOT DRIVERS ON YOUR PC. **


    FASTBOOT CABLES ARE NOT REQUIRED FOR USING FASTBOOT MODE ON THE KINDLE FIRE HD 8.9.
    DOWNLOAD THE ANDROID SDK AND GO FROM THERE.
    POSSIBLE ALSO THAT USING A FASTBOOT CABLE ON THE 8.9 WILL CAUSE DAMAGE.

    http://developer.android.com/sdk/index.html

    MAC USERS: USEFUL LINKS
    http://xdaforums.com/showpost.php?p=41199927&postcount=230

    Q: How do I know if my fastboot works?
    A: With the Kindle powered down, type the following command into a cmd/terminal window on your PC (should return with: < waiting for device> ):
    fastboot -i 0x1949 getvar product

    Then connect USB to the Kindle and reboot. It *SHOULD* show a Fastboot screen and your terminal window should show something like:
    product: Jem-PVT-Prod-04

    Type this to reboot out of fastboot mode:
    fastboot -i 0x1949 reboot


    ** IF YOU HAVE QUESTIONS, RE-READ THROUGH THE THREAD FOR ANSWERS. WHEN YOU'RE ABSOLUTELY SURE NO ONE HAS ASKED YOUR QUESTION, GO AHEAD AND RE-READ THE THREAD AGAIN AND USE THE SEARCH FEATURE. THEN POST YOUR QUESTION IF YOU STILL CAN'T FIND THE ANSWER **



    INSTRUCTIONS FOR INSTALLING A 2ND-BOOTLOADER TO LOAD CUSTOM KERNELS / ROMS / RECOVERY:
    *** BE SURE YOU HAVE A GOOD CHARGE ON THE DEVICE ***

    STEP 1. Backup your stock partitions to your own HD for later if you need disaster recovery:
    Code:
    adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
    adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/stock-boot.img"
    adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/stock-recovery.img"
    adb shell su -c "dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/stock-system.img" # This will take a few minutes
    adb pull /sdcard/boot0block.img
    adb pull /sdcard/stock-boot.img
    adb pull /sdcard/stock-recovery.img
    adb pull /sdcard/stock-system.img # This will take a few minutes
    Take those files and put them somewhere safe.

    **** MAC USERS MAY NEED TO SPARSE THE FILES FOR RE-FLASHING TO THE DEVICE. I NEED A MAC USER TO PROBABLY WORK THROUGH THAT PROCESS AND I CAN POST BACKUP COPIES OF THE STOCK PARTITIONS FOR DISASTER RECOVERY ****



    STEP 2: Download the files you will need to install 2nd-bootloader, TWRP and CM:

    ON THE FOLLOWING DEV-HOST LINKS
    USE THE BLUE "DOWNLOAD NOW" BUTTON
    -- DO NOT INSTALL AN EXECUTABLE DOWNLOADER TO YOUR SYSTEM! --
    I'LL LOOK FOR A BETTER HOST WHEN I GET MORE TIME.

    1. Stack override file:
      Mirror 1: Download "stack" from Dev-Host
    2. [12/09] kfhd8-freedom-boot-8.4.6.img (USED ONLY THE FIRST TIME -- .zip files will have their own boot.img's from now on):
      Mirror 1: Download "kfhd8-freedom-boot-8.4.6.img" from Dev-Host
      md5sum: 8374cf88e75abda8c374044a1f0daa5f
    3. [06/24] TWRP 2.8.7.0 recovery flash Image
      Mirror 1: Download TWRP from Dev-Host
      md5sum: a0c7533fd853849184850580350abd18
    4. CM-12.1 for the Kindle Fire HD 8.9 (choose the latest version from):
      Mirror 1: Downloads CM
    5. Google Apps from Android File Host:
      https://www.androidfilehost.com/?w=files&flid=25361 (Use 5.1 version!)
    6. Download the older 8.1.4 bootloader file and flash to your device via fastboot:
      Mirror 1: Download bootloader from Dev-Host
      md5sum a56f24c0c01aaea4bf408bc710faadaa
      (You SHOULD check this before using fastboot -- downloads CAN be corrupted)
    Place the CM-12.1 ROM and the gapps .zip on your device in the /sdcard area


    STEP 3. Install the stack override in /system:
    ADB commands entered while booted up into STOCK *rooted* Amazon Kindle OS -- May need to enable ADB debugging in Settings:
    [2013-08-21] edited the location where stack is placed on device due to permissions changes
    Code:
    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"

    STEP 4. Stop the auto recovery update script (this file may or may not be present):
    Code:
    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"

    STEP 5:
    [ With the device powered off: Issue the following commands into your command/terminal window on your PC. Start with the first command and press enter. Then connect USB to the Kindle and power on ]


    Code:
    fastboot -i 0x1949 flash bootloader kfhd8-u-boot-prod-8.1.4.bin
    fastboot -i 0x1949 flash boot kfhd8-freedom-boot-8.4.6.img
    fastboot -i 0x1949 flash recovery kfhd8-twrp-2.8.7.0-recovery.img
    fastboot -i 0x1949 reboot

    *DONT RE-FLASH FREEDOM-BOOT.IMG LATER AFTER FLASHING CUSTOM ROMS -- IT'S FOR STOCK AMAZON OS ONLY / FIRST INSTALL ONLY*

    ** If everything was done correctly your Kindle will reboot and you will at first see the normal Kindle Fire ORANGE logo and then it will fade and come back as a BLUE logo. **

    TO ENTER RECOVERY:
    Press the left volume button (volume up) while the logo is still YELLOW and keep pressing until the logo turns BLUE. Wait a moment and you should enter recovery.


    STEP 6:
    CM-12.1 AND GAPPS INSTALLATION:
    • (OPTIONAL) Make a backup by selecting "Backup" and then slide your finger to the right on the "Swipe to Back Up"
    • Once complete use the pentagon "Home" icon in the upper right corner of the screen (next to the back arrow and terminal icon)
    • Now, select "Wipe"
    • Swipe the "Swipe to Factory Reset"
    • Use the "Home" icon
    • Select "Install"
    • Browse to the location on your device where you saved the CM-11.0 / GAPPS .ZIP files
    • Select the CM12.1 ZIP file in the list by touching it, then confirm it says the name of the CM-12.1 .ZIP file on the next screen under "File to flash:"
    • Select "Add More Zips"
    • Select the GAPPS ZIP file in the list by touching it -- make sure it says the name of the .ZIP again under "File to flash:"
    • Swipe the "Swipe to Confirm Flash", and wait for it to finish.
    • If the screen is blank at any time you can hit the power button to "wake up" the device
    • Once the flash is done, you'll see a "Home" and "Reboot" buttons at the bottom of the screen
    • Select "Reboot"

    CONGRATULATIONS YOU NOW HAVE THE ABILITY TO INSTALL CUSTOM KERNELS / RECOVERY AND ROMS.


    FLASHING BACK TO STOCK:
    ** FIND THE FILES WE BACKED UP IN STEP #1: ** OR Follow this thread's instructions:
    http://xdaforums.com/showthread.php?t=2011126


    **** MAC USERS MAY NEED TO SPARSE THE FILES FOR RE-FLASHING TO THE DEVICE. I NEED A MAC USER TO PROBABLY WORK THROUGH THAT PROCESS AND I CAN POST BACKUP COPIES OF THE STOCK PARTITIONS FOR DISASTER RECOVERY ****


    Once you have these files (we'll name them boot.img/recovery.img and system.img for the purpose of these instructions, but they could be different on your system).

    Plug in your fastboot cable and reboot so that you see the fastboot screen and enter the following commands:
    Code:
    fastboot -i 0x1949 flash boot [B]boot.img[/B]
    fastboot -i 0x1949 flash recovery [B]recovery.img[/B]
    fastboot -i 0x1949 flash system [B]system.img[/B] # This one will take a few minutes
    fastboot -i 0x1949 reboot


    THANKS TO:
    • fattire for finding the original bootloader exploit
    • verygreen for doing some initial work on the 2nd-bootloader and fixing bugs (and letting me copy some of his bootloader installation instructions)
    10
    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?
    6
    Re: [BOOTLOADER] Install 2nd-bootloader for Custom ROMs on KFireHD 8.9

    I forgot to put up the stock flash .zip that I put together. I'll try and get it uploaded tonight.

    Sent from my DROID RAZR HD using Tapatalk 2
    6
    Added a stock Amazon OS flash .zip (8.1.4) for use in TWRP here:
    http://xdaforums.com/showthread.php?t=2142241

    FOR USE ONCE 2ND-BOOTLOADER / TWRP ARE INSTALLED