summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2017-09-04 15:08:21 -0700
committerMarcel Ziswiler <marcel.ziswiler@toradex.com>2017-10-03 14:46:45 +0200
commitf57fbf986460f77fb9162371e2f1c0edba5d83a1 (patch)
tree8b7e6aebec1da6d01ab4d1e76526aa634a635999
parent9e2373a492c3294ac6ade3e32566714e8790245e (diff)
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 <stefan.agner@toradex.com> Acked-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
-rw-r--r--classes/image_type_tezi.bbclass2
1 files changed, 1 insertions, 1 deletions
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
}