Welcome! Log In Create A New Profile

Advanced

Netgear Stora MS2000 and indicators

Posted by PaulStogov 
Netgear Stora MS2000 and indicators
March 31, 2022 03:30PM
Hello everyone!

After having my Stora almost bricked I was able to install Debian Stretch (thanks to the forum) and it all seems fine except one point: I have no idea of how to control power and HDD LEDs now. Power LED keeps on blinking after powering the device, HDD LEDs are off all the time.
There was a script "oe-visual-indicator" in the original Stora's OS but I don't have it anymore.

# uname -a
Linux stora 4.9.0-18-marvell #1 Debian 4.9.303-1 (2022-03-07) armv5tel GNU/Linux

# cat /etc/debian_version
9.13

Any ideas?

Thanx in advance!
Attachments:
open | download - dmesg.txt (16.9 KB)
Re: Netgear Stora MS2000 and indicators
March 31, 2022 04:47PM
PaulStogov,

> # uname -a
> Linux stora 4.9.0-18-marvell #1 Debian 4.9.303-1
> (2022-03-07) armv5tel GNU/Linux

With this mainline kernel, the HDD trigger to control all HDD LEDs is called disk-activity (my custom build kernel has a patch that alows the control for the individual HDD LED).


To see which LED trigger is available, log into Debian and,

ls -l /sys/class/leds/

Here is an example you can follow.

This command set the HDD disk actvity trigger (for the N250 box):
echo disk-activity > /sys/class/leds/n2350:white:sata1/trigger

The power LED can be controlled the same way.

default-on is to turn on the LED permanently. none is to turn off.
echo default-on > /sys/class/leds/n2350:blue:pwr/trigger
echo none > /sys/class/leds/n2350:blue:pwr/trigger

You can also see all triggers have been defined, each trigger file has all possible triggers in it.
cat /sys/class/leds/n2350:white:sata1/trigger

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netgear Stora MS2000 and indicators
April 01, 2022 02:32PM
Thank you, bodhi. Looks like I have some issues because my /sys/class/leds/ is empty.
Re: Netgear Stora MS2000 and indicators
April 01, 2022 02:54PM
> Thank you, bodhi. Looks like I have some issues
> because my /sys/class/leds/ is empty.

Ah. That means the mainline Stora DTS is incomplete.

You can try to run this kernel with my Stora DTB. See the release thread:

https://forum.doozan.com/read.php?2,12096

Quote

Download at Dropbox:

linux-5.16.5-kirkwood-tld-1-bodhi.tar.bz2

md5:
ccb853d1d81eabe24f34cd228e92c2c3 linux-5.16.5-kirkwood-tld-1-bodhi.tar.bz2
sha256:
58d87387d59f61d494d2d6ca954927d26e05e9663a150dd46880b476967ab226

This tarball contains 6 files:
linux-image-5.16.5-kirkwood-tld-1_1.0_armel.deb
linux-headers-5.16.5-kirkwood-tld-1_1.0_armel.deb
config-5.16.5-kirkwood-tld-1
zImage-5.16.5-kirkwood-tld-1
linux-dtb-5.16.5-kirkwood-tld-1.tar
linux-5.16.5-kirkwood-tld-1.patch

Extract the Stora DTB from this tarball: linux-dtb-5.16.5-kirkwood-tld-1.tar. And copy it to your /boot/dtb (if there is one). And regenerate the kernel files.

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



Edited 1 time(s). Last edit at 04/01/2022 02:56PM by bodhi.
Re: Netgear Stora MS2000 and indicators
April 01, 2022 03:01PM
Yeah, will try it tomorrow. Thank you once again!
Re: Netgear Stora MS2000 and indicators
April 02, 2022 03:01PM
My dear bodhi! Your Stora DTB works like a charm. I did a little bit dirty lazy hack and just replaced /usr/lib/linux-image-4.9.0-18-marvell/kirkwood-openrd-base.dtb with yours kirkwood-netgear_stora_ms2000.dtb and updated initrams but know my Stora's LEDs are under control:

# ls /sys/class/leds/ 
status:blue:activity_led  status:blue:power_led  status:green:disk1_led  status:green:disk2_led  status:red:disk1_fail_led  status:red:disk2_fail_led


Thank you for the help!
Re: Netgear Stora MS2000 and indicators
April 02, 2022 04:10PM
PaulStogov,

Cool!

> I did a little bit dirty lazy hack and just
> replaced
> /usr/lib/linux-image-4.9.0-18-marvell/kirkwood-openrd-base.dtb
> with yours kirkwood-netgear_stora_ms2000.dtb and
> updated initrams

When you are running mainline Debian kernel, and do update-initramfs, flash-kernel copies the DTB to /boot/ with some softlinks recreated, too. So putting the DTB there might be more appropriate, because /usr/lib/linux-image-4.9.0-18-marvell/kirkwood-openrd-base.dtb most lilkely will be replaced whenever you upgrade kernel.

So list the files in /boot folder, and see if you can keep the DTB permanently there
ls -latr /boot

For example, this is the Sheevaplug looks like.

nano /usr/share/flash-kernel/db/all.db
Machine: Marvell SheevaPlug Reference Board
Machine: Globalscale Technologies SheevaPlug
Kernel-Flavors: kirkwood marvell
DTB-Id: kirkwood-sheevaplug.dtb
U-Boot-Kernel-Address: 0x00008000
U-Boot-Initrd-Address: 0x0
Boot-Kernel-Path: /boot/uImage
Boot-Initrd-Path: /boot/uInitrd
Boot-DTB-Path: /boot/dtb
Required-Packages: u-boot-tools

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



