[Recovery] [32A & 32B] [16-May-2010] RA-sapphire-v1.7.0

Search This thread

Amon_RA

Retired Senior Recognized Developer
Jan 2, 2009
1,295
400
Looked around a bit before posting... no joy, so here goes.

Any idea why a Nandroid backup would take entirely too long and have to be aborted via battery pull? I've tried a backup a few times now, even after reformatting the sd card, and it still generates over triple the normal backup size.

It's probably trying to mount something that can't be mounted and hence it stays in a loop that you can only abort from via a battery pull.

Could you please check the recovery log and paste the output here? (see first post for more details on how to check the recovery log)
 

delyorik

Member
Dec 21, 2009
31
0
It's probably trying to mount something that can't be mounted and hence it stays in a loop that you can only abort from via a battery pull.

Could you please check the recovery log and paste the output here? (see first post for more details on how to check the recovery log)

Will do - running a +ext backup now. Will edit this post with the forthcoming log.

Cheers,
Jeff


Edit: So, I did the +ext which terminated normally. Then I did a plain nandroid, which kept going. So I deleted the whole nandroid directory and tried the +ext again, which REALLY kept going. This is the log from that final attempt:

Starting recovery on Sun Oct 3 19:06:57 2010
can't open /dev/tty0: No such file or directory
framebuffer: fd 3 (320 x 480)
Build : RA-sapphire-v1.7.0G
I:Set boot command "boot-recovery"
Command: "/sbin/recovery"

ro.secure=0
ro.allow.mock.location=0
ro.debuggable=0
persist.service.adb.enable=1
ro.build.id=CRB43
ro.build.display.id=CRB43
ro.build.version.incremental=148830
ro.build.version.sdk=3
ro.build.version.release=1.5
ro.build.date=Wed May 13 20:24:21 PDT 2009
ro.build.date.utc=1242271461
ro.build.type=user
ro.build.user=android-build
ro.build.host=apa6.mtv.corp.google.com
ro.build.tags=test-keys
ro.product.model=Google Ion
ro.product.brand=google_ion
ro.product.name=google_ion
ro.product.device=sapphire
ro.product.board=sapphire
ro.product.manufacturer=HTC
ro.product.locale.language=en
ro.product.locale.region=US
ro.board.platform=msm7k
ro.build.product=sapphire
ro.build.description=google_ion-user 1.5 CRB43 148830 adp,test-keys
ro.build.fingerprint=google_ion/google_ion/sapphire/sapphire:1.5/CRB43/148830:user/adp,test-keys
rild.libpath=/system/lib/libhtc_ril.so
wifi.interface=tiwlan0
wifi.supplicant_scan_interval=45
ro.sf.lcd_density=160
ro.config.notification_sound=F1_New_SMS.ogg
ro.com.google.locationfeatures=1
ro.com.android.wifi-watchlist=GoogleGuest
ro.com.android.dateformat=MM-dd-yyyy
ro.com.android.dataroaming=true
ro.com.google.clientidbase=google
ro.ril.hsxpa=1
ro.ril.gprsclass=10
ro.setupwizard.mode=OPTIONAL
ro.url.legal=http://www.google.com/intl/%s/mobile/android/android-dev-phone-legal.html
ro.url.legal.android_privacy=http://www.google.com/intl/%s/mobile/android/android-dev-phone-privacy.html
keyguard.no_require_sim=true
ro.config.sync=yes
net.bt.name=Android
net.change=net.bt.name
dalvik.vm.stack-trace-file=/data/anr/traces.txt
ro.modversion=RA-sapphire-v1.7.0G
ro.factorytest=0
ro.serialno=SH96LP301002
ro.bootmode=recovery_manual
ro.baseband=2.22.19.26I
ro.carrier=TMUS
ro.bootloader=1.33.2005
ro.hardware=sapphire
ro.revision=128
init.svc.recovery=running
init.svc.adbd=running

I:Set boot command ""

Enabling USB-MS : .USB Mass Storage enabled


