Modify

Opened 3 years ago

#18033 new enhancement

[kirkwood] Support for PogoPlug Mobile

Reported by: Beiad Dalton <beatadalhagen@…> Owned by: developers
Priority: normal Milestone:
Component: base system Version: Trunk
Keywords: Cc:

Description

From 6c6f244cf584fc4304b4df336c131f617c4f5f1c Mon Sep 17 00:00:00 2001
From: Beiad Dalton <beatadalhagen@…>
Date: Wed, 1 Oct 2014 23:48:42 -0700
Subject: [PATCH] [kirkwood] Add non-FDT support for PogoPlug Mobile
To: openwrt-devel@…

Based on the pogo_e02 patch set.

Signed-off-by: Beiad Dalton <beatadalhagen@…>
---

.../kirkwood/base-files/etc/uci-defaults/01_leds | 4 +
.../base-files/etc/uci-defaults/02_network | 3 +
target/linux/kirkwood/base-files/lib/kirkwood.sh | 4 +
target/linux/kirkwood/image/Makefile | 3 +
.../patches-3.14/170-pogoplug_mobile.patch | 121 +++++++++++++++++++++
target/linux/kirkwood/profiles/110-nas.mk | 15 +++
6 files changed, 150 insertions(+)
create mode 100644 target/linux/kirkwood/patches-3.14/170-pogoplug_mobile.patch

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 07c1a0e..58904f1 100644
--- a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
@@ -25,6 +25,10 @@ case "$board" in

ucidef_set_led_default "health" "status:green:health" "1"
ucidef_set_led_default "fault" "status:orange:fault" "1"
;;

+"pogo_mobile")
+ ucidef_set_led_default "health" "status:green:health" "1"
+ ucidef_set_led_default "fault" "status:red: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 e795d65..1242b27 100644
--- a/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
+++ b/target/linux/kirkwood/base-files/etc/uci-defaults/02_network
@@ -40,6 +40,9 @@ case "$board" in

"pogo_e02")

set_lan_dhcp "eth0"
;;

+"pogo_mobile")
+ set_lan_dhcp "eth0"
+ ;;

"ea4500")

ucidef_set_interfaces_lan_wan "eth0" "eth1"
;;

diff --git a/target/linux/kirkwood/base-files/lib/kirkwood.sh b/target/linux/kirkwood/base-files/lib/kirkwood.sh
index ba080f4..983cc47 100755
--- a/target/linux/kirkwood/base-files/lib/kirkwood.sh
+++ b/target/linux/kirkwood/base-files/lib/kirkwood.sh
@@ -29,6 +29,10 @@ kirkwood_board_detect() {

name="pogo_e02"
;;


+ "Cloud Engines Pogoplug Mobile")
+ name="pogo_mobile"
+ ;;
+

"Linksys EA4500")

name="ea4500"
;;

