Skip to content

Commit 96ad29a

Browse files
Robert Senderekhauke
authored andcommitted
mvebu: Add support for WD MyCloud EX2 Ultra
Hardware -------- Marvell Armada 385 (MV88F6820) 1GB RAM 256MB NAND 1x 1Gbit 2x USB 3.0 2x SATA-III UART: 115200 8N1 3.3V RTC Weltrend MCU WT6703F connected via UART1 for Power LED / PWM Fan / hw reset / WoL Installation ------------ Connect UART 3.3V adapter to JP2 pins: 1-RX / 2-GND / 5-TX Use USB2.0 FAT32 pendrive with openwrt-mvebu-cortexa9-wd_cloud-ex2-ultra-initramfs-kernel.bin 1. stop boot by pressing 1 2. usb start 3. fatload usb 0:1 0x02000000 openwrt-mvebu-cortexa9-wd_cloud-ex2-ultra-initramfs-kernel.bin;bootm 0x02000000 - 4. do backup mtd1 mtd3 5. use sysupgrade Or tftp 1. stop boot by pressing 1 2. setenv ethact egiga2;setenv serverip 192.168.11.114;setenv ipaddr 192.168.11.113 3. tftpboot 0x02000000 openwrt-mvebu-cortexa9-wd_cloud-ex2-ultra-initramfs-kernel.bin; bootm 0x02000000 - 4. do backup mtd1 mtd3 5. use sysupgrade or Evgeny Kolesnikov <evgenyz@gmail.com> method from his failed PR 2040 - Using original firmware's network settings obtain SSH access to the device. - Put *-image-cfs-factory.bin and *-uImage-factory.bin images into device's /tmp directory. - Write kernel (uImage) image 'flash_eraseall /dev/mtd1 && nandwrite --markbad -p /dev/mtd1 /tmp/*-uImage-factory.bin'. - Write rootfs (image-cfs) image 'ubiformat /dev/mtd3 -f /tmp/*-image.cfs-factory.bin -y'. - Reboot the device. Installation (upgrade): Use *-sysupgrade.bin in a usual way. Weltrend MCU control is done via uart1 19200 install coreutils-stty stty -F /dev/ttyS1 raw speed 19200 stty -F /dev/ttyS1 raw speed 19200 PWM Fan Control off: 00 echo -n -e '\xfa\x02\x00\x00\x00\x00\xfb' > /dev/ttyS1 slow: 5F echo -n -e '\xfa\x02\x00\x5f\x00\x00\xfb' > /dev/ttyS1 max: FF echo -n -e '\xfa\x02\x00\xff\x00\x00\xfb' > /dev/ttyS1 Power LED Control Blue echo -n -e '\xfa\x26\x00\x11\x00\x01\xfb' > /dev/ttyS1 Red echo -n -e '\xfa\x26\x00\x14\x00\x01\xfb' > /dev/ttyS1 Orange echo -n -e '\xfa\x26\x00\x12\x00\x01\xfb' > /dev/ttyS1 more here: https://github.com/c-MM/mcm-daemon/blob/master/mcm.h Signed-off-by: Robert Senderek <robert.senderek@10g.pl> Link: openwrt/openwrt#17779 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
1 parent f92ee7a commit 96ad29a

File tree

6 files changed

+395
-357
lines changed

6 files changed

+395
-357
lines changed

target/linux/mvebu/cortexa9/base-files/etc/board.d/02_network

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ mvebu_setup_interfaces()
1414
case "$board" in
1515
ctera,c200-v2|\
1616
synology,ds213j|\
17+
wd,cloud-ex2-ultra|\
1718
wd,cloud-mirror-gen2)
1819
ucidef_set_interface_lan "eth0" "dhcp"
1920
;;
@@ -96,6 +97,7 @@ mvebu_setup_macs()
9697
lan_mac=$label_mac
9798
wan_mac=$label_mac
9899
;;
100+
wd,cloud-ex2-ultra|\
99101
wd,cloud-mirror-gen2)
100102
# mac address is on ubi "config" or ubi "reserve2" in text file.
101103
# ubi "reserve2" /dev/mtd7 is twice small and only contains basic OEM factory info

target/linux/mvebu/cortexa9/base-files/lib/upgrade/platform.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ platform_do_upgrade() {
3232
nand_do_upgrade "$1"
3333
;;
3434
buffalo,ls421de|\
35+
wd,cloud-ex2-ultra|\
3536
wd,cloud-mirror-gen2)
3637
nand_do_upgrade "$1"
3738
;;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
2+
/dts-v1/;
3+
#include "armada-385-wd_cloud.dtsi"
4+
5+
/ {
6+
model = "WD MyCloud Ex2 Ultra";
7+
compatible = "wd,cloud-ex2-ultra", "marvell,armada385", "marvell,armada380";
8+
9+
memory {
10+
device_type = "memory";
11+
reg = <0x00000000 0x40000000>; /* 1GB */
12+
};
13+
};

0 commit comments

Comments
 (0)