[Q] Trying to Flash TWRP with no Avail... - Kindle Fire Q&A, Help & Troubleshooting

I am trying to flash TWRP by using the following commands in Terminal Emulator (can't get KFU to recognize my KF):
Code:
SU
flash_image recovery /sdcard/twrp.img
But I recieve:
Code:
failed with error: -1
Dunno what's going on here. Any ideas?
Running CM7, rooted, have FFF, current recovery is Custom CWM-Based Touch Recovery by DooMLoRD.

ratchetandclankf said:
I am trying to flash TWRP by using the following commands in Terminal Emulator (can't get KFU to recognize my KF):
Code:
SU
flash_image recovery /sdcard/twrp.img
But I recieve:
Code:
failed with error: -1
Dunno what's going on here. Any ideas?
Running CM7, rooted, have FFF, current recovery is Custom CWM-Based Touch Recovery by DooMLoRD.
Click to expand...
Click to collapse
Why don't you use gscripts to flash TWRP? Or uninstall/reinstall your drivers so KFU will recognize.
Sent from my Amazon Kindle Fire using xda premium

ratchetandclankf said:
I am trying to flash TWRP by using the following commands in Terminal Emulator (can't get KFU to recognize my KF):
Code:
SU
flash_image recovery /sdcard/twrp.img
But I recieve:
Code:
failed with error: -1
Dunno what's going on here. Any ideas?
Running CM7, rooted, have FFF, current recovery is Custom CWM-Based Touch Recovery by DooMLoRD.
Click to expand...
Click to collapse
http://forum.xda-developers.com/showthread.php?t=1483280
If you really want to flash it from the command line...
Code:
dd if=/path/to/twrp.img of=/dev/block/mmcblk0p5
Use at your own risk.

Related

Clockwork Recovery 4.0.0.5 prob?

im having trouble updating my recovery clockwork image, the 4.0.0.5 img is on my sdcard, ive installed terminal emulator and put
$su
#flash_image recovery /sdcard/recovery.img
and it comes up with (error scanning partitions) can anyone help?

[ROOTED]Bell v20f .img files

Here is a link to the .img files. You can flash them using adb, but you will lose CWM. I am posting these in the hope that it will help someone who knows a little bit more about bootloader security and whatnot to make a CWM-compatible version.
The stock files are Here
Extract files to root of SD card, enable USB debugging and PC Software mode (if on LG rom)
Run the following from windows command prompt:
adb shell
su
dd if=/sdcard/boot.img of=/dev/block/mmcblk0p8
dd if=/sdcard/recovery.img of=/dev/block/mmcblk0p13
dd if=/sdcard/firmware.img of=/dev/block/mmcblk0p1
dd if=/sdcard/baseband.img of=/dev/block/mmcblk0p14
dd if=/sdcard/system.img of=/dev/block/mmcblk0p27
Restart,
Congrats, you've got the latest Bell release for the P930.
Got it rooted using this guide: http://forum.xda-developers.com/showthread.php?t=1835946
Used Rom Manager to install CWM.
Whenever I try to boot into CWM, i get the following error:
-------------------------------------------
Secure Booting Error
Cause : boot certification verify
-------------------------------------------
---------------------------------------------------
Enter the fastboot...
Enter the fastboot...
Long time no see!
---------------------------------------------------
Click to expand...
Click to collapse
The ROM boots though, and has root access. Superuser works, and I am currently using titanium backup to delete the massive amounts of bloatware present in the rom.
I have attempted to flash recovery.img with CWM on it, but the error persists.
Anyone have any ideas as to how we can get around this error?
Click to expand...
Click to collapse
hereric said:
Anyone have any ideas as to how we can get around this error?
Click to expand...
Click to collapse
You must downgrade to GB before you can install CWM properly.
I just wonder if it works if you just load boot.img and system.img with adb.
abc001 said:
I just wonder if it works if you just load boot.img and system.img with adb.
Click to expand...
Click to collapse
You're welcome to try. I am too busy today, and I have started getting random reboots, so I'm switching back to Liquid Nitro.

[Q] Cannot flash stock boot.img from fastboot

[EDIT] - adb commands work fine..
I am rooted and bootloader unlocked, trying to flash back to the stock kernel. I can boot into bootloader (fastboot mode), however when I issue the fastboot command from my pc, nothing happens like the usb connection is not recognized.
"fastboot devices" does nothing.
C:\Program Files (x86)\Android\android-sdk\platform-tools>fastboot flash boot boot.img
< waiting for device >
Is fastboot supposed to work?
Alternatively is there a recovery package somewhere that includes only the current stock kernel?
Thank you for your help.
You can actually use my all in one in the dev section to do it for you.
Sent from my LG-LS970 using xda app-developers app
TheShadow1 said:
You can actually use my all in one in the dev section to do it for you.
Sent from my LG-LS970 using xda app-developers app
Click to expand...
Click to collapse
Shadow, thank you for your work! I jumped into your github to check out the code because I am not sure if the boot.img your app is downloading is the latest zv9 release kernel.
It looks like I can
1) drop boot.img into /sdcard/
2)issue the following from terminal on device (or from adb):
su -c dd if=/dev/zero of=/dev/block/platform/msm_sdcc.1/by-name/boot
su -c dd if=/sdcard/boot.img of=/dev/block/platform/msm_sdcc.1/by-name/boot
3) rm /sdcard/boot.img
4) reboot
EDIT: This worked great issuing commands in adb shell (grant su on the phone when it pops up)
THANKS!
Now I need to figure out how to get fastboot communicating

