Skip to content
Snippets Groups Projects
Verified Commit d84681cb authored by Karel Koci's avatar Karel Koci :metal:
Browse files

patches: openwrt: fix Turris 1.x network defaults

parent f2b315e1
Branches
Tags
1 merge request!123Turris OS 5.0 (HBK)
From 4a00139eb7f6daf6a2afadd93ac4151c202ad22a Mon Sep 17 00:00:00 2001
From 6177794cbd201913d702b40814f52db15a16405f Mon Sep 17 00:00:00 2001
From: Michal Hrusecky <Michal@Hrusecky.net>
Date: Wed, 27 Dec 2017 17:19:45 +0100
Subject: [PATCH] kernel: Add Turris 1.X support
......@@ -13,14 +13,14 @@ Signed-off-by: Michal Hrusecky <Michal@Hrusecky.net>
Signed-off-by: Karel Kočí <karel.koci@nic.cz>
---
target/linux/mpc85xx/Makefile | 2 +-
.../mpc85xx/base-files/etc/board.d/02_network | 6 +
.../mpc85xx/base-files/etc/board.d/02_network | 4 +
target/linux/mpc85xx/config-4.14 | 3 +
.../arch/powerpc/boot/dts/turris-nand-bch.dts | 27 ++
.../arch/powerpc/boot/dts/turris.dtsi | 347 ++++++++++++++++++
target/linux/mpc85xx/p2020/profiles/turris.mk | 29 ++
...sl_elbc-add-support-for-software-ecc.patch | 223 +++++++++++
...-qca8k-fix-internal-phy-mdio-address.patch | 22 ++
8 files changed, 658 insertions(+), 1 deletion(-)
8 files changed, 656 insertions(+), 1 deletion(-)
create mode 100644 target/linux/mpc85xx/files-4.19/arch/powerpc/boot/dts/turris-nand-bch.dts
create mode 100644 target/linux/mpc85xx/files-4.19/arch/powerpc/boot/dts/turris.dtsi
create mode 100644 target/linux/mpc85xx/p2020/profiles/turris.mk
......@@ -41,18 +41,16 @@ index 370ef81f15..dd24729d33 100644
KERNELNAME:=zImage
diff --git a/target/linux/mpc85xx/base-files/etc/board.d/02_network b/target/linux/mpc85xx/base-files/etc/board.d/02_network
index d6b4eebf14..e6af77047c 100755
index d6b4eebf14..53a92bf341 100755
--- a/target/linux/mpc85xx/base-files/etc/board.d/02_network
+++ b/target/linux/mpc85xx/base-files/etc/board.d/02_network
@@ -23,6 +23,12 @@ tplink,tl-wdr4900-v1)
@@ -23,6 +23,10 @@ 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)"
;;
+fsl,P2020RDB)
+ ucidef_set_interface_lan "eth0 eth1"
+ ucidef_set_interface_lan "lan1 lan2 lan3 lan4 lan5"
+ 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"
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment