From 25711572bcb5a40057b53323b8b34a28f74d9b0f Mon Sep 17 00:00:00 2001 From: Luka Pivk Date: Mon, 2 Mar 2020 17:17:41 +0100 Subject: image: make sure u-boot enviroment is erased Make sure u-boot enviroment is erased when installing new Toradex Easy Installer image Related-to: TEI-130 Signed-off-by: Luka Pivk --- classes/image_type_tezi.bbclass | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/classes/image_type_tezi.bbclass b/classes/image_type_tezi.bbclass index c0e9b30..af989a2 100644 --- a/classes/image_type_tezi.bbclass +++ b/classes/image_type_tezi.bbclass @@ -160,6 +160,7 @@ def rootfs_tezi_emmc(d, distro=False): }), OrderedDict({ "name": "mmcblk0boot0", + "erase": True, "content": { "filesystem_type": "raw", "rawfiles": bootpart_rawfiles @@ -190,6 +191,11 @@ def rootfs_tezi_rawnand(d, distro=False): } } }) + env = OrderedDict({ + "name": "u-boot-env", + "erase": True, + "content": {} + }) rootfs = { "name": "rootfs", @@ -252,7 +258,7 @@ def rootfs_tezi_rawnand(d, distro=False): "ubivolumes": ubivolumes }) - return [uboot1, uboot2, ubi] + return [uboot1, uboot2, env, ubi] def rootfs_tezi_json(d, flash_type, flash_data, json_file, uenv_file): import json -- cgit v1.2.3