Potential Brick after Failed boot partition flash - T-Mobile Samsung Galaxy S II SGH-T989

I have looked through other similar threads on this forum, and believe that I may have bricked my phone.
Fed up with the ICS kernel sent OTA from T-Mobile, I decided to build the GB kernel from the Samsung website. After extracting the boot files from the backup given from the CWM recovery tool, I rebuilt it, and repackaged it into the new boot image.
Booting into recovery mode, I attempted to flash the new image. The command I used was
Code:
flash_image boot new_boot.img
Which gave me the following error:
Code:
flash_image failed with error: -1
I read several threads regarding the error, and found that I may need to reference the boot partition directly. Assuming that the partition scheme is the same between devices, and carriers, I determined that /dev/block/mmcblk0p2 was the boot partition.
I executed
Code:
cat /dev/block/mmcblk0p2
from the adb shell, and compared the output with the contents of the new_boot.img, and confirmed that it is in fact the correct partition.
However, executing
Code:
flash_image /dev/block/mmcblk0p2 new_boot.img
returned the same error as before. Up until this point, I had no problems with the error. It allowed be to boot normally, nothing being changed.
Figuring I'd scrap the idea for another day, I decided to reboot. I noticed that it too an unusually long time to reboot. From which, I received no response. the device refused to boot. Holding the powerbutton did not work, trying to boot it in recovery/download mode did not work.
I removed the SIM and SD card, to make sure there were no lingering files or links that could be interfering with the boot process. I also removed the battery, in order to remove any lingering charges that could by interfering as well.
My first question is really just a confirmation of whether or not it is truly bricked, and to determine the degree of bricking that has occured.
My second question is what steps can I take to solve this? I've seen a couple of threads about people using a JTAG device, but I am unfamiliar with it.
If necessary, I can send it to T-Mobile, but would rather not if it's not required.

You tried to flash a Gingerbread kernel on ICS?
Sent from my SAMSUNG-SGH-T989 using xda app-developers app

Sorry, I misspoke. I originally attempted to flash GB after receiving ICS from the T-Mobile OTA, which is when I first encountered the error. After that, I tried doing the same with the ICS kernel, following the same process I used the first time, received the error, was able to boot no problem, tried again, at which point it failed (when I referenced the boot partition directly)

Related

Fastboot failed. 'remote: not allow'

