Post Reply

[BOOTLOADER] 2nd-Bootloader/Recovery unlock process for KFire 2 [TWRP 2.6.3.0]

OP Hashcode

15th January 2013, 05:53 PM   |  #1  
Hashcode's Avatar
OP Recognized Developer
Thanks Meter: 22,465
 
3,232 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Introducing: Kindle Fire 2nd-bootloader + TWRP 2.6.3.0 for the Kindle Fire 2nd GEN

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


*** READ CAREFULLY BEFORE DOING ANYTHING ***
*** Kindle Fire 1st-gen ROMs/KERNELS are *NOT* compatible with the Kindle Fire 2. Please only flash ROMs/KERNELS that are made for the Kindle Fire 2. ***



** 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 **


** WHEN MOVING FROM AMAZON OS TO CM10.1 IN TWRP: "WIPE" -> "SYSTEM" AND "FACTORY RESET" TO CLEAR SYSTEM/DATA/CACHE. YOUR APPS FROM AMAZON ICS AREN'T COMPATIBLE. IF NOT YOU'LL LOOP ON THE CM10.1 BOOT ANIMATION **


[03/27] NEW support thread for OFFICIAL CM on the Otter2 (Kindle Fire 2):
http://forum.xda-developers.com/show....php?t=2209995


** YOU SHOULD HAVE A WORKING FASTBOOT CABLE + FASTBOOT DRIVERS/ACCESS ON YOUR PC. **

Q: How do I know if my fastboot works?
A: Plug the cable into your device and then the computer. Reboot the Kindle. It *SHOULD* show a Fastboot screen. Once at the screen use this command on your computer:
fastboot -i 0x1949 devices
You should see something like this:
0123456789ABCDEF

Here's 1 website you can purchase a FASTBOOT adapter from (works with your normal USB cable)
http://shop.teamblackhat.info/Factor...s-motadapt.htm
** I don't make any commission or fee from the sales of these devices, I just know they have them on stock most of the time and ship in a reasonable time frame unlike the Chinese variants found on ebay.

If you do NOT see this, then make sure you have the SDK installed correctly and you have the right setup for fastboot on your PC before proceeding.


*** BE SURE YOU HAVE A GOOD CHARGE ON THE DEVICE ***


INITIAL SETUP INSTRUCTIONS (1st TIME ONLY) FOR 2ND-BOOTLOADER + TeamWinRecoveryProject INSTALL:

STEP 1. Backup your stock partitions to your own HD for later if you need disaster recovery:
Code:
adb pull /dev/block/mmcblk0boot0
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
Take those files and put them somewhere safe.


STEP 2: Download the files you will need to install 2nd-bootloader, TWRP and CM10.1:
  1. Stack override file:
    http://goo.im/devs/Hashcode/otter2/stack
  2. [12/09] otter2-freedom-boot-10.4.6.img (USED ONLY THE FIRST TIME -- .zip files will have their own boot.img's from now on):
    http://goo.im/devs/Hashcode/otter2/o...oot-10.4.6.img
    md5sum: 80f9b9ba80910de361463560f86f315a
  3. [09/03] TeamWin Recovery 2.6.3.0:
    http://goo.im/devs/Hashcode/otter2/o...0-recovery.img
    md5sum: a66a8cbab92fd5daaa85f6303e9cc0c3
  4. older 10.2.4 bootloader file and flash to your device via fastboot:
    http://goo.im/devs/Hashcode/otter2/o...rod-10.2.4.bin
    md5sum 5b03a7b428325de8d360ec201a745498
    (You SHOULD check the MD5SUM before using fastboot -- downloads CAN be corrupted)
  5. CM-10.1/CM-10.2 for the Kindle Fire 2 (choose the latest version from):
    http://www.get.cm/?device=otter2
  6. Google Apps from: http://goo.im/gapps (choose the version: CM10.1 or CM10.2)
Place the 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"
[ Connect fastboot cable, and reboot the device so that "Fastboot" is showing ]

STEP 4.
Flash the OLD bootloader, new otter2-freedom-boot.img and TWRP recovery.[/B]
*DONT RE-FLASH FREEDOM-BOOT.IMG LATER AFTER FLASHING CM10.1 -- IT'S FOR STOCK AMAZON OS ONLY / FIRST INSTALL ONLY*
Code:
fastboot -i 0x1949 flash bootloader otter2-u-boot-prod-10.2.4.bin
fastboot -i 0x1949 flash boot otter2-freedom-boot-10.4.6.img
fastboot -i 0x1949 flash recovery otter2-twrp-2.6.3.0-recovery.img
fastboot -i 0x1949 reboot
** If everything was done correctly you will at this point see the bootmenu with a BLUE logo during the reboot. **

TO ENTER RECOVERY:
During the blue logo screen press the power button to cycle through options and select "Recovery" to enter TWRP.

Once in TWRP you can Install" the CM-10.1/CM-10.2 by selecting "Install" and then browsing the device and selecting it, then "Add Zip" and select the Gapps .zip as well.

Use the slider to start the install.


FLASHING BACK TO STOCK:
** FIND THE FILES WE BACKED UP IN STEP #1 OR DOWNLOAD NEW ONES FROM THE RECOVERY THREAD HERE: **
http://forum.xda-developers.com/show....php?t=2035047

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 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
Enjoy

THANKS TO:
  • fattire for finding the original bootloader exploit
  • TESTERS: powerpoint45 and FMKilo
Last edited by Hashcode; 11th March 2014 at 04:08 PM.
The Following 67 Users Say Thank You to Hashcode For This Useful Post: [ View ]
15th January 2013, 05:55 PM   |  #2  
Hashcode's Avatar
OP Recognized Developer
Thanks Meter: 22,465
 
3,232 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Changelog: updated 2013-07-08

freedom boot.img (for use w/ stock Amazon OS + 2nd-bootloader):
  • [07/08] Updated w/ kernel from 10.4.3 release

TeamWin Recovery (TWRP) 2.6.0.0
  • [07/08] USB Vendor ID / Product ID in recovery now matches stock Amazon OS
  • [07/08] Based on 10.4.3 stock kernel
  • [07/08] Fixed recovery bootloop issue
  • [07/08] TWRP 2.6.0.0 update
Last edited by Hashcode; 9th July 2013 at 09:12 AM.
The Following 23 Users Say Thank You to Hashcode For This Useful Post: [ View ]
15th January 2013, 06:02 PM   |  #3  
Hashcode's Avatar
OP Recognized Developer
Thanks Meter: 22,465
 
3,232 posts
Join Date:Joined: Sep 2011
Donate to Me
More
one more reserved space
The Following 12 Users Say Thank You to Hashcode For This Useful Post: [ View ]
15th January 2013, 06:09 PM   |  #4  
Member
Thanks Meter: 1
 
38 posts
Join Date:Joined: Sep 2009
More
no chance to flash without fastboot cable? cause when i do

su
reboot bootloader

the fire boots into fastboot...does this work too?
15th January 2013, 06:11 PM   |  #5  
Hashcode's Avatar
OP Recognized Developer
Thanks Meter: 22,465
 
3,232 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Quote:
Originally Posted by Hondologe

no chance to flash without fastboot cable? cause when i do

su
reboot bootloader

the fire boots into fastboot...does this work too?

Yes, this would work, however if something goes wrong (and it frequently can during early development) you will have NO WAY of recovering the device without a fastboot cable. So I don't recommend this method currently.

Also, these instructions are BRAND NEW, and I understand if you really want to get this setup, but please let some users w/ fastboot cables run through the instructions to make sure I didn't typo something, etc.
The Following 2 Users Say Thank You to Hashcode For This Useful Post: [ View ]
15th January 2013, 06:13 PM   |  #6  
mindmajick's Avatar
Senior Member
Flag Cape Coral, FL
Thanks Meter: 2,941
 
3,640 posts
Join Date:Joined: Nov 2010
Donate to Me
More
Good work man! Can't wait for my fastboot cable so I can try this out.

Sent from my SAMSUNG-SGH-I727 using Tapatalk 2
15th January 2013, 06:55 PM   |  #7  
Member
Thanks Meter: 1
 
38 posts
Join Date:Joined: Sep 2009
More
Quote:
Originally Posted by mindmajick

Good work man! Can't wait for my fastboot cable so I can try this out.

Sent from my SAMSUNG-SGH-I727 using Tapatalk 2

I`m gonna try it later WITHoUT FB cable . If it fails i just have to wait a couple of days, so its worth it if i get CM onto my kindle
BTW If it fails, im gonna blame it on you :P (Just kidding...)
15th January 2013, 06:58 PM   |  #8  
powerpoint45's Avatar
Senior Member
Flag Dallas
Thanks Meter: 1,904
 
2,066 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Thanks hash code!!! Is this ROM the updated one so Apollo won't force close?
Last edited by powerpoint45; 15th January 2013 at 07:08 PM.
The Following User Says Thank You to powerpoint45 For This Useful Post: [ View ]
15th January 2013, 07:07 PM   |  #9  
Hashcode's Avatar
OP Recognized Developer
Thanks Meter: 22,465
 
3,232 posts
Join Date:Joined: Sep 2011
Donate to Me
More
Quote:
Originally Posted by powerpoint45

Thanks hash code!!! Is this ROM the updated one so Apollo won't force close?

I did make the /storage/usb0 changes in this ROM. No telling if it'll fix the Apollo FCs till we get it tested.
The Following User Says Thank You to Hashcode For This Useful Post: [ View ]
15th January 2013, 07:08 PM   |  #10  
powerpoint45's Avatar
Senior Member
Flag Dallas
Thanks Meter: 1,904
 
2,066 posts
Join Date:Joined: Jan 2012
Donate to Me
More
Quote:
Originally Posted by Hashcode

I did make the /storage/usb0 changes in this ROM. No telling if it'll fix the Apollo FCs till we get it tested.

OK cool! Looking forward to build custom ROM. Downloading latest ROM now... I think Darwin's upload failed ): not showing up as right file size on goo.im. will check md5 at home

Edit:no FC yet
Last edited by powerpoint45; 15th January 2013 at 07:21 PM.

Post Reply Subscribe to Thread
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes