Twrp recovery test (I want to find some tester)

174 views
Skip to first unread message

lok man siu

unread,
Sep 8, 2016, 9:26:36 AM9/8/16
to Android-rpi
I created a device tree based on rtandroid's one and I add twrp flags on it
https://github.com/bjsiu/android_device_brcm_rpi3
Can someone make recovery use this device tree
ramdisk must be extracted out after build recovery.img
and rename to ramdisk2.img
then edit config txt "initramfs ramdisk.img 0x01f00000" to "initramfs ramdisk2.img 0x01f00000" (boot recovery)
edit config txt "initramfs ramdisk2.img 0x01f00000" to "initramfs ramdisk.img 0x01f00000" (boot system)
I think

Sorry for my bad english
Thanks if someone test with my recovery

Igor Kalkov

unread,
Sep 8, 2016, 10:00:51 AM9/8/16
to Android-rpi
That is pretty cool, thanks for your work! 
I don't understand much about recoveries, how do you plan to use it? It looks like you are replacing the ramdisk. Does it mean you will always boot the recovery instead of the system image? Or is there a way to choose at boot time?

Hary Ayala

unread,
Sep 8, 2016, 1:27:23 PM9/8/16
to Android-rpi
Hmm... Recovery should allow you to boot to the system, but I think it'd boot to recovery by default every time, wouldn't it?

Igor Kalkov

unread,
Sep 8, 2016, 2:21:30 PM9/8/16
to Android-rpi
Sounds reasonable. Shouldn't recovery have a dedicated partition?

Hary Ayala

unread,
Sep 8, 2016, 8:06:30 PM9/8/16
to Android-rpi
It does on android phones, I'm rereading his info tho and drawing some conclusions

1. the config.txt would define 2 different boot options, so we'd need something like berryboot to instruct the pi to which one to boot, from what I read this pretty much replaces the boot partition, but with configuration we can make it boot to android by default and just wait a few seconds to let us choose recovery if we want to
2. we'd need 5 partitions on the card total, so we'd probably have to move both cache and userdata into an extended partition since we can't have more than 4 primary partitions on it (don't know if the pi would like that tho)
3. it sounds doable if the recovery works.

lok man siu

unread,
Sep 9, 2016, 1:17:18 AM9/9/16
to Android-rpi
I think to use recovery as second ramdisk
In the boot partition
Then edit the config text to make pi boot into recovery (second ramdisk)
System and recovery share one zimage kernel

Igor Kalkov

unread,
Sep 9, 2016, 2:55:16 AM9/9/16
to Android-rpi
Is something like this possible? The ramdisk would have to include all the TWRP code, which sounds pretty weird to me. Would be cool though.
I also think you might need to include the actual TWRP repository somewhere in your manifest file: <project name="MoKee/android_bootable_recovery-twrp" path="bootable/recovery-twrp" remote="github" revision="mkm" />

Reply all
Reply to author
Forward
0 new messages