what are your thots?
scotty85,
It would work -
in principle. Because neither the "boot" nor the "recovery" partition are ever mounted or even read by the kernel once it gets itself bootstrapped and the ramdisk initialized, you could conceivably swap the roles of the two partitions. (You can think of them as being 100% "read-only" partitions, excepting for flashing operations. This means that the running kernel can over-write into the very partition that it booted from, but not change one iota about the way the
currently running kernel behaves)
In doing that, if you powered up the phone normally, it would go into recovery mode, and if you powered it up to one of the bootloader modes (fastboot or hboot mode) and thence to the "recovery" option, the phone would boot up "normally".
After all, there is no functional difference between "boot" and "recovery partitions - they are raw partitions containing a (packed) kernel and compressed ramdisk. In fact, if you unpack a HTC boot and recovery boot from the the same HTC release, you will see that the kernels are identical.
But notice that I said
"in principle". The sticky widget is that
the size of the boot and recovery partitions are not equal for the Eris In fact, the default recovery partition is
twice the size of the boot partition. Amon_Ra's recovery is about 3.9 MB, but the boot partition is only 2.5 MB -
simply put, it won't fit.
You certainly might be able to hack together a recovery that is small enough to fit; I'm not sure as I haven't tried. You definitely could flip the value of the secure flag in the standard boot image without changing the resulting image size.
eu1
P.S. If it worked, I see it would be of value in a couple of corner cases:
- the boot partition is horribly defective. Replacing the recovery partition with a standard "boot" image would allow you to use an Eris in a normal way. You'd just have to start your phone up in an unusual fashion (as if you intended to start it in recovery). Of course, if you wanted to flash a new ROM, you would need to manually flash the "recovery" partition with your boot.img file from that ROM. And re-install your "recovery" in the boot partition, since the ROM install would stomp on it.
Note that there were a few reports of Erii that had a couple of bad blocks in their "boot" partition, and as a result could not flash certain roms that use something like 95% of the total space in "boot". This trick would overcome that roadblock as the recovery partition is 2x the size of the boot partition.
- the case you mentioned previously - where you can write to the recovery partition, but can't seem to get the recovery to boot with key sequences; in that case
fastboot boot would get you into a recovery for repair operations.
.