From patchwork Sun Feb 8 10:46:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "L. D. Pinney" X-Patchwork-Id: 437691 X-Patchwork-Delegate: luka@openwrt.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 1105C1400F1 for ; Sun, 8 Feb 2015 21:44:22 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 520EB28A6B5; Sun, 8 Feb 2015 11:41:42 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_DKIM_INVALID autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id E3BBE2890C4 for ; Sun, 8 Feb 2015 11:41:37 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .gmail. - helo: .mail-ob0-f180.google. - helo-domain: .google.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from mail-ob0-f180.google.com (mail-ob0-f180.google.com [209.85.214.180]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Sun, 8 Feb 2015 11:41:36 +0100 (CET) Received: by mail-ob0-f180.google.com with SMTP id vb8so20564657obc.11 for ; Sun, 08 Feb 2015 02:44:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=b2bHs/dcpsm1Wiqf+YpmfSGZOOddMKn0iBXFuLlS29o=; b=AgbORLSDLbSba1m/SBv/F6qaWVApIz6yfyprD0pP6pY6Y4xav8i9xylLUQxchojvaz w3IVLWCooAeOE5mpu7A5KcY9kD7rR04pXd9k3pLNBfy2khlxRiHtLvKJYTZcelsWUwdc kU8FRq5QiGnHZTBmAawr1kRWG+1ZHRVbcfucNQKtgTDl2TtmUbQOCic/u4+EU+DSRiL7 BZttJ97dHwI0ogdr6IS87fFz2nVcIDX3iV8eH5pgz+GUD5xy1yFgtSr3pLaG65Vig3Wy NEGaN6fq6Pq3r7Wi/LSJ4v8aE+VzIzvZjX6pW+2u7YVM26sQZTmn9t3AOrDZRgANahd4 d5Rg== X-Received: by 10.60.145.225 with SMTP id sx1mr8176815oeb.13.1423392248300; Sun, 08 Feb 2015 02:44:08 -0800 (PST) Received: from localhost.localdomain ([72.192.76.134]) by mx.google.com with ESMTPSA id k9sm3836418obh.0.2015.02.08.02.44.07 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 08 Feb 2015 02:44:07 -0800 (PST) From: "L. D. Pinney" To: OpenWrt Development List Date: Sun, 8 Feb 2015 04:46:54 -0600 Message-Id: <1423392414-14232-1-git-send-email-ldpinney@gmail.com> X-Mailer: git-send-email 2.1.3 Subject: [OpenWrt-Devel] [PATCH] kirkwood: Seagate GoFlex Net X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Add GoFlex Net "Board Name" , set and cleanup network default and LEDs. Remove kmod-rtc-marvell from default packages, as the GoFlex net does not have a RTC. Signed-off-by: L. D. Pinney --- target/linux/kirkwood/base-files/etc/diag.sh | 5 +++++ target/linux/kirkwood/base-files/etc/uci-defaults/01_leds | 4 ++++ target/linux/kirkwood/base-files/etc/uci-defaults/02_network | 13 ++++--------- target/linux/kirkwood/base-files/lib/kirkwood.sh | 4 ++++ target/linux/kirkwood/profiles/110-nas.mk | 2 +- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/target/linux/kirkwood/base-files/etc/diag.sh b/target/linux/kirkwood/base-files/etc/diag.sh old mode 100644 new mode 100755 index b2bb583..29445d5 --- a/target/linux/kirkwood/base-files/etc/diag.sh +++ b/target/linux/kirkwood/base-files/etc/diag.sh @@ -6,6 +6,11 @@ get_status_led() { case $(kirkwood_board_name) in + dockstar|\ + goflexnet|\ + pogo_e02) + status_led="status:orange:fault" + ;; ea4500) status_led="ea4500:white:health" ;; diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds index ba4d569..0f7a906 100644 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds +++ b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds @@ -20,6 +20,10 @@ case "$board" in ucidef_set_led_default "health" "health" "ea4500:white:health" "1" ucidef_set_led_default "pulse" "pulse" "ea4500:white:pulse" "1" ;; +"goflexnet") + ucidef_set_led_default "health" "health" "status:green:health" "1" + ucidef_set_led_default "fault" "fault" "status:orange:fault" "0" + ;; "ib62x0") ucidef_set_led_default "health" "health" "ib62x0:green:os" "1" ucidef_set_led_default "fault" "fault" "ib62x0:red:os" "1" diff --git a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network index 540c8c3..4ed0ab4 100644 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network +++ b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network @@ -28,15 +28,10 @@ board=$(kirkwood_board_name) ucidef_set_interface_loopback case "$board" in -"dockstar") - set_lan_dhcp "eth0" - ;; -"iconnect") - set_lan_dhcp "eth0" - ;; -"ib62x0") - set_lan_dhcp "eth0" - ;; +"dockstar"|\ +"goflexnet"|\ +"iconnect"|\ +"ib62x0"|\ "pogo_e02") set_lan_dhcp "eth0" ;; diff --git a/target/linux/kirkwood/base-files/lib/kirkwood.sh b/target/linux/kirkwood/base-files/lib/kirkwood.sh index 962b09a..c088581 100755 --- a/target/linux/kirkwood/base-files/lib/kirkwood.sh +++ b/target/linux/kirkwood/base-files/lib/kirkwood.sh @@ -17,6 +17,10 @@ kirkwood_board_detect() { name="dockstar" ;; + "Seagate GoFlex Net") + name="goflexnet" + ;; + "Iomega Iconnect") name="iconnect" ;; diff --git a/target/linux/kirkwood/profiles/110-nas.mk b/target/linux/kirkwood/profiles/110-nas.mk index 7b8d7bc..66a4f6c 100644 --- a/target/linux/kirkwood/profiles/110-nas.mk +++ b/target/linux/kirkwood/profiles/110-nas.mk @@ -25,7 +25,7 @@ define Profile/GOFLEXNET NAME:=Seagate GoFlexNet PACKAGES:= \ kmod-ata-core kmod-ata-marvell-sata \ - kmod-rtc-marvell kmod-usb2 kmod-usb-storage \ + kmod-usb2 kmod-usb-storage \ uboot-envtools endef