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ł Miłecki <zajec5@gmail.com> SVN-Revision: 48688
This commit is contained in:
parent
39852286e9
commit
358ae42152
1 changed files with 13 additions and 2 deletions
|
@ -659,8 +659,19 @@ resume:
|
||||||
offset = 0;
|
offset = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (jffs2_replaced && trx_fixup) {
|
if (jffs2_replaced) {
|
||||||
|
switch (imageformat) {
|
||||||
|
case MTD_IMAGE_FORMAT_TRX:
|
||||||
|
if (trx_fixup)
|
||||||
trx_fixup(fd, mtd);
|
trx_fixup(fd, mtd);
|
||||||
|
break;
|
||||||
|
case MTD_IMAGE_FORMAT_SEAMA:
|
||||||
|
if (mtd_fixseama)
|
||||||
|
mtd_fixseama(mtd, 0);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!quiet)
|
if (!quiet)
|
||||||
|
|
Loading…
Reference in a new issue