mirror of
https://github.com/cjdelisle/openwrt.git
synced 2025-09-15 03:39:48 +00:00
Add support for TP-Link Archer VR1200v (v2), a DSL modem based on the EN7513G SoC. Installation instructions can be found here: https://openwrt.org/inbox/toh/tp-link/archer_vr1200v Also added a "Generic EN751221" initramfs image for testing and recovery of non-specific EN751221 devices. Signed-off-by: Caleb James DeLisle <cjd@cjdns.fr>
61 lines
1.8 KiB
Makefile
61 lines
1.8 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
include $(INCLUDE_DIR)/image.mk
|
|
|
|
define Target/Description
|
|
Build firmware images for EN75xx MIPS based boards.
|
|
endef
|
|
|
|
# tclinux-trx is the default format used in the SDK
|
|
define Build/tclinux-trx
|
|
./tclinux-trx.sh $@ $(IMAGE_ROOTFS) $(VERSION_DIST)-$(REVISION) > $@.new
|
|
mv $@.new $@
|
|
endef
|
|
|
|
# tclinux bootloader requires LZMA, BUT only provides 7.5MB of space
|
|
# to decompress into. So we use vmlinuz and decompress twice.
|
|
define Device/Default
|
|
DEVICE_DTS_DIR := ../dts
|
|
KERNEL_SIZE := 7480k
|
|
KERNEL_NAME := vmlinuz.bin
|
|
KERNEL_LOADADDR := 0x80020000
|
|
KERNEL := kernel-bin | append-dtb
|
|
endef
|
|
|
|
define Device/en751221_generic
|
|
DEVICE_VENDOR := EN751221 Family
|
|
DEVICE_MODEL := Initramfs Image
|
|
DEVICE_TITLE := EN751221 Initramfs Image
|
|
DEVICE_DESCRIPTION := In-memory build for testing and recovery of EN751221 SoCs
|
|
DEVICE_DTS := en751221_generic
|
|
endef
|
|
TARGET_DEVICES += en751221_generic
|
|
|
|
# TODO: We need to add our own flash layout to mktplinkfw2
|
|
# but for the moment, we're using 16Mmtk and adding -R 0x400000
|
|
define Device/tplink_archer-vr1200v-v2
|
|
DEVICE_VENDOR := TP-Link
|
|
DEVICE_MODEL := Archer vr1200v
|
|
DEVICE_VARIANT := v2
|
|
TPLINK_FLASHLAYOUT := 16Mmtk
|
|
TPLINK_HWID := 0x0b473502
|
|
TPLINK_HWREV := 0x0006007c
|
|
TPLINK_HWREVADD := 0x0
|
|
TPLINK_HVERSION := 3
|
|
DEVICE_DTS := en751221_tplink_archer-vr1200v-v2
|
|
IMAGES := sysupgrade.bin
|
|
IMAGE/sysupgrade.bin := append-kernel | lzma | pad-to 4193792 | append-rootfs | \
|
|
tplink-v2-header -R 0x400000
|
|
endef
|
|
TARGET_DEVICES += tplink_archer-vr1200v-v2
|
|
|
|
define Device/smartfiber_xp8421-b
|
|
DEVICE_VENDOR := SmartFiber
|
|
DEVICE_MODEL := XP8421-B
|
|
DEVICE_DTS := en751221_smartfiber_xp8421-b
|
|
IMAGES := tclinux.trx
|
|
IMAGE/tclinux.trx := append-kernel | lzma | tclinux-trx
|
|
endef
|
|
TARGET_DEVICES += smartfiber_xp8421-b
|
|
|
|
$(eval $(call BuildImage))
|