• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Custom Recovery Optimus S/ Thunderc-sprint

Status
Not open for further replies.
After flash_image recovery /sdcard/recovery-RA-GNM-thunderc-s-1.1.0.img I got several of these errors:

mtd: re-read error at 0x00660000 (Out of memory)
mtd: skipping write block at 0x00660000

Tried mv /system/etc/install-recovery.sh.bak /system/etc/install-recovery.sh to get recovery back but got a read-only file system error.
 
Upvote 0
After flash_image recovery /sdcard/recovery-RA-GNM-thunderc-s-1.1.0.img I got several of these errors:

mtd: re-read error at 0x00660000 (Out of memory)
mtd: skipping write block at 0x00660000

Tried mv /system/etc/install-recovery.sh.bak /system/etc/install-recovery.sh to get recovery back but got a read-only file system error.

If you get the oom error reboot phone and do it with phone freshly rebooted.

The other error is from you not mounting /system as rw.

Bad block errors if any indicate that you have some bad nand flash blocks on device (google it for info) and thats a build defect in your particular phone but depending on the location/serverity may prevent a custom recovery flash.
 
Upvote 0
If you get the oom error reboot phone and do it with phone freshly rebooted.

The other error is from you not mounting /system as rw.

Bad block errors if any indicate that you have some bad nand flash blocks on device (google it for info) and thats a build defect in your particular phone but depending on the location/serverity may prevent a custom recovery flash.

Thanks. Worked great.
 
Upvote 0
I rooted using the application from the market. Then installed terminal emulator bc it isn't recognizing my root when i do it through the computer. typed in su got super user permissions, everything works fine until I get to the point where i do mv / system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak, it says it failed and no such file or directory
 
Upvote 0
I rooted using the application from the market. Then installed terminal emulator bc it isn't recognizing my root when i do it through the computer. typed in su got super user permissions, everything works fine until I get to the point where i do mv / system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak, it says it failed and no such file or directory

It doesnt exist on all roms. If its there in yours those commands disable it. If its not there move to next step.
 
Upvote 0
assuming you are rooted type su at the $ and allow superuser permissons on the pop up on phone and it will change to a root #.

Thanks for your help.Where do I get the flash_image file,I only downloaded the .img file from your first post.

Edit,I got the file.But when I enter mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak, I received "Cross-Device Link" error,how do i get around this?thanks.
 
Upvote 0
Need a tester for this new recovery version before I roll it out for all the optimus line as the recovery binary is shared across all of them. Please post feedback.

changelog: v1.2.0
Allow flashing of zips from directories like clockwork does.
Updated wipe menu and is no longer using script to wipe.
updated kernel to allow ext3 & ext4 formatting in recovery.
changed some sd-ext stuff for better apps2sd ability.

Link pulled

md5 1a455af64abed8bf9d3e49d932f3fd38

As always please verify md5sum before flashing.

follow 1st post instructions to flash but change this line as the recovery name is different
Code:
flash_image [B][COLOR=black]recovery[/COLOR][/B] /sdcard/recovery-thunderc-s-RA-1.2-GNM.img
 
  • Like
Reactions: zefie
Upvote 0
Posted on AC thread. Getting mixed up now. lol.

Summary:
- v1.1.0 had a weird issue where wiping .android_secure doubled up the confirm and success messages, did not test with this one

- Request wipe system option since there is no other way to recover a corrupted mtd partition than recovery's wipe

- v1.2 beta says "press VOL-DOWN to return" instead of "press BACK to return" on all submenus. The buttons, however, are mapped correctly, so it is just a cosmetic issue.

- Thanks again for the hard work :)
 
Upvote 0
Posted on AC thread. Getting mixed up now. lol.

Summary:
- v1.1.0 had a weird issue where wiping .android_secure doubled up the confirm and success messages, did not test with this one

- Request wipe system option since there is no other way to recover a corrupted mtd partition than recovery's wipe

- v1.2 beta says "press VOL-DOWN to return" instead of "press BACK to return" on all submenus. The buttons, however, are mapped correctly, so it is just a cosmetic issue.

- Thanks again for the hard work :)

Thanks for the feedback. I ported this over from my new incredible one and forgot the vol-down. The 2x comfirm message on 1.1 was due to a script that Im not using anymre so should be fixed. About the wipe /system I'm not going to add that as many users could totally mess up thier phone from wiping /system. If you need to manually remove it boot into recovery and via adb shell do /mount system then rm -rf /system twice. Users do not do this command unless you know what you are doing as /system will be lost and not recoverable except with nandroid restore. Zefie you could also do a zip with Format:SYSTEM in update script.
 
Upvote 0
Thanks for the feedback. I ported this over from my new incredible one and forgot the vol-down. The 2x comfirm message on 1.1 was due to a script that Im not using anymre so should be fixed. About the wipe /system I'm not going to add that as many users could totally mess up thier phone from wiping /system. If you need to manually remove it boot into recovery and via adb shell do /mount system then rm -rf /system twice. Users do not do this command unless yu know what you are doing as /system will be lost and not recoverable except with nandroid restore.

Well as i explained in the other thread, clockwork has it and it was useful because when the mtd partition gets corrupted, you can';t fix it any other way

flash_image system system.img will return ECC errors, nandroid will fail because for some reason it wants to mount before flashing the image, and I had no recourse except to flash smccloud's clockwork recovery, use it's wipe system, then come back to your recovery. I'm talking when it gets so corrupted that you can't mount it.

Like I said on AC, perhaps stick the option under "Other" or somewhere not frequently traveled. I wish there was a command line option, I tried everything that day i messed up my MTD.

Though I suppose I could try to make an update-script that just wiped everything, it would just be easier to have it as an "Advanced" option
 
Upvote 0
Also the new SD browser does not scroll so I can't even get down to zefie_test.zip.

If the number of directories exceeds screen space you are SOL.

Liked the old one better.

I'm going to continue with the new directory browsing. Place those zips in say a custom_rom folder as its neater than having all them in root of sd.

I added the code you wanted to my github but commented it out as I think it will cause more damage to the masses than the benefit it will give. If you want to make one for your own use personal use uncomment that code and compile the recovery binary.

Download recovery-thunderc-s-RA-v1.2-GNM.img.zip fixed

md5 154f1b8f73c02d0d1ccad4b6e5ec3562

Try that one should have the vol-down fixed.
 
Upvote 0
Request for this to be placed in /sbin in recovery image:
http://files.persona.cc/zefie/files/cell/LGLS670/tools/flash_eraseall.7z

Usage: if your partition is corrupted, this util can restore them.

For example:

Code:
/sdcard/nandroid/mem=477M/BCDAS-20101130-1927 # mount /system
mount /system
mount: mounting /dev/block/mtdblock5 on /system failed: Invalid argument
Uh oh! My /system is corrupted. Better do a restore..

You try a nandroid restore, it tells you to run nandroid-mobile.sh

But that doesnt work either.

Code:
Restore path: /sdcard/nandroid/mem=477M/BCDAS-20101130-1927
error: unable to mount /system, aborting
Oh no, my phone is screwed.. or is it? :)

You need to wipe your partition.

flash_eraseall /dev/mtd/mtd5

Now your nandroid restore works! :)

Code:
Unpacking system image...
end of image
Restore done
 
Upvote 0
Status
Not open for further replies.

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones