mbox series

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

Message ID 20210225201800.2478284-1-jan@3e8.eu
Headers show
Series ramips: use partition table on Netgear NAND devices | expand


Jan Hoffmann Feb. 25, 2021, 8:17 p.m. UTC
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.

 - 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