mtd: Added trx_fixup for brcm63xx imagetag, and made references to fix_trx use the weak reference rather than the brcm47xx ifdef. This fixes a bug in which sysupgrade failed due to changing bad CRC on reboot.

Signed-off-by: Daniel Dickinson <daniel@cshore.neomailbox.net>

SVN-Revision: 24837
This commit is contained in:
Daniel Dickinson
2010-12-26 04:18:08 +00:00
parent 6ee5411686
commit b3bcc483b2
2 changed files with 77 additions and 6 deletions

View File

@@ -244,9 +244,9 @@ int mtd_replace_jffs2(const char *mtd, int fd, int ofs, const char *filename)
pad(erasesize);
free(buf);
#ifdef target_brcm
trx_fixup(outfd, mtd);
#endif
if (trx_fixup) {
trx_fixup(outfd, mtd);
}
return (mtdofs - ofs);
}
@@ -347,9 +347,9 @@ int mtd_write_jffs2(const char *mtd, const char *filename, const char *dir)
err = 0;
#ifdef target_brcm
trx_fixup(outfd, mtd);
#endif
if (trx_fixup) {
trx_fixup(outfd, mtd);
}
done:
close(outfd);