2019-12-19 19:42:19 +00:00
|
|
|
DEVICE_VARS += TPLINK_HWID TPLINK_HWREV TPLINK_FLASHLAYOUT TPLINK_HEADER_VERSION
|
2020-01-29 23:00:31 +00:00
|
|
|
DEVICE_VARS += TPLINK_BOARD_ID TPLINK_HWREVADD TPLINK_HVERSION
|
2018-05-30 13:18:50 +00:00
|
|
|
|
ath79: add support for Archer C58/C59 v1
This commit adds support for the Archer C58 v1 and C59 v1, previously
supported in the ar71xx target.
CPU: Qualcomm QCA9561
RAM: 64M (C58) / 128M (C59)
FLASH: 8M (C58) / 16M (C59)
WiFi: QCA9561 bgn 3x3:3
QCA9888 nac 2x2:2
LED: Power, WiFi 2.4, WiFi 5, WAN green, WAN amber, LAN, WPS
Only C59: USB
BTN: WPS, WiFi, Reset
Installation
------------
Via Web-UI:
Update factory image via Web-UI.
Via TFTP:
Rename factory image to "tp_recovery.bin" and place it in the root-dir
of your tftp server. Configure to listen on 192.168.0.66. Power up the
router while holding down the reset-button. The router will flash itself
and reboot.
Note: For TFTP, you might need a switch between router and computer, as
link establishment might take to long.
Signed-off-by: David Bauer <mail@david-bauer.net>
2018-10-31 19:19:49 +00:00
|
|
|
define Build/uImageArcher
|
|
|
|
mkimage -A $(LINUX_KARCH) \
|
2019-12-19 19:42:19 +00:00
|
|
|
-O linux -T kernel -C $(1) -a $(KERNEL_LOADADDR) \
|
|
|
|
-e $(if $(KERNEL_ENTRY),$(KERNEL_ENTRY),$(KERNEL_LOADADDR)) \
|
ath79: add support for Archer C58/C59 v1
This commit adds support for the Archer C58 v1 and C59 v1, previously
supported in the ar71xx target.
CPU: Qualcomm QCA9561
RAM: 64M (C58) / 128M (C59)
FLASH: 8M (C58) / 16M (C59)
WiFi: QCA9561 bgn 3x3:3
QCA9888 nac 2x2:2
LED: Power, WiFi 2.4, WiFi 5, WAN green, WAN amber, LAN, WPS
Only C59: USB
BTN: WPS, WiFi, Reset
Installation
------------
Via Web-UI:
Update factory image via Web-UI.
Via TFTP:
Rename factory image to "tp_recovery.bin" and place it in the root-dir
of your tftp server. Configure to listen on 192.168.0.66. Power up the
router while holding down the reset-button. The router will flash itself
and reboot.
Note: For TFTP, you might need a switch between router and computer, as
link establishment might take to long.
Signed-off-by: David Bauer <mail@david-bauer.net>
2018-10-31 19:19:49 +00:00
|
|
|
-n '$(call toupper,$(LINUX_KARCH)) OpenWrt Linux-$(LINUX_VERSION)' -d $@ $@.new
|
|
|
|
@mv $@.new $@
|
|
|
|
endef
|
|
|
|
|
2020-01-29 22:52:09 +00:00
|
|
|
define Device/tplink-v1
|
2019-06-16 19:34:46 +00:00
|
|
|
DEVICE_VENDOR := TP-Link
|
2020-02-16 09:40:53 +00:00
|
|
|
TPLINK_HWID := 0x0
|
2018-05-30 13:18:50 +00:00
|
|
|
TPLINK_HWREV := 0x1
|
|
|
|
TPLINK_HEADER_VERSION := 1
|
|
|
|
LOADER_TYPE := gz
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma
|
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | tplink-v1-header
|
2018-12-06 11:07:56 +00:00
|
|
|
IMAGES += factory.bin
|
2019-12-31 12:57:50 +00:00
|
|
|
IMAGE/sysupgrade.bin := tplink-v1-image sysupgrade | append-metadata
|
|
|
|
IMAGE/factory.bin := tplink-v1-image factory
|
2018-05-30 13:18:50 +00:00
|
|
|
endef
|
|
|
|
|
2020-01-29 23:00:31 +00:00
|
|
|
define Device/tplink-v2
|
|
|
|
DEVICE_VENDOR := TP-Link
|
2020-02-16 09:40:53 +00:00
|
|
|
TPLINK_HWID := 0x0
|
2020-01-29 23:00:31 +00:00
|
|
|
TPLINK_HWREV := 0x1
|
|
|
|
TPLINK_HWREVADD := 0x0
|
|
|
|
TPLINK_HVERSION := 3
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma
|
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | lzma | tplink-v2-header
|
|
|
|
IMAGE/sysupgrade.bin := tplink-v2-image -s | append-metadata | \
|
2020-03-10 13:58:27 +00:00
|
|
|
check-size
|
2020-01-29 23:00:31 +00:00
|
|
|
endef
|
|
|
|
|
2018-05-30 13:18:50 +00:00
|
|
|
define Device/tplink-nolzma
|
2020-01-29 22:52:09 +00:00
|
|
|
$(Device/tplink-v1)
|
2018-05-30 13:18:50 +00:00
|
|
|
LOADER_FLASH_OFFS := 0x22000
|
|
|
|
COMPILE := loader-$(1).gz
|
|
|
|
COMPILE/loader-$(1).gz := loader-okli-compile
|
2019-12-19 19:42:19 +00:00
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | \
|
|
|
|
loader-okli $(1) 7680
|
2018-05-30 13:18:50 +00:00
|
|
|
KERNEL_INITRAMFS := kernel-bin | append-dtb | gzip | tplink-v1-header
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/tplink-4m
|
|
|
|
$(Device/tplink-nolzma)
|
|
|
|
TPLINK_FLASHLAYOUT := 4M
|
|
|
|
IMAGE_SIZE := 3904k
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/tplink-4mlzma
|
2020-01-29 22:52:09 +00:00
|
|
|
$(Device/tplink-v1)
|
2018-05-30 13:18:50 +00:00
|
|
|
TPLINK_FLASHLAYOUT := 4Mlzma
|
|
|
|
IMAGE_SIZE := 3904k
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/tplink-8m
|
|
|
|
$(Device/tplink-nolzma)
|
|
|
|
TPLINK_FLASHLAYOUT := 8M
|
2019-10-22 11:08:24 +00:00
|
|
|
IMAGE_SIZE := 8000k
|
2018-05-30 13:18:50 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/tplink-8mlzma
|
2020-01-29 22:52:09 +00:00
|
|
|
$(Device/tplink-v1)
|
2018-05-30 13:18:50 +00:00
|
|
|
TPLINK_FLASHLAYOUT := 8Mlzma
|
2019-10-22 11:08:24 +00:00
|
|
|
IMAGE_SIZE := 8000k
|
2018-05-30 13:18:50 +00:00
|
|
|
endef
|
2018-06-26 05:25:33 +00:00
|
|
|
|
|
|
|
define Device/tplink-16mlzma
|
2020-01-29 22:52:09 +00:00
|
|
|
$(Device/tplink-v1)
|
2018-06-26 05:25:33 +00:00
|
|
|
TPLINK_FLASHLAYOUT := 16Mlzma
|
2019-10-22 11:08:24 +00:00
|
|
|
IMAGE_SIZE := 16192k
|
2018-06-26 05:25:33 +00:00
|
|
|
endef
|
ath79: add support for Archer C58/C59 v1
This commit adds support for the Archer C58 v1 and C59 v1, previously
supported in the ar71xx target.
CPU: Qualcomm QCA9561
RAM: 64M (C58) / 128M (C59)
FLASH: 8M (C58) / 16M (C59)
WiFi: QCA9561 bgn 3x3:3
QCA9888 nac 2x2:2
LED: Power, WiFi 2.4, WiFi 5, WAN green, WAN amber, LAN, WPS
Only C59: USB
BTN: WPS, WiFi, Reset
Installation
------------
Via Web-UI:
Update factory image via Web-UI.
Via TFTP:
Rename factory image to "tp_recovery.bin" and place it in the root-dir
of your tftp server. Configure to listen on 192.168.0.66. Power up the
router while holding down the reset-button. The router will flash itself
and reboot.
Note: For TFTP, you might need a switch between router and computer, as
link establishment might take to long.
Signed-off-by: David Bauer <mail@david-bauer.net>
2018-10-31 19:19:49 +00:00
|
|
|
|
|
|
|
define Device/tplink-safeloader
|
2020-01-29 22:52:09 +00:00
|
|
|
$(Device/tplink-v1)
|
2020-02-16 09:40:53 +00:00
|
|
|
TPLINK_HWREV := 0x0
|
2019-03-27 18:14:34 +00:00
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | tplink-v1-header -O
|
2020-06-17 21:48:32 +00:00
|
|
|
KERNEL_INITRAMFS := $$(KERNEL)
|
2019-03-27 18:14:34 +00:00
|
|
|
IMAGE/sysupgrade.bin := append-rootfs | tplink-safeloader sysupgrade | \
|
2020-03-10 13:58:27 +00:00
|
|
|
append-metadata | check-size
|
ath79: add support for Archer C58/C59 v1
This commit adds support for the Archer C58 v1 and C59 v1, previously
supported in the ar71xx target.
CPU: Qualcomm QCA9561
RAM: 64M (C58) / 128M (C59)
FLASH: 8M (C58) / 16M (C59)
WiFi: QCA9561 bgn 3x3:3
QCA9888 nac 2x2:2
LED: Power, WiFi 2.4, WiFi 5, WAN green, WAN amber, LAN, WPS
Only C59: USB
BTN: WPS, WiFi, Reset
Installation
------------
Via Web-UI:
Update factory image via Web-UI.
Via TFTP:
Rename factory image to "tp_recovery.bin" and place it in the root-dir
of your tftp server. Configure to listen on 192.168.0.66. Power up the
router while holding down the reset-button. The router will flash itself
and reboot.
Note: For TFTP, you might need a switch between router and computer, as
link establishment might take to long.
Signed-off-by: David Bauer <mail@david-bauer.net>
2018-10-31 19:19:49 +00:00
|
|
|
IMAGE/factory.bin := append-rootfs | tplink-safeloader factory
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Device/tplink-safeloader-uimage
|
|
|
|
$(Device/tplink-safeloader)
|
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | uImageArcher lzma
|
2020-06-17 21:48:32 +00:00
|
|
|
KERNEL_INITRAMFS := $$(KERNEL)
|
ath79: add support for Archer C58/C59 v1
This commit adds support for the Archer C58 v1 and C59 v1, previously
supported in the ar71xx target.
CPU: Qualcomm QCA9561
RAM: 64M (C58) / 128M (C59)
FLASH: 8M (C58) / 16M (C59)
WiFi: QCA9561 bgn 3x3:3
QCA9888 nac 2x2:2
LED: Power, WiFi 2.4, WiFi 5, WAN green, WAN amber, LAN, WPS
Only C59: USB
BTN: WPS, WiFi, Reset
Installation
------------
Via Web-UI:
Update factory image via Web-UI.
Via TFTP:
Rename factory image to "tp_recovery.bin" and place it in the root-dir
of your tftp server. Configure to listen on 192.168.0.66. Power up the
router while holding down the reset-button. The router will flash itself
and reboot.
Note: For TFTP, you might need a switch between router and computer, as
link establishment might take to long.
Signed-off-by: David Bauer <mail@david-bauer.net>
2018-10-31 19:19:49 +00:00
|
|
|
endef
|
2019-07-20 09:59:07 +00:00
|
|
|
|
2020-01-29 23:06:38 +00:00
|
|
|
define Device/tplink-safeloader-okli
|
2019-07-20 09:59:07 +00:00
|
|
|
$(Device/tplink-safeloader)
|
|
|
|
LOADER_TYPE := elf
|
|
|
|
LOADER_FLASH_OFFS := 0x43000
|
|
|
|
COMPILE := loader-$(1).elf
|
|
|
|
COMPILE/loader-$(1).elf := loader-okli-compile
|
2019-12-19 19:42:19 +00:00
|
|
|
KERNEL := kernel-bin | append-dtb | lzma | uImage lzma -M 0x4f4b4c49 | \
|
|
|
|
loader-okli $(1) 12288
|
2020-06-17 21:48:32 +00:00
|
|
|
KERNEL_INITRAMFS := $$(KERNEL)
|
2019-07-20 09:59:07 +00:00
|
|
|
endef
|