USB-MS enabled!
Press HOME to disable,
and return to menu

Disabling USB-MS : .USB Mass Storage disabled


USB-MS disabled!

I:Set boot command ""
I:Set boot command ""

Move recovery.log to SD
Press HOME to confirm,
any other key to abort.

Moving : .

***********************
 
Last edited:

Amon_RA

Retired Senior Recognized Developer
Jan 2, 2009
1,295
400
Will do - running a +ext backup now. Will edit this post with the forthcoming log.

Cheers,
Jeff


Edit: So, I did the +ext which terminated normally. Then I did a plain nandroid, which kept going. So I deleted the whole nandroid directory and tried the +ext again, which REALLY kept going. This is the log from that final attempt:

That's the log after you rebooted, it doesn't show anything of the nandroid you tried... Please do a cat of the log while the nandroid is stuck (use adb).

Make sure your battery is +30% , unplug any usb cables + chargers, pull the battery, place the battery and boot directly into recovery, wait a few seconds, perform the nandroid backup.
 

delyorik

Member
Dec 21, 2009
31
0
That's the log after you rebooted, it doesn't show anything of the nandroid you tried... Please do a cat of the log while the nandroid is stuck (use adb).

Make sure your battery is +30% , unplug any usb cables + chargers, pull the battery, place the battery and boot directly into recovery, wait a few seconds, perform the nandroid backup.

I did both "cat" instructions from the 1st post. This morning's attempt generated 3.4 GB during its loop, heh.

In all seriousness, though, I appreciate the help.
 

Attachments

  • recovery.txt
    8.7 KB · Views: 9

nlakes

New member
Oct 1, 2010
4
0
Copy recovery-RA-sapphire-v1.7.0G.img to the root of your sdcard
start the terminal app
#flash_image recovery /sdcard/recovery-RA-sapphire-v1.7.0G.img

When I type the command in bold in, I get the following error message:

flash_image: not found

I am using terminal emulator on a 32B HTC Magic.

Can someone please help me flash the recovery, I've tried so many techniques and none of them are working for me.

Thank you.
 
Last edited:

Amon_RA

Retired Senior Recognized Developer
Jan 2, 2009
1,295
400
When I type the command in bold in, I get the following error message:

flash_image: not found

I am using terminal emulator on a 32B HTC Magic.

Can someone please help me flash the recovery, I've tried so many techniques and none of them are working for me.

Thank you.

flash_image: not found means you don't have the flash_image binary on your phone... get hold of a flash_image binary, copy it to your phone, make sure it has executable rights and can be found in your PATH.
 

djy

Senior Member
Sep 2, 2009
190
45
Amon_RA,

I could not find a thread for it...Would you be willing to update psfreedom with the latest payload? The source is available here:

hxxp://psgroove.com/?p=1369

Thank you for all your hard work. I've been following you and cyanogen daily since the mytouch 3g was released.
 
Last edited:

typeadam

Senior Member
Aug 20, 2008
365
15
10016
OK, I'm somewhat confused by this. I'm trying to help out a friend and this is his first Android phone.
HTC MyTouch 3G (T-Mobile)
Sapphire PVT 32A SHIP S-ON G
HBOOT-1.33.0013 (SAPP31000)
CPLD-13
RADIO-2.22.23.02

The phone is running 1.6 and my friend already did the 1-file root from theunlockr.com using sappimg.zip

From all the posts and wikis I read through, I concluded he needs this *recovery-RA-sapphire-v1.7.0G.img*
However, none of the 3 install methods sound applicable - 1. I'm not sure what 'engineering SPLs' are to do via fastboot, 2. Not sure what 'test keys' are for via adb, and 3. there is no terminal app installed.

I've already been sitting w/ this for 2 days reading and reading and honestly the more I read the more confused I get.
I really don't want to re-learn a whole new phone not on my own network.

I don't remember it being this complicated when I did my Hero or EVO...

There's got to be a step I'm missing or overlooking and I'm stumped right now. :confused:
 

dancer2

Member
Jun 17, 2008
17
0
Hi everybody, I need help

I have HTC Magic Voadafone

SAPPHIRE PVT 32B SHIP S-ON G
HBOOT-1.33.0004 (SAPP10000)
CPLD-10
RADIO-2.22.19.26I
APR 9 2009, 23:30:40

I flashed SPL 1.33.2010 and first 1 rows changed to
SAPPHIRE PVT 32B ENG S-OFF H
HBOOT-1.33.2010 (SAPP10000)

I try to flash recovery-RA-sapphire-v1.7.0G.img

1. first try fastboot devices just for check
2. fastboot flash recovery recovery-RA-sapphire-v1.7.0G.img

but nothing happens? What should I do?

And changing from G to H confuses me.

fastboot boot recovery-RA-sapphire-v1.7.0G.img is working and I got into recovery, but flash is not working!

If I want to try second option with adb shell etc. can I boot like this
fastboot boot recovery-RA-sapphire-v1.7.0G.img
and then go
adb shell
#mount -a
#flash_image recovery /sdcard/recovery-RA-sapphire-v1.7.0G.img
because I can just boot into it, not flash it?

Thanks in advance
 
Last edited:

typeadam

Senior Member
Aug 20, 2008
365
15
10016
OK, I'm somewhat confused by this. I'm trying to help out a friend and this is his first Android phone.
HTC MyTouch 3G (T-Mobile)
Sapphire PVT 32A SHIP S-ON G
HBOOT-1.33.0013 (SAPP31000)
CPLD-13
RADIO-2.22.23.02

The phone is running 1.6 and my friend already did the 1-file root from theunlockr.com using sappimg.zip

From all the posts and wikis I read through, I concluded he needs this *recovery-RA-sapphire-v1.7.0G.img*
However, none of the 3 install methods sound applicable - 1. I'm not sure what 'engineering SPLs' are to do via fastboot, 2. Not sure what 'test keys' are for via adb, and 3. there is no terminal app installed.

I've already been sitting w/ this for 2 days reading and reading and honestly the more I read the more confused I get.
I really don't want to re-learn a whole new phone not on my own network.

I don't remember it being this complicated when I did my Hero or EVO...

There's got to be a step I'm missing or overlooking and I'm stumped right now. :confused:

Anyone have any input or how should I proceed?
 

GammaPaladin

Member
Dec 23, 2007
28
0
Hi, I have a MyTouch 3G 1.2, and I was looking at using this to make a NANDroid backup. The OP says that the in-phone terminal method of installation doesn't worth with CM5.0.7, but is that fixed in CM6.0? Because that's what I'd be looking to install later.

I guess it doesn't really matter, since I'm just wanting to make the backup for the moment.

Fastboot info, in case it matters:

SAPPHIRE PVT 32A SHIP S-ON G
HBOOT-1.33.0013
CPLD-13
RADIO-2.22.23.02
Oct 21 2009,22:33:27

EDIT: Ok, I just used UniversalAndRoot to get root access (Which worked nicely), and attempted the in-phone terminal method described (After issuing the su command, naturally), but the phone says flash_image not found. Am I supposed to get this from somewhere first?
 
Last edited:

dancer2

Member
Jun 17, 2008
17
0
Hi everybody, I need help

I have HTC Magic Voadafone

SAPPHIRE PVT 32B SHIP S-ON G
HBOOT-1.33.0004 (SAPP10000)
CPLD-10
RADIO-2.22.19.26I
APR 9 2009, 23:30:40

I flashed SPL 1.33.2010 and first 1 rows changed to
SAPPHIRE PVT 32B ENG S-OFF H
HBOOT-1.33.2010 (SAPP10000)

I try to flash recovery-RA-sapphire-v1.7.0G.img

1. first try fastboot devices just for check
2. fastboot flash recovery recovery-RA-sapphire-v1.7.0G.img

but nothing happens? What should I do?

And changing from G to H confuses me.

fastboot boot recovery-RA-sapphire-v1.7.0G.img is working and I got into recovery, but flash is not working!

If I want to try second option with adb shell etc. can I boot like this
fastboot boot recovery-RA-sapphire-v1.7.0G.img
and then go
adb shell
#mount -a
#flash_image recovery /sdcard/recovery-RA-sapphire-v1.7.0G.img
because I can just boot into it, not flash it?

Thanks in advance

I just wanted to add, maybe I didn't give enough info. Here is exactly what I write in the command prompt:

C:\android-sdk-windows\tools>fastboot flash recovery recovery-RA-sapphire-v1.7.0G.img
sending 'recovery' (4520 KB)... OKAY [ 1.693s]
writing 'recovery'... OKAY [ 2.460s]
finished. total time: 4.154s

So it transfers everything fine without error, but nothing happens then.

On the page 112 I found the same problem and something about radio, but I already have original radio so I have no idea what to do now.

Tried also through terminal emulator but got error: flash_image:not found

Please, if anybody have any idea please tell me.
 

dancer2

Member
Jun 17, 2008
17
0
Thanks kwapiu for responese.

I did everything by the book, but I'm stuck there where I wrote.

I rooted the phone and Titanium backup is working fine. Everything wirh the paths is OK.

I would like AmonRa recovery, not ClockworkMod :(
 

dancer2

Member
Jun 17, 2008
17
0
I just wanted to add, maybe I didn't give enough info. Here is exactly what I write in the command prompt:

C:\android-sdk-windows\tools>fastboot flash recovery recovery-RA-sapphire-v1.7.0G.img
sending 'recovery' (4520 KB)... OKAY [ 1.693s]
writing 'recovery'... OKAY [ 2.460s]
finished. total time: 4.154s

So it transfers everything fine without error, but nothing happens then.

On the page 112 I found the same problem and something about radio, but I already have original radio so I have no idea what to do now.

Tried also through terminal emulator but got error: flash_image:not found

Please, if anybody have any idea please tell me.
Additional info abut my problem.

Please look posts before for more details.

Maaged to copy flash_image to /system/bin/

and then entered the same command from the 1.st post from Amon Ra (recovery image copied to root of sdcard), it waits 2 seconds, shows again # and that's it.

This has been done from terminal emulator on phone

The same old recovery after phone reset with 3 androids, not Amon Ra :(
 
Last edited:

kwapiu

Member
Sep 2, 2010
31
1
Katowice
I am not any expert or so. My advise migth not be the best but...

Most probably your SPL (HBOOT) does not allows recovery flashing.
Reflash SPL to engineerings one, then try to flash recovery.

Sorry, I got 32A so am not fammiliar with your phone's type spls.
In order to flash recovery on my phone had to change spl twice.

As for adb flashing option:
  • Make sure recovery image is on your SDcard root (
    Code:
    adb push C:\recovery-RA-sapphire-v1.x.xX.img /sdcard/recovery.img
    ) - not any /system/bin/ or whatsoever - SDCARD MAIN CATALOGUE
  • you are supposed to reboot into phone's own recovery (reboot, home + pwr button) and only then flash
    Code:
    adb shell flash_image recovery /sdcard/recovery.img
    .
 
Last edited:

dancer2

Member
Jun 17, 2008
17
0
Hi kwapiu,

thanks again for the answer.

My SPL is allready engineering 1.33.2010

SAPPHIRE PVT 32B ENG S-OFF H
HBOOT-1.33.2010 (SAPP10000)

and it's rooted.

recovery image is in the root of the sdcard and everything I have done until now is OK.

in /system/bin/ I put the flash_image because I didn't have one.

While I'm in my original recovery, only fastboot is working, not adb.
Adb is working fine while I'm in OS.

Interesting about changing SPL twice. I will try to do that once again.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 13
    This is a custom recovery based on Cyanogen's recovery source with a lot of things added by me. The purpose of this recovery is to avoid using adb by accessing all features directly from the menu.

    All source code is available at github.

    This recovery if for the HTC Magic/MT3G only, if you have an :
    - HTC Dream/G1 you should go here.
    - HTC Hero you should go here.
    - HTC Sprint Hero you should go here.
    - HTC Eris you should go here.
    - HTC Tattoo you should go here.
    - HTC Nexus One you should go here.

    Important notes
    • 32A users with SPL 1.76.x should flash the Hero version! (Will be updated to v1.7.0 soon!!)
    • Always check recovery.log before posting your issues!
      You can do this by doing :
      • "cat /tmp/recovery.log" OR "cat /cache/recovery/log" right after you had the issue.
      • Use the "move log to sd" option in the "others" menu right after you had the issue. This will move the log to /sdcard/recovery.log so you can easily open it with a text editor.

    Features

    Use the trackball (up+down) to navigate through the menu, press the trackball to select items.
    You can also use the volume keys (vol-up + vol-down) to navigate, and the CALL-ANSWER key to select items (in case your trackball is broken).

    • full ADB access in recovery mode
    • Busybox v1.15.3
    • HW-Key navigation (volume keys + CALL-ANSWER) option
    • Extended menu (with keyboard-shortcuts):
      • Reboot system now :: reboot your phone
      • USB-MS Toggle :: enable/disable USB mass storage (use when the phone is connected to your PC)
      • Backup/Restore (recovery partition not included!)
        • Nand backup :: Make a Nand backup
        • Nand + ext backup :: Make a Nand + ext backup
        • Nand restore :: Restore a Nand backup
        • BART backup :: Make a BART backup (Nand + ext)
        • BART restore :: Restore latest BART backup
        • Bck Google files :: Makes a backup of the Google proprietary system files in /cache/google
        • Rst Google files :: Restores the Google proprietary system files from /cache/google
      • Flash zip from sdcard :: Flash a zip update file from your sdcard
      • Wipe
        • Wipe data/factory reset :: Wipe /data and /cache
        • Wipe cache :: Wipe /cache only
        • Wipe Dalvik-cache :: Wipe /cache/dalvik-cache
        • Wipe SD:ext partition : Wipe the ext partition on your sdcard
        • Wipe battery stats : Wipe the battery stats in /data
        • Wipe rotate settings : Wipe the sensor settings in /data
      • Partition sdcard
        • Partition SD :: Interactive SD partitioning
        • Repair SD:ext :: Repair the ext partition
        • SD:ext2 to ext3 :: Convert ext2 to ext3
        • SD:ext3 to ext4 :: Convert ext3 to ext4
      • Other
        • Fix apk uid mismatches :: Does extacly that
        • Move recovery.log to SD :: Moves the recovery log file to your sdcard. (Use when you want more detailed recovery log information)
      • Power off :: Powers off your phone
    • Scripts available via adb :

    Install

    • There are several ways to install a custom recovery, choose the one that suits you most (I probably forgot a few).
    • You don't need to enter "mount -a" if your partitions are already mounted.
    • Use the H/G version if your Magic is HTC branded (PVT 32A board)/Google branded (PVT 32B board).

    via fastboot :
    • Requires engineerings SPL!
    Code:
    Copy recovery-RA-sapphire-v1.7.0G.img to a location where fastboot can find it.
    Boot your G1 into fastboot mode (boot while holding BACK)
    Connect your G1 via usb to your pc/mac/...
    fastboot devices (to make sure that fastboot "sees" your device)
    fastboot flash recovery recovery-RA-sapphire-v1.7.0G.img

    via adb :
    • Requires a custom recovery (with test-keys) like Cyanogen's v1.4 or my previous recovery
    • Do NOT follow these steps from a terminal application on the phone, make sure that you've booted into a custom recovery first!!!
    Code:
    Copy recovery-RA-sapphire-v1.7.0G.img to the root of your sdcard
    Boot into your current custom recovery (boot while holding HOME)
    Connect your G1 via usb to your pc/mac/...
    adb shell
    #mount -a (this can give back an error if you don't have an ext partition, don't worry about it and just proceed)
    #flash_image recovery /sdcard/recovery-RA-sapphire-v1.7.0G.img

    via terminal application installed on the phone :
    • Requires root
      [*]DO NOT use this method with CM5.0.7, there are currently some memory issues while flashing, use the above methods (preferably the fastboot method) instead until the issue is fixed in CM5.0.7!
    Code:
    Copy recovery-RA-sapphire-v1.7.0G.img to the root of your sdcard
    start the terminal app
    #flash_image recovery /sdcard/recovery-RA-sapphire-v1.7.0G.img



    Download

    • ALWAYS check the md5sum to make sure the zip isn't corrupted.
    • Click on the Mirror-link if you don't like rapidshare
    • Use the H/G version if your Magic is HTC branded (PVT 32A board)/Google branded (PVT 32B board).


    Change-log :

    v1.7.0
    Code:
    - Fixed some minor bugs
    - Recovery and scripts use /sd-ext instead of /system/sd as mountpoint to support the new apps2sd method (implemented mostly by Chris Soyars)
    - Added an option to backup/restore Google proprietary Android system files (backuptool.sh written by Cyanogen)
    - Removed "move apps2sd"-option as it's not needed anymore with the new apps2sd method
    - Updated BART to v1.3.1 (updated by Dumfuq to support /sd-ext)
    - Added a wipe cache only option
    - Nandroid now backups/restores /cache again by default
    - Dalvik-cache wipes /cache/dalvik-cache now
    - Removed SDCARD: prefix in output when chosing zip to flash
    - Added Cyan version (There's no difference with the normal version, only the wallpaper and textcolor changed)

    v1.6.2
    Code:
    - Added power off menu item
    - New unyaffs binary patched by Koushik Dutta and Packetlss to fix the "losing root"-issue and incorrect file-time after a Nandroid restore
    - New dump_image binary (by Brainaid) patched by Packetlss to fix the "bad blocks"- Nandroid restore issue.
    [COLOR="Red"][B](This will not fix old corrupted Nandroid backups! Please make new backups!!)[/B][/COLOR]
    - New mkyaffs2image binary
    - New flash_image binary
    - Updated busybox to v1.5.3
    - Nandroid menu options will NOT backup or restore recovery, cache, misc, splash1+2 (to avoid issues)
    - Fixed wipe option not wiping when ext was not present
    - Created carebear versions after the idea of packetlss
    - Switched the Nexus logo to a Green Carebear with Nexus One logo (Thanks Montalbert!)

    Special thanks to :
    • packetlss for all the hours of support and awesome coding skills, THANKS man ^^, donate to Haiti
    • Koushik Dutta for the unyaffs binary code fix and help ^^
    • pensive for adding awesome features to Nandroid :)
    • Bkmo for his utility script!
    • Devsk for his switchrom script!
    • 51dusty for his sdparted script!
    • k4str0 for his fix_permissions v2.03 update.
    • Devsk, Dumfuq, Overground for creating BART :D
    • Androidappcritics for the reboot idea in BART :p
    • rikupw for the ideas and toggle_ums script.
    • MLIGN for the idea to port my recovery to the Dream.
    • http://theunlockr.com for all the awesome video’s ^^
    • JesusFreke for his awesome JFv1.43's recovery , donate
    7
    Links in OP for 1.7.0 recoveries have been updated.
    1
    I think its because the stock spl has signiture checking on. Change the spl though and...
    1
    But there says "Only flash recovery-RA-hero-v1.6.2.img if you have a 32A Sapphire with 6.35.x.x radio and 1.76.x SPL, recovery-RA-hero-v1.7.0.1.img will NOT boot! I'll create a new Sapphire version soon."
    Thanks.
    1
    Hello! Anyone who wants to get this recovery in 2022(and beyond) go here: 1pwn.ixmoe.com/websites/android.vslinux.net/downloads/recoveries/index.html
    There are H and G versions, as well as many interesting (e.g. CyanogenMod 6.1.1 for HTC Desire A8181)