tplink-safeloader support-list on CPE/WBS devices
Adrian Schmutzler
mail at adrianschmutzler.de
Sun Aug 30 16:43:32 EDT 2020
Hi,
while increasing the kernel partition for the TP-Link CPE devices, I found that the partitions called "soft-version" and "support-list" are handled as a part of the file-system/firmware partition, in contrast to all other tplink-safeloader devices where it is part of a read-only partition. Examples:
CPE210 v1 (ar9344-based with okli loader, but without firmware-splitter):
tplink-safeloader.c:
{"os-image", 0x40000, 0x300000},
{"file-system", 0x340000, 0x470000},
{"soft-version", 0x7b0000, 0x00100},
{"support-list", 0x7b1000, 0x00400},
{"user-config", 0x7c0000, 0x10000},
.first_sysupgrade_partition = "os-image",
.last_sysupgrade_partition = "support-list",
DTSI:
partition at 40000 {
label = "firmware";
reg = <0x040000 0x780000>;
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition at 0 {
label = "kernel";
reg = <0x000000 0x300000>;
};
partition at 300000 {
label = "rootfs";
reg = <0x300000 0x480000>;
};
};
partition at 7c0000 {
label = "config";
reg = <0x7c0000 0x030000>;
read-only;
};
CPE210 v2 (qca9533-based with firmware-splitter):
tplink-safeloader.c:
{"firmware", 0x40000, 0x770000},
{"soft-version", 0x7b0000, 0x00100},
{"support-list", 0x7b1000, 0x01000},
{"user-config", 0x7c0000, 0x10000},
.first_sysupgrade_partition = "os-image",
.last_sysupgrade_partition = "support-list",
DTSI:
partition at 40000 {
label = "firmware";
reg = <0x040000 0x780000>;
compatible = "tplink,firmware";
};
config: partition at 7c0000 {
label = "config";
reg = <0x7c0000 0x030000>;
read-only;
};
Setup is one of the two above for all CPE/WBS devices. For other devices, support-list and soft-version are typically part of some read-only config/info partitions, and are _not_ mentioned in first/last upgrade partition:
.first_sysupgrade_partition = "os-image",
.last_sysupgrade_partition = "file-system",
So, I wonder whether:
1. the areas should really be rw for CPE devices, or whether it would be better to just include them in the config partition
2. support-list/soft-version should really be between first_sysupgrade_partition and last_sysupgrade_partition
Any hints/ideas?
Best
Adrian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openpgp-digital-signature.asc
Type: application/pgp-signature
Size: 834 bytes
Desc: not available
URL: <http://lists.openwrt.org/pipermail/openwrt-devel/attachments/20200830/edf530a5/attachment.sig>
More information about the openwrt-devel
mailing list