[openwrt/openwrt] x86: add all ports to the Gowin 1U default network config

LEDE Commits lede-commits at lists.infradead.org
Thu Nov 28 10:58:13 PST 2024


ynezz pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/8eb07120a24b372f3a3be90fca58893eceeecfbe

commit 8eb07120a24b372f3a3be90fca58893eceeecfbe
Author: Til Kaiser <mail at tk154.de>
AuthorDate: Fri Nov 15 16:49:14 2024 +0100

    x86: add all ports to the Gowin 1U default network config
    
    Commit e52c57bb1b30375e0bcc5523db76a672a4a8b4a4 renamed all
    network ports to match the faceplate of the Gowin 1U Rack
    Mount Server and added the br-lan bridge for the eth* ports.
    
    This commit adds the PoE port to the br-lan bridge and a
    br-wan bridge for the two SFP ports so that all ports are
    part of the default network configuration.
    
    Signed-off-by: Til Kaiser <mail at tk154.de>
    Link: https://github.com/openwrt/openwrt/pull/16965
    Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
    (cherry picked from commit 75af6a0d736a696ca726cb44d813791858c29f0c)
    Link: https://github.com/openwrt/openwrt/pull/17097
    Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 target/linux/x86/base-files/etc/board.d/02_network | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/linux/x86/base-files/etc/board.d/02_network b/target/linux/x86/base-files/etc/board.d/02_network
index dc744db05d..b3d1855764 100644
--- a/target/linux/x86/base-files/etc/board.d/02_network
+++ b/target/linux/x86/base-files/etc/board.d/02_network
@@ -58,7 +58,7 @@ gowin-solution-co-ltd-gw-mb-u01)
 		ucidef_set_network_device_path_port "sfp2" "$sfp_device/$sfp_port" "0"
 	fi
 
-	ucidef_set_interface_lan "eth1 eth2 eth3 eth4"
+	ucidef_set_interfaces_lan_wan "eth1 eth2 eth3 eth4 poe" "sfp1 sfp2"
 	;;
 pc-engines-apu1|pc-engines-apu2|pc-engines-apu3)
 	ucidef_set_interfaces_lan_wan "eth1 eth2" "eth0"




More information about the lede-commits mailing list