[PATCH] mtd: parsers: add support for Sercomm partitions

Miquel Raynal miquel.raynal at bootlin.com
Wed Mar 30 01:09:58 PDT 2022


Hi Mikhail,

csharper2005 at gmail.com wrote on Tue, 29 Mar 2022 12:20:16 +0000:

> This adds an MTD partition parser for the Sercomm partition table that
> is used in some Beeline, Netgear and Sercomm routers.
> 
> The Sercomm partition map table contains real partition offsets, which
> may differ from device to device depending on the number and location of
> bad blocks on NAND.
> 
> Device tree example:
> partitions {
> 	compatible = "sercomm,sc-partitions", "fixed-partitions";
> 	#address-cells = <1>;
> 	#size-cells = <1>;
> 
> 	partition at 0 {
> 		label = "u-boot";
> 		reg = <0x0 0x100000>;
> 		scpart-id = <0>;
> 		read-only;
> 	};
> };

You'll need a DT binding patch and Rob's ack!

> 
> This is essentially the same code as proposed by NOGUCHI Hiroshi
> <drvlabo at gmail.com> here:

I would credit Hiroshi with a Suggested-by at least

> https://github.com/openwrt/openwrt/pull/1318#issuecomment-420607394

And use a Link: tag for this.

> 
> Signed-off-by: Mikhail Zhilkin <csharper2005 at gmail.com>
> ---


Thanks,
Miquèl



More information about the linux-mtd mailing list