From 3a457d974e7bfbf51e4f800b1cdcff3112d38810 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= <karel.koci@nic.cz>
Date: Thu, 18 Jul 2019 14:10:47 +0200
Subject: [PATCH] patches/openwrt: fix default configuration for Turris 1.x

---
 .../wip/0002-kernel-Add-Turris-1.X-support.patch | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/patches/openwrt/wip/0002-kernel-Add-Turris-1.X-support.patch b/patches/openwrt/wip/0002-kernel-Add-Turris-1.X-support.patch
index 86949cf56..ec355c14b 100644
--- a/patches/openwrt/wip/0002-kernel-Add-Turris-1.X-support.patch
+++ b/patches/openwrt/wip/0002-kernel-Add-Turris-1.X-support.patch
@@ -1,4 +1,4 @@
-From b34c11ad7d871f7ab63274bce8e5b913365f6290 Mon Sep 17 00:00:00 2001
+From 9d21c745ed902b4401d4d79f6afb3ba3b24ce5a3 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
@@ -9,7 +9,7 @@ some polishing.
 Signed-off-by: Michal Hrusecky <Michal@Hrusecky.net>
 ---
  target/linux/mpc85xx/Makefile                 |   4 +-
- .../mpc85xx/base-files/etc/board.d/02_network |   6 +
+ .../mpc85xx/base-files/etc/board.d/02_network |   4 +
  target/linux/mpc85xx/config-4.14              | 375 ++++++++++++++++++
  .../arch/powerpc/boot/dts/turris.dts          | 296 ++++++++++++++
  target/linux/mpc85xx/p2020/config-default     | 101 +++++
@@ -17,7 +17,7 @@ Signed-off-by: Michal Hrusecky <Michal@Hrusecky.net>
  target/linux/mpc85xx/p2020/target.mk          |   6 +
  ...fsl_elbc_nand_add_ecc_mode_selection.patch | 227 +++++++++++
  ...a8k-extend-slave-bus-implementations.patch | 243 ++++++++++++
- 9 files changed, 1285 insertions(+), 2 deletions(-)
+ 9 files changed, 1283 insertions(+), 2 deletions(-)
  create mode 100644 target/linux/mpc85xx/config-4.14
  create mode 100644 target/linux/mpc85xx/files-4.14/arch/powerpc/boot/dts/turris.dts
  create mode 100644 target/linux/mpc85xx/p2020/config-default
@@ -43,18 +43,16 @@ index b181e67..924572b 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 19f01a6..7679728 100755
+index 19f01a6..6348390 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,12 @@ tplink,tl-wdr4900-v1)
+@@ -18,6 +18,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"
@@ -1379,5 +1377,5 @@ index 0000000..9a24bee
 +2.21.0
 +
 -- 
-2.21.0
+2.22.0
 
-- 
GitLab