[Recovery] [15-May-2010] RA-dream-v1.7.0 (also for the Rogers Dream)

Search This thread

Firerat

Senior Member
Feb 24, 2009
3,848
185
I've had a very similar situation before, and not only in android, but other *IX systems. /sdcard *IS* a not a mount point only, it is a directory. If a mount there fails, you still can copy files to it. Thery'll be stored in the root partition (or whatever FS it belongs to).
maybe, but last time I looked the rootfs was ro
 

Amon_RA

Retired Senior Recognized Developer
Jan 2, 2009
1,295
400
Out of memory problems

Are you guys with "out of memory" issues using the terminal application when your phone is normally booted, or are you using the console (or adb) in the recovery mode?
 
Last edited:

Amon_RA

Retired Senior Recognized Developer
Jan 2, 2009
1,295
400
Some feedback :

To everyone complaining about "mount -a" :
- You don't have to enter "mount -a" if you are using the terminal apk when your phone is normally booted, you do have to use it when you are using adb or console in recovery mode.

- "mount -a" can give back an error if you don't have an ext partition, nothing to worry about.

You don't have to type "su" if you are root already...

I removed the not compatible with older apps2sd warning, it should all work as indicated by Firerat in this thread.
 

jkoenig00

Senior Member
Apr 27, 2009
201
17
i used terminal w CM5t4. no errors with mount -a just memory error after flash recovery command. then rebooted into fastboot and plugged the phone into the comp, didnt do anything, then rebooted, retried, and it worked with the terminal app. i didnt have my setcpu or swapper running maybe that has something to do with it.
 

themapleboy

Senior Member
Feb 9, 2010
264
4
Toronto
yes!! adb via recovery was a beautifull addition as is the new cyan themed recovery loving both of them :) thanks alot

btw couldn't flash via console mount -a would come back with a could not be found (not exact wording you alrede know what it is) but it flashed w/o any issues via terminal and yes i have a ext 3 partition :S
 
Last edited:

qwerty3656

Senior Member
Aug 22, 2009
280
15
To everyone complaining about "mount -a" :
I removed the not compatible with older apps2sd warning, it should all work as indicated by Firerat in this thread.

Sorry - I read the previous Firerat posts, but I guess I missed something. Are you saying that even if we are running one of the old ROM's (e.g. a donut ROM), that the apps2sd of this recovery will support it?
 

Firerat

Senior Member
Feb 24, 2009
3,848
185
Sorry - I read the previous Firerat posts, but I guess I missed something. Are you saying that even if we are running one of the old ROM's (e.g. a donut ROM), that the apps2sd of this recovery will support it?


before your extension partition was mount /system/sd/ and backed up
when you came to restore they were put back in /system/sd/

now your extension partition is mounted /sd-ext/ and backed up
when you restore they go to /sd-ext/

when you restore a donut and reboot, the rom will mount the ext partition /system/sd
so it will be fine

hope that makes sense
 
9

999phonebug

Guest
OOOOOOH... I read that Amon wasn't going to update his Recovery and 1.6.2 wasn't compatible with sd-ext, so I went to Clockwork... Now Amon is back... Should I switch back..............................?
 

Firerat

Senior Member
Feb 24, 2009
3,848
185
OOOOOOH... I read that Amon wasn't going to update his Recovery and 1.6.2 wasn't compatible with sd-ext, so I went to Clockwork... Now Amon is back... Should I switch back..............................?

cm5 wasn't compatible with ra_1.6.2
easy to make cm5 compatible, create /system/sd

does clockwork do what you need it to do?
 

Firerat

Senior Member
Feb 24, 2009
3,848
185
Last time I did, it was not. Do check in recovery:

Code:
ais@dvn3 ~ $ adb devices
List of devices attached
HT93VKF10368    recovery

ais@dvn3 ~ $ adb shell
/ # touch /a
/ # ls -l /a
-rw-rw-rw-    1 0        0               0 May 16 16:29 /a
/ # rm /a
/ # reboot
ais@dvn3 ~ $

oh yeah, so it is
Code:
android@Firerat:~$ adb shell mount
[B]rootfs on / type rootfs (rw)[/B]
tmpfs on /dev type tmpfs (rw,mode=755)
devpts on /dev/pts type devpts (rw,mode=600)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
/dev/block/mtdblock4 on /cache type yaffs2 (rw,nodev,noatime,nodiratime)
 

zimphishmonger

Senior Member
Jun 4, 2009
3,890
729
Anyone else notice it doesnt say the name before you flash the .zip anymore. It just say "Are you sure you want to flash .zip, press home to continue" where it said the actual file name before.
 

lleong1

Member
Feb 5, 2009
32
1
Nuked Recovery....

So while I was trying to update the recovery from 1.6.2, I did something wrong after I got the low memory error and nuked my recovery. I can still boot into CM5.0.7 but I have lost my recovery.

I have been trying to figure out how to install it via fastboot but apparently I need the engineer's SPL but I am on the DangerSPL because CM5 needs that. Now I can't even get into recovery to install the Engineer's SPL.

Can anyone help me get my recovery back?

EDIT: I am on a Mac as well.
 
Last edited:

Firerat

Senior Member
Feb 24, 2009
3,848
185
So while I was trying to update the recovery from 1.6.2, I did something wrong after I got the low memory error and nuked my recovery. I can still boot into CM5.0.7 but I have lost my recovery.

I have been trying to figure out how to install it via fastboot but apparently I need the engineer's SPL but I am on the DangerSPL because CM5 needs that. Now I can't even get into recovery to install the Engineer's SPL.

Can anyone help me get my recovery back?

DangerSPL should have the fastboot mode you need

follow the instructions for fastboot


if you still have no luck,

read this entire thread

http://forum.cyanogenmod.com/index.php?/topic/3440-recovery-is-toasted-not-bricked-phone-thread/
 
1. rename your recovery image to recovery.img (just easier to type later) and place it on the root of your sd

2. while device is off, hold camera button + power and wait till you see some android dudes on skakeboards.

3. Let it run it's check and then push the back button.

You are now in fastboot mode.


OR
2. bootup device till you get to homescreen
3. open terminal emulator
4. type
flash_image recovery recovery.img

Either way will work. But because I know nothing about mac's, I wouldn't know what command you would enter on a mac or what you would use in place of a command prompt...
 

Firerat

Senior Member
Feb 24, 2009
3,848
185
1. rename your recovery image to recovery.img (just easier to type later) and place it on the root of your sd

2. while device is off, hold camera button + power and wait till you see some android dudes on skakeboards.

3. Let it run it's check and then push the back button.

You are now in fastboot mode.

can't wait for the end......
 

Firerat

Senior Member
Feb 24, 2009
3,848
185
########################
edit:

http://forum.cyanogenmod.com/topic/...ot-to-recovery/page__view__findpost__p__21996

^^^^


the above link is what I now recommend















######################################
This is not the recommended way to flash 1.7.0
Personally I recommend via recovery console or fastboot
######################################
this is only needed if you can't get into recovery
or use fastboot
######################################

ok

little bit of a twist on the flash on boot method


its actually commented out in cm5's init.rc

Code:
# Never flash the recovery!
#service flash_recovery /system/etc/install-recovery.sh
#    oneshot

so, we use the 'firstboot' script

attached is
firstboot.txt

did it work?
please link in your sig
http://goo.gl/n8GE

this needs to be put on your sdcard and

Code:
cp /sdcard/firstboot.txt /data/firstboot.sh
you also need to copy the recovery image to /data/recovery.img

this is what is in the firstboot.sh file
Code:
flash_image recovery /data/recovery.img
if [ "$?" = "0" ];
[COLOR="Blue"]$? is the exit code, its 1 if it failed, 0 if it flashed ok[/COLOR]
then
[COLOR="blue"]so, if it flashed ok we delete the recovery image[/COLOR]
	rm /data/recovery.img
	echo "recovery flashed"
else
[COLOR="blue"]if it failed to flash we don't delete it[/COLOR]
	echo "recovery flash failed..."
fi

it will flash the recovery image before android starts, thus limiting the chance of hitting the low memory bug

the /system/etc/init.d/03firstboot
script is
Code:
#!/system/bin/sh
# execute any postinstall script then kill it
if [ -e /data/firstboot.sh ];
then
   log -p i -t boot "Executing firstboot.sh..";
   logwrapper /system/bin/sh /data/firstboot.sh;
   rm -f /data/firstboot.sh;
fi;

that will delete the firstboot.sh script

once you have booted, check data
ls /data/
if the flash worked then you should not see recovery.img

did it work?
please link in your sig
http://goo.gl/n8GE
 

Attachments

  • firstboot.txt
    153 bytes · Views: 180
Last edited:

Top Liked Posts

  • There are no posts matching your filters.
  • 7
    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 Dream/G1 only, if you have an :
    - HTC Magic/MT3G 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
    • 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):
      • [HOME+Back] Reboot system now :: reboot your phone
      • [Alt+X] Go to console :: bring up the console
      • [Alt+T] USB-MS Toggle :: enable/disable USB mass storage (use when the phone is connected to your PC)
      • [Alt+B] Backup/Restore (recovery partition not included!)
        • [Alt+0] Nand backup :: Make a Nand backup
        • [Alt+1] Nand + ext backup :: Make a Nand + ext backup
        • [Alt+2] Nand restore :: Restore a Nand backup
        • [Alt+3] BART backup :: Make a BART backup (Nand + ext)
        • [Alt+4] BART restore :: Restore latest BART backup
        • [Alt+5] Bck Google files :: Makes a backup of the Google proprietary system files in /cache/google
        • [Alt+6] Rst Google files :: Restores the Google proprietary system files from /cache/google
      • [Alt+F] Flash zip from sdcard :: Flash a zip update file from your sdcard
      • [Alt+W] Wipe
        • [Alt+0] Wipe data/factory reset :: Wipe /data and /cache
        • [Alt+1] Wipe cache :: Wipe /cache only
        • [Alt+2] Wipe Dalvik-cache :: Wipe /cache/dalvik-cache
        • [Alt+2] Wipe SD:ext partition : Wipe the ext partition on your sdcard
        • [Alt+4] Wipe battery stats : Wipe the battery stats in /data
        • [Alt+5] Wipe rotate settings : Wipe the sensor settings in /data
      • [Alt+P] Partition sdcard
        • [Alt+0] Partition SD :: Interactive SD partitioning
        • [Alt+1] Repair SD:ext :: Repair the ext partition
        • [Alt+2] SD:ext2 to ext3 :: Convert ext2 to ext3
        • [Alt+3] SD:ext3 to ext4 :: Convert ext3 to ext4
      • [Alt+O] Other
        • [Alt+0] Fix apk uid mismatches :: Does extacly that
        • [Alt+1] Move recovery.log to SD :: Moves the recovery log file to your sdcard. (Use when you want more detailed recovery log information)
      • [ALT+Q]Power off :: Powers off your phone
    • Scripts available from console :

    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.

    via fastboot :
    • Requires engineerings SPL!
    Code:
    Copy recovery-RA-dream-v1.7.0.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-dream-v1.7.0.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-dream-v1.7.0.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-dream-v1.7.0.img

    via console :
    • Requires root
    • 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-dream-v1.7.0.img to the root of your sdcard
    Boot into your current custom recovery (boot while holding HOME)
    select console from the menu
    #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-dream-v1.7.0.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-dream-v1.7.0.img to the root of your sdcard
    start the terminal app
    #flash_image recovery /sdcard/recovery-RA-dream-v1.7.0.img

    Download

    ALWAYS check the md5sum to make sure the zip isn't corrupted.
    Download the R version if you have a Rogers Dream EBI1 phone!

    v1.7.0

    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
    1
    Exactly what stats are wiped by wipe battery stats? Is it the status of what is using the battery? Does this undo or re-do "battery conditioning" (full drain, then full recharge as is often suggested by various people/sources)?

    (searched the forum and this thread and didn't find any real answers)

    It removes /data/system/batterystats.bin After that you should leave it charging until it reaches 100%.
    1
    OK so looking to upgrade from CM 4.2.0.15 to the newest and greatest (6.x) and I apparently need Danger SPL, which needs Amon Ra's recovery.

    The problem I'm having with running the recovery .img is it just sits in the console and doesn't do squat. I tried changing the file name to a non-existent one and it gives me a file not found error, so the file is indeed there but it's just not flashing.

    I have tried the recovery screen, as well as the terminal app. I type su - and hit allow/remember when asked for the permissions prompt screen (I'm assuming this is "rooting").

    When I type the flash_recovery recovery /sdcard/recovery-RA-dream-v1.7.0.img and hit enter, nothing happens. Tried a different console app, same thing.

    Please advise.

    Or can I just go ahead and install Danger SPL with the stock CM4.2.0.15 recovery?

    Thanks!

    try doing

    Code:
    su
    erase_image recovery

    first

    but, tbh it probably worked the first time, its just a little shy and keeps quiet
    1
    hi i am a noob i flash it but it gives the following prompt
    Microsoft Windows XP [Version 5.1.2600]

    List of devices attached
    HT849GZ05795 recovery


    C:\android-sdk-windows\tools>adb shell
    / # flash_image recovery/sdcard/recovery-RA-dream-v1.7.0.img
    flash_image recovery/sdcard/recovery-RA-dream-v1.7.0.img
    usage: flash_image [-d] partition file.img
    options:
    -d delete the image file after a successful flash
    / #

    help

    flash_image<space>recovery<space>/sdcard/recovery-RA-dream-v1.7.0.img