From 9c0c041ae9a41ddb7735105a7d304cc88842402b Mon Sep 17 00:00:00 2001 From: mooleshacat <43627985+mooleshacat@users.noreply.github.com> Date: Mon, 22 Jun 2026 21:53:27 -0400 Subject: [PATCH] network init script & packages in makefile --- .../ipq40xx/base-files/etc/board.d/02_network | 13 +++--- target/linux/ipq40xx/image/generic.mk | 43 ++++++++++++------- 2 files changed, 35 insertions(+), 21 deletions(-) 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 97e34b7b27..b29caae115 100644 --- a/target/linux/ipq40xx/base-files/etc/board.d/02_network +++ b/target/linux/ipq40xx/base-files/etc/board.d/02_network @@ -126,10 +126,7 @@ ipq40xx_setup_interfaces() 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" + ucidef_set_interfaces_lan_wan "lan1 lan2 lan3 lan4 lan5 lan6 lan7 lan8" "wan1 wan2" ;; qxwlan,e2600ac-c1) ucidef_set_interfaces_lan_wan "sw-eth1" "sw-eth2" @@ -246,7 +243,13 @@ ipq40xx_setup_macs() wan_mac=$(macaddr_add $(get_mac_label) 1) ;; trendnet,tew-829dru) - label_mac=$(mtd_get_mac_ascii APPSBLENV ethaddr) + local lan_mac wan1_mac wan2_mac + lan_mac=$(mtd_get_mac_ascii APPSBLENV ethaddr) + wan1_mac=$(mtd_get_mac_ascii APPSBLENV eth1addr) + wan2_mac=$(mtd_get_mac_ascii APPSBLENV eth2addr) + ucidef_set_interface_macaddr "lan" "$lan_mac" + ucidef_set_interface_macaddr "wan1" "$wan1_mac" + ucidef_set_interface_macaddr "wan2" "$wan2_mac" ;; esac diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk index 62c43f955a..86b1ccab36 100644 --- a/target/linux/ipq40xx/image/generic.mk +++ b/target/linux/ipq40xx/image/generic.mk @@ -1245,6 +1245,33 @@ endef # Missing DSA Setup #TARGET_DEVICES += tel_x1pro +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_CONFIG := config@1 + KERNEL_INSTALL := 1 + BLOCKSIZE := 128k + PAGESIZE := 2048 + FILESYSTEMS := squashfs + DEVICE_PACKAGES := ipq-wifi-trendnet_tew-829dru \ + ath10k-firmware-qca4019-ct \ + ath10k-firmware-qca9984-ct \ + kmod-ath10k-ct-smallbuffers \ + kmod-dsa-qca8k \ + kmod-mtd-rawnand \ + kmod-phy-qca807x \ + kmod-phy-qca83xx \ + kmod-usb-dwc3 \ + kmod-usb-dwc3-qcom \ + mwan3 \ + uboot-envtools + IMAGE_SIZE := 112640k +endef +TARGET_DEVICES += trendnet_tew-829dru + define Device/unielec_u4019-32m $(call Device/FitImage) DEVICE_VENDOR := Unielec @@ -1409,19 +1436,3 @@ endef # Missing DSA Setup #TARGET_DEVICES += zyxel_wre6606 -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 - DEVICE_PACKAGES := ipq-wifi-trendnet_tew-829dru - IMAGE_SIZE := 112640k -endef -TARGET_DEVICES += trendnet_tew-829dru