Welcome! Log In Create A New Profile

Advanced

How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition

Posted by i5Js 
Re: How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition
March 12, 2024 11:18PM
I didn't post anything regarding the mvneta problem earlier as I thought this was somehow only affecting my installation :)
Re: How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition
March 13, 2024 12:17AM
> I didn't post anything regarding the mvneta
> problem earlier as I thought this was somehow only
> affecting my installation :)

Ah, OK :) If the next stable kernel 6.8.x does not pick this up, I will.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition
March 14, 2024 04:09AM
Did anyone get the HDD Led working for the WD EX2 Ultra?

================
WD EX2 Ultra - ext3 usb kernel/rootfs, 6.6.2-mvebu/Debian/OMV, realtek-r8152 2.5GbE
Uboot - u-boot-a38x-RangerPeak_2014T3_PQ-nand_1G
Kernel Patch - mvneta.patch, linux-6.6.2-mvebu-tld-1
Re: How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition
March 14, 2024 12:52PM
Got it working with following in /etc/rc.local

if [ -e /sys/class/leds/wdmcex2u\:hdd1\:blue/trigger ]; then
    echo gpio > /sys/class/leds/wdmcex2u\:hdd1\:blue/trigger
    echo 1 > /sys/class/leds/wdmcex2u\:hdd1\:blue/inverted
fi
if [ -e /sys/class/leds/wdmcex2u\:hdd2\:blue/trigger ]; then
    echo gpio > /sys/class/leds/wdmcex2u\:hdd2\:blue/trigger
    echo 1 > /sys/class/leds/wdmcex2u\:hdd2\:blue/inverted
fi
if [ -e /sys/class/leds/wdmcex2u\:hdd1\:red/trigger ]; then
    echo ide-disk1 > /sys/class/leds/wdmcex2u\:hdd1\:red/trigger
fi
if [ -e /sys/class/leds/wdmcex2u\:hdd2\:red/trigger ]; then
    echo ide-disk2 > /sys/class/leds/wdmcex2u\:hdd2\:red/trigger
fi

================
WD EX2 Ultra - ext3 usb kernel/rootfs, 6.6.2-mvebu/Debian/OMV, realtek-r8152 2.5GbE
Uboot - u-boot-a38x-RangerPeak_2014T3_PQ-nand_1G
Kernel Patch - mvneta.patch, linux-6.6.2-mvebu-tld-1
Re: How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition
March 19, 2024 06:07AM
Otherwise, you can exploit the new kernel patch allowing ledtrig-gpio (as discussed on https://forum.doozan.com/read.php?2,136831) and compile a dts as follow:

		sata1-red-led {
			//label = "wdmcmg2:red:hdd1";
			color = <LED_COLOR_ID_RED>;
			function = LED_FUNCTION_DISK_ACTIVITY;
			function-enumerator = <1>;
			gpios = <&gpio1 11 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "ide-disk1";
			panic-indicator;
		};
		sata2-red-led {
			//label = "wdmcmg2:red:hdd2";
			color = <LED_COLOR_ID_RED>;
			function = LED_FUNCTION_DISK_ACTIVITY;
			function-enumerator = <2>;
			gpios = <&gpio1 20 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "ide-disk2";
			panic-indicator;
		};
		sata1-blue-led {
			//label = "wdmcmg2:blue:hdd1";
			color = <LED_COLOR_ID_BLUE>;
			function = LED_FUNCTION_DISK;
			function-enumerator = <1>;
			gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "gpio";
			led-pattern = <48 0>;
		};
		sata2-blue-led {
			//label = "wdmcmg2:blue:hdd2";
			color = <LED_COLOR_ID_BLUE>;
			function = LED_FUNCTION_DISK;
			function-enumerator = <2>;
			gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
			linux,default-trigger = "gpio";
			led-pattern = <58 0>;
		};



Edited 1 time(s). Last edit at 03/19/2024 08:38AM by CyberPK.
Re: How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition
April 11, 2024 06:28AM
sorry, but the link to the file is down, could you reupload it please?
Re: How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition
April 11, 2024 09:16AM
guys i need help, i'm not able to use minicom anymore, nothing happens when i connect the nas. I think a herror happened when i flashed the boot image, cause now i cant do nothing. Please i really need your help
Re: How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition
April 11, 2024 02:06PM
Severuspiton99,

> guys i need help, i'm not able to use minicom
> anymore, nothing happens when i connect the nas. I
> think a herror happened when i flashed the boot
> image, cause now i cant do nothing. Please i
> really need your help

Before you flashed u-boot image, did you back up the mtds? especially mtd0? If you keep the log of what you did to flash u-boot, please post here.

If you did, you can try to unbrick using kwboot to load the backup image over serial. Here is how:

https://forum.doozan.com/read.php?3,51739,51919#msg-51919

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition
April 12, 2024 02:52AM
i don't think i did, it's my first time with this kinda things. Should be something with kwb extension? is the backup unique for any machine or maybe i could take the backup for the ex2 ultra from someone?



Edited 1 time(s). Last edit at 04/12/2024 03:15AM by Severuspiton99.
Re: How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition
April 12, 2024 02:54AM
i just used bubt command to flash the uimage to nand, i wanted to flash back the original uboot image to try another way, cause for some reason i couldnt enable port 1 again after i flashed patched uboot. But i picked the wrong one. after the reset, and from that moment i couldnt do anything at all



Edited 1 time(s). Last edit at 04/12/2024 03:08AM by Severuspiton99.
Re: How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition
April 12, 2024 02:50PM
Severuspiton99,

Quote

i don't think i did, it's my first time with this kinda things. Should be something with kwb extension? is the backup unique for any machine or maybe i could take the backup for the ex2 ultra from someone?

Yes, you can use the mtd0 backup for the EX2 Ultra from other box. Or use the same binary that you use for the bubt command.

Quote

i just used bubt command to flash the uimage to nand, i wanted to flash back the original uboot image to try another way, cause for some reason i couldnt enable port 1 again after i flashed patched uboot. But i picked the wrong one. after the reset, and from that moment i couldnt do anything at all

If you noticed, I did not promote this thread to the first post as one of "Installation Instruction for specific boxes" section. I think it is still a work in progress. There are quite a few things that I consider unfinished. But the OP seems not want to collaborate further, so I left it as is.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition
April 13, 2024 01:12PM
Just a question: the image i used Is not in .kwv, like i saw in the other post. Why? Should ut be?
Re: How to install Debian in a WD MyCloud EX2 Ultra: Definitive edition
April 13, 2024 02:31PM
> Just a question: the image i used Is not in .kwv,
> like i saw in the other post. Why? Should ut be?

No matter, currently you only want to be able to try to load and run with kwboot over UART (it's a non-destructive test).

But when you flash it, it must be a flash-ready format. Sometime it is .bin, sometime it is .kwb, depending on who built the u-boot image.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: