[openwrt/openwrt] archs38: add HSDK board to network configure scripts

LEDE Commits lede-commits at lists.infradead.org
Sat Feb 17 06:02:24 PST 2018


hauke pushed a commit to openwrt/openwrt.git, branch master:
https://git.lede-project.org/4cedd1ddb33405c1db45ee84f8e66c7786801aff

commit 4cedd1ddb33405c1db45ee84f8e66c7786801aff
Author: Evgeniy Didin <Evgeniy.Didin at synopsys.com>
AuthorDate: Thu Feb 15 20:26:04 2018 +0300

    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 <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 d8bdd50..60a2602 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 9ca1a2c..50aaaa2 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";
 		;;



More information about the lede-commits mailing list