Author: rmilecki Date: 2016-02-10 12:35:50 +0100 (Wed, 10 Feb 2016) New Revision: 48688
Modified: trunk/package/system/mtd/src/mtd.c Log: mtd: fix Seama format after replacing EOF with sysupgrade data Seama header has MD5 similarly to TRX and its CRC32. We need to update it after replacing anything in Seama entity content to make bootloader accept it. Signed-off-by: Rafa?\197?\130 Mi?\197?\130ecki <[email protected]> Modified: trunk/package/system/mtd/src/mtd.c =================================================================== --- trunk/package/system/mtd/src/mtd.c 2016-02-09 22:42:48 UTC (rev 48687) +++ trunk/package/system/mtd/src/mtd.c 2016-02-10 11:35:50 UTC (rev 48688) @@ -659,8 +659,19 @@ offset = 0; } - if (jffs2_replaced && trx_fixup) { - trx_fixup(fd, mtd); + if (jffs2_replaced) { + switch (imageformat) { + case MTD_IMAGE_FORMAT_TRX: + if (trx_fixup) + trx_fixup(fd, mtd); + break; + case MTD_IMAGE_FORMAT_SEAMA: + if (mtd_fixseama) + mtd_fixseama(mtd, 0); + break; + default: + break; + } } if (!quiet) _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
