mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
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:
committed by
gerrit autosubmit
parent
aeea6a041a
commit
b6fefd28f2
@@ -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>;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user