From 1807f33c32c8fccc194da78bad451536ae8fa3b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E5=B8=85?= Date: Tue, 28 Sep 2021 14:19:51 +0000 Subject: [PATCH 1/2] =?UTF-8?q?feat:=20add=20liteos=20patch=20ability=20Si?= =?UTF-8?q?gned-off-by:=20=E9=A9=AC=E5=B8=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- u-boot-2020.01/product/hiupdate/auto_update_adaptation.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/u-boot-2020.01/product/hiupdate/auto_update_adaptation.c b/u-boot-2020.01/product/hiupdate/auto_update_adaptation.c index 9249b689e4..0d05896a89 100644 --- a/u-boot-2020.01/product/hiupdate/auto_update_adaptation.c +++ b/u-boot-2020.01/product/hiupdate/auto_update_adaptation.c @@ -1063,6 +1063,11 @@ static int update_to_flash(void) char buf[NAME_MAX_LEN] = {0}; #ifdef CONFIG_AUTO_OTA_UPDATE + if (g_update_status == 0) { + printf("\nThe last upgrade failed, do not continue this upgrade.\n"); + return -1; + } + if (g_is_ota) { if (ota_package_verify(LOAD_ADDR, MAX_LOADSZ) != 0) { debug("ota package verify fail\n"); -- Gitee From 2200b6d369cb8d56015aec445034df48e18deb61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A9=AC=E5=B8=85?= Date: Wed, 29 Sep 2021 01:17:55 +0000 Subject: [PATCH 2/2] =?UTF-8?q?feat:=20add=20liteos=20patch=20ability=20Si?= =?UTF-8?q?gned-off-by:=20=E9=A9=AC=E5=B8=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- u-boot-2020.01/product/hiupdate/auto_update_adaptation.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/u-boot-2020.01/product/hiupdate/auto_update_adaptation.c b/u-boot-2020.01/product/hiupdate/auto_update_adaptation.c index 0d05896a89..764ec1a93e 100644 --- a/u-boot-2020.01/product/hiupdate/auto_update_adaptation.c +++ b/u-boot-2020.01/product/hiupdate/auto_update_adaptation.c @@ -1071,6 +1071,8 @@ static int update_to_flash(void) if (g_is_ota) { if (ota_package_verify(LOAD_ADDR, MAX_LOADSZ) != 0) { debug("ota package verify fail\n"); + g_update_status = 0; + set_update_status(g_update_status); return -1; } debug("ota package verify ok\n"); -- Gitee