network init script & packages in makefile

This commit is contained in:
mooleshacat 2026-06-22 21:53:27 -04:00
parent 2f15bf31d1
commit 9c0c041ae9
Signed by: mooleshacat
GPG Key ID: 6F42FE1A481818C2
2 changed files with 35 additions and 21 deletions

View File

@ -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

View File

@ -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