From: Lukasz Majewski <lukma@denx.de>
Date: Fri, 11 May 2018 14:51:11 +0000 (+0200)
Subject: display5: config: factory: Update BACKUP rootfs in factory mode
X-Git-Tag: v2025.01-rc5-pxa1908~4041^2~46
X-Git-Url: http://git.dujemihanovic.xyz/img/static/html/index.html?a=commitdiff_plain;h=18ccca59e31bcf415b469ef2c71bfe9c14dbc6e3;p=u-boot.git

display5: config: factory: Update BACKUP rootfs in factory mode

After splitting rootfs images to BACKUP and ACTIVE, the "factory"
u-boot also needs to update the former.

Signed-off-by: Lukasz Majewski <lukma@denx.de>
---

diff --git a/include/configs/display5.h b/include/configs/display5.h
index fed88801ea..6b428c1884 100644
--- a/include/configs/display5.h
+++ b/include/configs/display5.h
@@ -194,13 +194,11 @@
 	       "mmc write ${loadaddr} ${lba_start} ${fw_sz}; " \
 	   "; fi\0" \
 
-/* To save some considerable time, we only once download the rootfs image */
-/* and store it on 'active' and 'backup' rootfs partitions */
 #define TFTP_UPDATE_ROOTFS \
 	"setenv rootfs_part ${rootfs_part_active};" \
 	"run tftp_mmc_rootfs;" \
-	"part start mmc ${mmcdev} ${rootfs_part_backup} lba_start;" \
-	"mmc write ${loadaddr} ${lba_start} ${fw_sz};" \
+	"run tftp_mmc_rootfs_bkp;" \
+
 
 #define TFTP_UPDATE_RECOVERY_SWU_KERNEL \
 	"tftp_sf_fitImg_SWU=" \