aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/mtd/src/mtd.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2016-06-11 01:41:10 +0200
committerRafał Miłecki <zajec5@gmail.com>2016-06-20 08:01:31 +0200
commit7e08f2ccbdb717c502810085457b824d0f2d067b (patch)
treeb4722ba8a21c5f1cb98b491a7134cf055c2b7bfe /package/system/mtd/src/mtd.c
parentcf6d9d97fbaa7d85b0f972bdc7ad710e96125fd2 (diff)
downloadupstream-7e08f2ccbdb717c502810085457b824d0f2d067b.tar.gz
upstream-7e08f2ccbdb717c502810085457b824d0f2d067b.tar.bz2
upstream-7e08f2ccbdb717c502810085457b824d0f2d067b.zip
mtd: support -c (datasize) option for fixseama command
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Diffstat (limited to 'package/system/mtd/src/mtd.c')
-rw-r--r--package/system/mtd/src/mtd.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/package/system/mtd/src/mtd.c b/package/system/mtd/src/mtd.c
index 284c8791dd..8fbddf56da 100644
--- a/package/system/mtd/src/mtd.c
+++ b/package/system/mtd/src/mtd.c
@@ -674,7 +674,7 @@ resume:
break;
case MTD_IMAGE_FORMAT_SEAMA:
if (mtd_fixseama)
- mtd_fixseama(mtd, 0);
+ mtd_fixseama(mtd, 0, 0);
break;
default:
break;
@@ -737,8 +737,10 @@ static void usage(void)
if (mtd_fixtrx) {
fprintf(stderr,
" -o offset offset of the image header in the partition(for fixtrx)\n");
+ }
+ if (mtd_fixtrx || mtd_fixseama) {
fprintf(stderr,
- " -c datasize amount of data to be used for checksum calculation (for fixtrx)\n");
+ " -c datasize amount of data to be used for checksum calculation (for fixtrx / fixseama)\n");
}
fprintf(stderr,
#ifdef FIS_SUPPORT
@@ -987,7 +989,7 @@ int main (int argc, char **argv)
break;
case CMD_FIXSEAMA:
if (mtd_fixseama)
- mtd_fixseama(device, 0);
+ mtd_fixseama(device, 0, data_size);
break;
}