[PATCH v2 0/2] ramips: use partition table on Netgear NAND devices

Jan Hoffmann jan at 3e8.eu
Thu Feb 25 15:17:58 EST 2021


Netgear devices based on the boards CHJ or BZV currently use a fixed
partition table. However, every device actually has an individual
partition table on the flash that depends on the bad blocks that exist
during manufacturing. The current fixed partition table is only correct
for devices without any bad blocks. This series adds a partition table
parser and uses it instead of the fixed partitions.

v2:
 - split into separate parts for parser and DTS changes

Jan Hoffmann (2):
  ramips: add Sercomm partition map parser
  ramips: use partition parser on Netgear CHJ/BZV

 .../dts/mt7621_netgear_sercomm_bzv.dtsi       | 169 +++++++++++-
 .../dts/mt7621_netgear_sercomm_chj.dtsi       | 169 +++++++++++-
 .../ramips/files/drivers/mtd/parsers/scpart.c | 257 ++++++++++++++++++
 target/linux/ramips/mt7621/config-5.4         |   1 +
 .../patches-5.4/303-mtd-scpart-parser.patch   |  19 ++
 5 files changed, 607 insertions(+), 8 deletions(-)
 create mode 100644 target/linux/ramips/files/drivers/mtd/parsers/scpart.c
 create mode 100644 target/linux/ramips/patches-5.4/303-mtd-scpart-parser.patch

-- 
2.29.2




More information about the openwrt-devel mailing list