openwrt/target/linux
Thibaut VARÈNE ee5ee99dcf generic: routerbootpart MTD parser for RouterBoot
This driver provides an OF MTD parser to properly assign the RouterBoot
partitions on the flash. This parser builds from the "fixed-partitions"
one (see ofpart.c), but it can handle dynamic partitions as found on
routerboot devices.

The parent node must contain the following:
	compatible = "mikrotik,routerboot-partitions";
	#address-cells = <1>;
	#size-cells = <1>;

Children routerbootpart DTS nodes are defined as follows:
For fixed partitions
	node-name@unit-address {
		reg = <prop-encoded-array>;
		label = <string>;
		read-only;
		lock;
	};

All properties but reg are optional.

For dynamic partitions:
	node-name {
		size = <prop-encoded-array>;
		label = <string>;
		read-only;
		lock;
	};

size property is mandatory unless the next partition is a fixed one or
a "well-known" one (matched from the strings defined below) in which case
it can be omitted or set to 0; other properties are optional.

By default dynamic partitions are appended after the preceding one, except
for "well-known" ones which are automatically located on flash.

Well-known partitions (matched via label or node-name):
 - "hard_config"
 - "soft_config"
 - "dtb_config"

This parser requires the DTS to list partitions in ascending order as
expected on the MTD device.

This parser has been successfully tested on BE (ath79) and LE (ipq40xx
and ramips) hardware.

Tested-by: Baptiste Jonglez <git@bitsofnetworks.org>
Tested-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
Tested-by: Tobias Schramm <t.schramm@manjaro.org>
Tested-by: Christopher Hill <ch6574@gmail.com>
Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
2020-05-08 15:17:17 +02:00
..
apm821xx kernel: bump 5.4 to 5.4.36 2020-04-30 00:52:04 +02:00
ar71xx
arc770
archs38
armvirt
at91
ath25
ath79 ath79: fix dts of Teltonika RUT9xx devices 2020-04-29 22:59:23 +01:00
bcm27xx kernel: bump 5.4 to 5.4.38 2020-05-04 21:09:12 +02:00
bcm47xx
bcm53xx kernel: bump 5.4 to 5.4.36 2020-04-30 00:52:04 +02:00
bcm63xx
cns3xxx
gemini samba36: Remove 2020-05-08 03:32:52 +03:00
generic generic: routerbootpart MTD parser for RouterBoot 2020-05-08 15:17:17 +02:00
imx6 imx6: add back perf monitor related config symbol 2020-04-25 13:22:28 +02:00
ipq40xx ipq40xx: fix alphabetical order in 02_network 2020-04-24 20:03:41 +02:00
ipq806x
ipq807x
kirkwood kirkwood: disable image for Linksys EA3500 (Audi) 2020-04-29 18:04:16 +02:00
lantiq
layerscape layerscape: define only one package for ls-dpl 2020-05-07 12:53:06 +02:00
malta
mediatek kernel: bump 5.4 to 5.4.39 2020-05-07 12:53:06 +02:00
mpc85xx
mvebu mvebu: tidy up support for GL.iNet GL-MV1000 2020-04-27 00:25:12 +02:00
mxs
octeon
octeontx kernel: bump 5.4 to 5.4.38 2020-05-04 21:09:12 +02:00
omap omap: remove support for kernel 4.14 2020-04-28 01:10:48 +02:00
oxnas oxnas: move service file to correct place 2020-04-26 21:05:15 +02:00
pistachio
ramips kernel: bump 5.4 to 5.4.36 2020-04-30 00:52:04 +02:00
rb532
rockchip
samsung
sunxi sunxi: remove unneeded shebang for preinit files 2020-05-05 13:09:19 +02:00
tegra
uml
x86 x86: fix unusable squashfs images by adding missing padding 2020-04-26 12:53:27 +02:00
zynq
Makefile