[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
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.
 

lizzord30

Senior Member
Feb 20, 2013
65
20
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!
 

rwideman

Senior Member
Aug 20, 2010
96
3
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?
 

Hashcode

Senior Recognized Developer
Sep 3, 2011
3,424
23,730
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!

The /data/media mounts are not sharable in TWRP atm. (This is what the /sdcard actually is).
 

Hawk600

Senior Member
Sep 24, 2010
133
12
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!!!
 

Hashcode

Senior Recognized Developer
Sep 3, 2011
3,424
23,730
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?

Yes, you will need to double check that your fastboot driver is detecting correctly. It's different between linux/windows. Google is your friend. :)
 

Hawk600

Senior Member
Sep 24, 2010
133
12
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!
 
Last edited:
  • Like
Reactions: noobapotomus

rwideman

Senior Member
Aug 20, 2010
96
3
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.
 

soupmagnet

Retired Forum Moderator
Jan 7, 2012
3,990
2,587
Austin, TX
Google Pixel 6
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.
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.
 

rwideman

Senior Member
Aug 20, 2010
96
3
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
 

jeevas.v

Member
Jun 24, 2009
29
6
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
 

soupmagnet

Retired Forum Moderator
Jan 7, 2012
3,990
2,587
Austin, TX
Google Pixel 6
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
I put together a restore package/script for the KFHD 8.9 to help another user dealing with the same problem, but it is version 8.1.4. It has all of the necessary partition images (including 8.1.4 bootloader), and checks the md5sums of those images before installing. It will restore your device but it will be up to you to figure out how to get back to 8.3.0, if that's what you really want to do.

It is rooted, of course, and already has GPlay installed, ads removed, and OTA disabled, but does not have TWRP or the 2nd bootloader included.

http://www.adrive.com/public/xvZeWC/KFHD8.9.restore.zip

Using Linux, put the device in fastboot, and just unzip and run the "restore.sh" from its location.
 
Last edited:

jeevas.v

Member
Jun 24, 2009
29
6
Thanks a lot. This saved my day.

I put together a restore package/script for the KFHD 8.9 to help another user dealing with the same problem, but it is version 8.1.4. It has all of the necessary partition images (including 8.1.4 bootloader), and checks the md5sums of those images before installing. It will restore your device but it will be up to you to figure out how to get back to 8.3.0, if that's what you really want to do.

It is rooted, of course, and already has GPlay installed, ads removed, and OTA disabled, but does not have TWRP or the 2nd bootloader included.



Using Linux, put the device in fastboot, and just unzip and run the "restore.sh" from its location.

No I don't want to go to 8.3.0. I want to install TWRP and finally want to switch to CM10.1. After restoring using your recovery images it is automatically trying to update. I'm worried if it will be upgraded to 8.3.0. Let me see.

Thanks a lot once again.... This recovery image is the most essential tool for tinkering.

If i can get a package like this for the CM10.1 that is waht I would say easy installation.
 

soupmagnet

Retired Forum Moderator
Jan 7, 2012
3,990
2,587
Austin, TX
Google Pixel 6
After restoring using your recovery images it is automatically trying to update.
That is very interesting. I tested it on my own device and neither I nor the person I originally made that kit for has had an update or anything of the sort. If you're still getting updates then I'm at a loss for how to completely stop them.
 
  • Like
Reactions: stuckbyeverything

jeevas.v

Member
Jun 24, 2009
29
6
That is very interesting. I tested it on my own device and neither I nor the person I originally made that kit for has had an update or anything of the sort. If you're still getting updates then I'm at a loss for how to completely stop them.
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.
 
  • Like
Reactions: soupmagnet

Antob125

Senior Member
May 23, 2011
386
52
Do you need to be rooted in order to install this bootloader?

Sent from my Galaxy Nexus
 

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