[Dockstar] LED Control

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[Dockstar] LED Control

Postby sambul13 » Sun Aug 26, 2012 5:17 pm

Can someone explain, how LED is currently controlled on Dockstar with Arch 3.5.2 ? I was looking for /class/leds or proled, and nothing is found. Can proled work with Dockstar, and where to get it from?

The LEDs are working fine now, but I wonder how to change the LED behavior on Dockstar Arch 3.5.2 if needed? Some old threads mentioned LED Wiki, but it was removed for some reason.

I finally was able to boot into original Pogo FS with USB thumb detached from Dockstar, and also can't find any LED control classes there even in NAND rootfs. The goal is to stop orange LED from flashing and set green On after booting to the original Pogo with the latest Uboot. Can someone suggest how to do it? Or it can only be done via Uboot config?
Last edited by sambul13 on Mon Aug 27, 2012 4:21 am, edited 1 time in total.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: [Dockstar] LED Control

Postby hydro » Sun Aug 26, 2012 6:18 pm

I had to run fw_setenv arcNumber 2998 to enable LED control, but I'm still running 3.1.10.
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: [Dockstar] LED Control

Postby sambul13 » Sun Aug 26, 2012 6:42 pm

What do you mean under "to enable LED control"? Its working OK now with the default device, its enabled out of the box with latest Uboot, I just want to control it to my own liking and ask how to, since no mentioned in early threads tools seems to be available in default Arch 3.5.2 install.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: [Dockstar] LED Control

Postby xenoxaos » Sun Aug 26, 2012 11:11 pm

proled is only for the oxnas based plugs as it directly modifies the memory address of the led pins on that SoC.

For the kirkwoods, they have LED class drivers... look in /sys/class/leds/* and you can do things like `echo heartbeat > trigger`
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: [Dockstar] LED Control

Postby hydro » Mon Aug 27, 2012 6:29 am

$this->bbcode_second_pass_quote('sambul13', 'W')hat do you mean under "to enable LED control"?

/sys/class/leds was not present otherwise (if I remember right).
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: [Dockstar] LED Control

Postby sambul13 » Mon Aug 27, 2012 1:37 pm

Found /sys/class/leds in Arc 3.5.2. So, commands similar to these work, and can be added to /etc/rc.local to run at startup, if you want to test LED behavior, or show hard drive activity by flashing LED:

$this->bbcode_second_pass_code('', 'echo none > /sys/class/leds/status\:orange\:fault/trigger
echo default-on > /sys/class/leds/status\:green\:health/trigger')

But there isn't /sys/class/leds in Seagate Dockstar booted to original Pogo OS. So how to set its LED solid green after booting to the original Pogo? I don't want to restore Pogo bootloader or service, and the LED keeps flashing orange due to no connection to Pogoplug website for update.

OK, boot to Pogo, mount Pogo FS from NAND, copy xce.co module to a local folder, edit startup config file to load and unload the module, dismount Pogo FS and reboot. It sets off the blinking orange LED, but doesn't set green light on. :)

$this->bbcode_second_pass_code('', 'mount / -o remount,rw,noatime
mkdir -p /tmp/pogoplug
mount -r -t jffs2 /dev/mtdblock2 /tmp/pogoplug
mkdir /lib/modules/
cp /tmp/pogoplug/usr/local/cloudengines/bin/xce.ko /lib/modules
vi /etc/init.d/rcS
insmod /lib/modules/xce.ko
rmmod /lib/modules/xce.ko
:wq
mount / -o remount,ro,noatime
umount /tmp/pogoplug
reboot')
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 7 guests