MTD: Replace with custom partition layout.
Stage1: Update for new mtd partition layout.
Stage1: Write REC_BOOT_MAGIC during emergency boot.