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 e7fae8fc97 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>
(cherry picked from commit 646d95c374)
4 years ago
..
add_header.c
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 8 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 8 years ago
buffalo-tag.c firmware-utils: improve tools for Buffalo DHP series 8 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
cyg_crc16.c
cyg_crc32.c
dgfirmware.c firmware-utils: fix various compiler warnings 9 years ago
dgn3500sum.c firmware-utils: fix dgn3500sum compiler warnings 7 years ago
dns313-header.c firmware-utils: add DNS-313 image header tool 6 years ago
edimax_fw_header.c tools: edimax_fw_header: fix suspicious memset usage 10 years ago
encode_crc.c
fix-u-media-header.c firmware-utils: new tool for fixing U-Media firmware headers 12 years ago
fw.h mkfwimage: Add image type definition for WA images 6 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
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. 13 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 tools/firmware-utils: document reserved fields in mkchkimg 7 years ago
mkcsysimg.c tools: firmware-utils: fix compiler warnings 9 years ago
mkdapimg.c tools/firmware-utils: fix sysupgrade typo in mkdapimg 6 years ago
mkdapimg2.c tools/firmware-utils: fix sysupgrade typo in mkdapimg2 6 years ago
mkdhpimg.c firmware-utils: improve tools for Buffalo DHP series 8 years ago
mkdlinkfw-lib.c firmware-utils: mkdlinkfw: fix error handling 6 years ago
mkdlinkfw-lib.h firmware-utils: mkdlinkfw: cleanup code 6 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 mkfwimage: Add image type definition for WA images 6 years ago
mkfwimage2.c tools/mkfwimage2: remove 256 length limit for partition images 8 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" 10 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 build: add mkrasimage 6 years ago
mkrtn56uimg.c firmware-utils: honor env SOURCE_DATE_EPOCH 7 years ago
mksenaofw.c ipq40xx: add factory image for EnGenius ENS620EXT 5 years ago
mksercommfw.c firmware-utils: mksercommfw: overhaul image creation 6 years ago
mktitanimg.c
mktitanimg.h
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 firmware-utils: mktplinkfw: add rootfs offset for combined images 6 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
myloader.h ar71xx: Revert "added board support for compex wpj558" 10 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
sha1.h
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 8 years ago
trx2edips.c firmware-utils: fix build on big endian systems 13 years ago
trx2usr.c
wrt400n.c Revert "tools: wrt400n: fix making factory images with kernel bigger than 1MB" 8 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
zyxbcm.c firmware-utils: honor env SOURCE_DATE_EPOCH 7 years ago