aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/mtd/src/seama.c
Commit message (Collapse)AuthorAgeFilesLines
* mtd: fix endianness detection on muslStijn Tintel2016-10-271-0/+1
| | | | | Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> Acked-by: John Crispin <john@phrozen.org>
* mtd: support -c (datasize) option for fixseama commandRafał Miłecki2016-06-201-3/+3
| | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* treewide: replace nbd@openwrt.org with nbd@nbd.nameFelix Fietkau2016-06-071-1/+1
| | | | Signed-off-by: Felix Fietkau <nbd@nbd.name>
* mtd: seama: exit with error if Seama header wasn't foundrmilecki2016-05-091-1/+1
| | | | Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* mtd: seama: fix image data handlingrmilecki2016-05-091-28/+18
| | | | | | | | | | | | 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>
* mtd: seama: move buf allocation to the MD5 functionrmilecki2016-05-091-16/+22
| | | | | | This buf is only used in this function now, so lets move it there. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* mtd: seama: update MD5 using header in the first block bufferrmilecki2016-05-091-4/+3
| | | | | | | This will allow separating first block buffer from a buffer used for MD5 calculation. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* mtd: seama: add md5 to header structrmilecki2016-05-091-9/+8
| | | | | | | This allows us to drop some extra offset calculations and simplifies code a bit. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* mtd: check for Seama magic early when fixing MD5rmilecki2016-05-091-7/+21
| | | | | | | This avoid long (and unneeded) process of reading all data in case of running on MTD not containig Seama entity. Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
* packages: clean up the package folderJohn Crispin2013-06-211-0/+179
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 37007