kernel: mtd: bcm47xxpart: improve handling TRX partition size
authorRafał Miłecki <rafal@milecki.pl>
Thu, 12 Apr 2018 06:25:17 +0000 (08:25 +0200)
committerRafał Miłecki <rafal@milecki.pl>
Thu, 12 Apr 2018 06:25:17 +0000 (08:25 +0200)
commitf5195e72c0fcf2949f7d6296a5db081eb58f8e32
treeddc399f575e37faa6c553c7d14201e1817ca260b
parent85a35c644eea06e843da9d631de005ee58365d17
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>
target/linux/bcm53xx/patches-4.14/410-Use-brcm-bcm947xx-cfe-partitions-binding-for-Broadco.patch
target/linux/bcm53xx/patches-4.9/410-Use-brcm-bcm947xx-cfe-partitions-binding-for-Broadco.patch
target/linux/generic/pending-4.14/142-mtd-bcm47xxpart-improve-handling-TRX-partition-size.patch [new file with mode: 0644]
target/linux/generic/pending-4.4/141-mtd-bcm47xxpart-improve-handling-TRX-partition-size.patch [new file with mode: 0644]
target/linux/generic/pending-4.9/142-mtd-bcm47xxpart-improve-handling-TRX-partition-size.patch [new file with mode: 0644]