Go Back   Android Forums > Android Development > Developer Forums > Getitnowmarketing

Get excited for the Samsung Galaxy S5! Find everything you need and discuss it in our Galaxy S5 Forum!

test: Reply
 
LinkBack Thread Tools
Old November 18th, 2010, 04:02 PM   #1 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 792 Times in 168 Posts
Default Custom Recovery Optimus S/ Thunderc-sprint

Outdated : New thread All In One Recovery Thread

Attached Files
File Type: zip flash_image.zip (4.9 KB, 650 views)

getitnowmarketing is offline  
Last edited by getitnowmarketing; November 9th, 2011 at 12:47 PM.
Reply With Quote
The Following 3 Users Say Thank You to getitnowmarketing For This Useful Post:
jmzsctt (February 25th, 2011), loudang (December 5th, 2010), zefie (November 29th, 2010)
sponsored links
Old November 18th, 2010, 04:43 PM   #2 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

we have to look at the certs since the RC1 and beta refuse to take a LG-issued update.
zefie is offline  
Reply With Quote
Old November 18th, 2010, 04:52 PM   #3 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 792 Times in 168 Posts
Default

Quote:
Originally Posted by zefie View Post
we have to look at the certs since the RC1 and beta refuse to take a LG-issued update.
Custom recovery uses test keys. You will never have lg's private key.
getitnowmarketing is offline  
Reply With Quote
Old November 20th, 2010, 07:43 AM   #4 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 4
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

works like a charm thanks
boytek is offline  
Reply With Quote
Old November 21st, 2010, 05:59 PM   #5 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 1
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

Do we have a way to revert back to stock recovery?
RaSpewTin is offline  
Reply With Quote
Old November 21st, 2010, 06:07 PM   #6 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 792 Times in 168 Posts
Default

Quote:
Originally Posted by RaSpewTin View Post
Do we have a way to revert back to stock recovery?
Yes stock recovery is the mtd2 in download here. http://androidforums.com/lg-optimus-s/219777-need-dump-build-recovery.html

You would need to follow steps above and substitue the mtd2 dump for my recovery.
getitnowmarketing is offline  
Reply With Quote
Old November 22nd, 2010, 11:57 AM   #7 (permalink)
Junior Member
 
Join Date: Nov 2010
Posts: 18
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

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.
bloodbought is offline  
Reply With Quote
Old November 22nd, 2010, 12:02 PM   #8 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 792 Times in 168 Posts
Default

Quote:
Originally Posted by bloodbought View Post
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.
getitnowmarketing is offline  
Last edited by getitnowmarketing; November 22nd, 2010 at 12:09 PM.
Reply With Quote
Old November 22nd, 2010, 12:12 PM   #9 (permalink)
Junior Member
 
Join Date: Nov 2010
Posts: 18
 
Device(s):
Carrier: Not Provided

Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by getitnowmarketing View Post
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.
bloodbought is offline  
Reply With Quote
Old November 22nd, 2010, 11:10 PM   #10 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Safest way to get back to stock recovery from a custom recovery is to download this file:
http://files.mysticmidnight.net/zefie/files/cell/LG670/roms/V9_LG_Stock_Recovery.zip

Extract it and push it to your sdcard and just flash it like any other recovery image.

flash_image recovery recovery.img
zefie is offline  
Reply With Quote
sponsored links
Old November 23rd, 2010, 12:33 AM   #11 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

everytime i type
cat /sdcard/flash_image > /system/bin/flash_image
i get : no such file or directory.

what am i doing wrong? i have both zip files on the root of my sd card

edit..
got it working. i didn't extract the files. my noob is showing...lol
jackpearce is offline  
Last edited by jackpearce; November 23rd, 2010 at 01:05 AM.
Reply With Quote
Old November 23rd, 2010, 01:26 PM   #12 (permalink)
New Member
 
Join Date: Aug 2010
Posts: 7
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default No File Exists

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
viper134 is offline  
Reply With Quote
Old November 23rd, 2010, 05:26 PM   #13 (permalink)
New Member
 
Join Date: Nov 2010
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

I had the same problem. What worked for me was adding .bak after the first .sh
jackpearce is offline  
Reply With Quote
Old November 23rd, 2010, 06:20 PM   #14 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 792 Times in 168 Posts
Default

Quote:
Originally Posted by viper134 View Post
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.
getitnowmarketing is offline  
Reply With Quote
Old November 24th, 2010, 09:08 PM   #15 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 6
Thanked 0 Times in 0 Posts
Default

I'm a noob,how do i get to the #,when i typed adb shell,it became a $ prompt.
2kmy477 is offline  
Last edited by getitnowmarketing; November 29th, 2010 at 10:50 AM.
Reply With Quote
Old November 25th, 2010, 10:17 AM   #16 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 792 Times in 168 Posts
Default

