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

Search This thread

mtm88001

Member
Sep 24, 2010
24
1
Arkansas
No Recovery

Can't get my Kindle to load up into recovery..

did the fastboot commands fine... get the fade to blue kindle logo

I hold the + volume down but nothing, just skips back to orange logo and boot into stock os.

Thanks for any help,

Update: was able to get into recovery by using adb reboot recovery
 
Last edited:

FroyoShark

Senior Member
Sep 12, 2011
323
70
Minnesota
youtube.com
Can't get my Kindle to load up into recovery..

did the fastboot commands fine... get the fade to blue kindle logo

I hold the + volume down but nothing, just skips back to orange logo and boot into stock os.

Thanks for any help,

Update: was able to get into recovery by using adb reboot recovery

You need to hold volume up, not down. And make sure you start holding it right when the first orange logo shows.
 

ZilverZurfarn

Senior Member
Feb 11, 2009
970
23
Göteborg
Perhaps a stupid question, but: If I go thru with this, will it boot to stock Kindle OS after performin step 1 to 5, or do I have to go to recovery and flash something like CM?
Also - The first step
Code:
adb pull /dev/block/platform/omap/omap_hsmmc.1/by-name/boot
adb pull /dev/block/platform/omap/omap_hsmmc.1/by-name/recovery
adb pull /dev/block/platform/omap/omap_hsmmc.1/by-name/system # This will take a few minutes
didn't work for me under Windows.

However,
Code:
adb shell su -c 'dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/recovery.img'
adb shell su -c 'dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/boot.img'
adb shell su -c 'dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/system.img'
(found at http://xdaforums.com/showthread.php?t=2100963&page=3)
and then pulling the .img files using adb worked.
 
  • Like
Reactions: Thepooch

slacka-vt

Senior Member
Nov 17, 2009
371
130
Southern Vermont
Perhaps a stupid question, but: If I go thru with this, will it boot to stock Kindle OS after performin step 1 to 5, or do I have to go to recovery and flash something like CM?
Also - The first step
Code:
adb pull /dev/block/platform/omap/omap_hsmmc.1/by-name/boot
adb pull /dev/block/platform/omap/omap_hsmmc.1/by-name/recovery
adb pull /dev/block/platform/omap/omap_hsmmc.1/by-name/system # This will take a few minutes
didn't work for me under Windows.

However,
Code:
adb shell su -c 'dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/recovery of=/sdcard/recovery.img'
adb shell su -c 'dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/boot of=/sdcard/boot.img'
adb shell su -c 'dd if=/dev/block/platform/omap/omap_hsmmc.1/by-name/system of=/sdcard/system.img'
(found at http://xdaforums.com/showthread.php?t=2100963&page=3)
and then pulling the .img files using adb worked.

If you successfully pulled boot.img, recovery.img and system.img from the stock ROM, you simply need to execute the following commands from a terminal -this is assuming the boot.img , recovery.img and system.img files are in your working directory and that your Kindle is on the bootloader screen and your "ADB Composite USB Device" driver is working correctly.

Code:
adb flash boot boot.img -i 0x1949
adb flash recovery recovery.img -i 0x1949
adb flash system system.img -i 0x1949
adb reboot -i 0x1949
 

ZilverZurfarn

Senior Member
Feb 11, 2009
970
23
Göteborg
If you successfully pulled boot.img, recovery.img and system.img from the stock ROM, you simply need to execute the following commands from a terminal -this is assuming the boot.img , recovery.img and system.img files are in your working directory and that your Kindle is on the bootloader screen and your "ADB Composite USB Device" driver is working correctly.

Code:
adb flash boot boot.img -i 0x1949
adb flash recovery recovery.img -i 0x1949
adb flash system system.img -i 0x1949
adb reboot -i 0x1949

Shouldn't that rather be
Code:
fastboot flash boot boot.img -i 0x1949
fastboot flash recovery recovery.img -i 0x1949
fastboot flash system system.img -i 0x1949
fastboot reboot -i 0x1949
?
Anyway - Wouldn't that completely undo the installation of the custom recovery? I mean - I'm reflashing the stock recovery and boot back, right?
What I'd like to accomplish is to prepare my Kindle for the day Hashcode has a fully working CM build so I just can boot into recovery and flash cm10.1.zip as soon as it's complete. In short: To have 2nd boot + twrp recovery ready for the day CM is fully operational.
 
Last edited:

mdblaze

Senior Member
Mar 25, 2009
85
46
Re: [BOOTLOADER] Install 2nd-bootloader for Custom ROMs on KFireHD 8.9

When you flash the files back to the kindle, you are flashing the downloaded boot loader files. Not the stock amazon files you backed up.
 

mdblaze

Senior Member
Mar 25, 2009
85
46
So basically, it's enough to flash my stock, backed up, system.img (as I have already flashed 2nd boot + twrp recovery in step 5) ?

I'm sorry, I failed to read your posts earlier in the thread. After step 5 you are finished, unless you are ready to flash a new rom or go back to full stock with no bypassed bootloader. The steps after step 5 are only if you want to return to the stock Amazon software.

Once you are done with step 5, you should have an HD with twrp installed and amazon software.
 

Hashcode

Senior Recognized Developer
Sep 3, 2011
3,424
23,730
Re: [BOOTLOADER] Install 2nd-bootloader for Custom ROMs on KFireHD 8.9

my computer took a dive on me and ive been rebuilding it over the last few days.

ill try and clean up the instructions a bit with some of the recommendations.

Sent from my DROID RAZR HD using Tapatalk 2
 

Thepooch

Senior Member
Mar 31, 2012
2,490
1,051
Out of curiosity can this twrp facilitate the flashing of update.zip for reverting to complete stock or will that mess all kinds of things up?
Edit: I assume there is no answer to this question yet. Okay thanks.
 
Last edited:

FroyoShark

Senior Member
Sep 12, 2011
323
70
Minnesota
youtube.com
Out of curiosity can this twrp facilitate the flashing of update.zip for reverting to complete stock or will that mess all kinds of things up?
Edit: I assume there is no answer to this question yet. Okay thanks.

I haven't tried it, but I don't see why it wouldn't work. Give it a shot, the worst that can happen is it won't boot, but make a backup first :)
 
  • Like
Reactions: Thepooch

Thepooch

Senior Member
Mar 31, 2012
2,490
1,051
Unfortunately the process wipes the 2nd bootloader and recovery rendering a backup useless so if the process were to fail for some reason you would be up **** crick without a paddle that's why I wanted confirmation. It sounds like Hashcode is going to make a stock flashable so we will see what he comes up with. Thank you Hash!!
 

FroyoShark

Senior Member
Sep 12, 2011
323
70
Minnesota
youtube.com
Unfortunately the process wipes the 2nd bootloader and recovery rendering a backup useless so if the process were to fail for some reason you would be up **** crick without a paddle that's why I wanted confirmation. It sounds like Hashcode is going to make a stock flashable so we will see what he comes up with. Thank you Hash!!

If it messes up the bootloader, you can always reinstall it using fastboot. Backups are saved on the internal memory/sdcard, so it should remain when you install TWRP again.
 

Thepooch

Senior Member
Mar 31, 2012
2,490
1,051
That's true but irreparable damage would be my fear I'm very familiar with the first gen kindle this ones just a few days old I'm still testing the water knowledge is the key. ;)
 

Hashcode

Senior Recognized Developer
Sep 3, 2011
3,424
23,730
Yep, I have a flashable .zip for 8.1.4 that I'm testing. Users can use it to restore the Amazon OS + root/Superuser and busybox while keeping the 2nd-bootloader/stack and TWRP in tact.
 

5l4Y

Member
Feb 5, 2013
14
0
well, it was a three hour epic battle but I finally got the boot and recovery installed. getting into fastboot and having the device recognized was pretty darn hard. i found using the recovery tool found here: http://xdaforums.com/showthread.php?t=2011126 to be invaluable for getting into fastboot with a non fastboot cable. Also, eveytime I tried to flash the recovery, i kept getting an error complaining about the file size being too big to upload to my device. oddly enough, I downloaded the TWRP recovery once more and renamed it "recovery.img" and was able to flash. not sure if that was coincidence. another trick is to keep device manager open, in fast boot, the kindle will show up as "Jem -XXX-XXX" and you need to use the "Android ADB Composite USB" driver. right now I'm in recovery and about to flash CM10.1 BUT, ONE IMPORTANT QUESTION - WILL WIPING PARTITIONS DO IRREVERSIBLE DAMAGE ? sorry for yelling and thanks so much for your hard work -it's greatly appreciated.

Hi, I have similiar problem to yours. I rooted KF using bin4ry tool http://xdaforums.com/showthread.php?t=1996873 and used Stericsson 's Kindlefree. I don't have factory cable. Now I can't get into flashboot using Hascode method, but I can get into it using Onemeila's KFHD_SRTv2.1 when KF is ON. The kindle will show up as "Jem -XXX-XXX" without drivers in device manager and I can't find appropriate driver to use it. You said about "Android ADB Composite USB" driver. I tried to use on from adt-bundle-windows-x86_64, but it didn't matched. What driver exactly did you used or where I went wrong?
 

Born2BeMild

Senior Member
Mar 5, 2011
89
8
so I got stuck at the kindle fire boot screen, and I didn't make a backup of my recovery(my fault entirely). I can still get into fastboot, but what's the best course of action I can take from here?

thanks.
 

Thepooch

Senior Member
Mar 31, 2012
2,490
1,051
so I got stuck at the kindle fire boot screen, and I didn't make a backup of my recovery(my fault entirely). I can still get into fastboot, but what's the best course of action I can take from here?

thanks.
You should still be able to get it into fastboot and
Code:
 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
Then when Hashcode gets done with update.zip
Code:
 adb push update.zip/sdcard/
while in recovery and flash it after some wipes, then select reboot system. Keep it charged till then. Good luck
 
Last edited:

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