diff options
author | Drake Dowsett <dowsett@de.ibm.com> | 2006-11-06 16:54:10 +0100 |
---|---|---|
committer | Frank Haverkamp <haver@vnet.ibm.com> | 2006-11-06 16:54:10 +0100 |
commit | 31b015fc08a13a5b63245808f7d1a49eadd8193a (patch) | |
tree | 6ab4ce9a35f18e7b53c95c5cb8063cc55e54615d /ubi-utils/src/bootenv.h | |
parent | 6918e0320c89bc892a6c5d2c6792e5d058e40a6e (diff) |
[MTD] UBI: pfiflash needs to flash raw sections and check CRC
Flashing of raw partitions should be possible now.
CRC checking of pfi files before flashing the content was added.
Signed-off-by: Frank Haverkamp <haver@vnet.ibm.com>
Diffstat (limited to 'ubi-utils/src/bootenv.h')
-rw-r--r-- | ubi-utils/src/bootenv.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ubi-utils/src/bootenv.h b/ubi-utils/src/bootenv.h index 86743ed..9003d70 100644 --- a/ubi-utils/src/bootenv.h +++ b/ubi-utils/src/bootenv.h @@ -230,6 +230,10 @@ int bootenv_size(bootenv_t env, size_t *size); */ int bootenv_read(FILE* fp, bootenv_t env, size_t size); +/** + * @param ret_crc return value of crc of read data + */ +int bootenv_read_crc(FILE* fp, bootenv_t env, size_t size, uint32_t *ret_crc); /** * @brief Read bootenv data from an text/ascii file. @@ -250,6 +254,11 @@ int bootenv_read_txt(FILE* fp, bootenv_t env); int bootenv_write(FILE* fp, bootenv_t env); /** + * @param ret_crc return value of crc of read data + */ +int bootenv_write_crc(FILE* fp, bootenv_t env, uint32_t* ret_crc); + +/** * @brief Write a bootenv structure to the given location (text). * @param fp Filepointer to text file. * @param env Bootenv structure which shall be written. |