2020-05-18 19:10:45 +00:00
|
|
|
DEVICE_VARS += TPLINK_HWID TPLINK_HWREV TPLINK_FLASHLAYOUT TPLINK_HEADER_VERSION
|
|
|
|
|
2022-03-27 19:00:30 +00:00
|
|
|
define Build/spi-loader-okli-compile
|
|
|
|
rm -rf $@.spi-loader-okli
|
|
|
|
$(CP) spi-loader $@.spi-loader-okli
|
|
|
|
$(MAKE) -C $@.spi-loader-okli \
|
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" CONFIG="$(DEVICE_NAME)"
|
|
|
|
cp "$@.spi-loader-okli/out/uImage" "$@"
|
|
|
|
rm -rf $@.spi-loader-okli
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/spi-loader-okli
|
|
|
|
cat $(KDIR)/loader-$(1) "$@" > "$@.new"
|
|
|
|
mv "$@.new" "$@"
|
|
|
|
endef
|
|
|
|
|
2023-03-18 01:28:23 +00:00
|
|
|
define Device/enterasys_ws-ap3715i
|
|
|
|
DEVICE_VENDOR := Enterasys
|
|
|
|
DEVICE_MODEL := WS-AP3715i
|
|
|
|
BLOCKSIZE := 64k
|
|
|
|
KERNEL_NAME := simpleImage.ws-ap3715i
|
|
|
|
KERNEL_ENTRY := 0x1000000
|
|
|
|
KERNEL_LOADADDR := 0x1000000
|
|
|
|
KERNEL = kernel-bin | lzma | uImage lzma
|
|
|
|
IMAGES := sysupgrade.bin
|
|
|
|
IMAGE/sysupgrade.bin := append-kernel | append-rootfs | pad-rootfs | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += enterasys_ws-ap3715i
|
|
|
|
|
2020-05-18 19:10:45 +00:00
|
|
|
define Device/tplink_tl-wdr4900-v1
|
|
|
|
DEVICE_VENDOR := TP-Link
|
|
|
|
DEVICE_MODEL := TL-WDR4900
|
|
|
|
DEVICE_VARIANT := v1
|
2022-09-29 20:25:24 +00:00
|
|
|
DEVICE_COMPAT_VERSION := 1.1
|
|
|
|
DEVICE_COMPAT_MESSAGE := Config cannot be migrated from swconfig to DSA
|
2020-05-18 19:10:45 +00:00
|
|
|
TPLINK_HEADER_VERSION := 1
|
|
|
|
TPLINK_HWID := 0x49000001
|
|
|
|
TPLINK_HWREV := 1
|
|
|
|
TPLINK_FLASHLAYOUT := 16Mppc
|
|
|
|
KERNEL_NAME := simpleImage.tl-wdr4900-v1
|
|
|
|
KERNEL_INITRAMFS :=
|
2022-03-27 19:00:30 +00:00
|
|
|
KERNEL := kernel-bin | uImage none -M 0x4f4b4c49 | spi-loader-okli $(1)
|
2020-05-18 19:10:45 +00:00
|
|
|
KERNEL_ENTRY := 0x1000000
|
|
|
|
KERNEL_LOADADDR := 0x1000000
|
|
|
|
SUPPORTED_DEVICES += tl-wdr4900-v1
|
2022-03-27 19:00:30 +00:00
|
|
|
COMPILE := loader-$(1)
|
|
|
|
COMPILE/loader-$(1) := spi-loader-okli-compile
|
2020-05-18 19:10:45 +00:00
|
|
|
ARTIFACTS := fdt.bin
|
|
|
|
ARTIFACT/fdt.bin := append-dtb
|
2021-02-26 12:16:01 +00:00
|
|
|
IMAGES := factory.bin sysupgrade.bin
|
2020-05-18 19:10:45 +00:00
|
|
|
IMAGE/sysupgrade.bin := tplink-v1-image sysupgrade | append-metadata
|
|
|
|
IMAGE/factory.bin := tplink-v1-image factory
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += tplink_tl-wdr4900-v1
|
|
|
|
|
2023-02-18 01:06:54 +00:00
|
|
|
define Device/watchguard_firebox-t10
|
|
|
|
DEVICE_VENDOR := Watchguard
|
|
|
|
DEVICE_MODEL := Firebox T10
|
|
|
|
DEVICE_PACKAGES := kmod-rtc-s35390a kmod-eeprom-at24
|
|
|
|
KERNEL = kernel-bin | gzip | fit gzip $(KDIR)/image-$$(DEVICE_DTS).dtb
|
|
|
|
IMAGES := sysupgrade.bin
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += watchguard_firebox-t10
|
|
|
|
|
2020-05-18 19:10:45 +00:00
|
|
|
define Device/sophos_red-15w-rev1
|
|
|
|
DEVICE_VENDOR := Sophos
|
|
|
|
DEVICE_MODEL := RED 15w
|
|
|
|
DEVICE_VARIANT := Rev.1
|
|
|
|
# Original firmware uses a dedicated DTB-partition.
|
|
|
|
# The bootloader however supports FIT-images.
|
|
|
|
KERNEL = kernel-bin | gzip | fit gzip $(KDIR)/image-$$(DEVICE_DTS).dtb
|
|
|
|
IMAGES := sysupgrade.bin
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += sophos_red-15w-rev1
|