From f57fbf986460f77fb9162371e2f1c0edba5d83a1 Mon Sep 17 00:00:00 2001 From: Stefan Agner Date: Mon, 4 Sep 2017 15:08:21 -0700 Subject: image_type_tezi: do not discard by default The utility to create ext4 file systems (mkfs.ext4) discards all data on the target partition before creating the file system by default. On some eMMC this operation takes a while several seconds which makes flashing images slow. Often a new image is written to a already (almost) empty eMMC, so there is not a lot of value in discarding all data before flashing. Also, the Toradex Easy Installer has its own option which uses blkdiscard to discard blocks before writing (see "erase" option). Disable discard during file system creation by default using the nodiscard option. Signed-off-by: Stefan Agner Acked-by: Marcel Ziswiler --- classes/image_type_tezi.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass index ea2d539..867c75a 100644 --- a/classes/image_type_tezi.bbclass +++ b/classes/image_type_tezi.bbclass @@ -63,7 +63,7 @@ def rootfs_tezi_emmc(d): "content": { "label": "RFS", "filesystem_type": "ext4", - "mkfs_options": "", + "mkfs_options": "-E nodiscard", "filename": imagename + ".rootfs.tar.xz", "uncompressed_size": rootfs_get_size(d) / 1024 } -- cgit v1.2.3