- /* We don't add any additional padding after the end of the image */
- return rkcommon_vrec_header(params, tparams, 1);
+ /*
+ * Pad to a 2KB alignment, as required for init_size by the ROM
+ * (see https://lists.denx.de/pipermail/u-boot/2017-May/293268.html)
+ */
+ return rkcommon_vrec_header(params, tparams, RK_INIT_SIZE_ALIGN);