mediatek: filogic: cmcc rax3000m: label WAN port

The device has a label on the WAN port; add a matching DT openwrt,netdev-name.

Add openwrt,netdev-name = "wan" to gmac1 (mac@1) in mt7981b-cmcc-rax3000m.dts
to identify the WAN port. Move the cmcc,rax3000m entry to the
appropriate case block in
target/linux/mediatek/filogic/base-files/etc/board.d/02_network
so mediatek_setup_interfaces handles the device correctly.

Bump the compat version so sysupgrade shows the warning message.

Signed-off-by: Andrii Kuiukoff <andros.ua@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/24575
Signed-off-by: Jonas Jelonek <jonas@jonasjelonek.de>
This commit is contained in:
Andrii Kuiukoff authored and Jonas Jelonek committed 2026-09-09 12:03:34 +02:00
1 parent a55d09d291
commit 05e95a3bb5
4 files changed
+6 -1

No files matched your search

@@ -90,6 +90,7 @@
gmac1: mac@1 {
compatible = "mediatek,eth-mac";
reg = <1>;
openwrt,netdev-name = "wan";
phy-mode = "gmii";
phy-handle = <&int_gbe_phy>;
};
@@ -10,7 +10,6 @@ mediatek_setup_interfaces()
case $board in
abt,asr3000|\
buffalo,wsr-6000ax8|\
cmcc,rax3000m|\
h3c,magic-nx30-pro|\
imou,hx21|\
konka,komi-a31|\
@@ -56,6 +55,7 @@ mediatek_setup_interfaces()
cetron,ct3003|\
cmcc,a10-stock|\
cmcc,a10-ubootmod|\
cmcc,rax3000m|\
confiabits,mt7981|\
creatlentem,clt-r30b1|\
creatlentem,clt-r30b1-112m|\
@@ -11,6 +11,7 @@ case "$(board_name)" in
bananapi,bpi-r4|\
bananapi,bpi-r4-2g5|\
bananapi,bpi-r4-poe|\
cmcc,rax3000m|\
mercusys,mr85x|\
routerich,ax3000|\
zbtlink,zbt-z8102ax-v2)
+3
View File
@@ -1032,6 +1032,9 @@ define Device/cmcc_rax3000m
DEVICE_DTS_LOADADDR := 0x43f00000
DEVICE_PACKAGES := kmod-mt7915e kmod-mt7981-firmware mt7981-wo-firmware kmod-usb3 \
e2fsprogs f2fsck mkf2fs
DEVICE_COMPAT_VERSION := 1.1
DEVICE_COMPAT_MESSAGE := WAN port renamed from eth1 to wan to match its physical \
label, check wan interface configuration after upgrade.
KERNEL_LOADADDR := 0x44000000
KERNEL := kernel-bin | gzip
KERNEL_INITRAMFS := kernel-bin | lzma | \