diff options
author | Rafał Miłecki <rafal@milecki.pl> | 2018-04-12 08:25:17 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2018-04-12 08:25:17 +0200 |
commit | f5195e72c0fcf2949f7d6296a5db081eb58f8e32 (patch) | |
tree | ddc399f575e37faa6c553c7d14201e1817ca260b /target/linux/bcm53xx | |
parent | 85a35c644eea06e843da9d631de005ee58365d17 (diff) | |
download | upstream-f5195e72c0fcf2949f7d6296a5db081eb58f8e32.tar.gz upstream-f5195e72c0fcf2949f7d6296a5db081eb58f8e32.tar.bz2 upstream-f5195e72c0fcf2949f7d6296a5db081eb58f8e32.zip |
kernel: mtd: bcm47xxpart: improve handling TRX partition size
This is important fix for flash parsing in some corner cases. In case
of TRX subpartition with rootfs being aligned to the flash block size it
was incorrectly registered twice. Detecting & registering it as a
standalone partition was resulting in an incorrect "firmware" partition
size and possibly broken sysupgrade.
It wasn't noticed before because "rootfs" alignment depends on a kernel
size. It can happen though - depending on the configuration and the
kernel size.
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'target/linux/bcm53xx')
2 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/bcm53xx/patches-4.14/410-Use-brcm-bcm947xx-cfe-partitions-binding-for-Broadco.patch b/target/linux/bcm53xx/patches-4.14/410-Use-brcm-bcm947xx-cfe-partitions-binding-for-Broadco.patch index 0eae14ff98..edb0ed1fdd 100644 --- a/target/linux/bcm53xx/patches-4.14/410-Use-brcm-bcm947xx-cfe-partitions-binding-for-Broadco.patch +++ b/target/linux/bcm53xx/patches-4.14/410-Use-brcm-bcm947xx-cfe-partitions-binding-for-Broadco.patch @@ -34,7 +34,7 @@ Subject: [PATCH] Use "brcm,bcm947xx-cfe-partitions" binding for Broadcom --- a/drivers/mtd/bcm47xxpart.c +++ b/drivers/mtd/bcm47xxpart.c -@@ -300,9 +300,16 @@ static int bcm47xxpart_parse(struct mtd_ +@@ -314,9 +314,16 @@ static int bcm47xxpart_parse(struct mtd_ return curr_part; }; diff --git a/target/linux/bcm53xx/patches-4.9/410-Use-brcm-bcm947xx-cfe-partitions-binding-for-Broadco.patch b/target/linux/bcm53xx/patches-4.9/410-Use-brcm-bcm947xx-cfe-partitions-binding-for-Broadco.patch index 0eae14ff98..edb0ed1fdd 100644 --- a/target/linux/bcm53xx/patches-4.9/410-Use-brcm-bcm947xx-cfe-partitions-binding-for-Broadco.patch +++ b/target/linux/bcm53xx/patches-4.9/410-Use-brcm-bcm947xx-cfe-partitions-binding-for-Broadco.patch @@ -34,7 +34,7 @@ Subject: [PATCH] Use "brcm,bcm947xx-cfe-partitions" binding for Broadcom --- a/drivers/mtd/bcm47xxpart.c +++ b/drivers/mtd/bcm47xxpart.c -@@ -300,9 +300,16 @@ static int bcm47xxpart_parse(struct mtd_ +@@ -314,9 +314,16 @@ static int bcm47xxpart_parse(struct mtd_ return curr_part; }; |