[TUT][HOW TO] Flash Recovey without use bootloader

Hi guyz! With this small guide I hope i'll explain to you how to flash a recovery without bootloader. C'mon!
1) Download the recovery
2) Extract the recovery image in the zip (normally the folder is named "pg76img.zip" and the recovery "recovery.img")
4) Download terminal emulator
5) Open Terminal Emulator
6) Write su and accept superuser request
7) write flash_image recovery /sdcard/recovery.img
8) if you'd like to try if recovery work write reboot recovery
9) enjoy!
-EDIT-
This script doesn't work with stock rom (sense roms)
Sent from my Wildfire S using xda app-developers app
This method won't work on Sense ROMs unless you install the flash_image script (Else you'll get not found or something similar).
Assuming you've already downloaded and installed Android SDK and that stuff, we can start:
1. Extract the script. Let's say you extracted it to your Desktop.
2. Connect your WFS with android debugging on.
3. Type the following:
Code:
adb root (enter)
adb remount (enter)
adb push Desktop\flash_image /system/bin (enter)
adb shell chmod 0755 /system/bin/flash_image (enter)
4. Flash your recovery. (In this case, your recovery.img is on /sdcard/)
Code:
adb shell flash_image recovery /sdcard/recovery.img
That's all. And there's no need to do this on CM-based ROMs as they already have this command script.
ScardracS said:
Hi guyz! With this small guide I hope i'll explain to you how to flash a recovery without bootloader. C'mon!
1) Download the recovery
2) Extract the recovery image in the zip (normally the folder is named "pg76img.zip" and the recovery "recovery.img")
4) Download terminal emulator
5) Open Terminal Emulator
6) Write su and accept superuser request
7) write flash_image recovery /sdcard/recovery.img
8) if you'd like to try if recovery work write reboot recovery
9) enjoy!
Sent from my Wildfire S using xda app-developers app
Click to expand...
Click to collapse
this won't work on stock roms....as stock doesn't have flash_image script....so mention in OP only for cm based roms....& ofcourse for stock based roms djoliver has already posted a tut

[Q] Segmentation fault when attempting to backup stock partition

I have a kindle fire hd 8.9 8.5.1 rooted with ROOTMASTER. I was able to make fastboot to finally work and now attempting to follow the instructions
http://forum.xda-developers.com/showthread.php?t=2128175
in order to install 2nd-bootloader + TWRP 2.7.0.0 and thereafter go to cyanogenmod
However, my very first comand fails
adb shell su -c "dd if=/dev/block/mmcblk0boot0 of=/sdcard/boot0block.img"
generates "Segmentation fault" error message.
Is there something wrong with my root or what's going on?
Thanks!

Categories

Resources