Support for TP-Link DIR-866L A1

I got a very popular in the US router DIR-866L A1 and is full supported by dd-wrt.
It is (A1) based on the Atheros chipset and looks identical to the TP-Link Archer AC1750 C7 V1,2,3 (Version A1 - Atheros, B1 is Broadcom)

CPU Atheros QCA9558
Eth Atheros AR9550
WiFi Atheros AR8216/AR8236/AR8316

I tried to upload opentwrt image for TP-Link Archer AC1750 C7 V2 - but the image is rejected on loading
Could you please advise me on how to build an image for this version of the router?

cat /proc/cpuinfo

system type             : Qualcomm Atheros QCA9558 ver 1 rev 1.0 (0x1130)
processor               : 0
cpu model               : MIPS 74Kc V5.0
BogoMIPS                : 358.80
CPUClock                : 720
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa                     : mips1 mips2 mips32r1 mips32r2
ASEs implemented        : mips16
Options implemented     : tlb 4kex 4k_cache prefetch mcheck ejtag llsc dc_aliases perf_cntr_intr_bit
shadow register sets    : 1
kscratch registers      : 0
package                 : 0
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

root@DD-WRT:~# cat /proc/mtd

dev:    size   erasesize  name
mtd0: 00040000 00010000 "RedBoot"
mtd1: 00f90000 00010000 "linux"
mtd2: 00da3000 00010000 "rootfs"
mtd3: 00100000 00010000 "ddwrt"
mtd4: 00010000 00010000 "nvram"
mtd5: 00010000 00010000 "board_config"
mtd6: 01000000 00010000 "fullflash"
mtd7: 00040000 00010000 "fullboot"
mtd8: 00010000 00010000 "uboot-env"

root@DD-WRT:~# free
              total        used        free      shared  buff/cache   available
Mem:         126684       22080       87936           0       16668      100308
Swap:             0           0           0

root@DD-WRT:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type squashfs (ro,relatime)
proc on /proc type proc (rw,relatime)
sysfs on /sys type sysfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
ramfs on /tmp type ramfs (rw,relatime)
none on /dev type tmpfs (rw,relatime,size=512K)
devpts on /dev/pts type devpts (rw,relatime,mode=600)

root@DD-WRT:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                   14080     14080         0 100% /
/dev/root                14080     14080         0 100% /

dmesg

<6>[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
<6>[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
<6>[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
<6>[    0.000000] Writing ErrCtl register=00000000
<6>[    0.000000] Readback ErrCtl register=00000000
<4>[    0.000000] Memory: 126492K/131072K available (2289K kernel code, 143K rwdata, 244K rodata, 192K init, 144K bss, 4580K reserved, 0K cma-reserved)
<6>[    0.000000] NR_IRQS:83
<6>[    0.060000] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
<6>[    0.060000] pid_max: default: 32768 minimum: 301
<6>[    0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
<6>[    0.070000] NET: Registered protocol family 16
<7>[    0.080000] ar71xx: using random MAC address for eth0
<7>[    0.280000] ar71xx: using random MAC address for eth1
<4>[    0.480000] registering PCI controller with io_map_base unset
<4>[    0.490000] ar724x-pci ar724x-pci.1: PCIe link is down
<4>[    0.490000] registering PCI controller with io_map_base unset
<6>[    0.510000] PCI host bridge to bus 0000:00
<6>[    0.510000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
<6>[    0.520000] pci_bus 0000:00: root bus resource [io  0x0000]
<6>[    0.520000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
<7>[    0.530000] pci 0000:00:00.0: [168c:003c] type 00 class 0x028000
<7>[    0.530000] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
<7>[    0.530000] pci 0000:00:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
<7>[    0.530000] pci 0000:00:00.0: supports D1 D2
<7>[    0.530000] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot D3cold
<7>[    0.530000] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
<6>[    0.530000] pci 0000:00:00.0: BAR 0: assigned [mem 0x10000000-0x101fffff 64bit]
<6>[    0.530000] pci 0000:00:00.0: BAR 6: assigned [mem 0x10200000-0x1020ffff pref]
<6>[    0.540000] PCI host bridge to bus 0000:01
<6>[    0.540000] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff]
<6>[    0.550000] pci_bus 0000:01: root bus resource [io  0x0001]
<6>[    0.550000] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
<7>[    0.560000] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
<6>[    0.560000] pci 0000:00:00.0: using irq 72 for pin 1
<6>[    0.560000] Switched to clocksource MIPS
<6>[    0.570000] NET: Registered protocol family 2
<6>[    0.570000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
<6>[    0.570000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
<6>[    0.580000] TCP: Hash tables configured (established 1024 bind 1024)
<6>[    0.580000] TCP: reno registered
<6>[    0.590000] UDP hash table entries: 256 (order: 0, 4096 bytes)
<6>[    0.590000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
<6>[    0.600000] NET: Registered protocol family 1
<7>[    0.600000] PCI: CLS 0 bytes, default 32
<5>[    0.600000] gpio_proc: module loaded and /proc/gpio/ created (cool)
<6>[    0.610000] futex hash table entries: 256 (order: -1, 3072 bytes)
<6>[    0.620000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
<6>[    0.630000] msgmni has been set to 247
<6>[    0.630000] io scheduler noop registered
<6>[    0.630000] io scheduler deadline registered (default)
<6>[    0.640000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
<6>[    0.640000] console [ttyS0] disabled
<6>[    0.670000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
<6>[    0.680000] console [ttyS0] enabled
<6>[    0.680000] bootconsole [early0] disabled
<6>[    0.690000] jedec ID C22018
<6>[    0.700000] flash size 16777216B, sector count = 256
<0>[    0.700000] scanning for root partition
<0>[    0.700000] uboot detected
<0>[    0.710000] guessed bootloader size = 40000
<0>[    0.730000]
<0>[    0.730000] found squashfs at 12D000
<6>[    0.740000] adjusted length ED0000, original length EC5374
<5>[    0.740000] Creating 9 MTD partitions on "ar7240-nor0":
<5>[    0.750000] 0x000000000000-0x000000040000 : "RedBoot"
<5>[    0.750000] 0x000000040000-0x000000fd0000 : "linux"
<5>[    0.760000] 0x00000012d000-0x000000ed0000 : "rootfs"
<4>[    0.760000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
<5>[    0.780000] mtd: partition "rootfs" set to be root filesystem
<5>[    0.780000] 0x000000ed0000-0x000000fd0000 : "ddwrt"
<5>[    0.790000] 0x000000fd0000-0x000000fe0000 : "nvram"
<5>[    0.790000] 0x000000ff0000-0x000001000000 : "board_config"
<5>[    0.800000] 0x000000000000-0x000001000000 : "fullflash"
<5>[    0.810000] 0x000000000000-0x000000040000 : "fullboot"
<5>[    0.810000] 0x000000030000-0x000000040000 : "uboot-env"
<6>[    0.820000] libphy: Fixed MDIO Bus: probed
<6>[    0.830000] u32 classifier
<6>[    0.830000]     Performance counters on
<6>[    0.830000]     input device check on
<6>[    0.840000]     Actions configured
<6>[    0.840000] Netfilter messages via NETLINK v0.30.
<6>[    0.840000] nf_conntrack version 0.5.0 (1976 buckets, 7904 max)
<4>[    0.850000] nf_conntrack_rtsp v0.7 loading
<4>[    0.860000] nf_nat_rtsp v0.7 loading
<6>[    0.860000] ip_tables: (C) 2000-2006 Netfilter Core Team
<6>[    0.860000] TCP: bic registered
<6>[    0.870000] TCP: cubic registered
<6>[    0.870000] TCP: westwood registered
<6>[    0.870000] TCP: hybla registered
<6>[    0.880000] TCP: vegas registered
<6>[    0.880000] NET: Registered protocol family 17
<6>[    0.890000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
<5>[    0.900000] Bridge firewalling registered
<6>[    0.900000] 8021q: 802.1Q VLAN Support v1.8
<6>[    0.910000] searching for nvram
<6>[    0.910000] nvram size = 65536
<6>[    0.960000] Atheros AR71xx hardware watchdog driver version 0.1.0
<6>[    0.970000] ar71xx-wdt: timeout=15 secs (max=107) ref freq=40000000
<6>[    0.990000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
<6>[    1.000000] Freeing unused kernel memory: 192K
<6>[    5.630000] switch0: Atheros AR8327 rev. 4 switch registered on ag71xx-mdio.0
<6>[    6.470000] libphy: ag71xx_mdio: probed
<6>[    7.070000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd034, driver=Atheros AR8216/AR8236/AR8316]
<6>[    7.080000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
<6>[    7.670000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:SGMII
<6>[    8.590000] eth1: link up (1000Mbps/Full duplex)
<6>[    8.800000] Loading modules backported from Linux version v5.10-rc6-0-gb65054597872
<6>[    8.810000] Backport generated by backports.git v5.10-rc6-1-0-g3a9d70a3
<7>[    9.860000] ath: EEPROM regdomain sanitized
<7>[    9.860000] ath: EEPROM regdomain: 0x64
<7>[    9.860000] ath: EEPROM indicates we should expect a direct regpair map
<7>[    9.860000] ath: Country alpha2 being used: 00
<7>[    9.860000] ath: Regpair used: 0x64
<6>[    9.880000] initialize fq_codel with 262144 bytes memory limit
<6>[    9.880000] ieee80211_txq_setup_flows: set limit to 262144 bytes
<7>[    9.890000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
<6>[    9.890000] ieee80211 phy0: Atheros AR9550 Rev:0 mem=0xb8100000, irq=79
<6>[   10.130000] eth0: link up (1000Mbps/Full duplex)
<0>[   10.820000] 2 vs 0
<4>[   10.830000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)
<6>[   10.830000] ath10k_pci 0000:00:00.0: pci irq legacy oper_irq_mode 1 irq_mode 0 reset_mode 0
<4>[   11.040000] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:00:00.0.bin failed with error -2
<4>[   11.050000] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/cal-pci-0000:00:00.0.bin failed with error -2
<4>[   11.060000] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/firmware-6.bin failed with error -2
<6>[   11.300000] ath10k_pci 0000:00:00.0: found firmware features ie (4 B)
<6>[   11.310000] ath10k_pci 0000:00:00.0: qca988x hw2.0 target 0x4100016c chip_id 0x043202ff sub 0000:0000
<6>[   11.320000] ath10k_pci 0000:00:00.0: kconfig debug 1 debugfs 1 tracing 0 dfs 0 testmode 0
<6>[   11.330000] ath10k_pci 0000:00:00.0: firmware ver 10.2.4-97.2-ddwrt-6301M api 5 features wmi-10.x,no-p2p,wmi-10.2,raw-mode,mfp,allows-mesh-bcast,peer-fixed-rate crc32 69ddfd64
<6>[   11.360000] ath10k_pci 0000:00:00.0: boot get otp board id result 0x00000001 board_id 0 chip_id 0 ext_bid_support 0
<6>[   11.380000] ath10k_pci 0000:00:00.0: board id does not exist in otp, ignore it (0)
<6>[   11.380000] ath10k_pci 0000:00:00.0: boot using board name 'bus=pci,vendor=168c,device=003c,subsystem-vendor=0000,subsystem-device=0000'
<6>[   11.400000] ath10k_pci 0000:00:00.0: boot using board name 'bus=pci,vendor=168c,device=003c,subsystem-vendor=0000,subsystem-device=0000'
<4>[   11.410000] ath10k_pci 0000:00:00.0: Direct firmware load for ath10k/QCA988X/hw2.0/board-2.bin failed with error -2
<6>[   11.420000] ath10k_pci 0000:00:00.0: board_file api 1 bmi_id N/A crc32 8088ead9
<6>[   11.430000] ath10k_pci 0000:00:00.0: boot upload otp to 0x1234 len 6209
<6>[   12.300000] ath10k_pci 0000:00:00.0: Init Max Stations to 128
<6>[   12.320000] ath10k_pci 0000:00:00.0: P 135 V 16 T 433
<6>[   12.330000] ath10k_pci 0000:00:00.0: alloc rem: 9492 iram: 42308
<6>[   12.330000] ath10k_pci 0000:00:00.0: wmi event ready sw_version 0x41000061 abi_version 1 mac_addr 00:03:07:12:34:56 status 0
<6>[   12.350000] Atheros AR8216/AR8236/AR8316 ag71xx-mdio.0:00: Port 1 is up
<6>[   12.360000] ath10k_pci 0000:00:00.0: htt-ver 2.1 wmi-op 5 htt-op 2 cal otp max-sta 128 raw 0 hwcrypto 1
<7>[   12.470000] ath: EEPROM regdomain sanitized
<7>[   12.470000] ath: EEPROM regdomain: 0x64
<7>[   12.470000] ath: EEPROM indicates we should expect a direct regpair map
<7>[   12.470000] ath: Country alpha2 being used: 00
<7>[   12.470000] ath: Regpair used: 0x64
<6>[   12.470000] initialize fq_codel with 262144 bytes memory limit
<6>[   12.470000] ieee80211_txq_setup_flows: set limit to 4194304 bytes
<7>[   12.580000] ar71xx-wdt: enabling watchdog timer
<6>[   14.390000] device br0 entered promiscuous mode
<6>[   14.510000] eth1: link down
<6>[   14.530000] eth1: link up (1000Mbps/Full duplex)
<6>[   14.550000] eth1: link down
<6>[   14.560000] eth1: link up (1000Mbps/Full duplex)
<6>[   14.570000] device eth1 entered promiscuous mode
<6>[   14.590000] br0: port 1(eth1) entered forwarding state
<6>[   14.590000] br0: port 1(eth1) entered forwarding state
<6>[   14.600000] device br0 left promiscuous mode
<6>[   14.610000] device br0 entered promiscuous mode
<6>[   14.630000] device br0 left promiscuous mode
<7>[   14.740000] ath: EEPROM regdomain: 0x8348
<7>[   14.740000] ath: EEPROM indicates we should expect a country code
<7>[   14.740000] ath: doing EEPROM country->regdmn map search
<7>[   14.740000] ath: country maps to regdmn code: 0x3a
<7>[   14.740000] ath: Country alpha2 being used: US
<7>[   14.740000] ath: Regpair used: 0x3a
<7>[   14.740000] ath: regdomain 0x8348 dynamically updated by user
<7>[   14.740000] ath: EEPROM regdomain: 0x8348
<7>[   14.740000] ath: EEPROM indicates we should expect a country code
<7>[   14.740000] ath: doing EEPROM country->regdmn map search
<7>[   14.740000] ath: country maps to regdmn code: 0x3a
<7>[   14.740000] ath: Country alpha2 being used: US
<7>[   14.740000] ath: Regpair used: 0x3a
<7>[   14.740000] ath: regdomain 0x8348 dynamically updated by user
<6>[   17.360000] device wlan0 entered promiscuous mode
<6>[   17.360000] br0: port 2(wlan0) entered forwarding state
<6>[   17.370000] br0: port 2(wlan0) entered forwarding state
<6>[   17.610000] ath10k_pci 0000:00:00.0: boot upload otp to 0x1234 len 6209
<6>[   18.500000] ath10k_pci 0000:00:00.0: Init Max Stations to 128
<6>[   18.520000] ath10k_pci 0000:00:00.0: P 135 V 16 T 433
<6>[   18.530000] ath10k_pci 0000:00:00.0: alloc rem: 9492 iram: 42308
<6>[   18.530000] ath10k_pci 0000:00:00.0: wmi event ready sw_version 0x41000061 abi_version 1 mac_addr 00:03:07:12:34:56 status 0
<4>[   18.540000] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
<4>[   18.570000] ath10k_pci 0000:00:00.0: failed to set vdev 0 tx encap mode: -122
<6>[   18.570000] ath10k_pci 0000:00:00.0: Mac CLK 88
<6>[   25.630000] ath10k_pci 0000:00:00.0: boot upload otp to 0x1234 len 6209
<6>[   26.520000] ath10k_pci 0000:00:00.0: Init Max Stations to 128
<6>[   26.540000] ath10k_pci 0000:00:00.0: P 135 V 16 T 433
<6>[   26.550000] ath10k_pci 0000:00:00.0: alloc rem: 9492 iram: 42308
<6>[   26.550000] ath10k_pci 0000:00:00.0: wmi event ready sw_version 0x41000061 abi_version 1 mac_addr 00:03:07:12:34:56 status 0
<4>[   26.570000] ath10k_pci 0000:00:00.0: pdev param 0 not supported by firmware
<4>[   26.590000] ath10k_pci 0000:00:00.0: failed to set vdev 0 tx encap mode: -122
<6>[   26.640000] device wlan1 entered promiscuous mode
<6>[   26.640000] br0: port 3(wlan1) entered forwarding state
<6>[   26.650000] br0: port 3(wlan1) entered forwarding state
<6>[   27.600000] device eth0 entered promiscuous mode
<6>[   29.600000] br0: port 1(eth1) entered forwarding state
<4>[   30.720000] ipt_TRIGGER: module license 'unspecified' taints kernel.
<4>[   30.720000] Disabling lock debugging due to kernel taint
<1>[   31.330000] fast-classifier (PBR safe v2.1.6b): starting up
<1>[   31.340000] fast-classifier: registered
<6>[   31.590000] ip6_tables: (C) 2000-2006 Netfilter Core Team
<6>[   32.240000] eth0: link down
<6>[   32.250000] device eth0 left promiscuous mode
<6>[   32.400000] br0: port 2(wlan0) entered forwarding state
<6>[   32.520000] eth0: link up (1000Mbps/Full duplex)
<5>[   39.840000] random: nonblocking pool is initialized
<6>[   41.680000] br0: port 3(wlan1) entered forwarding state