Quote:
Originally Posted by 2kmy477 View Post
I'm a noob,how do i get to the #,when i typed adb shell,it became a $ prompt.
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 #.
getitnowmarketing is offline  
Reply With Quote
The Following User Says Thank You to getitnowmarketing For This Useful Post:
2kmy477 (November 25th, 2010)
Old November 25th, 2010, 11:07 AM   #17 (permalink)
New Member
 
Join Date: Jun 2010
Posts: 11
 
Device(s):
Carrier: Not Provided

Thanks: 6
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by getitnowmarketing View Post
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.
2kmy477 is offline  
Last edited by 2kmy477; November 25th, 2010 at 11:29 AM. Reason: found the solution
Reply With Quote
Old November 29th, 2010, 10:49 AM   #18 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 792 Times in 168 Posts
Default

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 recovery /sdcard/recovery-thunderc-s-RA-1.2-GNM.img
getitnowmarketing is offline  
Last edited by getitnowmarketing; November 29th, 2010 at 03:56 PM.
Reply With Quote
The Following User Says Thank You to getitnowmarketing For This Useful Post:
zefie (November 29th, 2010)
Old November 29th, 2010, 11:57 AM   #19 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

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
zefie is offline  
Reply With Quote
Old November 29th, 2010, 12:24 PM   #20 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 792 Times in 168 Posts
Default

Quote:
Originally Posted by zefie View Post
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.
getitnowmarketing is offline  
Last edited by getitnowmarketing; November 29th, 2010 at 12:27 PM.
Reply With Quote
sponsored links
Old November 29th, 2010, 12:28 PM   #21 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

Quote:
Originally Posted by getitnowmarketing View Post
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
zefie is offline  
Reply With Quote
Old November 29th, 2010, 01:20 PM   #22 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

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.
zefie is offline  
Reply With Quote
Old November 29th, 2010, 03:54 PM   #23 (permalink)
ROM Developer
Thread Author (OP)
 
Join Date: Apr 2010
Posts: 477
 
Device(s):
Carrier: Not Provided

Thanks: 9
Thanked 792 Times in 168 Posts
Default

Quote:
Originally Posted by zefie View Post
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.
getitnowmarketing is offline  
Last edited by getitnowmarketing; November 29th, 2010 at 03:56 PM.
Reply With Quote
Old November 30th, 2010, 02:21 PM   #24 (permalink)
Junior Member
 
Join Date: Nov 2009
Posts: 70
 
Device(s): LG Optimus S
Carrier: Not Provided

Thanks: 4
Thanked 10 Times in 6 Posts
Default

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
zefie is offline  
Last edited by zefie; March 12th, 2012 at 03:29 AM. Reason: updated file download link
Reply With Quote
Old December 5th, 2010, 01:31 PM   #25 (permalink)
Junior Member
 
Join Date: Dec 2009
Posts: 17
 
Device(s): sprint HTC hero
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default help

on the second comand i get this

cat /sdcard/flash_image > /system/bin/flash_image after this i get this

invalid lenght////////////////////////////////// got it oops it wasn't extracting the zips correctly
yeah i know it sounds weird but i had to do it through estrongs file explorer
chinochino360 is offline  
Last edited by chinochino360; December 5th, 2010 at 07:19 PM.
Reply With Quote
Old January 15th, 2011, 04:02 PM   #26 (permalink)
New Member
 
Join Date: Jan 2011
Posts: 2
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

To flash: via adb shell or terminal type this from root # shell

i dont know what to do here cuz i dont know what it means and what is it :/
lil'rocket is offline  
Reply With Quote
Old June 10th, 2011, 12:46 PM   #27 (permalink)
Senior Member
 
Sak01's Avatar
 
Join Date: Mar 2011
Posts: 937
 
Device(s): Nexus 4, HTC Desire
Carrier: Not Provided

Thanks: 186
Thanked 148 Times in 115 Posts
Default

Quote:
Originally Posted by zefie View Post
You need to wipe your partition.

flash_eraseall /dev/mtd/mtd5

Now your nandroid restore works!
Could someone tell me how to get this flash_eraseall command to work? I keep getting this error message: "/sbin/sh: flash_eraseall: not found"
Sak01 is offline  
Reply With Quote
Old November 2nd, 2011, 08:21 PM   #28 (permalink)
New Member
 
Join Date: Nov 2011
Posts: 6
 
Device(s):
Carrier: Not Provided

Thanks: 0
Thanked 0 Times in 0 Posts
Default

after i type in reboot recovery it shows the lg sign then goes to a black screen until i pull the battery. Any ideas?
weinerwad3000 is offline  
Reply With Quote
Reply


Go Back   Android Forums > Android Development > Developer Forums > Getitnowmarketing
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:27 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.