Custom Recovery Image

brianr0131

Member
Joined
Nov 10, 2009
Messages
407
Reaction score
0
Location
Cherry Hill, NJ
5) Opened up terminal emulator and tried all of the following from the $ prompt AND the # (su) prompt:

flash_image recovery /sdcard/recovery-0.08.img
/sdcard/flash_image recovery /sdcard/recovery-0.08.img

I also tried to cd into /sdcard/ and run the same two commands. I tried

./flash_image recovery /sdcard/recovery-0.08.img

also and that didn't work.

if flash_image is in the root of the sdcard, you'll have to run
'/sdcard/flash_image recovery /sdcard/recovery.img' since flash_image is not in your $PATH
didn't work :icon_eek:

didn't work because that response was cut and pasted from Alldroid where someone renamed the file to just recovery instead of recovery-0.08

However, I tried it with the 0.08 and it still didn't work anyway LOL
 

brianr0131

Member
Joined
Nov 10, 2009
Messages
407
Reaction score
0
Location
Cherry Hill, NJ
atually when I type:

/sdcard/flash_image recovery /sdcard/recovery-0.08.img

I now get a permission denied error instead of the file not found that I was getting before.

hmmmmmm
 

toka

New Member
Joined
Dec 12, 2009
Messages
13
Reaction score
0
atually when I type:

/sdcard/flash_image recovery /sdcard/recovery-0.08.img

I now get a permission denied error instead of the file not found that I was getting before.

hmmmmmm

can you give us the output of ' ls -l /sdcard/ ' also the output of 'mount' ?
 

gardobus

Silver Member
Joined
Nov 1, 2009
Messages
1,964
Reaction score
0
Location
Arizona
Forgot to mention, the command which seems to get me the farthest is:

/sdcard/flash_image recovery /sdcard/recovery-0.08.img

What I get from that is:

/sdcard/flash_image: permission denied

I get that even when I su to the # prompt. Any ideas?

atually when I type:

/sdcard/flash_image recovery /sdcard/recovery-0.08.img

I now get a permission denied error instead of the file not found that I was getting before.

hmmmmmm
:icon_eek:
 

boostdscoob

Member
Joined
Dec 11, 2009
Messages
273
Reaction score
0
Location
ohio
didnt work.. no new recovery, just the stock one. says cant open /cache/recovery/command
 

boostdscoob

Member
Joined
Dec 11, 2009
Messages
273
Reaction score
0
Location
ohio
i get nothing. it acts like everything works, but then upon reboot, i have to hit vol^ and camera button to get into stock recovery
 

brianr0131

Member
Joined
Nov 10, 2009
Messages
407
Reaction score
0
Location
Cherry Hill, NJ
i get nothing. it acts like everything works, but then upon reboot, i have to hit vol^ and camera button to get into stock recovery

Did you do this step to disable stock recovery reset on boot?

su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mv /system/recovery-from-boot.p /system/recovery-from-boot.old
sync
mount -o remount,r -t yaffs2 /dev/block/mtdblock3 /system
 

jinx10000

Member
Joined
Dec 10, 2009
Messages
66
Reaction score
0
have you renamed /system/recovery-on-boot.p
i may be missing the point, I've had a few beers.
edit: Brian beat me to it.
 
Last edited:

toka

New Member
Joined
Dec 12, 2009
Messages
13
Reaction score
0
i get nothing. it acts like everything works, but then upon reboot, i have to hit vol^ and camera button to get into stock recovery

Did you do this step to disable stock recovery reset on boot?

su
mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
mv /system/recovery-from-boot.p /system/recovery-from-boot.old
sync
mount -o remount,r -t yaffs2 /dev/block/mtdblock3 /system

this only applies if you boot fully into android after making your change. i ran the flash_image command, hit power off, held x on start and got into the 0.07 custom recovery image. it replaces the recovery partition as part of the os init. i wouldn't advocate moving that file until you're sure you want the new recovery image to stick =) just remember, if you do normal startup, you're back to factory and need to rerun the commands if you want to go back to custom.
 

brianr0131

Member
Joined
Nov 10, 2009
Messages
407
Reaction score
0
Location
Cherry Hill, NJ
can you give us the output of ' ls -l /sdcard/ ' also the output of 'mount' ?

These are both very long outputs....are there specific lines you're looking for?

the line for flash_image and the recovery.img files on the first, and the line for the /sdcard mount on the second

----rwxr-x system sdcard_rw 26172 2009-12-12 20:46 flash_image

/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 o
 

toka

New Member
Joined
Dec 12, 2009
Messages
13
Reaction score
0
These are both very long outputs....are there specific lines you're looking for?

the line for flash_image and the recovery.img files on the first, and the line for the /sdcard mount on the second

----rwxr-x system sdcard_rw 26172 2009-12-12 20:46 flash_image

/dev/block//vold/179:1 /sdcard vfat rw,dirsync,nosuid,nodev,noexec,uid=1000,gid=1015,fmask=0702,dmask=0702,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 o

excellent, see that "noexec" in the mount entry for sdcard? that should be your permission denied issue.
 
Top