diff --git a/target/linux/kirkwood/image/Makefile b/target/linux/kirkwood/image/Makefile
index d0b1f83..cff25c5 100644
--- a/target/linux/kirkwood/image/Makefile
+++ b/target/linux/kirkwood/image/Makefile
@@ -132,6 +132,9 @@ Image/InstallKernel/Template/ICONNECT=$(call Image/InstallKernel/Template,iconne

Image/BuildKernel/Template/POGOE02=$(call Image/BuildKernel/Template,pogo_e02)
Image/InstallKernel/Template/POGOE02=$(call Image/InstallKernel/Template,pogo_e02)


+Image/BuildKernel/Template/POGOMOBILE=$(call Image/BuildKernel/Template,pogo_mobile)
+Image/InstallKernel/Template/POGOMOBILE=$(call Image/InstallKernel/Template,pogo_mobile)
+

define Image/BuildKernel

$(call Image/BuildKernel/Template/$(PROFILE))

endef

diff --git a/target/linux/kirkwood/patches-3.14/170-pogoplug_mobile.patch b/target/linux/kirkwood/patches-3.14/170-pogoplug_mobile.patch
new file mode 100644
index 0000000..2de646e
--- /dev/null
+++ b/target/linux/kirkwood/patches-3.14/170-pogoplug_mobile.patch
@@ -0,0 +1,121 @@
+Index: linux-3.14.18/arch/arm/boot/dts/Makefile
+===================================================================
+--- linux-3.14.18.orig/arch/arm/boot/dts/Makefile
++++ linux-3.14.18/arch/arm/boot/dts/Makefile
+@@ -114,6 +114,7 @@ dtb-$(CONFIG_ARCH_KIRKWOOD) += kirkwood-
+ kirkwood-openblocks_a6.dtb \
+ kirkwood-openblocks_a7.dtb \
+ kirkwood-pogo_e02.dtb \
++ kirkwood-pogo_mobile.dtb \
+ kirkwood-sheevaplug.dtb \
+ kirkwood-sheevaplug-esata.dtb \
+ kirkwood-topkick.dtb \
+Index: linux-3.14.18/arch/arm/boot/dts/kirkwood-pogo_mobile.dts
+===================================================================
+--- /dev/null
++++ linux-3.14.18/arch/arm/boot/dts/kirkwood-pogo_mobile.dts
+@@ -0,0 +1,104 @@
++/dts-v1/;
++
++#include "kirkwood.dtsi"
++#include "kirkwood-6192.dtsi"
++/* kirkwood 6192 */
++/ {
++ model = "Cloud Engines Pogoplug Mobile";
++ compatible = "cloudengines,pogov4a1", "marvell,kirkwood-88f6192", "marvell,kirkwood";
++
++ memory {
++ device_type = "memory";
++ reg = <0x00000000 0x10000000>;
++ };
++
++ chosen {
++ bootargs = "console=ttyS0,115200n8 earlyprintk";
++ };
++
++ ocp@f1000000 {
++ pinctrl: pinctrl@10000 {
++ pmx_led_green: pmx-led_green {
++ marvell,pins = "mpp22";
++ marvell,function = "gpio";
++ };
++ pmx_led_red: pmx-led_red {
++ marvell,pins = "mpp24";
++ marvell,function = "gpio";
++ };
++ pmx_sdio_cd: pmx_sdio_cd {
++ marvell,pins = "mpp27";
++ marvell,function = "gpio";
++ };
++ pmx_sdio_wp: pmx_sdio_wp {
++ marvell,pins = "mpp28";
++ marvell,function = "gpio";
++ };
++ pmx_eject_button: pmx_eject_button {
++ marvell,pins = "mpp29";
++ marvell,function = "gpio";
++ };
++ };
++ serial@12000 {
++ status = "ok";
++ };
++ mvsdio@90000 {
++ pinctrl-0 = <&pmx_sdio &pmx_sdio_cd &pmx_sdio_wp>;
++ pinctrl-names = "default";
++ cd-gpios = <&gpio0 27 1>;
++ wp-gpios = <&gpio0 28 0>;
++ status = "okay";
++ };
++
++ };
++ gpio-keys {
++ compatible = "gpio-keys";
++ #address-cells = <1>;
++ #size-cells = <0>;
++ pinctrl-0 = <&pmx_eject_button>;
++ pinctrl-names = "default";
++
++ button@1 {
++ label = "Eject button";
++ linux,code = <KEY_EJECTCD>;
++ gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
++ };
++ };
++ gpio-leds {
++ compatible = "gpio-leds";
++ pinctrl-0 = < &pmx_led_red &pmx_led_green >;
++ pinctrl-names = "default";
++
++ health {
++ label = "status:green:health";
++ gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
++ default-state = "keep";
++ };
++ fault {
++ label = "status:red:fault";
++ gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
++ };
++ };
++};
++
++&nand {
++ chip-delay = <40>;
++ status = "okay";
++
++};
++
++&mdio {
++ status = "okay";
++
++ ethphy0: ethernet-phy@0 {
++ reg = <0>;
++ };
++};
++
++&eth0 {
++ status = "okay";
++ ethernet0-port@0 {
++ phy-handle = <&ethphy0>;
++ };
++};
++
diff --git a/target/linux/kirkwood/profiles/110-nas.mk b/target/linux/kirkwood/profiles/110-nas.mk
index eff5952..63fb29e 100644
--- a/target/linux/kirkwood/profiles/110-nas.mk
+++ b/target/linux/kirkwood/profiles/110-nas.mk
@@ -84,3 +84,18 @@ POGOE02_UBIFS_OPTS:="-m 2048 -e 126KiB -c 4096"

POGOE02_UBI_OPTS:="-m 2048 -p 128KiB -s 512"


$(eval $(call Profile,POGOE02))

+
+define Profile/POGOMOBILE
+ NAME:=Cloud Engines Pogoplug Mobile
+ PACKAGES:= \
+ kmod-usb2 kmod-usb-storage uboot-envtools
+endef
+
+define Profile/POGOMOBILE/Description
+ Package set and device tree compatible with Cloud Engines Pogoplug Mobile.
+endef
+
+POGOMOBILE_UBIFS_OPTS:="-m 2048 -e 126KiB -c 4096"
+POGOMOBILE_UBI_OPTS:="-m 2048 -p 128KiB -s 512"
+
+$(eval $(call Profile,POGOMOBILE))
--
2.1.1

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.