########################
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