You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Adrian Schmutzler 646d95c374 ath79: add support for TP-Link Archer C60 v3
TP-Link Archer C60 v3 is a dual-band AC1350 router,
based on Qualcomm/Atheros QCA9561 + QCA9886.

It seems to be identical to the v2 revision, except that
it lacks a WPS LED and has different GPIO for amber WAN LED.

Specification:

- 775/650/258 MHz (CPU/DDR/AHB)
- 64 MB of RAM (DDR2)
- 8 MB of FLASH (SPI NOR)
- 3T3R 2.4 GHz
- 2T2R 5 GHz
- 5x 10/100 Mbps Ethernet
- 6x LED, 2x button
- UART header on PCB

Flash instruction (WebUI):
Download *-factory.bin image and upload it via the firmwary upgrade
function of the stock firmware WebUI.

Flash instruction (TFTP):
1. Set PC to fixed IP address 192.168.0.66
2. Download *-factory.bin image and rename it to tp_recovery.bin
3. Start a tftp server with the file tp_recovery.bin in its root
   directory
4. Turn off the router
5. Press and hold reset button
6. Turn on router with the reset button pressed and wait ~15 seconds
7. Release the reset button and after a short time the firmware should
   be transferred from the tftp server
8. Wait ~30 second to complete recovery

While TFTP works for OpenWrt images, my device didn't accept the
only available official firmware "Archer C60(EU)_V3.0_190115.bin".

In contrast to earlier revisions (v2), the v3 contains the (same)
MAC address twice, once in 0x1fa08 and again in 0x1fb08.
While the partition-table on the device refers to the latter, the
firmware image contains a different partition-table for that region:

name           device            firmware
factory-boot   0x00000-0x1fb00   0x00000-0x1fa00
default-mac    0x1fb00-0x1fd00   0x1fa00-0x1fc00
pin            0x1fd00-0x1fe00   0x1fc00-0x1fd00
product-info   0x1fe00-0x1ff00   0x1fd00-0x1ff00
device-id      0x1ff00-0x20000   0x1ff00-0x20000

