Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tplink-safeloader: Archer C60 v3: relocate version partitions
Latest firmwares for the TP-Link Archer C60 v3 contain an updated partition table. Stock firmware images relocate the following partitions and simultaneously provide updated contents for them: OFFSET SIZE NAME OPERATION 007d9500 00000100 soft-version Not moved 007d9600 00000200 support-list Not moved, grows by 0x100 bytes 007d9800 00000100 extra-para Moved by 0x100 007d9900 00003000 profile ibid. 007dc900 00002900 default-config ibid., shrunk by 0x100 bytes This re-partitioning is done to allow for a larger 'support-list' partition. As noted in commit 2987b53 ("ath79: add support for TP-Link Archer C60 v3"), the differing partition layout at the start of flash is due to another reason. Factory images generated by this tool do not provide the 'profile' and 'default-config' partitions, meaning they cannot safely relocate them. Between the 'firmware' and 'soft-version' partitions, there is however a gap of 0x9500 bytes. Instead of moving the partitions following 'support-list' down by 0x100 bytes, we can move the preceding one up. Since the latest stock firmware image is over 3 years old, this resize should be sufficient and not needed again in the future. This should not impact users reverting back from OpenWrt to stock, as the running firmware will read the partition table to correctly locate any needed partitions. Link: openwrt#15 Signed-off-by: Sander Vanheule <[email protected]>
- Loading branch information