Hi, i'm following a guide to root my Hero http://myandroidblog.wordpress.com/2009/08/03/htc-hero-root-access/
But when ever I run the first CMD command (fastboot.exe boot.img.insecure) i get this error:
'downloading 'boot.img'... FAILED (remote: not allow)'
Any ideas what that means or what I can do to fix it.
Thanks
ps I tried searching but couldn't find any similar topics so hope I haven't repeated someone else
You have to use flashrec to flash recovery image
http://forum.xda-developers.com/showthread.php?t=559613
Yup, got the exact same error when I tried to root my Hero, doing the backup flash that Exit93 links to, did the trick for me too
I did a backup of my recovery flash prior to installing the "modded recovery" as well, so should be reversable if needed as well.
Make sure you shut down as many apps as possible before attempting the flash. At least I had to shut down pretty much everything in order to do both backup and flashing.
Thanks for the help guys, i'll they that tomorrow (getting pretty late now).
This is a big change from the WM devices i'm used to, taking some getting used to
you did the official update of HTC, the Boot is replaced..
fastboot will not work then
Well, after doing the Flashrec thing and then going onto the Rooting process (I used a different method from http://forum.xda-developers.com/showpost.php?p=4257045&postcount=38 and although I got through the process (there seemed to be a few errors when mounting) after rebooting I don't have root access, tried it x2 now and nothing changed. Any other ideas?
Thanks, Wez

[Q] [SOLVED] Phone does not load new Roms, Nandroid recovery gives white screen

Hi guys, sorry to say I'm back with another problem.
I have a Desire Z, rooted and S-off. Rooted with the wiki method (downgrade version, adb, gfree).
Using clockworkmod recovery 3.0.2.4, and have made a backup of my first 1.32 boot.
However, I tried flashing a new rom, but recovery just won't take it. It will say Can't open /sdcard/rom.zip (Bad) installation aborted, with every rom I tried. And I've tried more than 10.
So I thought, no biggie, I have a nandroid backup. So I run the restore, which works fine. But upon booting the device, it gets stuck on the white HTC loading screen. I have tried this multiple times, deleting cache/data etc fully. Also I used the FULL-WIPE-VISION.zip for this purpose to no avail.
I have followed the semi-brick guide which said I had to go get a stock rom with root, so I did. But I can't load it through clockwork restore, because I get the same Bad rom error.
What's left to try?
Additional info I should give according to the semi-brick thread (http://forum.xda-developers.com/showthread.php?t=842495):
The last and only Rom I had was the stock 1.32.4xx to which I had to downgrade before I got perm root. This rom is my nandroid recovery.
The command adb devices recognizes my device.
adb remount is succesful
adb shell gives me root
I have /data and /system mounted when trying most roms (but I get the same error when I don't have it mounted)
After booting and waiting a minute when it's stuck in white screen, adb devices will not recognize my device anymore, adb remount and shell also say that the device is not found.
Thanks a lot for helping out!
TL;DR: Clockworkmod recovery does not load roms, nand restore gives WSOD. How come?
EDIT: Problem was due to my budget 32GB microSDHC. Operations were successfull using the original 8GB card. Apologies for the spamtopic.
Noboo said:
EDIT: Problem was due to my budget 32GB microSDHC. Operations were successfull using the original 8GB card. Apologies for the spamtopic.
Click to expand...
Click to collapse
This isn't spam, and no need to apologize. Your post may be of benefit to others. If somebody has a similar issue, they may find your post, and from it find out how to fix it.
If nothing else, you should add [SOLVED] to the thread title.

[Q] DINC won't clear user data, after using every trick I know

So, I recently acquired an Incredible, the second one I've owned. The first one I rooted, turned S-off and installed CM7 with zero difficulties, after that I rooted/flashed my Xperia Play CDMA with all the issues that accompany that device. (after the ease with which I modded my first DINC, the hoops through which I had to jump to unlock my bootloader blew my mind)
This DINC, though, refuses to clear user data. Even after multiple wipes via CWM, and multiple updates using the PB31IMG method, user data remains. Attmepts to preform a factory reset via HBOOT result in a balck screen with a red triangle and exclamation point.
I tried to install MIUI, thinking maybe a fresh rom would fix it, but it gets stuck at the room splash screen.
I've even tried recovering a clean CM7 install from my old incredible, but it gets stuck in a bootloop at the rom splash, same story trying to flash the .zip in recovery.
I've seen a few threads that deal with a few of these symptoms, but not the issue as a whole
Thanks in advance for any answers you guys have!
Cheers
I found a solution, finally. Admittedly, it was a bit drastic, but it worked, nonetheless.
I ended up disassembling both DIncs and putting the motherboard of the working device (with the smashed screen) into the device that was unable to format /data.
It was a bit touch and go for a bit, but my new DIY refubished phone is up and running.
Thanks for the help guys!
What error do you get? Can you upload the logs from /cache/ recovery after trying to wipe?
Sent from my Galaxy Nexus using Tapatalk 2
I'm still a bit of a noob, if you could point me towards some basic instructions on how to do that, I'll post a log when i get back to the house.
Last time I tried to logcat something in recovery, I nearly bricked my phone somehow.
Edit: It either gives me the red error triangle/exclamation point if i use HBOOT, or it gives me an error when trying to format the data partition on a recovery attempt.
mattdubuc said:
I'm still a bit of a noob, if you could point me towards some basic instructions on how to do that, I'll post a log when i get back to the house.
Last time I tried to logcat something in recovery, I nearly bricked my phone somehow.
Edit: It either gives me the red error triangle/exclamation point if i use HBOOT, or it gives me an error when trying to format the data partition on a recovery attempt.
Click to expand...
Click to collapse
Re-flash CWM recovery. The red triangle is a problem with recovery most likely. You can flash the latest CWM for the incredible from the app.
If that doesn't work then pull all the files from /cache/recovery location, use a file explorer app that can read it and copy it to the /sdcard location and upload it in a zip.
tiny4579 said:
Re-flash CWM recovery. The red triangle is a problem with recovery most likely. You can flash the latest CWM for the incredible from the app.
If that doesn't work then pull all the files from /cache/recovery location, use a file explorer app that can read it and copy it to the /sdcard location and upload it in a zip.
Click to expand...
Click to collapse
The red triangle happens when you try to do a factory reset from hboot wile on cwm recovery. If you really need to do a factory reset, you will need to flash to the stock recovery first. http://dinc.does-it.net/Recoveries/Stock_4.08.605.15/PB31IMG.zip Then if it works or even if not flash back to cwm recovery http://dinc.does-it.net/Recoveries/CWM_5.0.2.0/PB31IMG.zip.
The weird thing is, that even after flashing PBG31IMG via HBOOT I'm retaining all the previous user data. I've tried formatting the internal drive, using a few different versions of the image, even manual formatting of /data via CWM, which only gives me an error. the same error as when I tried to restore a nandroid from my functioning DINC.
tiny4579 said:
If that doesn't work then pull all the files from /cache/recovery location, use a file explorer app that can read it and copy it to the /sdcard location and upload it in a zip.
Click to expand...
Click to collapse
So do i just make a .zip file out of the contents of /cache/recovery or is there something more to it?
mattdubuc said:
So do i just make a .zip file out of the contents of /cache/recovery or is there something more to it?
Click to expand...
Click to collapse
That should be fine. Try to wipe data in cwm again just so it logs it.
Sent from my Galaxy Nexus using Tapatalk 2
I'm having the same issue, even after reflashing a rom or hard reset my system is as it was before, but most apps don't work. After turning on device instantly shows many errors such as error in com.android.phone etc... While trying factory reset in Recovery (5.0.2.0) the only error that logs is "no app2sd partition found. Skipping format of /sd-ext ". What can you advise? Please help, tomorrow I'm going to another country and in this moment working phone is very needed Device S-OFF Rooted HBoot 0.92
zslashy said:
I'm having the same issue, even after reflashing a rom or hard reset my system is as it was before, but most apps don't work. After turning on device instantly shows many errors such as error in com.android.phone etc... While trying factory reset in Recovery (5.0.2.0) the only error that logs is "no app2sd partition found. Skipping format of /sd-ext ". What can you advise? Please help, tomorrow I'm going to another country and in this moment working phone is very needed Device S-OFF Rooted HBoot 0.92
Click to expand...
Click to collapse
Same error if you flash stock GB sense and factory reset from recovery? You have the errors when booting and the apps are still there?
Sent from my Nexus 7 using Tapatalk 2
Thank you for reply, I solved reset issue by installing Amon Ra recovery. But the problem with apps still exists, it looks like system is restoring back up after reboot, I can do everything with system but after reboot it's like it was before with no changes made. Additionally, it seems that the problem is with emmc, just because when I delete EVERYTHING on it, after restart all files appear again!
I'm also getting an error when I try to manually format the data partition under >mounts and storage in CWM, I'm assuming that may be to blame for retained user data?
When I run show log after running only a manual /data format it displays:
6 black groups
32768 blocks per group. 32768 fragments per group
8112 inodes per group
superblock backups stored on blocks:
32768. 98304. 163840
The filesystem already has a journal,
tune2fs 1.41.6 (30-May-2009)
Setting current mount count to 1
Failure while running mke2fs
Error formatting /data!
mtd: succesfully wrote block at 0
I:Set boot command ""
I have no idea what that means really, or even if it's pertinent.
I had to remove the user info (owner data, phone number, etc) from my inc after canceling my contract with verizon. After about 25 different attempts to wipe it, I finally found something that worked (at least for me)
Tried running the RUU, could not reboot into HBOOT (version error)
Tried the RUU again, this time starting it after manually booting the phone to HBOOT. Got a little farther than before, but still errored out. Did not work. Disconnected phone, pulled battery, rebooted to HBOOT.
Factory reset in HBOOT got me stuck on the stock recovery screen. Battery pulled, could not boot.
Flashed CWM in HBOOT (by renaming to PB31IMG.zip), was able to get into CWM recovery.
Tried to flash the 2nd GB OTA in CWM, did not take. Every option I clicked in CWM gave me about 7 errors after sitting on the logo for a moment. Battery pull, reboot. Boots into CM9. >.<
Booted to my rom, saw about 300 force closes. Tried to reflash CWM from Rom Manager, got a bunch of force closes. Updated Rom Manager from market, reflashed CWM, and this time it worked.
Rebooted to CWM, wipe data/cache/dalvik, reboot.
This time I booted in CM9, but to the initial ICS set up (click next to begin, wireframe pic of Andy)
After skipping thru initial setup, I checked Settings>About Phone>Status. My phone number was removed, network is Unknown, and all my data was removed. Activation prompt appears on each boot.
Not sure if this will help, but worth a try. I think that the HBOOT factory reset is what cleared my data, and then I just needed to fix CWM so I could get back to a working ROM.
Yeah that's what I did in june except I just got service on mine but I would think that would help getting your data out forever. If that does not work I wouldn't know what to tell u besides grab a magnet. Lol
Sent from my Droid Incredible using xda premium

E:failed to mount /efs (Invalid argument), Did I brick my tablet?

I bought a new never used Tab 3 for the intended purpose of using it as a universal remote. I wanted to strip it down and started right away with installing custom recovery, or at least I tried. No matter what I did I was not able to get Odin to properly load TWRP. It went through all the steps but I was not able to get into recovery other than stock.
Fast forward to the next day, I finally get it to work and somewhere in this process I somehow deleted or unmounted (I really am not sure) my efs folder/partition. If I try to reset deleting all cache and wiping everything including pulling the battery for a few minutes and flashing the stock ROM again I get hung up at the "SAMSUNG' logo. I have tried several ROMs and even tried using Odin to flash a new pit file with I found HERE. When I load both the pit file and my ROM into Odin it eventually says 'FAIL'. I can flash ROMs all day with no issue.
I can only assume that the error I am getting in recovery that says E:failed to mount /efs (Invalid argument) is my issue.
Adb is not really an option for me since I have little to none, more like none at all knowledge of using it. I assume since I have flashed several tries that USB Debugging is not enabled anyway and isn't enabling it key to using ADB anyway?
I have been at this for 2 full days searching everywhere and trying everything I see. I am at a loss and hate to think this new Tab is already junk.
Any help would be greatly appreciated!
The EMCC or something like that requires replacement
andynroid said:
The EMCC or something like that requires replacement
Click to expand...
Click to collapse
So I should junk it then? I only paid $80 for this Tab.
One trial you may try to flash a Cyanogenmod based ROM see if it can write out the partitions else if no luck time to replace that item as mentioned
I have tried flashing CM and still the same issues.
I have since found out what my issue is (or at least 99% sure), I somehow wiped out my efs partition completely. So running a new pit file with Odin does nothing because the partition is gone.
This is fixable and easy for someone who knows shell, but I don't. So now I am trying to figure it out. It's a matter of pushing the 6 following files to the phone using the adb push [file] /sbin/ command using adb which I have done, now I need to figure out the rest.
e2fsck
mke2fs
parted
resize2fs
sdparted
tune2fs
T
you can't do that in the way you think, it requires disassembling the recovery image, making modifications and repacking then reflashing the image.
If you are using an older recovery, namely twrp, install a newer recovery , check @nels83 's thread for a "modern" twrp build.
You can also try one of my philz builds.
Being as you have been abusing Odin, you may actually have damaged your tab.
BUT if you are connecting to wifi without a problem then it's unlikely that you have damaged your efs partition. It's more likely an error with the recovery build you are using, probably in the fstab.
m

Really need help, google flash gone bad

At first I tried to update my existing TWRP (3.2.1-0) to the 3.2.1-2 variant. It flashed ok, but then the phone would only boot to TWRP (reason for upgrade is that 3.2.1-0 would hang). I was attempting initially to put myself on the path to a "custom rom". When this failed, I manually flashed the latest google firmware from their page and it still will not do anything other than fastboot mode. No recovery, no firmware load. When I try to do the flash-all.bat method now, all I get after it loads the archive contents is "error: Cannot generate image for userdata. Guess I got a $1000 brick at this point?? Image from the PC screen included.
See if this thread helps.
https://forum.xda-developers.com/pi...ory-image-flashing-fails-t3715350/post7649698
I am going to have to find another way to look at that thread. My ipad is getting directed to some HTC desire article about and orange and black theme.
I have tried so far very unsuccessfully to wipe everything by booting to twrp via fastboot method. Then I used the dueces script to reflash everything completely (both partitions). No matter whether I flash complete stock or flash magisk and verizon radio files, it just hangs on the white google screen now and that is as far as I have gotten. Left it at home in this mode hoping it will clear.
JoeNeckbone said:
See if this thread helps.
https://forum.xda-developers.com/pi...ory-image-flashing-fails-t3715350/post7649698
Click to expand...
Click to collapse
That link is bad. Three devices are going to an htc desire theming page.
remove the -w from the update line in flash-all.
I have got the same problem since yesterday and search for a solution.
ctradio said:
That link is bad. Three devices are going to an htc desire theming page.
Click to expand...
Click to collapse
Not sure what happened with link, https://forum.xda-developers.com/pi...ry-image-flashing-fails-t3715350/post74751631
new adb dont help for me. I cannot flash slot a and change to b and got the error message that no slot is supported.
Still need help? Have you tried Skipsoft? Sure its not been updated but it might beable to help ..
Where fastboot flashing failed for me one time it got me out of a hole....
Otherwise i can try and remote and help... BTW its not finding the userdata file in the fastboot side... Something isnt right hence why it cant create the userdata file...
I try to boot with skipsoft to temp twrp but stuck on boot.img loading. the flashed twrp stuck on twrp logo and before I have changed from slot b to a inside twrp i can boot. now I cannot flash inside fast boot or delete anything.
Have you guys tried Deuces Bootloop Recovery & Flashing Script? I'd imagine you'd run into the same issues as the script runs a lot of the same fastboot commands...but it has worked wonders for many other users so......
I also might try re-downloading the factory image and comparing the Checksums to make sure you have a whole exact download just in case that's getting in the way of properly generating the userdata image. I'd also suggest making sure you have more than 4GB of space on your C drive; I was getting similar messages about not finding or not generating system images because they couldn't be fully extracted (temporarily) because I didn't have sufficient temp space on my C drive.
But I had encountered this issue before. It was either userdata or system_other partition. I did attempt to fastboot erase and fastboot format those partitions and other tweaks; even messed with changing the size of the partition (you might have better luck). What I seemed to conclude is that I was flashing the wrong month's Full Factory image; i.e. I was manually flashing system_other image from February when the whole phone was still on January. But I believe what I ended up doing was flashing a Full Factory image with the "-w" intact; therefore, if you still have access, you should copybackcup (via TWRP or adb pull) your internal storage (/sdcard and-or /data/media) and simply flash a Full Factory image with wipe option enabled...
Just some thoughts and suggestions...hope this helps...
I figured it out finally. Even though my ADB/Fastboot tools were a later creation date than the ones posted online, the ones online worked great. Even used the dueces script to ensure the junk is gone. Thanks all! Hate pesky gotchas like that!!

Categories

Resources