Skip to content
Snippets Groups Projects
Unverified Commit 7d2919d3 authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

Better support for Turris


Fix default network configuration for Turris 1.x

Signed-off-by: default avatarMichal Hrusecky <Michal@Hrusecky.net>
parent 4672d939
No related branches found
No related tags found
No related merge requests found
......@@ -55,15 +55,16 @@ diff --git a/target/linux/mpc85xx/base-files/etc/board.d/02_network b/target/lin
index 19f01a6589..b8cb085647 100755
--- a/target/linux/mpc85xx/base-files/etc/board.d/02_network
+++ b/target/linux/mpc85xx/base-files/etc/board.d/02_network
@@ -18,6 +18,11 @@ tplink,tl-wdr4900-v1)
@@ -18,6 +18,12 @@ tplink,tl-wdr4900-v1)
"0@eth0" "2:lan:1" "3:lan:2" "4:lan:3" "5:lan:4" "1:wan"
ucidef_set_interface_macaddr "wan" "$(mtd_get_mac_binary config 332)"
;;
+cz-nic,turris-1.x)
+ ucidef_set_interfaces_lan_wan "eth0 eth1" "eth2"
+ ucidef_add_switch "switch0" "1" "1"
+ ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 4 "
+ ucidef_add_switch_vlan "switch0" "2" "5 6"
+fsl,P2020RDB)
+ ucidef_set_interface_lan "eth0 eth1"
+ ucidef_set_interface_wan "eth2"
+ ucidef_add_switch "switch0" \
+ "0u@eth1" "1:lan1" "2:lan1" "3:lan1" "4:lan1" "5:lan2" "6u@eth0"
+ ;;
*)
ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;
......@@ -614,7 +615,7 @@ index 0000000000..da573b2ab7
+
+/ {
+ model = "Turris";
+ compatible = "cz-nic,turris-1.x";
+ compatible = "fsl,P2020RDB";
+
+ aliases {
+ ethernet0 = &enet0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment