google-code-export / openeve

Automatically exported from code.google.com/p/openeve
0 stars 1 forks source link

support reboot recovery #69

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
http://review.cyanogenmod.com/#change,5083

Original issue reported on code.google.com by wkp...@gmail.com on 6 May 2011 at 1:42

GoogleCodeExporter commented 9 years ago
How it works ?

 1. copy recovery.img to /sdcard or /cache then exec "reboot recovery".
 2. reboot command try to exec "pre-recovery.sh" to flash "recovery.img"
    on to boot partition.
 3. use RecoveryMode :)

 4. after using RecoveryMode you have to flash boot.zip again.

Original comment by wkp...@gmail.com on 6 May 2011 at 5:53

GoogleCodeExporter commented 9 years ago
currently "adb shell reboot recovery" only works.

not work on the shutdown menu.

Original comment by wkp...@gmail.com on 6 May 2011 at 6:05

GoogleCodeExporter commented 9 years ago
How it works ?

 1. copy recovery.img to /sdcard or /cache then exec "reboot recovery".
 2. reboot command try to exec "pre-recovery.sh" to flash "recovery.img"
    on to boot partition.
 3. use RecoveryMode :)

 4. after using RecoveryMode you have to flash boot.zip again.

where to issue "reboot recovery"? Command line on PC or Terminal in Phone?

Original comment by iareh...@gmail.com on 6 May 2011 at 9:17

GoogleCodeExporter commented 9 years ago
fastboot boot recovery.img is better for me :P

Original comment by Katzen...@gmail.com on 6 May 2011 at 9:24

GoogleCodeExporter commented 9 years ago
good , it's work good ,but when choosing to reboot the phone (from 
recovery),the phone reboots and enter the reovery again.
and when choosing to turn off the phone,the phone can not turn off (hangs on 
shutting down).
but it's a good start.  thanx

Original comment by justsad.eng@gmail.com on 6 May 2011 at 12:44

GoogleCodeExporter commented 9 years ago
why to flash boot.zip again, you can make a script as a zipped update file , to 
flash it (insted of flashing the boot again)

Original comment by justsad.eng@gmail.com on 6 May 2011 at 12:47

GoogleCodeExporter commented 9 years ago
there is no recovery partion on the GW620/KH5200

we have no way to get to recovery mode directly.
and we have only one bootable "boot" partition.

"reboot recovery" command simply trigger "sh /sbin/pre-recovery.sh"
and it flash boot partion with "recovery.img".
----

we need not any other zipped update-style file. boot-gb*.zip is the one already 
exists.

Original comment by wkp...@gmail.com on 6 May 2011 at 1:02

GoogleCodeExporter commented 9 years ago
sorry ,i didn't understand you good..
i said that i did steps above ... i copied the recovery image to sd.
the opened the rom manager and choose to reboot into recovery (under the first 
choice (flash CWM recovery,there is current recovery :clockworkmod 3.0.2.4)).
the phone really reboots into recovery.... it's good that i can go to recovey 
without useing the pc

Original comment by justsad.eng@gmail.com on 6 May 2011 at 1:08

GoogleCodeExporter commented 9 years ago
justsad // that gives me no advantages. but its good to see that you are able 
to use it without a PC :)

Original comment by Katzen...@gmail.com on 6 May 2011 at 4:25

GoogleCodeExporter commented 9 years ago
Katzen >>  why no advantages ??? you can enter the recovery mod without pc !! 
like all other phones . 

Original comment by justsad.eng@gmail.com on 6 May 2011 at 7:24

GoogleCodeExporter commented 9 years ago
Thanks wkp!

Does this mean we will now be able to use the "Install ROM" functionality of 
ROM Manager?

Also, what does the recovery file have to be named?  Should I leave it as 
"gb-recovery.img" or exactly "recovery.img"?

Original comment by rais...@gmail.com on 6 May 2011 at 7:33

GoogleCodeExporter commented 9 years ago
I only need recoverymod for installing these .zip files and mount SDcard at PC.
tell me what i can do usefull with the recovery mode except installig .zip 
files from sd :)

Original comment by Katzen...@gmail.com on 6 May 2011 at 8:12

GoogleCodeExporter commented 9 years ago
And i don't use the mobile internet. only WLAN.

Original comment by Katzen...@gmail.com on 6 May 2011 at 8:14

GoogleCodeExporter commented 9 years ago
So far rebooting into recovery didn't work for me, I'm using the new system 
snapshot and the new boot image snapshot for 236 MB.

I renamed "gb-recovery.img" to "recovery.img".

I will try renaming it back to "gb-recovery.img" and see what happens.

Katzen - recoverymod is great if you flash something that doesn't work and you 
need to revert to a backup, when you are away from a computer for example.

Original comment by rais...@gmail.com on 6 May 2011 at 8:37

GoogleCodeExporter commented 9 years ago
keep the name recovery.img...
reboot into recovery option from the Rom Manager , not from the 
restart/shutdown option

Original comment by justsad.eng@gmail.com on 6 May 2011 at 9:16

GoogleCodeExporter commented 9 years ago
Cool, it works!

Thanks justsad!

Original comment by rais...@gmail.com on 6 May 2011 at 9:21

GoogleCodeExporter commented 9 years ago
I spoke too soon, now my phone only boots CWM recovery ;P

I guess this method replaces the boot image with CWM recovery?
So I assume I will have to reinstall the boot image within CWM every time I use 
this method.

Correct me if I'm wrong.

Original comment by rais...@gmail.com on 6 May 2011 at 9:26

GoogleCodeExporter commented 9 years ago
as i understand drom wkpark >>>>  yes, you need to flash boot again ...
btw ...
from the CWM recovery , when i choose to reboot the phone , the phone reboots 
and enter the recovery again.
when i choose to shutdown .. the phone hangs.

Original comment by justsad.eng@gmail.com on 6 May 2011 at 9:31

GoogleCodeExporter commented 9 years ago
so i suggest to flash a dummy boot zipped file..or another zipped file instead 
of boot , for cleaning the boot procedure .. because boot files is always 
updated... so we may flash an old boot..

Original comment by justsad.eng@gmail.com on 6 May 2011 at 9:34

GoogleCodeExporter commented 9 years ago
i hope to be able to ennter the recovery from the phone menu ..not from the Rom 
Manager app

Original comment by justsad.eng@gmail.com on 6 May 2011 at 9:36

GoogleCodeExporter commented 9 years ago
I just reflashed the new boot zip file.
You shouldn't be confused because they are all labeled with the version.

Original comment by rais...@gmail.com on 6 May 2011 at 9:38

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
justsad : "so i suggest to flash a dummy boot zipped file..or another zipped 
file instead of boot , for cleaning the boot procedure .. because boot files is 
always updated... so we may flash an old boot.."

if you do this the phone wouldn't even boot CWM, so you'll have to flash boot 
through fastboot or boot CWM through fastboot, which means the purpose of 
recovery support would be pointless because you'll have to use a pc in anyway...

Original comment by omarbeko...@gmail.com on 17 May 2011 at 3:01

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
omarbeko>>>did you understand what i wrote/suggest ???

Original comment by justsad.eng@gmail.com on 18 May 2011 at 8:30

GoogleCodeExporter commented 9 years ago
oh, sorry) misunderstood you, should read more careful next time...

Original comment by omarbeko...@gmail.com on 18 May 2011 at 9:05

GoogleCodeExporter commented 9 years ago

Original comment by wkp...@gmail.com on 29 May 2011 at 1:01