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

@Fox_exe (or anyone else)
Do you have any advise regarding my issue?:innocent:

@Fox_exe
I have successfully booted into recovery with green led.
However i cant seem to telnet. (192.168.0.3) Port 23
I am using puTTY. i get connection timeout
Should wdmc be connected directly to my computer or connection to network is fine?
Help

@CHRIS_TOPH, try to erase HDD:

dd if=/dev/zero of=/dev/sdb bs=1M count=20000

Then, make partitions again (Follow “Unbricking” instruction).

I’m running my WD MY Cloud Gen 2 with your great Debian system.
I recently found that USB HDD is not recognized, and kept searching for the solution without any success.
And, I finally saw this post.

For my usage, it’s critical to use USB HDD under Debian system.
Could yoy implement the usb module in Debian kernel as soon as possible?
I can’t guess how much time and effore you have to put for that purpose.

But, I think that many Debian users with My Cloud Gen 2 are waiting for that.

Thank you! I performed that on /dev/sda. The Drive is finally recognized again! :slight_smile:

Can anyone tell me how to change my MyCloud DSM email notifications from Russian to English?
Unfortunately my Russian is worse than Fox’s English :grinning:

Hello, am here in the forum also a new User.
I come from Germany so that is why my English is extremely bad.
But I hope it is understandable enough. :wink:

And also i´m a totally N00b with Linux / Debian.
I have a WD My Cloud 8TB GEN2 and a GEN1 6TB.

Now my questions / problems to the:

WD GEN2:
Installed is Debian Jessie incl. OMV Erasmus 3.0.69 + OMV Extras.
Kernel “Linux 3.10.70+”

1 → After entering:

1. Root @ wdmc: ~ # apt-cache search  Linux-image
2. Linux-headers-3.16.0-4-armmp - Header files for Linux 3.16.0-4-armmp     
3. Linux-headers-3.16.0-4-armmp-lpae - Header files for Linux 3.16.0-4-armmp-lpae     
4. Linux-image-3.16.0-4-armmp - Linux 3.16 for ARMv7 multiplatform compatible SoCs     
5. Linux-image-3.16.0-4-armmp-lpae - Linux 3.16 for ARMv7 multiplatform compatible SoCs supporting LPAE     
6. Linux-image-armmp - Linux for ARMv7 multiplatform compatible SoCs (meta-package)     
7. Linux-image-armmp-lpae - Linux for ARMv7 multiplatform compatible SoCs supporting LPAE (meta-package)     
8. Linux-headers-4.9.0-0.bpo.2-armmp - Header files for Linux 4.9.0-0.bpo.2-armmp     
9. Linux-headers-4.9.0-0.bpo.2-armmp-lpae - Header files for Linux 4.9.0-0.bpo.2-armmp-lpae     
10. Linux-image-4.9.0-0.bpo.2-armmp-lpae-unsigned - Linux 4.9 for ARMv7 multiplatform compatible SoCs supporting LPAE     
11. Linux-image-4.9.0-0.bpo.2-armmp-unsigned - Linux 4.9 for ARMv7 multiplatform compatible SoCs     
12. Linux-image-4.9.0-0.bpo.2-armmp - Linux 4.9 for ARMv7 multiplatform compatible SoCs (signed)     
13. Linux-image-4.9.0-0.bpo.2-armmp-lpae - Linux 4.9 for ARMv7 multiplatform compatible SoCs supporting LPAE (signed)     
14, Root @ wdmc: ~ #  

Now the question whether I can make an update and which image I must use? Armmp or armmp-lpae or?
Both for the kernel and for the backport.

2 → Samba
Since I have already read a lot about Samba.
For me runs 4.2.14 Debian.
Is there any better or faster Option for the WD?
Anything that i must update?
Or any settings I should change in some Files?

With all the contributions here, you unfortunately lose the overview which is now best. Since this is all new for me would be a howto helpful;)

3 → LED
After the installation of Debian and OMV I have seen that my LED is green but also shines every 10-15 seconds it flahes in Orange.
Is this an installation error or just a setting thing?
I have tested the lines from the _info.txt but it have the effect that the LED now flashes green / orange.
Can I fix it somehow?

To WD GEN1:
Installed is Debian including OMV Stone Burner 2.2.13
Kernel Linux 3.2.26

1 → Kernel
Can I update the Kernels like the same Way in GEN2?
And if yes armmp or armmp-lpae or with image?

2 → Samba
Installed is Samba 3.6.6
What exactly do I have to do now to make Samba better or faster?

Simply everything here in this Readme?
Or there are any files I have to be edited?
Which and how?

I know that are quite many questions but I can not find the right answers anywhere and Google could not help. So I hope now that you can explain to me in detail what I have to do. I would like to thank everyone who can help me.

Thx a Lot

For USB support, I tried to update the kernel with “Linux-image-3.16.0-4-armmp”.
After reboot, I found that there was no change from the command “uname -a”.
So, I listed /boot directory to figure out if there is any change.
Threre was original uImage, plus ‘zimagez~~~~ from the update kernel’.

I guess that the kernel update itself doesn’t apply to system automatically.

Gen2

  1. Use this kernel: GitHub - MarvellEmbeddedProcessors/linux-marvell: Marvell Armada Linux kernel
    Also need some patches for support our device + dts file (All you can find on my google.drive)
    Good news: Marvell Armada 370/375/380/385/+ have official support in mainline linux kernel. But still need dts and some patches.
  2. For speedup Samba - Need port changes from WD sources. Or use Samba from “WD GPL Source code archive”.
  3. Green led - Debian boot OK.
    Yellow led - HDD usage.
    For change this - go to /sys/class/leds/[led_name]/
    cat trigger - show list of available triggers
    echo default-on > trigger - Change trigger
    echo 1 > brightness - Turn of/off the led (Also changes trigger to “default-on”)

