diff --git a/mmcutils/mmcutils.c b/mmcutils/mmcutils.c index 322f69b..76b8ff8 100644 --- a/mmcutils/mmcutils.c +++ b/mmcutils/mmcutils.c @@ -340,13 +340,18 @@ run_exec_process ( char **argv) { int format_ext3_device (const char *device) { - // Run mke2fs +#ifdef BOARD_HAS_LARGE_FILESYSTEM char *const mke2fs[] = {MKE2FS_BIN, "-j", "-q", device, NULL}; + char *const tune2fs[] = {TUNE2FS_BIN, "-C", "1", device, NULL}; +#else + char *const mke2fs[] = {MKE2FS_BIN, "-j", device, NULL}; + char *const tune2fs[] = {TUNE2FS_BIN, "-j", "-C", "1", device, NULL}; +#endif + // Run mke2fs if(run_exec_process(mke2fs)) return -1; // Run tune2fs - char *const tune2fs[] = {TUNE2FS_BIN, "-C", "1", device, NULL}; if(run_exec_process(tune2fs)) return -1;