So, this is the binwalk result for both:
Archer stock firmware:
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
23268 0x5AE4 U-Boot version string, "U-Boot 1.1.4 (Jul 16 2016 - 18:05:39)"
23316 0x5B14 CRC32 polynomial table, big endian
24620 0x602C uImage header, header size: 64 bytes, header CRC: 0x997BD18C, created: 2016-07-16 10:05:40, image size: 48666 bytes, Data Address: 0x80010000, Entry Point: 0x80010000, data CRC: 0x7F74637D, OS: Linux, CPU: MIPS, image type: Firmware Image, compression type: lzma, image name: "u-boot image"
24684 0x606C LZMA compressed data, properties: 0x5D, dictionary size: 8388608 bytes, uncompressed size: 119204 bytes
73579 0x11F6B uImage header, header size: 64 bytes, header CRC: 0x71C54FE5, created: 2016-07-19 09:52:32, image size: 1069313 bytes, Data Address: 0x80060000, Entry Point: 0x80060000, data CRC: 0xA67989DB, OS: Linux, CPU: MIPS, image type: Multi-File Image, compression type: lzma, image name: "MIPS OpenWrt Linux-3.3.8"
73651 0x11FB3 LZMA compressed data, properties: 0x6D, dictionary size: 8388608 bytes, uncompressed size: 3102076 bytes
1142957 0x1170AD Squashfs filesystem, little endian, version 4.0, compression:xz, size: 10605614 bytes, 3072 inodes, blocksize: 262144 bytes, created: 2016-07-22 07:23:25
11748819 0xB345D3 XML document, version: "1.0"
11758620 0xB36C1C gzip compressed data, from Unix, last modified: 2016-07-22 08:00:49
An this is for the openwrt-18.06.2-ar71xx-generic-archer-c59-v1-squashfs-factory.bin
DECIMAL HEXADECIMAL DESCRIPTION
--------------------------------------------------------------------------------
8520 0x2148 uImage header, header size: 64 bytes, header CRC: 0xF5B31DF, created: 2019-01-30 12:21:02, image size: 1376782 bytes, Data Address: 0x80060000, Entry Point: 0x80060000, data CRC: 0x286DCD5F, OS: Linux, CPU: MIPS, image type: OS Kernel Image, compression type: lzma, image name: "MIPS OpenWrt Linux-4.9.152"
8584 0x2188 LZMA compressed data, properties: 0x6D, dictionary size: 8388608 bytes, uncompressed size: 4390548 bytes
1385366 0x152396 Squashfs filesystem, little endian, version 4.0, compression:xz, size: 2943022 bytes, 1179 inodes, blocksize: 262144 bytes, created: 2019-01-30 12:21:02
I honestly don't know how to dd this to make it match. Can you please help me?
Thanks