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

Search This thread

ErwinP

Senior Member
Oct 6, 2010
601
865
34
Hello

Just installed this and all is working REALLY great. One thing though: when I came from the 0115 to 20130129, market stopped working. I reflashed gapps and cleared cache and dalvik cache. I had to remove every updated from the market in order to get it working. Now it seems good.


Looking forward to see this in the official CM branch!
Erwin
 

melvsmeister

Senior Member
Oct 10, 2010
124
10
If in TWRP you did, WIPE for:
-SYSTEM
-FACTORY RESET
-FORMAT DATA

can you still install ROM if the whole SD card is erased?

I can adb push to /data/media but pushing ROM giving me an error of '/data/media': No space left on device
I tried push gapps and it says successfull showing the size of file transferred but when I reboot to TWRP and browse in file manager or install I can't find the gapps. Any advice?

Note: I can boot to Kindle fire blue boot screen and detect adb but in TWRP it doesn't show adb so I can't use the adb sideload functionality. I can also boot to fastboot by changing boot mode to terminal emulator via TWRP.


Thanks in advance!
 

ErwinP

Senior Member
Oct 6, 2010
601
865
34
Re: [ROM/KERNEL] UNOFFICIAL CM10.1 + 3.0.50 Kernel for Kindle Fire 2 [01/29 CODECS]

If in TWRP you did, WIPE for:
-SYSTEM
-FACTORY RESET
-FORMAT DATA

can you still install ROM if the whole SD card is erased?

I can adb push to /data/media but pushing ROM giving me an error of '/data/media': No space left on device
I tried push gapps and it says successfull showing the size of file transferred but when I reboot to TWRP and browse in file manager or install I can't find the gapps. Any advice?

Note: I can boot to Kindle fire blue boot screen and detect adb but in TWRP it doesn't show adb so I can't use the adb sideload functionality. I can also boot to fastboot by changing boot mode to terminal emulator via TWRP.


Thanks in advance!

As you deducted yourself: the emulated sdcard gets wiped after formatting data, so that is indeed a problem if you have put your update zip over there.

However, you can use adb to push the zip to your sdcard:
Code:
adb push ROM.zip sdcard/
. You do not have to mount your sdcard in TWRP, just boot in recovery, connect to your computer and execute the above command. When you are asked to choose a zip from the sdcard, you will be able to see it.

I hear you coming: when you try to go to sdcard/ in the shell, you will get an error. Also "mount sdcard" is not possible. I don't known the reason behind this, all I know is that it is possible to push to there :p

Success,
Erwin

Sent from my Nexus 7 using XDA Premium HD app
 
Last edited:
  • Like
Reactions: melvsmeister

hillconnor13

Member
Oct 6, 2012
40
3
chatham
As you deducted yourself: the emulated sdcard gets wiped after formatting data, so that is indeed a problem if you have put your update zip over there.

However, you can use adb to push the zip to your sdcard:
Code:
adb push ROM.zip sdcard/
. You do not have to mount your sdcard in TWRP, just boot in recovery, connect to your computer and execute the above command. When you are asked to choose a zip from the sdcard, you will be able to see it.

I hear you coming: when you try to go to sdcard/ in the shell, you will get an error. Also "mount sdcard" is not possible. I don't known the reason behind this, all I know is that it is possible to push to there :p

Success,
Erwin

Sent from my Nexus 7 using XDA Premium HD app

Was going to say that my self :p
 

Riotr

Senior Member
Jan 18, 2012
122
47
1 bug i found.

after freshly rooting and installing custom recovery i installed this rom. worked beautifull and wifi worked on first try. but when i switched off wifi for the first time, it doesnt seem to want to come on back now when i turn try. is there some way to go about fixing this??

---------- Post added at 10:00 PM ---------- Previous post was at 09:37 PM ----------

can someone help me with above post ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ if it helps. before i turned off the wifi. i went in the wifi settings and "forgot" a saved wifi network i was connected to cause i didnt want who was using the kindle to use my net. after receiving back the kindle i restated it and tried turning back on wifi... no response. it just loads saying its turning on wifi but it never does.
 

melvsmeister

Senior Member
Oct 10, 2010
124
10
As you deducted yourself: the emulated sdcard gets wiped after formatting data, so that is indeed a problem if you have put your update zip over there.

However, you can use adb to push the zip to your sdcard:
Code:
adb push ROM.zip sdcard/
. You do not have to mount your sdcard in TWRP, just boot in recovery, connect to your computer and execute the above command. When you are asked to choose a zip from the sdcard, you will be able to see it.