Gen 1

  1. WD provide only 3.2.26 kernel sources. I cant find any newer, and can’t port this to latest kernel.
  2. See p. #2 for Gen2.
  3. On github - “Gen1 tools” - is a few scripts for build or repack software for firmware v04.xx (“64k”).

Note: Do not use official linux kernel. It dos’t support our devices.

** Only partial support for Marvell Armada SoC (CPU).

Hello Fox,

First of all… thank you very much for your feedback.

But Unfortunately, I need more information
how I must proceed exactly or which patches I exactly need.

GEN2

1. Is it sufficient if I run the patch-kernel script from MarvellEmbeddedProcessors / linux-marvell?

If so, is it better for the kernel update including patches to use an alternative folder?
Because the readme says “Do not use the / usr / src / linux area!”

1.1 Are all patches executed with the patch-kernel script?
Since I’m not sure how to do this manually and would not like the complete package installed
an AutoUpdate is the best alternative for me.

1.2 Can you tell me which patches for support our device + dts file you exactly mean and how do I install this?

1.3 Or do I have to compile all the patchs to a new kernel image as described in your “how to build_kernel”?

2. How can I change the port from the WD sources?
Where and what ports need to be changed in witch file and port?

2.1 Or How do I install Samba from “WD GPL Source code archive”?
Google has not brought success on the fast search.

2.2 I just discovered your _Tweaks.txt. Are these settings still up-to-date and must be “patched” after the Samba? Or do they generally help to increase the speed?

3. I will test as soon as I have time

GEN1

3. Could you possibly write a more detailed howto?

I do not understand unfortunately at the moment how I must proceed exactly.
I’m really sorry but that’s all very new to me.

I’m trying to read as much as I can.
To understand the whole and to create alone or fixed some Errors.
But sometimes for several hours without success.
I am really grateful to you for any help or for any link

THX a lot to all

If you don’t mind, could you share your new kenel?
I guess that your new kernel has been patched with USB support. And, that USB function is what I want for my Gen 2.

Thanks for your hardwork on making the mycloud functional. I installed OMV and updated twice to 3.0. I can still access my shares and connect via ssh but am unable to access the web GUI. Via SSH i have tried to reinstall and come up with the following message:

You might want to run ‘apt-get -f install’ to correct these:
The following packages have unmet dependencies:
console-setup-linux : Depends: keyboard-configuration (= 1.123) but 1.88 is to be installed
consolekit : Breaks: udev (< 204-1) but 175-7.2 is to be installed
lsof : Depends: libperl4-corelibs-perl but it is not going to be installed or
perl (< 5.12.3-7) but 5.20.2-3+deb8u6 is to be installed
openmediavault : Depends: systemd but it is not going to be installed
Depends: systemd-sysv but it is not going to be installed
Depends: btrfs-tools but it is not going to be installed
Depends: samba-vfs-modules but it is not going to be installed
Depends: pciutils but it is not going to be installed
Depends: python3-pyudev but it is not going to be installed
Depends: python3-natsort but it is not going to be installed
Depends: jq but it is not going to be installed
Depends: python3-netifaces but it is not going to be installed
Depends: python3-lxml but it is not going to be installed

Is there anyway i can roll back or fix the issue? I foolishly forgot to backup.

@Fox_exe Priviet, Fox!

Wow loved what you are doing, thanks; I’ll be sending some cash on your way on Paypal.

Question here ; my WD model is a wdbctl0030hwt. However, I did not find any string of this model in WDMC-Codenames.txt

So, how can I find which generation is this device?

Spasiba!

@RFreire

This can be seen in the Warning.txt …

All stuff in this place only for old WD MyCloud (FW v 03.x.x and 04.x.x)
WD MyCloud Gen2 not supported! (FW v 2.x)

Delighted. This is how I feel.

Took me ~ 30 minutes to get a old 1 TB hard drive, put the original firmware skeleton, boot the WD, run the autoinstall and poof, suddenly I have a de-bloated Debian system running in the MyCloud (Gen1).

AWESOMENESS++

THANKS, Evgeni. Serious respect from me.

@Fox_exe
I have a MC gen2 and install your DSM system. Then the ‘Random bugs’ occured.Based on WARNING I can fix the BUG by reupload 4 files.But I don`t knonw how to boot to Debian (USB-Method). Can you help me?

Great work, everything works exept the Backup on a USB Drive.
Unfortunately the Samba4 Link isnt working anymore.
Is there another possibility to speed up Transfer Speeds of WDMC Gen2 using OMV 3?
At the Moment my maximus speed is around 10 MB/s whis is to less on a Gigabit Port.

Did you use 100mbit router/link? (100mbit/s ~= 12.5 MB/s).
Normally - unmodified and untuned system can get upto 50MB/s (And about 90mb/s after some tuning).

Nevermind… i don’t know why but the port was changed to 100 mbit :smirk:
May i ask how to do the additional tuning?

@Fox_exe

I do not know what exactly happened, but my wd gen1 doesn´t boot no longer correct.

The led lights up for a few minutes red I think, it could also be orange / green.
Then the LED goes off and directly on again exactly in the colors again.

It looks like a bootloop.
Access over Lan doesn´t work…

So I connected the wd hdd over sata directly to the pc.
In geparted I could not find any errors with the partitions(layout).
And the raid works correctly, i think.
The content on md0 and md1 also exists.

What can I do to fixed the “bootloop”?

And can you help me with my other questions?

Big THX