From patchwork Thu Feb 15 17:26:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Evgeniy Didin X-Patchwork-Id: 874011 X-Patchwork-Delegate: hauke@hauke-m.de Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="gUX8c36M"; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zj3960Lp2z9sP9 for ; Fri, 16 Feb 2018 04:26:34 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Subject:Message-Id: Date:To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=pXu/+4fN+qPIMxjr+AWLK8hgPCAtIRLM3n73eIflq/U=; b=gUX8c36Mr8JctP Vgd5TZaZ9xkyH52csnKQ3IY3zoHH+2lq0EGj5oN66DXF+7koJp9OyBRLw28774Tqsecb6U1kaFV0Z EvpjfNyG8TZf+zRj/gdMcJY5LHHv2e+r4ek0QXmvsyImSea4+08YyONDxZ/0brhsy3cHNNNSzQmCn ALlSu8Ps1qGBEBOEFYMuH7LoZStIk2OuaqPJPhy0We3FZWZamJxK/an42Bv7pD9IEkk0gtS0Sn5Ge S805iOAdN0IdM/EzY7uHs2ozhRDh0S8k3veLg84p4gxIRbco6GYFPzECu4WfS1/7zXaNXHUv9PYjb CXS9CN17fGSDYhCBuJjw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1emNIl-000370-3g; Thu, 15 Feb 2018 17:26:31 +0000 Received: from us01smtprelay-2.synopsys.com ([198.182.60.111] helo=smtprelay.synopsys.com) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1emNIe-0002wa-N0 for lede-dev@lists.infradead.org; Thu, 15 Feb 2018 17:26:29 +0000 Received: from mailhost.synopsys.com (mailhost3.synopsys.com [10.12.238.238]) by smtprelay.synopsys.com (Postfix) with ESMTP id A74C910C1275; Thu, 15 Feb 2018 09:26:11 -0800 (PST) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 4087A3424; Thu, 15 Feb 2018 09:26:11 -0800 (PST) Received: from ru20arcgnu1.internal.synopsys.com (ru20arcgnu1.internal.synopsys.com [10.121.9.48]) by mailhost.synopsys.com (Postfix) with ESMTP id 8B5823418; Thu, 15 Feb 2018 09:26:09 -0800 (PST) From: Evgeniy Didin To: lede-dev@lists.infradead.org Date: Thu, 15 Feb 2018 20:26:04 +0300 Message-Id: <20180215172604.10594-1-Evgeniy.Didin@synopsys.com> X-Mailer: git-send-email 2.11.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180215_092624_804802_16D78045 X-CRM114-Status: GOOD ( 24.65 ) X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [198.182.60.111 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [198.182.60.111 listed in wl.mailspike.net] -0.0 T_RP_MATCHES_RCVD Envelope sender domain matches handover relay domain -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Subject: [LEDE-DEV] [PATCH] archs38: add HSDK board to network configure scripts X-BeenThere: lede-dev@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Evgeniy Didin , Hauke Mehrtens , Alexey Brodkin , John Crispin MIME-Version: 1.0 Sender: "Lede-dev" Errors-To: lede-dev-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org 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"; ;;