[WIP] Recovery for Arc [Devs invited]

Status
Not open for further replies.
Search This thread

Bin4ry

Inactive Recognized Developer
Nov 14, 2008
2,007
5,907
Berlin
Can you check which
/dev/input/eventX [X is a number]
is the Keys under the display?

On X10 it's
/dev/input/event2

f.e.:
You can try it with:
cat /dev/input/event2

now press the keys, do you see some output? If not just try the next one. Until you find the right one for the keys.

Regards
 
Last edited:

Bin4ry

Inactive Recognized Developer
Nov 14, 2008
2,007
5,907
Berlin
Okay,
Flashtool is already prepared for this case!
So we can try it directly. Download latest!!!!! Flashtool (version 2.9.1) and download the chargemon.zip from my attachment.
Flashtool link:
http://xdaforums.com/showthread.php?t=920746

Unzip the file and copy it into flashtool folder:
Flashtool/custom/xRecvery/
overwrite the original chargemon file!

Now open flashtool and and click "Ask Root Permissions", if that had worked you will see that the "xRecovery" Button on the right side gets activated.
Push it now! :)

When flashtool says -> Recovery installed.
You can reboot the device -> Now push the back button on the device during the booting process. If all works you will be in Recovery :)

Regards
 

Attachments

  • chargemon.zip
    816 bytes · Views: 1,272

chriscpritchard

Senior Member
Sep 29, 2009
73
15
Flashed the recovery, but it doesn't appear to be loading (tried rebooting while holding the back button, and 'adb reboot recovery')
 

Bin4ry

Inactive Recognized Developer
Nov 14, 2008
2,007
5,907
Berlin
adb reboot recovery won't work!

try opening flashtool ->Advanced -> Recovery -> Reboot in recovery.

Does this work?

Regards
 

Bin4ry

Inactive Recognized Developer
Nov 14, 2008
2,007
5,907
Berlin
ok, thanks for testing.

Can you check if the files are there correctly ?

use adb shell and type:

cat /system/bin/chargemon

do you get a readable text or some weird signs?

Regards
 

Bin4ry

Inactive Recognized Developer
Nov 14, 2008
2,007
5,907
Berlin
Okay thanks,
maybe this will help.Problem is that we cannot run anything from /data/.....
So Flashtool fails to install it :/

Just run the RunMe.bat

Regards
 

Attachments

  • arc.zip
    1.9 MB · Views: 404

originlabs

Member
Sep 17, 2010
34
4
Okay thanks,
maybe this will help.Problem is that we cannot run anything from /data/.....
So Flashtool fails to install it :/

Just run the RunMe.bat

Regards

File seems to be missing 'sh'. Also, getting permission denied when attempting to copy into /system/bin. (/system/bin permissions are root:shell, 755).
 

chriscpritchard

Senior Member
Sep 29, 2009
73
15
you're missing a file ("sh") and the adb push commands failed - I modified your batch file slightly, but it doesn't work, possibly due to the missing "sh" file

Code:
adb shell su -c "mount -o remount,rw /dev/block/mtdblock0 /system"
adb shell mkdir /system/recovery
adb push files\recoveryLT15.tar.bz2 /sdcard/arcrecovery/recovery/recovery.tar.bz2
adb push files\sh /sdcard/arcrecovery/recovery/sh
adb push files\chargerLT15 /sdcard/arcrecovery/bin/charger
adb push files\model /sdcard/arcrecovery/recovery/model
adb push files\chargemon /sdcard/arcrecovery/bin/chargemon
adb shell su -c "cp -rf sdcard/arcrecovery/* /system"
adb shell su -c "chmod 04755 /system/bin/chargemon"
adb shell su -c "chmod 04755 /system/bin/charger"
adb shell su -c "chmod 04755 /system/recovery/sh"
adb shell su -c "chmod 444 /system/recovery/recovery.tar.bz2"
 

Bin4ry

Inactive Recognized Developer
Nov 14, 2008
2,007
5,907
Berlin
Ups :)

Sorry i said before long day today!

Here is one with SH included.

Hope it works for you, if not i have to put it into system.img directly or you have to do all that on your own via shell directly!

Regards
 

Attachments

  • arc.zip
    2.3 MB · Views: 332

chriscpritchard

Senior Member
Sep 29, 2009
73
15
Doesn't appear to be at the moment stuck on the Sony Ericsson screen when I choose reboot into recovery but it boots normally when I adb reboot it.
 
  • Like
Reactions: Bin4ry

Bin4ry

Inactive Recognized Developer
Nov 14, 2008
2,007
5,907
Berlin
well this is quite good!
It seems the phone tries to start the recovery but for some reason it won't start!
It's designed the way that on next reboot it have to reboot normal, so no need to worry about this behaviour, it should be stick on the logo aswell if you push the key during boot now!

Let me think about this tomorrow, i have to think if the problem is the compiled file or the script! If it's the file we will have to wait for Z, he has the sources on the recovery and i'm just too lazy to reconstruct them for the ARC :p

But you can check if all files are in right place with right permissions and IF they are really the files ?

Regards
 
  • Like
Reactions: chriscpritchard

Bin4ry

Inactive Recognized Developer
Nov 14, 2008
2,007
5,907
Berlin
Just look in the chargemon and extract the tar.bz2 to see how it works.
I think that the init from recovery (the recovery itself) is not working because of incompatible compilation.
So it cannot write anything into logs!
But it's good that the script itself is still working, we can create a working recovery now from this base :)

I go and get some sleep now! cu

Regards
 
  • Like
Reactions: Thijs96
Status
Not open for further replies.

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    Install this zip via Recovery to get root on every Rom :) (Also STOCK Roms)

    Regards
    Bin4ry
    7
    I fixed recovery :)




    Regards
    Bin4ry
    6
    This is first alpha of recovery.
    DON'T RELY ON IT!
    DON'T FLASH IT!

    To try just BOOT it NOT FLASH!!!!!
    Many functions don't work yet, but we are fixing 1by1.

    To try open a console and type:
    fastboot boot boot.img

    Download:
    http://www.multiupload.com/XUZ9M4VIVG

    Please try & report issues if you are not afraid to TOTAL REFLASH your device in case of messed partitions.

    Navigate through Recovery with VOL +/- and select items with POWER!

    Regards
    Bin4ry
    5
    @DooMLoRD: can CWM recovery sources be compiled on 32-bit machine? I might give it a try ;)
    Yep, it will compile.

    We got xrecovery working on DoomLord's Arc, but there are heavy graphical glitches which I won't be able to solve without having the Arc :mad:


    Cheers,
    z
    5
    Yes thats right, but it's not the problem. The model file gets read in the very beginning of the script, it decides which is the /dev/init/eventX to read the keypress.

    so no problem here ;)

    Regards