MTK devices better support:
- fix custom backup/restore mode for boot image
- improve error handling of partitions size