I hear you coming: when you try to go to sdcard/ in the shell, you will get an error. Also "mount sdcard" is not possible. I don't known the reason behind this, all I know is that it is possible to push to there :p

Success,
Erwin

Sent from my Nexus 7 using XDA Premium HD app

Thanks for taking time to reply, I'm still having problems in pushing ROM to /data/media folder due to "No space left on device" error message. I wonder if I'm missing some steps since I can push gapps but unable to find it in TWRP. I hope someone who might had the same situation can help me, I'll just wait for others to reply. Thanks again.
 

mammenj

Senior Member
Sep 12, 2010
2,027
389
@hashcode dont mean to rush but :eek:
Is there any updates from CM team regarding the nightly build for fire2 ?
 

mothman57

Member
May 27, 2010
47
3
Official CM Support

Looking on the CM website, it shows the Otter2 (Kindle Fire 2nd Gen.) as an official support device. Is this true? I assume so!
 

mammenj

Senior Member
Sep 12, 2010
2,027
389
Re: [ROM/KERNEL] UNOFFICIAL CM10.1 + 3.0.50 Kernel for Kindle Fire 2 [01/29 CODECS]

Wow, talk about it and here it is:)
Thanks @hashcode

Edit: just downloaded, and testing it.
after installing it, left the kindle for 15 minutes on and came back to completely dead kindle. now charging to see what happened :(

Sent from my Amazon Kindle Fire2 using xda app-developers app
 
Last edited:

mindmajick

Account currently disabled
Re: [ROM/KERNEL] UNOFFICIAL CM10.1 + 3.0.50 Kernel for Kindle Fire 2 [01/29 CODECS]

Seems to work fine. Fyi- I also used the new 3/1 gapps

ubesy7y5.jpg


--
Sent from my Kindle Fire 2, CM 10.1
 
Last edited:

flopower1996

Senior Member
Sep 8, 2012
679
235
Same for me the device ran out of battery. Hopefuly it come back to life. :(
Dont't install the first nightly.
 

mindmajick

Account currently disabled
Re: [ROM/KERNEL] UNOFFICIAL CM10.1 + 3.0.50 Kernel for Kindle Fire 2 [01/29 CODECS]

Strange. Did you guys do a clean install or a dirty flash?

Because mines been fine since I installed it.. 3+ hrs so far.

But you guys got me scared so I'm gonna go back to my backup.



--
Sent from my Kindle Fire 2, CM 10.1
 
Last edited:

mindmajick

Account currently disabled
Re: [ROM/KERNEL] UNOFFICIAL CM10.1 + 3.0.50 Kernel for Kindle Fire 2 [01/29 CODECS]

Ok. Fear went away. Back on the nightly :D

Edit: just wanted to add- seems like the issue with audio and video not syncing up in YouTube and Netflix is gone.

--
Sent from my Kindle Fire 2, CM 10.1
 
Last edited:

mammenj

Senior Member
Sep 12, 2010
2,027
389
Re: [ROM/KERNEL] UNOFFICIAL CM10.1 + 3.0.50 Kernel for Kindle Fire 2 [01/29 CODECS]

Strange. Did you guys do a clean install or a dirty flash?

Because mines been fine since I installed it.. 3+ hrs so far.

But you guys got me scared so I'm gonna go back to my backup.



--
Sent from my Kindle Fire 2, CM 10.1

did a dirty flash. after the first sod, after waking it up everything seems to OK now.:thumbup:

# sent from a Π Σ Χ U S⁴ by tapatalk
 

Top Liked Posts

  • There are no posts matching your filters.
  • 73
    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://xdaforums.com/showthread.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/Factory-Adapters-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/otter2-freedom-boot-10.4.6.img
      md5sum: 80f9b9ba80910de361463560f86f315a
    3. [09/03] TeamWin Recovery 2.6.3.0:
      http://goo.im/devs/Hashcode/otter2/otter2-twrp-2.6.3.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/otter2-u-boot-prod-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://xdaforums.com/showthread.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 [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

    Enjoy

    THANKS TO:
    • fattire for finding the original bootloader exploit
    • TESTERS: powerpoint45 and FMKilo
    23
    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
    12
    one more reserved space
    8
    Yes I do. Check md5 as I'm not sure that when you download them they'lll be complete!

    https://www.mediafire.com/folder/5oda4fual3ht3/KF2_Boot_and_Recovery

    :)

    Bump just so everyone knows these files are here
    7
    does anyone have a mirror of the files?

    Yes I do. Check md5 as I'm not sure that when you download them they'lll be complete!

    https://www.mediafire.com/folder/5oda4fual3ht3/KF2_Boot_and_Recovery

    :)