Edited 2 time(s). Last edit at 04/02/2022 04:14PM by bodhi.
Re: Netgear Stora MS2000 and indicators
April 03, 2022 03:14PM
Here is my /boot

# ls -latr /boot/
total 75181
-rw-r--r--  1 root root  2065640 Jul  6  2020 vmlinuz-4.9.0-13-marvell
-rw-r--r--  1 root root  1773208 Jul  6  2020 System.map-4.9.0-13-marvell
-rw-r--r--  1 root root   157878 Jul  6  2020 config-4.9.0-13-marvell
-rw-r--r--  1 root root  2070136 Mar  8 00:15 vmlinuz-4.9.0-18-marvell
-rw-r--r--  1 root root  1778068 Mar  8 00:15 System.map-4.9.0-18-marvell
-rw-r--r--  1 root root   158061 Mar  8 00:15 config-4.9.0-18-marvell
drwx------  2 root root    12288 Mar 30 22:35 lost+found
lrwxrwxrwx  1 root root       24 Mar 30 22:54 vmlinuz.old -> vmlinuz-4.9.0-13-marvell
lrwxrwxrwx  1 root root       27 Mar 30 22:54 initrd.img.old -> initrd.img-4.9.0-13-marvell
-rw-r--r--  1 root root 12368213 Mar 30 23:03 initrd.img-4.9.0-13-marvell
lrwxrwxrwx  1 root root       24 Mar 30 23:04 vmlinuz -> vmlinuz-4.9.0-18-marvell
lrwxrwxrwx  1 root root       27 Mar 30 23:04 initrd.img -> initrd.img-4.9.0-18-marvell
-rw-r--r--  1 root root  2080113 Apr  2 22:43 uImage.bak
-rw-r--r--  1 root root 13028181 Apr  2 22:43 uInitrd.bak
drwxr-xr-x  3 root root     1024 Apr  2 22:46 dtbs
lrwxrwxrwx  1 root root       46 Apr  2 22:48 dtb-4.9.0-18-marvell -> dtbs/4.9.0-18-marvell/kirkwood-openrd-base.dtb
lrwxrwxrwx  1 root root       46 Apr  2 22:48 dtb -> dtbs/4.9.0-18-marvell/kirkwood-openrd-base.dtb
-rw-r--r--  1 root root  2081707 Apr  2 22:49 uImage
-rw-r--r--  1 root root 13028918 Apr  2 22:49 uInitrd
drwxr-xr-x 21 root root     4096 Apr  3 18:31 ..
-rw-r--r--  1 root root 13028168 Apr  3 22:42 initrd.img-4.9.0-18-marvell.dpkg-bak
-rw-r--r--  1 root root 13028225 Apr  3 22:46 initrd.img-4.9.0-18-marvell
drwxr-xr-x  4 root root     1024 Apr  3 22:46 .

I tried to round it up gracefully placing kirkwood-netgear_stora_ms2000.dtb in /etc/flash-kernel/dtbs and making necessary changes in /etc/flash-kernel/db file but now every time update-initramfs finishes with

Building cpio /boot/initrd.img-4.9.0-18-marvell.new initramfs
Unsupported platform.
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1

Will try to understand the problem.
Re: Netgear Stora MS2000 and indicators
April 04, 2022 11:17PM
PaulStogov,

>
> Building cpio
> /boot/initrd.img-4.9.0-18-marvell.new initramfs
> Unsupported platform.
> run-parts:
> /etc/initramfs/post-update.d//flash-kernel exited
> with return code 1
>
>
> Will try to understand the problem.

This is because the Netgear Stora is not supported in mainline Debian. You installed it with kirkwood-openrd-base.dtb.

lrwxrwxrwx  1 root root       46 Apr  2 22:48 dtb -> dtbs/4.9.0-18-marvell/kirkwood-openrd-base.dtb

So flash-kernel database is not supposed to have an entry for the Stora.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netgear Stora MS2000 and indicators
May 05, 2022 11:11AM
I've tried the fix for the blue LED indicator activity trigger and it works but I can't seem to make it persistent across reboots.
/sys/class/leds/status:blue:activity_led/trigger defaults back to heartbeat from none after reboot.
I am running the latest u-boot and kernel on my Stora.
Re: Netgear Stora MS2000 and indicators
May 05, 2022 03:20PM
macsneil,

> I've tried the fix for the blue LED indicator
> activity trigger and it works but I can't seem to
> make it persistent across reboots.
> /sys/class/leds/status:blue:activity_led/trigger
> defaults back to heartbeat from none after
> reboot.

Did you add this to your /etc/rc.local (place it at the end before "exit 0"):

echo none > /sys/class/leds/status:blue:activity_led/trigger

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Netgear Stora MS2000 and indicators
May 06, 2022 03:16AM
Thanks for that, now a constant blue after reboot. Was just annoying me. This is my first Stora after a series of PogoPlugs over the years. Getting used to the luxury of sata RAID now. I needed a new classic Appletalk server and thought I'd try one of these. Will try and pick up another one now.
By the way, many thanks for the effort you've put into these devices over the years.
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: