From 781bc31f61667453d20b137e626d8679ba491428 Mon Sep 17 00:00:00 2001 From: Timple Raj M Date: Mon, 23 Jan 2023 19:28:38 +0530 Subject: [PATCH] ipq5332: update kernel and roots info After mibib reload kernel and rootfs info have to be reloaded using get_kernel_fs_part_details function otherwise partitions will be marked as bad offset Change-Id: I9a0ec847b65ff10ec7b54b65929efd034a25d278 Signed-off-by: Timple Raj M --- arch/arm/include/asm/arch-qca-common/qca_common.h | 1 + common/cmd_flashwrite.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/arch/arm/include/asm/arch-qca-common/qca_common.h b/arch/arm/include/asm/arch-qca-common/qca_common.h index 77da3dee5b..06eeb07f8e 100644 --- a/arch/arm/include/asm/arch-qca-common/qca_common.h +++ b/arch/arm/include/asm/arch-qca-common/qca_common.h @@ -124,6 +124,7 @@ int is_secondary_core_off(unsigned int cpuid); int smem_read_cpu_count(void); int get_soc_hw_version(void); int is_atf_enabled(void); +void get_kernel_fs_part_details(void); struct dumpinfo_t{ char name[16]; /* use only file name in 8.3 format */ diff --git a/common/cmd_flashwrite.c b/common/cmd_flashwrite.c index a30637c187..b85c8c9efe 100644 --- a/common/cmd_flashwrite.c +++ b/common/cmd_flashwrite.c @@ -496,6 +496,8 @@ char * const argv[]) return CMD_RET_FAILURE; } + get_kernel_fs_part_details(); + return CMD_RET_SUCCESS; } #endif