From 4cedd1ddb33405c1db45ee84f8e66c7786801aff Mon Sep 17 00:00:00 2001 From: Evgeniy Didin Date: Thu, 15 Feb 2018 20:26:04 +0300 Subject: [PATCH] archs38: add HSDK board to network configure scripts 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 CC: Alexey Brodkin CC: Hauke Mehrtens CC: John Crispin --- 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.25.1