Stijn Tintel
dec29082e0
mtd: fix endianness detection on musl
...
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
Acked-by: John Crispin <john@phrozen.org>
2016-10-27 01:50:42 +03:00
Rafał Miłecki
7e08f2ccbd
mtd: support -c (datasize) option for fixseama command
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
2016-06-20 08:01:31 +02:00
Felix Fietkau
7eeb254cc4
treewide: replace nbd@openwrt.org with nbd@nbd.name
...
Signed-off-by: Felix Fietkau <nbd@nbd.name>
2016-06-07 08:58:42 +02:00
rmilecki
6de401b1f8
mtd: seama: exit with error if Seama header wasn't found
...
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
2016-05-09 18:53:22 +02:00
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>
2016-05-09 18:53:18 +02:00
rmilecki
30edc32888
mtd: seama: move buf allocation to the MD5 function
...
This buf is only used in this function now, so lets move it there.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
2016-05-09 18:53:14 +02:00
rmilecki
1d628f0cbe
mtd: seama: update MD5 using header in the first block buffer
...
This will allow separating first block buffer from a buffer used for MD5
calculation.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
2016-05-09 18:53:13 +02:00
rmilecki
bcccb03200
mtd: seama: add md5 to header struct
...
This allows us to drop some extra offset calculations and simplifies
code a bit.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
2016-05-09 18:53:11 +02:00
rmilecki
8632d89fa0
mtd: check for Seama magic early when fixing MD5
...
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>
2016-05-09 18:53:09 +02:00
John Crispin
4ebf19b48f
packages: clean up the package folder
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 37007
2013-06-21 16:54:37 +00:00