mediatek: add missing network setup for cudy tr3000-v1 ubootmod

Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
This commit is contained in:
Tianling Shen
2025-01-15 13:05:52 +08:00
parent 73b7d39c80
commit 272391c84f
5 changed files with 7 additions and 4 deletions

View File

@@ -595,9 +595,9 @@ TFA_MAKE_FLAGS += \
$(if $(USE_UBI),UBI=1 $(if $(findstring mt7622,$(PLAT)),OVERRIDE_UBI_START_ADDR=0x80000)) \
$(if $(USE_UBI),UBI=1 $(if $(findstring mt7981,$(PLAT)),OVERRIDE_UBI_START_ADDR=0x100000)) \
$(if $(USE_UBI),UBI=1 $(if $(findstring mt7986,$(PLAT)),OVERRIDE_UBI_START_ADDR=0x200000)) \
$(if $(RAM_BOOT_UART_DL),bl2,all) \
$(if $(FIP_OFFSET),OVERRIDE_FIP_BASE=$(FIP_OFFSET)) \
$(if $(FIP_SIZE),OVERRIDE_FIP_SIZE=$(FIP_SIZE))
$(if $(FIP_SIZE),OVERRIDE_FIP_SIZE=$(FIP_SIZE)) \
$(if $(RAM_BOOT_UART_DL),bl2,all)
define Package/trusted-firmware-a-ram/install
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)

View File

@@ -2,6 +2,7 @@ set_preinit_iface() {
case $(board_name) in
cudy,m3000-v1|\
cudy,tr3000-v1|\
cudy,tr3000-v1-ubootmod|\
glinet,gl-mt3000|\
openembed,som7981)
ip link set eth1 up

View File

@@ -93,6 +93,7 @@ mediatek_setup_interfaces()
;;
cudy,m3000-v1|\
cudy,tr3000-v1|\
cudy,tr3000-v1-ubootmod|\
glinet,gl-mt2500|\
glinet,gl-mt3000|\
glinet,gl-x3000|\

View File

@@ -73,6 +73,7 @@ case "$board" in
cudy,m3000-v1|\
cudy,re3000-v1|\
cudy,tr3000-v1|\
cudy,tr3000-v1-ubootmod|\
cudy,wr3000s-v1|\
cudy,wr3000h-v1|\
cudy,wr3000-v1)

View File

@@ -722,7 +722,7 @@ define Device/cudy_tr3000-v1
IMAGE_SIZE := 65536k
KERNEL_IN_UBI := 1
IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata
DEVICE_PACKAGES := kmod-usb3 kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware
DEVICE_PACKAGES := kmod-usb3 kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware automount
endef
TARGET_DEVICES += cudy_tr3000-v1
@@ -732,7 +732,7 @@ define Device/cudy_tr3000-v1-ubootmod
DEVICE_VARIANT := v1 (OpenWrt U-Boot layout)
DEVICE_DTS := mt7981b-cudy-tr3000-v1-ubootmod
DEVICE_DTS_DIR := ../dts
DEVICE_PACKAGES := kmod-usb3 kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware
DEVICE_PACKAGES := kmod-usb3 kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware automount
UBINIZE_OPTS := -E 5
BLOCKSIZE := 128k
PAGESIZE := 2048