It looks like this partition table is copied from older CPE entries? New tplink-safeloader partition schemes should match the device's current firmware layout as close as possible to preserve device-specific data and keep open the possibility of using sysupgrade to revert back to OEM firmware (I know TFTP is the main way these are restored, and sysupgrade may not always work..).
In this case, serial-number
, device-info
and device-id
are in unclaimed space and will all be zero'd:
$ grep -ao "partition .*$" CPE605\(UN\)_1.0-up-ver2-2-2-P1\[20201028-rel61457\].bin
partition fs-uboot base 0x00000 size 0x20000
partition partition-table base 0x20000 size 0x02000
partition default-mac base 0x30000 size 0x00020
+ partition serial-number base 0x30100 size 0x00020
partition product-info base 0x31100 size 0x00100
+ partition device-info base 0x31400 size 0x00400
partition signature base 0x32000 size 0x00400
+ partition device-id base 0x33000 size 0x00100
partition os-image base 0x40000 size 0x170000
partition soft-version base 0x1b0000 size 0x00100
partition support-list base 0x1b1000 size 0x01000
partition file-system base 0x1c0000 size 0x600000
partition user-config base 0x7c0000 size 0x10000
partition default-config base 0x7d0000 size 0x10000
partition log base 0x7e0000 size 0x10000
partition radio base 0x7f0000 size 0x10000
I'd suggest just adding those 3 entries in (and maybe increasing support-list size to 0x1000).
+ {"fs-uboot", 0x00000, 0x20000},
+ {"partition-table", 0x20000, 0x02000},
+ {"default-mac", 0x30000, 0x00020},
++ {"serial-number", 0x30100, 0x00020},
+ {"product-info", 0x31100, 0x00100},
++ {"device-info", 0x31400, 0x00400},
+ {"signature", 0x32000, 0x00400},
++ {"device-id", 0x33000, 0x00100},
+ {"firmware", 0x40000, 0x770000},
+ {"soft-version", 0x7b0000, 0x00100},
-+ {"support-list", 0x7b1000, 0x00400},
++ {"support-list", 0x7b1000, 0x01000},
+ {"user-config", 0x7c0000, 0x10000},
+ {"default-config", 0x7d0000, 0x10000},
+ {"log", 0x7e0000, 0x10000},
+ {"radio", 0x7f0000, 0x10000},
+ {NULL, 0, 0}
But I don't have this device so I won't complain any more