summaryrefslogtreecommitdiff
path: root/target/linux
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2014-02-15 23:53:10 +0000
committerLuka Perkov <luka@openwrt.org>2014-02-15 23:53:10 +0000
commit58fa3f8fdf12baf8a71176216675512d86cf2f16 (patch)
treea45faebc53410b09326ad88fb9575c4c79aa78a6 /target/linux
parent0b0357b50eb313a2ba1f40cb4fecfa790be37b42 (diff)
downloadmtk-20170518-58fa3f8fdf12baf8a71176216675512d86cf2f16.zip
mtk-20170518-58fa3f8fdf12baf8a71176216675512d86cf2f16.tar.gz
mtk-20170518-58fa3f8fdf12baf8a71176216675512d86cf2f16.tar.bz2
kirkwood: update support for dockstar
The board is optimized for ubi(fs) and boots OpenWrt without changes to uboot environment if OpenWrt's uboot package is used. In order to flash the image run following commands in uboot shell: nand erase 0x200000 0xfe00000 ubi part root ; ubi remove rootfs ; ubi create rootfs tftpboot 0x800000 openwrt-kirkwood-dockstar-rootfs.ubifs ; ubi write 0x800000 rootfs ${filesize} ; reset Signed-off-by: Luka Perkov <luka@openwrt.org> Tested-by: Alexander Couzens <lynxis@fe80.eu> CC: Imre Kaloz <kaloz@openwrt.org> SVN-Revision: 39593
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/kirkwood/base-files/etc/uci-defaults/01_leds6
-rw-r--r--target/linux/kirkwood/patches-3.10/140-dockstar.patch32
2 files changed, 35 insertions, 3 deletions
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 5c34cd6..1600464 100644
--- a/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
+++ b/target/linux/kirkwood/base-files/etc/uci-defaults/01_leds
@@ -6,9 +6,9 @@
. /lib/functions/uci-defaults.sh
case "`cat /proc/device-tree/model`" in
-"Seagate FreeAgent DockStar")
- ucidef_set_led_netdev "eth0" "dockstar:orange:misc" "eth0"
- ucidef_set_led_default "health" "dockstar:green:health" "1"
+"Seagate FreeAgent Dockstar")
+ ucidef_set_led_default "health" "status:green:health" "1"
+ ucidef_set_led_default "fault" "status:orange:fault" "1"
;;
"Cloud Engines Pogoplug E02")
ucidef_set_led_default "health" "status:green:health" "1"
diff --git a/target/linux/kirkwood/patches-3.10/140-dockstar.patch b/target/linux/kirkwood/patches-3.10/140-dockstar.patch
new file mode 100644
index 0000000..8054891
--- /dev/null
+++ b/target/linux/kirkwood/patches-3.10/140-dockstar.patch
@@ -0,0 +1,32 @@
+--- a/arch/arm/boot/dts/kirkwood-dockstar.dts
++++ b/arch/arm/boot/dts/kirkwood-dockstar.dts
+@@ -45,18 +45,22 @@
+
+ partition@0 {
+ label = "u-boot";
+- reg = <0x0000000 0x100000>;
+- read-only;
++ reg = <0x0000000 0xe0000>;
++ };
++
++ partition@e0000 {
++ label = "u-boot environment";
++ reg = <0xe0000 0x100000>;
+ };
+
+ partition@100000 {
+- label = "uImage";
+- reg = <0x0100000 0x400000>;
++ label = "second stage u-boot";
++ reg = <0x100000 0x200000>;
+ };
+
+- partition@500000 {
+- label = "data";
+- reg = <0x0500000 0xfb00000>;
++ partition@200000 {
++ label = "root";
++ reg = <0x200000 0xfe00000>;
+ };
+ };
+ };