mediatek/filogic: add OpenWrt One support
filogic: Add support for D-Link AQUILA PRO AI M30 Specification: - MT7981 CPU using 2.4GHz and 5GHz WiFi (both AX) - 1GB RAM - 16MB NOR - 128MB NAND - 3 LEDs (red, green, blue, white) - 2 buttons (reset, user defined) - 1 2.5Gbit WAN port (Airoha EN8811h) - 1 1Gbit LAN ports - 1 single lane M.2 SSD slot - 1 mikroBus socket - externel HW WDT (25s refresh time) - i2c RTC (with battery backup) Serial Interface - UBS-C CDC-ACM - 3 Pins GND, RX, TX - Settings: 115200, 8N1 MAC addresses are not populated on the early samples. Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
@@ -951,6 +951,54 @@ define Device/openembed_som7981
|
||||
endef
|
||||
TARGET_DEVICES += openembed_som7981
|
||||
|
||||
define Build/append-openwrt-one-eeprom
|
||||
dd if=$(STAGING_DIR_IMAGE)/mt7981_eeprom_mt7976_dbdc.bin >> $@
|
||||
endef
|
||||
|
||||
define Device/openwrt_one
|
||||
DEVICE_VENDOR := OpenWrt
|
||||
DEVICE_MODEL := One
|
||||
DEVICE_DTS := mt7981b-openwrt-one
|
||||
DEVICE_DTS_DIR := ../dts
|
||||
DEVICE_DTC_FLAGS := --pad 4096
|
||||
DEVICE_DTS_LOADADDR := 0x43f00000
|
||||
DEVICE_PACKAGES := kmod-mt7981-firmware mt7981-wo-firmware kmod-rtc-pcf8563 kmod-usb3 kmod-nvme kmod-phy-airoha-en8811h
|
||||
KERNEL_LOADADDR := 0x44000000
|
||||
KERNEL := kernel-bin | gzip
|
||||
KERNEL_INITRAMFS := kernel-bin | lzma | \
|
||||
fit lzma $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb with-initrd | pad-to 64k
|
||||
KERNEL_INITRAMFS_SUFFIX := .itb
|
||||
KERNEL_IN_UBI := 1
|
||||
UBOOTENV_IN_UBI := 1
|
||||
IMAGES := sysupgrade.itb
|
||||
IMAGE_SIZE := $$(shell expr 64 + $$(CONFIG_TARGET_ROOTFS_PARTSIZE))m
|
||||
IMAGE/sysupgrade.itb := append-kernel | fit gzip $$(KDIR)/image-$$(firstword $$(DEVICE_DTS)).dtb external-with-rootfs | pad-rootfs | append-metadata
|
||||
ARTIFACTS := \
|
||||
nor-preloader.bin nor-bl31-uboot.fip \
|
||||
snand-preloader.bin snand-bl31-uboot.fip \
|
||||
factory.ubi snand-factory.bin nor-factory.bin
|
||||
ARTIFACT/nor-preloader.bin := mt7981-bl2 nor-ddr4
|
||||
ARTIFACT/nor-bl31-uboot.fip := mt7981-bl31-uboot openwrt_one-nor
|
||||
ARTIFACT/snand-preloader.bin := mt7981-bl2 spim-nand-ubi-ddr4
|
||||
ARTIFACT/snand-bl31-uboot.fip := mt7981-bl31-uboot openwrt_one-snand
|
||||
ARTIFACT/factory.ubi := ubinize-image fit squashfs-sysupgrade.itb
|
||||
ARTIFACT/snand-factory.bin := mt7981-bl2 spim-nand-ubi-ddr4 | pad-to 256k | \
|
||||
mt7981-bl2 spim-nand-ubi-ddr4 | pad-to 512k | \
|
||||
mt7981-bl2 spim-nand-ubi-ddr4 | pad-to 768k | \
|
||||
mt7981-bl2 spim-nand-ubi-ddr4 | pad-to 1024k | \
|
||||
ubinize-image fit squashfs-sysupgrade.itb
|
||||
ARTIFACT/nor-factory.bin := mt7981-bl2 nor-ddr4 | pad-to 256k | \
|
||||
append-openwrt-one-eeprom | pad-to 1024k | \
|
||||
mt7981-bl31-uboot openwrt_one-nor | pad-to 512k | \
|
||||
append-image-stage initramfs.itb
|
||||
UBINIZE_OPTS := -E 5
|
||||
BLOCKSIZE := 128k
|
||||
PAGESIZE := 2048
|
||||
UBINIZE_PARTS := fip=:$(STAGING_DIR_IMAGE)/mt7981_openwrt_one-snand-u-boot.fip recovery=:$(KDIR)/tmp/openwrt-mediatek-filogic-openwrt_one-initramfs.itb \
|
||||
$(if $(wildcard $(TOPDIR)/openwrt-mediatek-filogic-openwrt_one-calibration.itb), calibration=:$(TOPDIR)/openwrt-mediatek-filogic-openwrt_one-calibration.itb)
|
||||
endef
|
||||
TARGET_DEVICES += openwrt_one
|
||||
|
||||
define Device/qihoo_360t7
|
||||
DEVICE_VENDOR := Qihoo
|
||||
DEVICE_MODEL := 360T7
|
||||
|
||||
Reference in New Issue
Block a user