TP-Link SafeLoader partitions
Schema identifier ($id): "http://devicetree.org/schemas/mtd/partitions/tplink,safeloader-partitions.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
TP-Link home routers store various data on flash (e.g. bootloader, flash layout, firmware, product info, configuration, calibration data). That requires flash partitioning.
Flash space layout of TP-Link devices is stored on flash itself using a custom ASCII-based format. That format was first found in TP-Link devices with a custom SafeLoader bootloader. Later it was adapted to CFE and U-Boot bootloaders.
Partitions specified in partitions table cover whole flash space. Some contain static data that shouldn't get modified (device's MAC or WiFi calibration data). Others are semi-static (like kernel). Finally some partitions contain fully changeable content (like rootfs).
This binding describes partitioning method and defines offset of ASCII based partitions table. That offset is picked at manufacturing process and doesn't change.
Maintainers (maintainers): "Rafał Miłecki <rafal@milecki.pl>"
Properties and child nodes (properties) #
compatible — not listed as required here #
Exact value (const): "tplink,safeloader-partitions"
partitions-table-offset — required here #
Flash offset of partitions table
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Properties matching a name pattern (patternProperties) #
^partition-.*$ — name matches this regular expression #
Shared schema rule ($ref): partition.yaml#/$defs/partition-node
Required in this object (required): "partitions-table-offset"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
partitions {
compatible = "tplink,safeloader-partitions";
partitions-table-offset = <0x100000>;
partition-file-system {
linux,rootfs;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause