[LEDE-DEV] [PATCH] archs38: add HSDK board to network configure scripts
Evgeniy Didin
Evgeniy.Didin at synopsys.com
Thu Feb 15 09:26:04 PST 2018
In the initial patch which adds HSDK board there were no update
of network configuration scripts. Without it by default static IP
is set for br-lan and there is no access to internet.
This patch fixes the issue.
Signed-off-by: Evgeniy Didin <Evgeniy.Didin at synopsys.com>
CC: Alexey Brodkin <abrodkin at synopsys.com>
CC: Hauke Mehrtens <hauke at hauke-m.de>
CC: John Crispin <john at phrozen.org>
---
target/linux/archs38/base-files/etc/board.d/02_network | 2 +-
target/linux/archs38/base-files/lib/arc.sh | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/target/linux/archs38/base-files/etc/board.d/02_network b/target/linux/archs38/base-files/etc/board.d/02_network
index d8bdd50677..60a2602316 100755
--- a/target/linux/archs38/base-files/etc/board.d/02_network
+++ b/target/linux/archs38/base-files/etc/board.d/02_network
@@ -8,7 +8,7 @@
board_config_update
case "$(board_name)" in
-"arc-sdp"*)
+"arc-sdp"*|"arc-hsdk"*)
ucidef_set_interface_lan "eth0" "dhcp"
;;
esac
diff --git a/target/linux/archs38/base-files/lib/arc.sh b/target/linux/archs38/base-files/lib/arc.sh
index 9ca1a2c09a..50aaaa2d27 100644
--- a/target/linux/archs38/base-files/lib/arc.sh
+++ b/target/linux/archs38/base-files/lib/arc.sh
@@ -21,6 +21,9 @@ arc_board_detect() {
"snps,axs103""snps,arc-sdp")
board="arc-sdp";
;;
+ "snps,hsdk")
+ board="arc-hsdk";
+ ;;
"snps,nsim_hs")
board="arc-nsim";
;;
--
2.11.0
More information about the Lede-dev
mailing list