I got another device on my table that needs support.
This time it is CPE220 v2.
Unlike v1 of CPE210 and CPE220, they don't share the same board in V2.
CPE220 v2 uses the same board as v1 but with modified firmware and different safeloader partitions.
So separate profile for it was needed, that was easy.
Device boots LEDE without an issue, but product-info partitions looks completely differently so tplink_pharos_board_detect cannot be used for sysupgrade and board_name populating.
Here is the dump from product info partition of CPE210 v1:
And here is from CPE220 v2:
So currently I am building an image that uses the classic check.
Current code is here:https://github.com/robimarko/source/tree/CPE220-v2
Also, TP Link messed up TFTP recovery.
It does not work at all, stock images or LEDE they get pulled and then the following error is output:
Also, you cant get to safeloader menu because it is password protected and password for June 2015 version that is used is unknown.