ARCHIVED: Clockwork Mod Recovery V. 0.5

Status
Not open for further replies.

smccloud

Well-known member
Oct 30, 2009
939
34
28
If you don't have a Sprint Optimus S do not flash this. You run a big risk of bricking your phone if you do.

Also, I'm not responsible if you mess up your phone, I'll do what I can to help though.

Ok, I've been working on porting CyanogenMod ROM to the Optimus S. My first step is Clockwork Mod.

To use copy flash_image and CWM0.5.img to the root of your sdcard.

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

Code:
 mount -o remount,rw -t yaffs2 /dev/block/mtdblock5 /system

# cat /sdcard/flash_image > /system/bin/flash_image

# chmod 755 /system/bin/flash_image

# mv /system/etc/install-recovery.sh /system/etc/install-recovery.sh.bak

# mount -o remount,ro -t yaffs2 /dev/block/mtdblock5 /system

# flash_image recovery /sdcard/CWM0.5.img

Key combo to boot custom recovery from powered off is vol_down + home + power and release keys at LG splash.

Recovery Features:

ADB as root user

USB-MS Toggle :mounts sdcard as mass storage

Backup/Restore:
Nand Backup : runs a nandroid backup of data, cache, boot, system
Nand Restore : browse to and select nandroid backup to restore

Flash Zip From Sdcard: Update.zip must be in root of sdcard

Wipe Menu:
Wipe data/factory reset: wipes data & cache
Wipe cache
Wipe Dalvik cache : Wipes Dalvik cache in all possible locations if moved by apps2sd
Wipe SD:ext : Wipes Apps2sd ext partition (still working on this)
Wipe Battery Stats
Wipe rotate settings

Partition Sdcard:
Partition SD: Partition's sdcard for apps2sd (this formats card so all non backed-up data is lost)
Repair Sd:ext permissions

Mounts:
Gui mounts to avoid typing in terminal to mount and cd into a dir to mount system, data, cache, sd-ext (if exists), sdcard

Other:
Move recovery log to SD
Key Test : Output keycodes for debugging recovery

Recovery Key mapping:
Up & down : vol-up and vol-down
Select : Camera
Backup : Back

I am still working on proper sd:ext support.

Links
http://smccloud.com/android/flash_image
http://smccloud.com/android/CWM0.5.img

I want to thank the following
drellisdee - for his post text that I borrowed & modified
everyone that voted in my CM thread
Beezy - for letting me know that I don't have sd:ext support
mrinehart93 - for working on ASOP while i'm doing this, his work will probably help me
any one else I forgot.
 
Last edited:
Congrats about time you got it posted.lol J/K. Thanks again for all the hardwork and getting us cwm recovery.
 
Congrats about time you got it posted.lol J/K. Thanks again for all the hardwork and getting us cwm recovery.

It shouldn't be that &%$@#*@ hard for me to get SD:ext wiping working but yet it is :(

There are only so many block devices I can try and I figured one w/ mmc in the name would be the right one. It is for the fat32 partition (doesn't sound like I wiped that one out by accident, does it).
 
It shouldn't be that &%$@#*@ hard for me to get SD:ext wiping working but yet it is :(

There are only so many block devices I can try and I figured one w/ mmc in the name would be the right one. It is for the fat32 partition (doesn't sound like I wiped that one out by accident, does it).

The joy of hacking the Optimus.lol
if i run the mount command in shell it says (/dev/block/mmcblk0p2 /system/sd ext3)
 
  • Like
Reactions: Mr.Ahole
The joy of hacking the Optimus.lol
if i run the mount command in shell it says (/dev/block/mmcblk0p2 /system/sd ext3)

And thats the block device I used in the config. No clue what its not working :(
Unless its because the boot.img I used to make the config files needed don't have SD:ext support.
 
And thats the block device I used in the config. No clue what its not working :(
Unless its because the boot.img I used to make the config files needed don't have SD:ext support.

Hmm that sparks a little idea in my head, ill send you a pm with my idea in a little while i can't get to the pc with all that info on it.
 
Hah, I think I know the problem! When I was mucking around in the config for our kernel, it did not have ext3 or any other filesystem support. You need to enable ext# support in the config :) That should do the trick!

Oh, btw, you should put a link for CWM in the OP :)
 
Hah, I think I know the problem! When I was mucking around in the config for our kernel, it did not have ext3 or any other filesystem support. You need to enable ext# support in the config :) That should do the trick!

Yeah, but I have zefie's kernel w/ ext3 support.
 
Hah, I think I know the problem! When I was mucking around in the config for our kernel, it did not have ext3 or any other filesystem support. You need to enable ext# support in the config :) That should do the trick!

Oh, btw, you should put a link for CWM in the OP :)

I can't speak for the optimus, but when I built a variation of cwm on the intercept, it used a recovery.rc that referenced init.rc that still had to be there, and to convert filesystems it had to show ext2/3/4 partitions in the init.rc. Probably won't help because it's a different phone, but I've heard worse ideas spark some nice solutions before.
 
I can't speak for the optimus, but when I built a variation of cwm on the intercept, it used a recovery.rc that referenced init.rc that still had to be there, and to convert filesystems it had to show ext2/3/4 partitions in the init.rc. Probably won't help because it's a different phone, but I've heard worse ideas spark some nice solutions before.

where on the phone where they located?
 
Seems to work good, only thing that messes up is me. I keep pushing the "menu" button instead of the camera one, lol. Menu just black sceens me, adb reboot recovery, camera! 100% operator error :o

Thanks for the work!
 
Seems to work good, only thing that messes up is me. I keep pushing the "menu" button instead of the camera one, lol. Menu just black sceens me, adb reboot recovery, camera! 100% operator error :o

Thanks for the work!

Actually, hitting menu again brings the screen back ;)
 
smccloud, I think I have a recovery.rc somewhere in my files... I'll see if I can dig one out for you and upload it.
 
Status
Not open for further replies.