nand: S4D adds partitions abnormally [1/1]

PD#SWPL-190919

Problem:
1.mistakes from SWPL-181442

T6D boot partition name: "bootloader" -> "bl2"

When S4 platform adding normal partitions,
partition with name "bl2e" will be matched
to process of add boot partitions.

2.inconsistent backups

Solution:
1.use strcmp replace strncmp
2.changes to 8 backups for S4D

Verify:
S4D

Change-Id: Ia0dee5e3397c529d6199495c24084150d24efba1
Signed-off-by: Feng Chen <feng.chen@amlogic.com>
This commit is contained in:
Feng Chen
2024-10-31 14:00:30 +08:00
committed by gerrit autosubmit
parent aeea6a041a
commit b6fefd28f2
2 changed files with 2 additions and 1 deletions
@@ -1388,6 +1388,7 @@
fip_size = <0x200000>;
ship_bad_block = <1>;
disa_irq_flag = <1>;
bl2ex_8_copies;
nand@bootloader {
reg = <0>;
#address-cells = <1>;
+1 -1
View File
@@ -220,7 +220,7 @@ static int parse_meson_partitions(struct mtd_info *master,
i = 0;
if (!strncmp((char *)parts[i].name, NAND_BOOT_NAME,
strlen((const char *)NAND_BOOT_NAME)) ||
!strncmp((char *)parts[i].name, "bl2", 3)) {
!strcmp((char *)parts[i].name, "bl2")) {
parts[i].offset = 0;
if (!parts[i].size)
parts[i].size = ((uint64_t)master->writesize * BOOT_TOTAL_PAGES);