I wrote a Python script that should allow you to build CA-compatible factory images, using the OpenWrt factory image and a TP-Link firmware image for the CA-version.
Usage is as follows to make an OpenWrt factory image compatible with a CA-region:
- Download the OpenWrt factory, e.g. from snapshot builds
- Download and extract the original firmware upgrade image for the CA region
- Run the patching script:
patch-safeloader.py --factory openwrt-ath79-generic-tplink_eap245-v3-squashfs-factory.bin --input EAP245v3_5.0.0_\[20201022-rel59827\]_up_signed.bin --patch product-info --output factory-ca.bin
You should then be able to flash the resulting factory-ca.bin image.