While the MAC address is present twice, other data like the PIN isn't,
so with the partitioning from the firmware image the PIN on the device
would actually be outside of its partition.
Consequently, the patch uses the MAC location from the device (which
is the same as for the v2).

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
4 years ago
..
add_header.c firmware-utils: when using open with O_CREAT and O_WRONLY, also use O_TRUNC to ensure that overwritten files have the right size (fixes #3505) 16 years ago
addpattern.c firmware-utils: honor env SOURCE_DATE_EPOCH 7 years ago
asustrx.c tools: firmware-utils: fix compiler warnings 9 years ago
bcm_tag.h firmware-utils: move bcm_tag.h here 12 years ago
bcmalgo.c tools: add Broadcom cable modem firmware image creator 11 years ago
bcmalgo.h tools: add Broadcom cable modem firmware image creator 11 years ago
buffalo-enc.c firmware-utils: improve tools for Buffalo DHP series 7 years ago
buffalo-lib.c firmware-utils/buffalo-enc: explicitly use signed char for checksum function 9 years ago
buffalo-lib.h firmware-utils: improve tools for Buffalo DHP series 7 years ago
buffalo-tag.c firmware-utils: improve tools for Buffalo DHP series 7 years ago
buffalo-tftp.c firmware-utils: fix compilation warnings. 10 years ago
csysimg.h adds support for Edimax BR-6524N 12 years ago
cyg_crc.h firmware-utils: add new tool for the wrt400n (based on a patch by Sandeep Mistry <sandeep.mistry at gmail.com>) 15 years ago
cyg_crc16.c firmware-utils: add new tool for the wrt400n (based on a patch by Sandeep Mistry <sandeep.mistry at gmail.com>) 15 years ago
cyg_crc32.c firmware-utils: add new tool for the wrt400n (based on a patch by Sandeep Mistry <sandeep.mistry at gmail.com>) 15 years ago
dgfirmware.c firmware-utils/dgfirmare: fix possible resource leak 4 years ago
dgn3500sum.c firmware-utils: fix dgn3500sum compiler warnings 7 years ago
dns313-header.c firmware-utils: fix possible memory leak and resource leak 4 years ago
edimax_fw_header.c tools: edimax_fw_header: fix suspicious memset usage 10 years ago
encode_crc.c remove 'svn:executable' property 14 years ago
fix-u-media-header.c firmware-utils: new tool for fixing U-Media firmware headers 12 years ago
fw.h firmware-utils: mkfwimage: fix more errors reported by gcc-6/7/9 5 years ago
hcsmakeimage.c firmware-utils: honor env SOURCE_DATE_EPOCH 7 years ago
imagetag.c firmware-utils: honor env SOURCE_DATE_EPOCH 7 years ago
imagetag.ggo brcm63xx: do not align squashfs rootfs start 9 years ago
imagetag_cmdline.c brcm63xx: do not align squashfs rootfs start 9 years ago
imagetag_cmdline.h brcm63xx: do not align squashfs rootfs start 9 years ago
jcgimage.c firmware-utils: jcgimage: add support for 4MiB+ images 5 years ago
lxlfw.c firmware-utils: add lxlfw tool for generating Luxul firmwares 4 years ago
lzma2eva.c firmware-utils: fix various compiler warnings 9 years ago
makeamitbin.c Add makeamitbin to generate images for other RDC-based devices, thanks sn9 ! 16 years ago
md5.c firmware-utils: replace md5 code with Alexander Peslyak's implementation 8 years ago
md5.h firmware-utils: replace md5 code with Alexander Peslyak's implementation 8 years ago
mkbrncmdline.c Support booting the Speedport W502V using BRN-BOOT. 12 years ago
mkbrnimg.c tools: firmware-utils: fix compiler warnings 9 years ago
mkbuffaloimg.c ar71xx: add support for Buffalo BHR-4GRV2 8 years ago
mkcameofw.c firmware-utils/mkcameofw: allow to use combined kernel image 11 years ago
mkcasfw.c tools: firmware-utils: fix compiler warnings 9 years ago
mkchkimg.c firmware-utils/mkchkimg: fix possible resource leaks 4 years ago
mkcsysimg.c tools: firmware-utils: fix compiler warnings 9 years ago
mkdapimg.c tools/firmware-utils: fix sysupgrade typo in mkdapimg 5 years ago
mkdapimg2.c tools/firmware-utils: fix sysupgrade typo in mkdapimg2 5 years ago
mkdhpimg.c firmware-utils: improve tools for Buffalo DHP series 7 years ago
mkdlinkfw-lib.c firmware-utils: mkdlinkfw: fix error handling 5 years ago
mkdlinkfw-lib.h firmware-utils: mkdlinkfw: cleanup code 5 years ago
mkdlinkfw.c firmware-utils: mkdlinkfw: add kernel image offset 5 years ago
mkdniimg.c tools: firmware-utils: fix compiler warnings 9 years ago
mkedimaximg.c firmware-utils: mkedimaximg: add "big-endianness mode" option 6 years ago
mkfwimage.c firmware-utils/mkfwimage: fix possible memory and resource leak 4 years ago
mkfwimage2.c firmware-utils/mkfwimage: fix possible memory and resource leak 4 years ago
mkheader_gemtek.c firmware-utils: add Gemtek header tool 10 years ago
mkhilinkfw.c firmware-utils: fix various compiler warnings 9 years ago
mkmerakifw-old.c tools/firmware-utils: fix portability issue in mkmerakifw-old 8 years ago
mkmerakifw.c firmware-utils: Fix build failure in mkmerakifw.c FS#298 8 years ago
mkmylofw.c ar71xx: Revert "added board support for compex wpj558" 9 years ago
mkplanexfw.c tools: firmware-utils: fix compiler warnings 9 years ago
mkporayfw.c ramips: generate factory images for Nexx devices 10 years ago
mkrasimage.c mkrasimage: fix segmentation fault 4 years ago
mkrtn56uimg.c firmware-utils: honor env SOURCE_DATE_EPOCH 7 years ago
mksenaofw.c firmware-utils/mksenaofw: fix possible memory leak 4 years ago
mksercommfw.c firmware-utils: mksercommfw: overhaul image creation 5 years ago
mktitanimg.c firmware-utils/mktitanimg: fix possible resource leak 4 years ago
mktitanimg.h add mktitanimg to create Titan (AR7-based) images (#6632) 14 years ago
mktplinkfw-lib.c firmware-utils: mktplinkfw: fix JFFS2 EOF markers 7 years ago
mktplinkfw-lib.h tools/firmware-utils: mktplinkfw move build_fw() to lib 7 years ago
mktplinkfw.c ramips: add support for TP-Link RE200 v1 4 years ago
mktplinkfw2.c tools/firmware-utils: mktplinkfw2: add Qualcomm layouts 5 years ago
mkwrggimg.c firmware-utils: fix compilation on MacOS X 8 years ago
mkwrgimg.c firmware-utils: rename the devname variable in mkwrgimg to avoid a clash with a BSD stdlib function 13 years ago
mkzcfw.c tools: firmware-utils: fix compiler warnings 9 years ago
mkzynfw.c tools: firmware-utils: fix compiler warnings 9 years ago
motorola-bin.c get rid of $Id$ - it has never helped us and it has broken too many patches ;) 15 years ago
myloader.h ar71xx: Revert "added board support for compex wpj558" 9 years ago
nand_ecc.c treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
nec-enc.c firmware-utils: add nec-enc 5 years ago
osbridge-crc.c tools: firmware-utils: fix compiler warnings 9 years ago
oseama.c firmware-utils: oseama: support extracting entity 8 years ago
otrx.c firmware-utils: add otrx tool for handling TRX images 7 years ago
pc1crypt.c tools: firmware-utils: fix compiler warnings 9 years ago
ptgen.c firmware-tools/ptgen: Allow generation 0 size partitions 5 years ago
seama.c tools: firmware-utils: fix compiler warnings 9 years ago
seama.h tools/firmware-utils: add seama tool 12 years ago
sha1.c firmware-utils/mkplanexfw: new firmware generation tool for the Planex MZK-W04NU device 16 years ago
sha1.h firmware-utils/mkplanexfw: new firmware generation tool for the Planex MZK-W04NU device 16 years ago
spw303v.c firmware-utils: honor env SOURCE_DATE_EPOCH 7 years ago
srec2bin.c firmware-utils: fix various compiler warnings 9 years ago
tplink-safeloader.c ath79: add support for TP-Link Archer C60 v3 4 years ago
trx.c firmware-utils: improve tools for Buffalo DHP series 7 years ago
trx2edips.c firmware-utils: fix build on big endian systems 13 years ago
trx2usr.c move target/utils to tools/firmware-utils 18 years ago
uimage_padhdr.c firmware-utils: uimage_padhdr: fix Coverity issue 5 years ago
wrt400n.c Revert "tools: wrt400n: fix making factory images with kernel bigger than 1MB" 7 years ago
xorimage.c firmware-utils: add hex pattern mode for xorimage 6 years ago
zyimage.c firmware-utils: add tool to create zyxel images 8 years ago
zynos.h firmware-utils/mkzynfw: add support for the NBG460N board 14 years ago
zyxbcm.c firmware-utils: honor env SOURCE_DATE_EPOCH 7 years ago