5bdd238b63
TP-Link Archer C20 v4 is a router with 5-port FE switch and non-detachable antennas. It's based on MediaTek MT7628N+MT7610EN. Specification: - MediaTek MT7628N/N (580 Mhz) - 64 MB of RAM - 8 MB of FLASH - 2T2R 2.4 GHz and 1T1R 5 GHz - 5x 10/100 Mbps Ethernet - 3x external, non-detachable antennas - UART (J1) header on PCB (115200 8n1) - 7x LED (GPIO-controlled*), 2x button, power input switch * WAN LED in this devices is a dual-color, dual-leads type which isn't (fully) supported by gpio-leds driver. This type of LED requires both GPIOs state change at the same time to select color or turn it off. For now, we support/use only the green part of the LED. * MT7610EN ac chip isn't not supported by LEDE. Therefore 5Ghz won't work. Flash instruction: The only way to flash LEDE image in ArcherC20v4 is to use tftp recovery mode in U-Boot: 1. Configure PC with static IP 192.168.0.66/24 and tftp server. 2. Rename "openwrt-ramips-mt7628-ArcherC20v4-squashfs-tftp-recovery.bin" to "tp_recovery.bin" and place it in tftp server directory. 3. Connect PC with one of LAN ports, press the reset button, power up the router and keep button pressed for around 6-7 seconds, until device starts downloading the file. 4. Router will download file from server, write it to flash and reboot. Signed-off-by: Maxim Anisimov <maxim.anisimov.ua@gmail.com>
240 lines
6.2 KiB
Makefile
240 lines
6.2 KiB
Makefile
#
|
|
# MT76x8 Profiles
|
|
#
|
|
|
|
define Device/tplink
|
|
TPLINK_FLASHLAYOUT :=
|
|
TPLINK_HWID :=
|
|
TPLINK_HWREV :=
|
|
TPLINK_HWREVADD :=
|
|
TPLINK_HVERSION :=
|
|
KERNEL := $(KERNEL_DTB)
|
|
KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
|
|
IMAGES += tftp-recovery.bin
|
|
IMAGE/factory.bin := tplink-v2-image -e
|
|
IMAGE/tftp-recovery.bin := pad-extra 128k | $$(IMAGE/factory.bin)
|
|
IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \
|
|
check-size $$$$(IMAGE_SIZE)
|
|
endef
|
|
DEVICE_VARS += TPLINK_FLASHLAYOUT TPLINK_HWID TPLINK_HWREV TPLINK_HWREVADD TPLINK_HVERSION
|
|
|
|
|
|
define Device/duzun-dm06
|
|
DTS := DUZUN-DM06
|
|
DEVICE_TITLE := DuZun DM06
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
|
|
endef
|
|
TARGET_DEVICES += duzun-dm06
|
|
|
|
define Device/gl-mt300n-v2
|
|
DTS := GL-MT300N-V2
|
|
IMAGE_SIZE := 16064k
|
|
DEVICE_TITLE := GL-iNet GL-MT300N-V2
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
|
|
endef
|
|
TARGET_DEVICES += gl-mt300n-v2
|
|
|
|
define Device/hc5661a
|
|
DTS := HC5661A
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
DEVICE_TITLE := HiWiFi HC5661A
|
|
endef
|
|
TARGET_DEVICES += hc5661a
|
|
|
|
define Device/LinkIt7688
|
|
DTS := LINKIT7688
|
|
IMAGE_SIZE := $(ralink_default_fw_size_32M)
|
|
SUPPORTED_DEVICES := linkits7688 linkits7688d
|
|
DEVICE_TITLE := MediaTek LinkIt Smart 7688
|
|
DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools
|
|
endef
|
|
TARGET_DEVICES += LinkIt7688
|
|
|
|
define Device/mac1200r-v2
|
|
DTS := MAC1200RV2
|
|
DEVICE_TITLE := Mercury MAC1200R v2.0
|
|
SUPPORTED_DEVICES := mac1200rv2
|
|
endef
|
|
TARGET_DEVICES += mac1200r-v2
|
|
|
|
define Device/miwifi-nano
|
|
DTS := MIWIFI-NANO
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
DEVICE_TITLE := Xiaomi MiWiFi Nano
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
|
|
endef
|
|
TARGET_DEVICES += miwifi-nano
|
|
|
|
define Device/mt7628
|
|
DTS := MT7628
|
|
BLOCKSIZE := 64k
|
|
IMAGE_SIZE := $(ralink_default_fw_size_4M)
|
|
DEVICE_TITLE := MediaTek MT7628 EVB
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
|
|
endef
|
|
|
|
define Device/omega2
|
|
DTS := OMEGA2
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
DEVICE_TITLE := Onion Omega2
|
|
DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools
|
|
endef
|
|
TARGET_DEVICES += omega2
|
|
|
|
define Device/omega2p
|
|
DTS := OMEGA2P
|
|
IMAGE_SIZE := $(ralink_default_fw_size_32M)
|
|
DEVICE_TITLE := Onion Omega2+
|
|
DEVICE_PACKAGES:= kmod-usb2 kmod-usb-ohci uboot-envtools kmod-sdhci-mt7620
|
|
endef
|
|
TARGET_DEVICES += omega2p
|
|
|
|
define Device/pbr-d1
|
|
DTS := PBR-D1
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
DEVICE_TITLE := PBR-D1
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
|
|
endef
|
|
TARGET_DEVICES += pbr-d1
|
|
|
|
define Device/tl-wr840n-v4
|
|
$(Device/tplink)
|
|
DTS := TL-WR840NV4
|
|
IMAGE_SIZE := 7808k
|
|
DEVICE_TITLE := TP-Link TL-WR840N v4
|
|
TPLINK_FLASHLAYOUT := 8Mmtk
|
|
TPLINK_HWID := 0x08400004
|
|
TPLINK_HWREV := 0x1
|
|
TPLINK_HWREVADD := 0x4
|
|
TPLINK_HVERSION := 3
|
|
endef
|
|
TARGET_DEVICES += tl-wr840n-v4
|
|
|
|
define Device/tl-wr840n-v5
|
|
DTS := TL-WR840NV5
|
|
IMAGE_SIZE := 3840k
|
|
DEVICE_TITLE := TP-Link TL-WR840N v5
|
|
TPLINK_FLASHLAYOUT := 4Mmtk
|
|
TPLINK_HWID := 0x08400005
|
|
TPLINK_HWREV := 0x1
|
|
TPLINK_HWREVADD := 0x5
|
|
TPLINK_HVERSION := 3
|
|
KERNEL := $(KERNEL_DTB)
|
|
KERNEL_INITRAMFS := $(KERNEL_DTB) | tplink-v2-header -e
|
|
IMAGE/sysupgrade.bin := tplink-v2-image -s -e | append-metadata | \
|
|
check-size $$$$(IMAGE_SIZE)
|
|
endef
|
|
TARGET_DEVICES += tl-wr840n-v5
|
|
|
|
define Device/tl-wr841n-v13
|
|
$(Device/tplink)
|
|
DTS := TL-WR841NV13
|
|
IMAGE_SIZE := 7808k
|
|
DEVICE_TITLE := TP-Link TL-WR841N v13
|
|
TPLINK_FLASHLAYOUT := 8Mmtk
|
|
TPLINK_HWID := 0x08410013
|
|
TPLINK_HWREV := 0x268
|
|
TPLINK_HWREVADD := 0x13
|
|
TPLINK_HVERSION := 3
|
|
endef
|
|
TARGET_DEVICES += tl-wr841n-v13
|
|
|
|
define Device/tplink_c20-v4
|
|
$(Device/tplink)
|
|
DTS := ArcherC20v4
|
|
IMAGE_SIZE := 7808k
|
|
DEVICE_TITLE := TP-Link ArcherC20 v4
|
|
TPLINK_FLASHLAYOUT := 8Mmtk
|
|
TPLINK_HWID := 0xc200004
|
|
TPLINK_HWREV := 0x1
|
|
TPLINK_HWREVADD := 0x4
|
|
TPLINK_HVERSION := 3
|
|
endef
|
|
TARGET_DEVICES += tplink_c20-v4
|
|
|
|
define Device/tplink_tl-mr3420-v5
|
|
$(Device/tplink)
|
|
DTS := TL-MR3420V5
|
|
IMAGE_SIZE := 7808k
|
|
DEVICE_TITLE := TP-Link TL-MR3420 v5
|
|
TPLINK_FLASHLAYOUT := 8Mmtk
|
|
TPLINK_HWID := 0x34200005
|
|
TPLINK_HWREV := 0x5
|
|
TPLINK_HWREVADD := 0x5
|
|
TPLINK_HVERSION := 3
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
|
|
endef
|
|
TARGET_DEVICES += tplink_tl-mr3420-v5
|
|
|
|
define Device/u7628-01-128M-16M
|
|
DTS := U7628-01-128M-16M
|
|
IMAGE_SIZE := 16064k
|
|
DEVICE_TITLE := UniElec U7628-01 (128M RAM/16M flash)
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
|
|
endef
|
|
TARGET_DEVICES += u7628-01-128M-16M
|
|
|
|
define Device/vocore2
|
|
DTS := VOCORE2
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
DEVICE_TITLE := VoCore VoCore2
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
|
|
kmod-sdhci-mt7620
|
|
endef
|
|
TARGET_DEVICES += vocore2
|
|
|
|
define Device/vocore2lite
|
|
DTS := VOCORE2LITE
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
DEVICE_TITLE := VoCore VoCore2-Lite
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport \
|
|
kmod-sdhci-mt7620
|
|
endef
|
|
TARGET_DEVICES += vocore2lite
|
|
|
|
define Device/wcr-1166ds
|
|
DTS := WCR-1166DS
|
|
BUFFALO_TAG_PLATFORM := MTK
|
|
BUFFALO_TAG_VERSION := 9.99
|
|
BUFFALO_TAG_MINOR := 9.99
|
|
IMAGES += factory.bin
|
|
IMAGE/sysupgrade.bin := trx | pad-rootfs | append-metadata
|
|
IMAGE/factory.bin := \
|
|
trx -M 0x746f435c | pad-rootfs | append-metadata | \
|
|
buffalo-enc WCR-1166DS $$(BUFFALO_TAG_VERSION) -l | \
|
|
buffalo-tag-dhp WCR-1166DS JP JP | buffalo-enc-tag -l | \
|
|
buffalo-dhp-image
|
|
DEVICE_TITLE := Buffalo WCR-1166DS
|
|
endef
|
|
TARGET_DEVICES += wcr-1166ds
|
|
|
|
define Device/wl-wn575a3
|
|
DTS := WL-WN575A3
|
|
IMAGE_SIZE := $(ralink_default_fw_size_8M)
|
|
DEVICE_TITLE := Wavlink WL-WN575A3
|
|
endef
|
|
TARGET_DEVICES += wl-wn575a3
|
|
|
|
define Device/widora-neo
|
|
DTS := WIDORA-NEO
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
DEVICE_TITLE := Widora-NEO
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
|
|
endef
|
|
TARGET_DEVICES += widora-neo
|
|
|
|
define Device/wrtnode2p
|
|
DTS := WRTNODE2P
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
DEVICE_TITLE := WRTnode 2P
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci kmod-usb-ledtrig-usbport
|
|
endef
|
|
TARGET_DEVICES += wrtnode2p
|
|
|
|
define Device/wrtnode2r
|
|
DTS := WRTNODE2R
|
|
IMAGE_SIZE := $(ralink_default_fw_size_16M)
|
|
DEVICE_TITLE := WRTnode 2R
|
|
DEVICE_PACKAGES := kmod-usb2 kmod-usb-ohci
|
|
endef
|
|
TARGET_DEVICES += wrtnode2r
|