2022-10-17 16:19:54 +08:00
|
|
|
KERNEL_LOADADDR := 0x48080000
|
|
|
|
|
2023-11-23 18:37:04 +08:00
|
|
|
MT7981_USB_PKGS := automount blkid blockdev fdisk \
|
|
|
|
kmod-nls-cp437 kmod-nls-iso8859-1 kmod-usb2 kmod-usb3 \
|
|
|
|
luci-app-usb-printer luci-i18n-usb-printer-zh-cn \
|
|
|
|
kmod-usb-net-rndis usbutils
|
|
|
|
|
2022-10-17 16:19:54 +08:00
|
|
|
define Device/mt7981-spim-nor-rfb
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := mt7981-spim-nor-rfb
|
|
|
|
DEVICE_DTS := mt7981-spim-nor-rfb
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := mediatek,mt7981-spim-nor-rfb
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-spim-nor-rfb
|
|
|
|
|
|
|
|
define Device/mt7981-spim-nand-2500wan-gmac2
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := mt7981-spim-nand-2500wan-gmac2
|
|
|
|
DEVICE_DTS := mt7981-spim-nand-2500wan-gmac2
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := mediatek,mt7981-spim-snand-2500wan-gmac2-rfb
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 65536k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-spim-nand-2500wan-gmac2
|
|
|
|
|
|
|
|
define Device/mt7981-spim-nand-rfb
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := mt7981-spim-nand-rfb
|
|
|
|
DEVICE_DTS := mt7981-spim-nand-rfb
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := mediatek,mt7981-spim-snand-rfb
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 65536k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-spim-nand-rfb
|
|
|
|
|
|
|
|
define Device/mt7981-spim-nand-gsw
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := mt7981-spim-nand-gsw
|
|
|
|
DEVICE_DTS := mt7981-spim-nand-gsw
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := mediatek,mt7981-rfb,ubi
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 65536k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-spim-nand-gsw
|
|
|
|
|
|
|
|
define Device/mt7981-emmc-rfb
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := mt7981-emmc-rfb
|
|
|
|
DEVICE_DTS := mt7981-emmc-rfb
|
|
|
|
SUPPORTED_DEVICES := mediatek,mt7981-emmc-rfb
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
|
|
|
|
kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
|
|
|
|
kmod-nls-iso8859-1
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-emmc-rfb
|
|
|
|
|
|
|
|
define Device/mt7981-sd-rfb
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := mt7981-sd-rfb
|
|
|
|
DEVICE_DTS := mt7981-sd-rfb
|
|
|
|
SUPPORTED_DEVICES := mediatek,mt7981-sd-rfb
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
|
|
|
|
kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
|
|
|
|
kmod-nls-iso8859-1
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-sd-rfb
|
|
|
|
|
|
|
|
define Device/mt7981-snfi-nand-2500wan-p5
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := mt7981-snfi-nand-2500wan-p5
|
|
|
|
DEVICE_DTS := mt7981-snfi-nand-2500wan-p5
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := mediatek,mt7981-snfi-snand-pcie-2500wan-p5-rfb
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 65536k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-snfi-nand-2500wan-p5
|
|
|
|
|
|
|
|
define Device/mt7981-fpga-spim-nor
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := mt7981-fpga-spim-nor
|
|
|
|
DEVICE_DTS := mt7981-fpga-spim-nor
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := mediatek,mt7981-fpga-nor
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-fpga-spim-nor
|
|
|
|
|
|
|
|
define Device/mt7981-fpga-snfi-nand
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := mt7981-fpga-snfi-nand
|
|
|
|
DEVICE_DTS := mt7981-fpga-snfi-nand
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := mediatek,mt7981-fpga-snfi-snand
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 65536k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-fpga-snfi-nand
|
|
|
|
|
|
|
|
define Device/mt7981-fpga-spim-nand
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := mt7981-fpga-spim-nand
|
|
|
|
DEVICE_DTS := mt7981-fpga-spim-nand
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := mediatek,mt7981-fpga-spim-snand
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 65536k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-fpga-spim-nand
|
|
|
|
|
|
|
|
define Device/mt7981-fpga-emmc
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := mt7981-fpga-emmc
|
|
|
|
DEVICE_DTS := mt7981-fpga-emmc
|
|
|
|
SUPPORTED_DEVICES := mediatek,mt7981-fpga-emmc
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
|
|
|
|
kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
|
|
|
|
kmod-nls-iso8859-1
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-fpga-emmc
|
|
|
|
|
|
|
|
define Device/mt7981-fpga-sd
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := mt7981-fpga-sd
|
|
|
|
DEVICE_DTS := mt7981-fpga-sd
|
|
|
|
SUPPORTED_DEVICES := mediatek,mt7981-fpga-sd
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
DEVICE_PACKAGES := mkf2fs e2fsprogs blkid blockdev losetup kmod-fs-ext4 \
|
|
|
|
kmod-mmc kmod-fs-f2fs kmod-fs-vfat kmod-nls-cp437 \
|
|
|
|
kmod-nls-iso8859-1
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-fpga-sd
|
2022-10-17 01:36:04 +08:00
|
|
|
|
|
|
|
define Device/mt7981-360-t7
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := 360 T7
|
|
|
|
DEVICE_DTS := mt7981-360-t7
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := 360,t7
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 36864k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-360-t7
|
|
|
|
|
|
|
|
define Device/mt7981-360-t7-108M
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := 360 T7 (with 108M ubi)
|
|
|
|
DEVICE_DTS := mt7981-360-t7-108M
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := 360,t7
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 110592k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-360-t7-108M
|
2023-02-20 18:03:10 +08:00
|
|
|
|
2023-10-19 16:06:18 +08:00
|
|
|
define Device/abt_asr3000
|
|
|
|
DEVICE_VENDOR := ABT
|
|
|
|
DEVICE_MODEL := ASR3000
|
|
|
|
DEVICE_DTS := mt7981-abt-asr3000
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := abt,asr3000
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114816k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += abt_asr3000
|
|
|
|
|
2023-07-05 14:26:49 +08:00
|
|
|
define Device/cetron_ct3003
|
|
|
|
DEVICE_VENDOR := CETRON
|
|
|
|
DEVICE_MODEL := CT3003
|
|
|
|
DEVICE_DTS := mt7981-cetron-ct3003
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := cetron,ct3003
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114816k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += cetron_ct3003
|
|
|
|
|
2023-08-26 00:30:07 +08:00
|
|
|
define Device/mt7981-clt-r30b1
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := CLT R30B1
|
|
|
|
DEVICE_DTS := mt7981-clt-r30b1
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := clt,30rb1
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 65536k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-clt-r30b1
|
|
|
|
|
|
|
|
define Device/mt7981-clt-r30b1-112M
|
|
|
|
DEVICE_VENDOR := MediaTek
|
|
|
|
DEVICE_MODEL := CLT R30B1 (with 112M ubi)
|
|
|
|
DEVICE_DTS := mt7981-clt-r30b1-112M
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := clt,r30b1
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114688k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += mt7981-clt-r30b1-112M
|
|
|
|
|
2024-08-21 23:55:11 +08:00
|
|
|
define Device/ruijie_rg-x30e-stock
|
|
|
|
DEVICE_VENDOR := Ruijie
|
|
|
|
DEVICE_MODEL := Ruijie RG-X30E (stock layout)
|
|
|
|
DEVICE_DTS := mt7981-ruijie-rg-x30e-stock
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114688k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ruijie_rg-x30e-stock
|
|
|
|
|
|
|
|
define Device/ruijie_rg-x30e-firmware2
|
|
|
|
DEVICE_VENDOR := Ruijie
|
|
|
|
DEVICE_MODEL := Ruijie RG-X30E (firmware2 layout)
|
|
|
|
DEVICE_DTS := mt7981-ruijie-rg-x30e-firmware2
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114688k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ruijie_rg-x30e-firmware2
|
|
|
|
|
|
|
|
define Device/ruijie_rg-x30e
|
|
|
|
DEVICE_VENDOR := Ruijie
|
|
|
|
DEVICE_MODEL := Ruijie RG-X30E
|
|
|
|
DEVICE_DTS := mt7981-ruijie-rg-x30e
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114688k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ruijie_rg-x30e
|
|
|
|
|
|
|
|
define Device/ruijie_rg-x30e-pro-stock
|
|
|
|
DEVICE_VENDOR := Ruijie
|
|
|
|
DEVICE_MODEL := Ruijie RG-X30E Pro (stock layout)
|
|
|
|
DEVICE_DTS := mt7981-ruijie-rg-x30e-pro-stock
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114688k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ruijie_rg-x30e-pro-stock
|
|
|
|
|
|
|
|
define Device/ruijie_rg-x30e-pro-firmware2
|
|
|
|
DEVICE_VENDOR := Ruijie
|
|
|
|
DEVICE_MODEL := Ruijie RG-X30E Pro (firmware2 layout)
|
|
|
|
DEVICE_DTS := mt7981-ruijie-rg-x30e-pro-firmware2
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114688k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ruijie_rg-x30e-pro-firmware2
|
|
|
|
|
|
|
|
define Device/ruijie_rg-x30e-pro
|
|
|
|
DEVICE_VENDOR := Ruijie
|
|
|
|
DEVICE_MODEL := Ruijie RG-X30E Pro
|
|
|
|
DEVICE_DTS := mt7981-ruijie-rg-x30e-pro
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114688k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ruijie_rg-x30e-pro
|
|
|
|
|
2023-06-06 07:24:46 +00:00
|
|
|
define Device/xiaomi_mi-router-wr30u-stock
|
|
|
|
DEVICE_VENDOR := Xiaomi
|
|
|
|
DEVICE_MODEL := Mi Router WR30U (stock layout)
|
|
|
|
DEVICE_DTS := mt7981-xiaomi-mi-router-wr30u-stock
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 34816k
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += xiaomi_mi-router-wr30u-stock
|
|
|
|
|
|
|
|
define Device/xiaomi_mi-router-wr30u-112m
|
|
|
|
DEVICE_VENDOR := Xiaomi
|
|
|
|
DEVICE_MODEL := Mi Router WR30U (112M UBI layout)
|
|
|
|
DEVICE_DTS := mt7981-xiaomi-mi-router-wr30u-112m
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114688k
|
|
|
|
KERNEL_IN_UBI := 1
|
2024-01-23 23:28:28 +08:00
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
2023-06-06 07:24:46 +00:00
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += xiaomi_mi-router-wr30u-112m
|
|
|
|
|
2023-11-15 20:38:11 +08:00
|
|
|
define Device/xiaomi_mi-router-ax3000t-stock
|
|
|
|
DEVICE_VENDOR := Xiaomi
|
|
|
|
DEVICE_MODEL := Mi Router AX3000T (stock layout)
|
|
|
|
DEVICE_DTS := mt7981-xiaomi-mi-router-ax3000t-stock
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 34816k
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += xiaomi_mi-router-ax3000t-stock
|
|
|
|
|
|
|
|
define Device/xiaomi_mi-router-ax3000t
|
|
|
|
DEVICE_VENDOR := Xiaomi
|
|
|
|
DEVICE_MODEL := Mi Router AX3000T
|
|
|
|
DEVICE_DTS := mt7981-xiaomi-mi-router-ax3000t
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114688k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
2024-01-23 23:28:28 +08:00
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
2023-11-15 20:38:11 +08:00
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += xiaomi_mi-router-ax3000t
|
|
|
|
|
2024-11-12 02:33:49 +08:00
|
|
|
define Device/xiaomi_mi-router-ax3000t-an8855-stock
|
|
|
|
DEVICE_VENDOR := Xiaomi
|
|
|
|
DEVICE_MODEL := Mi Router AX3000T with AN8855 (stock layout)
|
|
|
|
DEVICE_DTS := mt7981-xiaomi-mi-router-ax3000t-an8855-stock
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 34816k
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += xiaomi_mi-router-ax3000t-an8855-stock
|
|
|
|
|
|
|
|
define Device/xiaomi_mi-router-ax3000t-an8855
|
|
|
|
DEVICE_VENDOR := Xiaomi
|
|
|
|
DEVICE_MODEL := Mi Router AX3000T with AN8855
|
|
|
|
DEVICE_DTS := mt7981-xiaomi-mi-router-ax3000t-an8855
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114688k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += xiaomi_mi-router-ax3000t-an8855
|
|
|
|
|
2023-02-20 18:03:10 +08:00
|
|
|
define Device/glinet_gl-mt3000
|
|
|
|
DEVICE_VENDOR := GL.iNet
|
|
|
|
DEVICE_MODEL := GL-MT3000
|
|
|
|
DEVICE_DTS := mt7981-gl-mt3000
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := glinet,mt3000-snand
|
2024-01-31 23:14:24 +08:00
|
|
|
DEVICE_PACKAGES := $(MT7981_USB_PKGS) kmod-hwmon-pwmfan luci-app-samba4
|
2023-02-20 18:03:10 +08:00
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 65536k
|
|
|
|
KERNEL_IN_UBI := 1
|
2023-02-21 14:10:35 +08:00
|
|
|
IMAGES := sysupgrade.tar
|
2023-02-20 18:03:10 +08:00
|
|
|
IMAGE/sysupgrade.tar := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += glinet_gl-mt3000
|
|
|
|
|
|
|
|
define Device/glinet_gl-x3000
|
|
|
|
DEVICE_VENDOR := GL.iNet
|
|
|
|
DEVICE_MODEL := GL-X3000
|
|
|
|
DEVICE_DTS := mt7981-gl-x3000
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := glinet,x3000-emmc
|
|
|
|
DEVICE_PACKAGES := kmod-hwmon-pwmfan mkf2fs kmod-mmc kmod-fs-f2fs gdisk
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += glinet_gl-x3000
|
|
|
|
|
|
|
|
define Device/glinet_gl-xe3000
|
|
|
|
DEVICE_VENDOR := GL.iNet
|
|
|
|
DEVICE_MODEL := GL-XE3000
|
|
|
|
DEVICE_DTS := mt7981-gl-xe3000
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := glinet,xe3000-emmc
|
|
|
|
DEVICE_PACKAGES := kmod-hwmon-pwmfan mkf2fs kmod-mmc kmod-fs-f2fs gdisk
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += glinet_gl-xe3000
|
|
|
|
|
|
|
|
define Device/glinet_gl-mt2500
|
|
|
|
DEVICE_VENDOR := GL.iNet
|
|
|
|
DEVICE_MODEL := GL-MT2500
|
|
|
|
DEVICE_DTS := mt7981-gl-mt2500
|
|
|
|
SUPPORTED_DEVICES := glinet,mt2500-emmc
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
2024-01-31 23:14:24 +08:00
|
|
|
DEVICE_PACKAGES := $(MT7981_USB_PKGS) f2fsck losetup mkf2fs kmod-mmc kmod-fs-f2fs gdisk \
|
|
|
|
luci-app-samba4
|
2023-02-20 18:03:10 +08:00
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += glinet_gl-mt2500
|
2023-07-03 02:27:36 +08:00
|
|
|
|
2023-07-04 16:53:56 +08:00
|
|
|
define Device/jcg_q30
|
|
|
|
DEVICE_VENDOR := JCG
|
|
|
|
DEVICE_MODEL := Q30
|
|
|
|
DEVICE_DTS := mt7981-jcg-q30
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := jcg,q30
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114816k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += jcg_q30
|
|
|
|
|
2024-08-22 00:00:07 +08:00
|
|
|
define Device/ikuai_q3000
|
|
|
|
DEVICE_VENDOR := iKuai
|
|
|
|
DEVICE_MODEL := Q3000
|
|
|
|
DEVICE_DTS := mt7981-ikuai-q3000
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := ikuai,q3000
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114816k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += ikuai_q3000
|
|
|
|
|
2023-07-03 02:27:36 +08:00
|
|
|
define Device/livinet_zr-3020
|
|
|
|
DEVICE_VENDOR := Livinet
|
|
|
|
DEVICE_MODEL := ZR-3020
|
|
|
|
DEVICE_DTS := mt7981-zr-3020
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := livinet,zr-3020 mediatek,mt7981-spim-snand-gsw-rfb
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 65536k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += livinet_zr-3020
|
2023-07-26 12:06:37 +08:00
|
|
|
|
2023-09-21 17:05:42 +08:00
|
|
|
define Device/cmcc_a10
|
|
|
|
DEVICE_VENDOR := CMCC
|
|
|
|
DEVICE_MODEL := A10
|
|
|
|
DEVICE_DTS := mt7981-cmcc-a10
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := cmcc,a10
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114688k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += cmcc_a10
|
|
|
|
|
2023-07-26 12:06:37 +08:00
|
|
|
define Device/cmcc_rax3000m
|
|
|
|
DEVICE_VENDOR := CMCC
|
2023-10-19 16:10:43 +08:00
|
|
|
DEVICE_MODEL := RAX3000M NAND
|
2023-07-26 12:06:37 +08:00
|
|
|
DEVICE_DTS := mt7981-cmcc-rax3000m
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
2024-01-31 23:14:24 +08:00
|
|
|
DEVICE_PACKAGES := $(MT7981_USB_PKGS) luci-app-samba4
|
2023-07-26 12:06:37 +08:00
|
|
|
SUPPORTED_DEVICES := cmcc,rax3000m
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 116736k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += cmcc_rax3000m
|
2023-08-01 02:10:06 +08:00
|
|
|
|
2023-09-28 12:58:43 +08:00
|
|
|
define Device/cmcc_rax3000m-emmc
|
|
|
|
DEVICE_VENDOR := CMCC
|
2023-10-19 16:10:43 +08:00
|
|
|
DEVICE_MODEL := RAX3000M eMMC
|
2023-09-28 12:58:43 +08:00
|
|
|
DEVICE_DTS := mt7981-cmcc-rax3000m-emmc
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := cmcc,rax3000m-emmc
|
2024-01-31 23:14:24 +08:00
|
|
|
DEVICE_PACKAGES := $(MT7981_USB_PKGS) f2fsck losetup mkf2fs kmod-fs-f2fs kmod-mmc \
|
|
|
|
luci-app-samba4
|
2023-09-28 12:58:43 +08:00
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += cmcc_rax3000m-emmc
|
|
|
|
|
2024-08-28 11:16:23 +08:00
|
|
|
define Device/cmcc_xr30
|
|
|
|
DEVICE_VENDOR := CMCC
|
|
|
|
DEVICE_MODEL := XR30 NAND
|
|
|
|
DEVICE_DTS := mt7981-cmcc-xr30
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
DEVICE_PACKAGES := $(MT7981_USB_PKGS) luci-app-samba4
|
|
|
|
SUPPORTED_DEVICES := cmcc,xr30
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 116736k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += cmcc_xr30
|
|
|
|
|
|
|
|
define Device/cmcc_xr30-emmc
|
|
|
|
DEVICE_VENDOR := CMCC
|
|
|
|
DEVICE_MODEL := XR30 eMMC
|
|
|
|
DEVICE_DTS := mt7981-cmcc-xr30-emmc
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
2024-09-18 22:00:38 +08:00
|
|
|
SUPPORTED_DEVICES := cmcc,xr30-emmc
|
2024-08-28 11:16:23 +08:00
|
|
|
DEVICE_PACKAGES := $(MT7981_USB_PKGS) f2fsck losetup mkf2fs kmod-fs-f2fs kmod-mmc \
|
|
|
|
luci-app-samba4
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += cmcc_xr30-emmc
|
|
|
|
|
2023-08-01 02:10:06 +08:00
|
|
|
define Device/h3c_nx30pro
|
|
|
|
DEVICE_VENDOR := H3C
|
|
|
|
DEVICE_MODEL := NX30PRO
|
|
|
|
DEVICE_DTS := mt7981-h3c-nx30pro
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := h3c,nx30pro
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 65536k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += h3c_nx30pro
|
2023-08-05 21:12:33 +08:00
|
|
|
|
2024-08-28 11:01:20 +08:00
|
|
|
define Device/honor_fur-602
|
|
|
|
DEVICE_VENDOR := HONOR
|
|
|
|
DEVICE_MODEL := FUR-602
|
|
|
|
DEVICE_DTS := mt7981-honor-fur-602
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := honor,fur-602
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 116736k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += honor_fur-602
|
|
|
|
|
2023-08-05 21:12:33 +08:00
|
|
|
define Device/konka_komi-a31
|
|
|
|
DEVICE_VENDOR := KONKA
|
|
|
|
DEVICE_MODEL := KOMI A31
|
|
|
|
DEVICE_DTS := mt7981-konka-komi-a31
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := konka,komi-a31
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114688k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += konka_komi-a31
|
2023-08-10 16:12:03 +08:00
|
|
|
|
|
|
|
define Device/imou_lc-hx3001
|
|
|
|
DEVICE_VENDOR := Imou
|
|
|
|
DEVICE_MODEL := LC-HX3001
|
|
|
|
DEVICE_DTS := mt7981-imou_lc-hx3001
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := imou,lc-hx3001
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 114816k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += imou_lc-hx3001
|
2023-10-24 15:30:11 +00:00
|
|
|
|
mediatek: add Nokia EA0326GMP support (#270)
Hardware specification:
SoC: MediaTek MT7981B 2x A53
Flash: 128 MB SPI-NAND
RAM: 256MB
Ethernet: 4x 10/100/1000 Mbps
Switch: MediaTek MT7531AE
WiFi: MediaTek MT7976C
Button: Reset, WPS/Mesh
Power: DC 12V 1A
Gain SSH access:
1. Login into web interface, and download the configuration.
2. Download the configration utilities:
https://firmware.download.immortalwrt.eu.org/cnsztl/mediatek/filogic/openwrt-mediatek-mt7981-nokia-ea0326gmp-config-utils.tar.gz
These binaries are extraced from the factory firmware, which are
dynamically linked with aarch64 musl 1.1.24. To use them, you
must run them under the same runtime environment, otherwise the
binaries will not work!
3. Upload the configuration and utilities to a suitable environment.
4. Uncompress the utilities, move them to '/bin' and give them executable permisison:
tar -zxf openwrt-mediatek-mt7981-nokia-ea0326gmp-config-utils.tar.gz
mv mkconfig seama /bin
chmod +x /bin/mkconfig
chmod +x /bin/seama
5. Decrypt and uncompress the configuration:
Enter fakeroot if you are not login as root.
mkconfig -a de-enca -m EA0326GMP_3FE79221BAAA -i EA0326GMP_3FE79221BAAA-xxxxxxxx-backup.tar.gz -o backup.tar.gz
tar -zxf backup.tar.gz
6. Edit 'etc/config/dropbear', set 'enable' to '1'.
7. Edit `etc/passwd`, remove root password: 'root::1:0:99999:7:::'.
8. Repack the configuration:
tar -zcf backup.tar.gz etc/
mkconfig -a enca -m EA0326GMP_3FE79221BAAA -i backup.tar.gz -o EA0326GMP_3FE79221BAAA-xxxxxxxx-backup.tar.gz
9. Upload new configuration via web interface, now you can SSH to EA0326GMP.
A minimum configuration which enabled SSH access is also provided to simplify the process:
https://firmware.download.immortalwrt.eu.org/cnsztl/mediatek/filogic/openwrt-mediatek-mt7981-nokia-ea0326gmp-enable-ssh.tar.gz
Flash instructions:
1. SSH to EA0326GMP, backup everything, especially 'Factory' part.
2. Write new FIP provided by https://github.com/hanwckf/bl-mt798x.
3. Reboot, enter web failsafe and upload -factory.bin firmware.
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
2024-08-21 23:54:48 +08:00
|
|
|
define Device/nokia_ea0326gmp
|
|
|
|
DEVICE_VENDOR := Nokia
|
|
|
|
DEVICE_MODEL := EA0326GMP
|
|
|
|
DEVICE_DTS := mt7981-nokia-ea0326gmp
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := nokia,ea0326gmp
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 112640k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += nokia_ea0326gmp
|
|
|
|
|
2024-08-28 11:07:44 +08:00
|
|
|
define Device/newland_nl-wr8103
|
|
|
|
DEVICE_VENDOR := Newland
|
|
|
|
DEVICE_MODEL := NL-WR8103
|
|
|
|
DEVICE_DTS := mt7981-newland-nl-wr8103
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := newland,nl-wr8103
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 116736k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += newland_nl-wr8103
|
|
|
|
|
2024-08-28 11:11:47 +08:00
|
|
|
define Device/newland_nl-wr9103
|
|
|
|
DEVICE_VENDOR := Newland
|
|
|
|
DEVICE_MODEL := NL-WR9103
|
|
|
|
DEVICE_DTS := mt7981-newland-nl-wr9103
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := newland,nl-wr9103
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 116736k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += newland_nl-wr9103
|
|
|
|
|
2023-10-24 15:30:11 +00:00
|
|
|
define Device/nradio_wt9103
|
|
|
|
DEVICE_VENDOR := NRADIO
|
|
|
|
DEVICE_MODEL := WT9103
|
|
|
|
DEVICE_DTS := mt7981-nradio-wt9103
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := nradio,wt9103
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 131072k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
2023-11-11 21:25:03 +08:00
|
|
|
TARGET_DEVICES += nradio_wt9103
|
|
|
|
|
|
|
|
define Device/nradio_wt9103_512m
|
|
|
|
DEVICE_VENDOR := NRADIO
|
|
|
|
DEVICE_MODEL := WT9103 (with 512M Flash)
|
|
|
|
DEVICE_DTS := mt7981-nradio-wt9103-512m
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := nradio,wt9103
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 131072k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGES += factory.bin
|
|
|
|
IMAGE/factory.bin := append-ubi | check-size $$$$(IMAGE_SIZE)
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
endef
|
2023-11-23 18:37:04 +08:00
|
|
|
TARGET_DEVICES += nradio_wt9103_512m
|
2024-08-21 19:17:09 +03:00
|
|
|
|
|
|
|
define Device/routerich_ax3000
|
|
|
|
DEVICE_VENDOR := Routerich
|
|
|
|
DEVICE_MODEL := AX3000
|
|
|
|
DEVICE_DTS := mt7981-routerich-ax3000
|
|
|
|
DEVICE_DTS_DIR := $(DTS_DIR)/mediatek
|
|
|
|
SUPPORTED_DEVICES := routerich,ax3000 mediatek,mt7981-spim-snand-rfb
|
|
|
|
UBINIZE_OPTS := -E 5
|
|
|
|
BLOCKSIZE := 128k
|
|
|
|
PAGESIZE := 2048
|
|
|
|
IMAGE_SIZE := 65536k
|
|
|
|
KERNEL_IN_UBI := 1
|
|
|
|
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
|
|
|
|
DEVICE_PACKAGES := $(MT7981_USB_PKGS)
|
|
|
|
endef
|
|
|
|
TARGET_DEVICES += routerich_ax3000
|