diff options
author | Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> | 2018-08-31 18:14:24 -0700 |
---|---|---|
committer | Petr Štetiar <ynezz@true.cz> | 2019-07-17 22:59:29 +0200 |
commit | fd104daa2f818d39d9b53476f7e099fc481ce783 (patch) | |
tree | 9fd93e8e13eeaee6802d3e280cf08149286affa8 /package/system/mtd/src/fis.h | |
parent | 261df949faad6dda43454868628f79265e9cc5e7 (diff) | |
download | upstream-fd104daa2f818d39d9b53476f7e099fc481ce783.tar.gz upstream-fd104daa2f818d39d9b53476f7e099fc481ce783.tar.bz2 upstream-fd104daa2f818d39d9b53476f7e099fc481ce783.zip |
mtd: add CRC signature to RedBoot partition map
The code for calculating the CRC32 signatures for RedBoot FIS partitions
was already included, but for unknown reasons, it was never invoked. Some
bootloaders enforce checking these for loaded kernels, so they should be
written. This patch does so.
Tested-by: Brian Gonyer <bgonyer@gmail.com>
Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us>
Diffstat (limited to 'package/system/mtd/src/fis.h')
-rw-r--r-- | package/system/mtd/src/fis.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/package/system/mtd/src/fis.h b/package/system/mtd/src/fis.h index bdf1103d8a..2be2cb1f04 100644 --- a/package/system/mtd/src/fis.h +++ b/package/system/mtd/src/fis.h @@ -6,6 +6,8 @@ struct fis_part { uint32_t offset; uint32_t loadaddr; uint32_t size; + uint32_t length; + uint32_t crc; }; int fis_validate(struct fis_part *old, int n_old, struct fis_part *new, int n_new); |