You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
rmilecki 06a3241c27 mtd: seama: fix image data handling
1) Put sanity checks in one place
2) Respect provided offset
3) Read only as much data as needed for MD5 calculation

Thanks to the last change this is a great speedup and memory saver. On
devices with NAND flash we were allocating & reading about 128 MiB while
something about 8 MiB is enough.

Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
8 years ago
..
Makefile mtd: enable "fixseama" on bcm53xx 9 years ago
crc32.c packages: clean up the package folder 11 years ago
crc32.h packages: clean up the package folder 11 years ago
fis.c packages: clean up the package folder 11 years ago
fis.h packages: clean up the package folder 11 years ago
imagetag.c package: mtd: move bcm963xx_tag definition into source code 9 years ago
jffs2.c mtd: add support for bad blocks in NAND flash 10 years ago
jffs2.h packages: clean up the package folder 11 years ago
linksys_bootcount.c mvebu: add support for the Linksys boot counter 9 years ago
md5.c packages: clean up the package folder 11 years ago
md5.h packages: clean up the package folder 11 years ago
mtd.c mtd: add missing breaks in a switch 8 years ago
mtd.h mtd: detect image format when writing 8 years ago
seama.c mtd: seama: fix image data handling 8 years ago
seama.h mtd: seama: add md5 to header struct 8 years ago
trx.c mtd: detect image format when writing 8 years ago