From e00bc81a56da1b9aed2a4114ab64b8ea015507c5 Mon Sep 17 00:00:00 2001 From: Luka Perkov Date: Thu, 31 Oct 2013 12:04:04 +0000 Subject: [PATCH] kirkwood: add userland support for Pogoplug E02 This patch adds the userland support for the Pogoplug E02 by Cloud Engines, Inc. Signed-off-by: Felix Kaechele SVN-Revision: 38631 --- .../base-files/etc/uci-defaults/01_leds | 4 ++++ .../base-files/etc/uci-defaults/02_network | 3 +++ target/linux/kirkwood/image/Makefile | 3 +++ .../linux/kirkwood/profiles/120-pogoplug.mk | 21 +++++++++++++++++++ 4 files changed, 31 insertions(+) create mode 100644 target/linux/kirkwood/profiles/120-pogoplug.mk 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 7e2018853a..5c34cd6cd6 100644 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds +++ b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds @@ -10,6 +10,10 @@ case "`cat /proc/device-tree/model`" in ucidef_set_led_netdev "eth0" "dockstar:orange:misc" "eth0" ucidef_set_led_default "health" "dockstar:green:health" "1" ;; +"Cloud Engines Pogoplug E02") + ucidef_set_led_default "health" "status:green:health" "1" + ucidef_set_led_default "fault" "status:orange:fault" "1" + ;; *) ;; esac 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 42724ef706..bf95f72cb8 100644 --- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network +++ b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network @@ -32,6 +32,9 @@ case "`cat /proc/device-tree/model`" in "RaidSonic ICY BOX IB-NAS62x0 (Rev B)") set_lan_dhcp "eth0" ;; +"Cloud Engines Pogoplug E02") + set_lan_dhcp "eth0" + ;; *) ucidef_set_interface_lan "eth0" ;; diff --git a/target/linux/kirkwood/image/Makefile b/target/linux/kirkwood/image/Makefile index 397a465993..d78c5a2326 100644 --- a/target/linux/kirkwood/image/Makefile +++ b/target/linux/kirkwood/image/Makefile @@ -117,6 +117,9 @@ Image/InstallKernel/Template/Generic=$(call Image/InstallKernel/Template) Image/BuildKernel/Template/IB62X0=$(call Image/BuildKernel/Template,ib62x0) Image/InstallKernel/Template/IB62X0=$(call Image/InstallKernel/Template,ib62x0) +Image/BuildKernel/Template/POGOE02=$(call Image/BuildKernel/Template,pogo_e02) +Image/InstallKernel/Template/POGOE02=$(call Image/InstallKernel/Template,pogo_e02) + define Image/BuildKernel $(call Image/BuildKernel/Template/$(PROFILE)) endef diff --git a/target/linux/kirkwood/profiles/120-pogoplug.mk b/target/linux/kirkwood/profiles/120-pogoplug.mk new file mode 100644 index 0000000000..0f842494ab --- /dev/null +++ b/target/linux/kirkwood/profiles/120-pogoplug.mk @@ -0,0 +1,21 @@ +# +# Copyright (C) 2013 OpenWrt.org +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +define Profile/POGOE02 + NAME:=Cloud Engines Pogoplug E02 + PACKAGES:= \ + kmod-usb2 kmod-usb-storage uboot-envtools +endef + +define Profile/POGOE02/Description + Package set compatible with Cloud Engines Pogoplug E02 board. +endef + +POGOE02_UBIFS_OPTS:="-m 2048 -e 128KiB -c 4096 -U" +POGOE02_UBI_OPTS:="-m 2048 -p 128KiB -s 512" + +$(eval $(call Profile,POGOE02)) -- 2.25.1