View Single Post
Posts: 248 | Thanked: 1,142 times | Joined on Dec 2014 @ Earth
#59
For the record, if anyone wants to use any such restore :

Originally Posted by DrYak View Post
Blobs might be incompatible.
{...}
Or see the content of the factory reset script inside the recovery
{...}
I seem to vaguely remember that the factory-reset needed to also flash a few blobs into the special purpose partition (all the other beside mmcblk0p28)
To flash the blobs that corresponds to some version of Sailfish :

You need to chroot into Sailfish if you're in recovery mode :
Code:
mount -o subvolid=0 /dev/mmcblk0p28 /mnt
mount -t proc proc /mnt/@/proc
mount -o bind /dev /mnt/@/dev
mount -o bind /sys /mnt/@/sys
chroot /mnt/@/
Once in Sailfish root, you need to run all the scripts that are in :
Code:
/var/lib/platform-updates/
(Well, obviously, if you're in recovery, that means you already have a functional recovery, and don't need to run flash-recoveryimg-sbj.sh)

flash-bootimg-sbj.sh : will flash the kernel+initrd into the boot partition.
flash-persist.sh : will flash the content of /persist
flash-platform-images-sbj.sh : will flash all the device-specific blobs into their specific partition (as normally defined in the android standards) : /firmware, /drm, and several other partitions.


If you've chrooted from recovery, remember to exit and umount everything in reverse order.
 

The Following 2 Users Say Thank You to DrYak For This Useful Post: