Clean OS (Debian), OpenMediaVault and other "firmwares"

Unbricking
2 méthodes:usb et linux
ne marche pas avec le WDMyCloud EX2 ultra
recovery no good?
pourquoi?
merci

Ok - my french is far from good, but I will try:
Qu’est-ce que vous avez faites?
Moi aussi, j’ai installé Linux, et maintnant, mon NAS ne mache plus.
Quel version vous avez téléchargez? Avez-vous installé un kernel different(? ;-))?

Hello thejack
-moi aussi il est bloqué
et j’essaie de remettre comme d’origine

-J’arrive a communiqué avec putty ( telnet) et mon nas est visible sur le réseau( PC-177 )

nas2
-J’arrive a partitionné le HDD

mais ça ne marche pas :sleepy:

@fox_exe Have the EX2Ultra but currently have OS5 installed and can’t find a way to downgrade. Tried following the instructions and loading the firmware to switch from Wd-Debian but just keeps saying firmware failed. Anyone know how to get it loaded?

OK, I have it booting linux again (Just reinstalled Linux on a fresh disk)
Horray :wink:

Now, how to I reinstall the orginal firmware? :slight_smile:

Again - I am sorry for my frensh, it used to be better:

Si vous avez telnet, tout est bon. Follower cettes instructions: https://fox-exe.ru/WDMyCloud/WDMyCloud-Ex2-Ultra/Debian-linux_4.14.4/_info_EN.txt

Can anyone share with me the original copies of
/dev/mtdblock1- /dev/mtdblock5

I have overwritten the backup partition, and I cannot find a copy elsewhere.

Thanks!

Hello I need help please I am at a loss. I have installed on the ex2 ultra debian buster with Linux kernel. 4.15.0-rc6 from fox. Now the hdd is running in spindown but if I mount the main harddisk Partition in fstab or manually the hdd is always written and does not go into spindown.

I have installed omv.

/dev/md2 ext4 nodiratime,noatime,commit=60 0 0

go to telnet write;

dd if=/dev/zero of=/dev/mtdblk1

Prepare a USB drive with files “uImage” and uRamdisk", download from;
http://fox-exe.ru/WDMyCloud/WDMyCloud-Mirror-Gen2/Original/
format USB fat32, place files in a folder you create named “boot” (I also placed copies of files outside the folder).
With USB attached, depress the reset button with a tooth pick and apply power to the My Cloud
Hold the reset button for forty seconds and then release.
Locate the new IP address, I use “Advanced IP Scanner”.
Browse to the new IP address, and the “Recovery Mode” WebIU will display
Upload the correct firmware from Western Digital.
After it reboots, scan for new IP address again and login by browser.

ne fonctionne pas chez moi

English please. If you cant acess to telnet. Connect the 2 hdd to your pc and delete or format partion md1 (Middle partition)

Avec quel erreur? Vous avez le NAS “MyCloud EX2 Ultra”?

Vous êtez (etes? :-)) sûr que vous avez le IP de le vrai device?

Est-que que vous pouvez nous donné le resultat de “uname -a” et “whoami”?

Again - can anoyone here provide me with the original state (the original firmware) of /dev/mtdblock1 to /dev/mtdblock5? I have forgotten to back them up

Device: MyCloud EX2 Ultra

please
Can you explain to me the procedure to install the original firmware (step by step)
thank you
(Google Translate )

usb stick in slot 1 or 2?

Tout est bien :wink:

C’est comme cela devrait être, dd remplit le device /dev/mtdblk1 avec des zeros, et a la fin, dd quit avec un erreur.

Continuez avec le guide, tout va vera (vera/etre?) bien.

Une question: Est-ce que vous pouvez me donner vortre version de /dev/mtdblk3, /dev/mtdblk4 et /dev/mtdblk5 - s’il vous plait? C’est le “Recovery Firmware”, j’ai perdu le.

Et pardonnez-moi pour mon francais, je suis autrichien :smiley:

hello austrian

the files are here -----> usbrecovery.tar.gz https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen2/

https://fox-exe.ru/WDMyCloud/WDMyCloud-Gen2/

sorry speak google traduction

Merci, mais ces files ne marchent pour moi, parce que j’ai perdu /dev/mtdblck3

Est-ce que vous pouves me donner avec le?

https://sanghyun2.blogspot.com/2019/10/wd-mycloud-gen2-hard-drive-replacement.html

https://translate.google.com/translate?hl=fr&sl=ko&u=http://www.ppomppu.co.kr/zboard/view.php%3Fid%3Dnas%26no%3D25366&prev=search&pto=aue[https://translate.google.com/translate?hl=fr&sl=ko&u=http://www.ppomppu.co.kr/zboard/view.php%3Fid%3Dnas%26no%3D25366&prev=search&pto=aue](https://translate.google.com/translate?hl=fr&sl=ko&u=http://www.ppomppu.co.kr/zboard/view.php%3Fid%3Dnas%26no%3D25366&prev=search&pto=aue)

Friends, hi!

As I wrote above I installed Debian 10 buster on the device WD EX2 Ultra according to the Fox_exe manua. I installed the [Debian-linux_4.14.4] (from fox-exe). Then, upgraded to this kernel [Linux-4.15.0-rc6].

Has anyone been able to implement fan control?

I’m trying:
sudo sensors-detect

Get an answer:

sensors-detect revision $Revision$

Kernel: 4.15.0-rc6 armv7l

Processor: ARMv7 Processor rev 1 (v7l) (//)

This program will help you determine which kernel modules you need
to load to use lm_sensors most effectively. It is generally safe
and recommended to accept the default answers to all questions,
unless you know what you’re doing.

Some south bridges, CPUs or memory controllers contain embedded sensors.
Do you want to scan for them? This is totally safe. (YES/no): y
modprobe: FATAL: Module cpuid not found in directory /lib/modules/4.15.0-rc6
Failed to load module cpuid.
Silicon Integrated Systems SIS5595… No
VIA VT82C686 Integrated Sensors… No
VIA VT8231 Integrated Sensors… No
AMD K8 thermal sensors… No
AMD Family 10h thermal sensors… No
AMD Family 11h thermal sensors… No
AMD Family 12h and 14h thermal sensors… No
AMD Family 15h thermal sensors… No
AMD Family 16h thermal sensors… No
AMD Family 17h thermal sensors… No
AMD Family 15h power sensors… No
AMD Family 16h power sensors… No
Intel digital thermal sensor… No
Intel AMB FB-DIMM thermal sensor… No
Intel 5500/5520/X58 thermal sensor… No
VIA C7 thermal sensor… No
VIA Nano thermal sensor… No

Lastly, we can probe the I2C/SMBus adapters for connected hardware
monitoring devices. This is the most risky part, and while it works
reasonably well on most systems, it has been reported to cause trouble
on some systems.
Do you want to probe the I2C/SMBus adapters now? (YES/no): y
Sorry, no supported PCI bus adapters found.

Next adapter: mv64xxx_i2c adapter (i2c-0)
Do you want to scan it? (YES/no/selectively): y

Next adapter: mv64xxx_i2c adapter (i2c-1)
Do you want to scan it? (YES/no/selectively): y

Sorry, no sensors were detected.
Either your system has no sensors, or they are not supported, or
they are connected to an I2C or SMBus adapter that is not
supported. If you find out what chips are on your board, check
device_support_status [HWMon Wiki] for driver status.

I’m trying:
sudo pwmconfig

Get an answer:

pwmconfig revision $Revision$ ($Date$)

This program will search your sensors for pulse width modulation (pwm)
controls, and test each one to see if it controls a fan on
your motherboard. Note that many motherboards do not have pwm
circuitry installed, even if your sensor chip supports pwm.

We will attempt to briefly stop each fan using the pwm controls.
The program will attempt to restore each fan to full speed
after testing. However, it is ** very important ** that you
physically verify that the fans have been to full speed
after the program has completed.

/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installed

Please help…

CPU temperature available throught “sys” subsystem: /sys/class/thermal/thermal_zone0/temp
HDD temparature available throught SMART data:
Fan controlled by external MCU (dedicated microcontroller). Control possible throught UART-1 (/dev/ttyS1)
Some info here: https://fox-exe.ru/WDMyCloud/Other/Weltrend_MCU/

Thank you so much!
I wrote a little simple script - everything works great!
Fan speed is AUTOMATICALLY controlled according to temperature.
Also I put the launch of this script at startup.

#!/bin/bash

#Make the script file executable
# chmod +x ./nameOfScript

#Run hddtemp in demon mode with /dev/sda
hddtemp -d /dev/sda

while true; do
	#Read temp value of /dev/sda like simple digit without other information
	#WARNING - commands bellow always gives static result on my system
	# nc localhost 7634 |sed 's/|//m' | sed 's/||/ \n/g' | awk -F'|' '{print $3}'
	# smartctl -A /dev/sda | awk '/Temperature_Celsius/{print $10}'

	#This command gives actual HDD temp value, but I don't know how to filtering it (f.e. it gives value "+54.0°C")
	# sensors | grep crit | awk '{print($2)}' 

	#This command gives actual HDD temp value on my system in good format
	actualTemp=$(`cat /sys/class/hwmon/hwmon0/temp1_input` / 1000)
	

	# True if actual HDD temp less or equal than 47 Celsius
	if [ $actualTemp -le 47 ]
		# Set fan speed 0 rpm	
		then /home/mcu_control/mcu_ctl 2 0 0 0 0 
	# True if actual HDD temp more than 47 and less or equal than 49 Celsius
	elif [ $actualTemp -gt 47 -a $actualTemp -le 49 ];
		# Set fan speed 17%
		then /home/mcu_control/mcu_ctl 2 0 30 0 0
	elif [ $actualTemp -gt 49 -a $actualTemp -le 52 ];
		# Set fan speed 32%
		then /home/mcu_control/mcu_ctl 2 0 50 0 0
	elif [ $actualTemp -gt 52 -a $actualTemp -le 54 ];
		# Set fan speed 40%
		then /home/mcu_control/mcu_ctl 2 0 64 0 0
	elif [ $actualTemp -gt 54 -a $actualTemp -le 56 ];
		# Set fan speed 51%
		then /home/mcu_control/mcu_ctl 2 0 80 0 0 
	elif [ $actualTemp -gt 56 -a $actualTemp -le 58 ];
		# Set fan speed 75%
		then /home/mcu_control/mcu_ctl 2 0 BD 0 0 
	elif [ $actualTemp -gt 58 -a $actualTemp -le 60 ];
		# Set fan speed 85%
		then /home/mcu_control/mcu_ctl 2 0 D7 0 0 
	elif [ $actualTemp -gt 60 ]
		# Set fan speed 100%
		then /home/mcu_control/mcu_ctl 2 0 FF 0 0 
	fi

	#Make time out for a cycle of 30 seconds
    sleep 30
done

Do I understand correctly that there is no way to calculate the number of fan revolutions yet?