From 311573b886115e64bf92093211acfe42dc5a27c4 Mon Sep 17 00:00:00 2001 From: mooleshacat <43627985+mooleshacat@users.noreply.github.com> Date: Thu, 4 Jun 2026 17:30:32 -0400 Subject: [PATCH] restoring workspace... --- .../ipq40xx/base-files/etc/board.d/02_network | 9 ++++++ target/linux/ipq40xx/image/generic.mk | 32 +++++++++++++++++++ 2 files changed, 41 insertions(+) diff --git a/target/linux/ipq40xx/base-files/etc/board.d/02_network b/target/linux/ipq40xx/base-files/etc/board.d/02_network index cca50e621f..97e34b7b27 100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network @@ -125,6 +125,12 @@ ipq40xx_setup_interfaces() plasmacloud,pa2200) ucidef_set_interfaces_lan_wan "ethernet1" "ethernet2" ;; + trendnet,tew-829dru) + ucidef_set_interfaces_lan_wan "br-lan" "eth1" + ucidef_add_switch "switch0" \ + "0u@eth0" "1:lan:1" "2:lan:2" "3:lan:3" "4:lan:4" "5:lan:5" \ + "6:lan:6" "7:lan:7" "8:lan:8" "0u@eth1" "9:wan" + ;; qxwlan,e2600ac-c1) ucidef_set_interfaces_lan_wan "sw-eth1" "sw-eth2" ;; @@ -239,6 +245,9 @@ ipq40xx_setup_macs() pakedge,wr-1) wan_mac=$(macaddr_add $(get_mac_label) 1) ;; + trendnet,tew-829dru) + label_mac=$(mtd_get_mac_ascii APPSBLENV ethaddr) + ;; esac [ -n "$lan_mac" ] && ucidef_set_interface_macaddr "lan" $lan_mac diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk index f89df0150b..3f84863cf7 100644 --- a/target/linux/ipq40xx/image/generic.mk +++ b/target/linux/ipq40xx/image/generic.mk @@ -1408,3 +1408,35 @@ define Device/zyxel_wre6606 endef # Missing DSA Setup #TARGET_DEVICES += zyxel_wre6606 + +#define Device/trendnet_tew-829dru-test +# $(call Device/FitImage) +# $(call Device/UbiFit) +# DEVICE_VENDOR := TRENDnet +# DEVICE_MODEL := TEW-829DRU-TEST +# DEVICE_DTS := qcom-ipq4019-tew-829dru-test +# DEVICE_DTS_DIR := ../dts +# DEVICE_DTS_CONFIG := config@1 +# KERNEL_INSTALL := 1 +# BLOCKSIZE := 128k +# PAGESIZE := 2048 +# FILESYSTEMS := squashfs +# IMAGE_SIZE := 112640k +#endef +#TARGET_DEVICES += trendnet_tew-829dru-test + +define Device/trendnet_tew-829dru + $(call Device/FitImage) + $(call Device/UbiFit) + DEVICE_VENDOR := TRENDnet + DEVICE_MODEL := TEW-829DRU + DEVICE_DTS := qcom-ipq4019-tew-829dru + DEVICE_DTS_DIR := ../dts + DEVICE_DTS_CONFIG := config@1 + KERNEL_INSTALL := 1 + BLOCKSIZE := 128k + PAGESIZE := 2048 + FILESYSTEMS := squashfs + IMAGE_SIZE := 112640k +endef +TARGET_DEVICES += trendnet_tew-829dru