Welcome! Log In Create A New Profile

Advanced

control pogoplug E02 Leds

Posted by cholat 
control pogoplug E02 Leds
August 16, 2019 09:25AM
I've checked various pages but haven't found a solution for access my LEDs:
So my Pogo has a red and a green one, sys/class looks like:
lrwxrwxrwx 1 root root 0 Aug 16 16:01 sheevaplug:blue:health -> ../../devices/gpio-leds/leds/sheevaplug:blue:health
lrwxrwxrwx 1 root root 0 Aug 16 16:01 sheevaplug:red:misc -> ../../devices/gpio-leds/leds/sheevaplug:red:misc

ok, pogo is not a sheeva, but should work somehow. So I can get green LED on by entering
echo "default-on" > /sys/class/leds/sheevaplug\:blue\:health/trigger
but I can't get red one to light up by
echo "default-on" > /sys/class/leds/sheevaplug\:red\:misc/trigger
any ideas?
Re: control pogoplug E02 Leds
August 16, 2019 02:43PM
cholat,

> ok, pogo is not a sheeva, but should work somehow.

The GPIO for the Red LED is different between the Sheevaplug and Pogo E02. So it is by chance that the Green works when you do that echo (that GPIO 49 is valid in both boxes).

I don't know which kernel you are running. But you can get the Pogo E02 DTB from my released thread:

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

Try the latest kirkwood-pogo_e02.dtb in this tarball linux-5.1.11-kirkwood-tld-2-bodhi.tar.bz2.

Quote

Updated 01 Jul 2019:

Kernel linux-5.1.11-kirkwood-tld-2 package has been uploaded. The following features were added/updated:

- Pick up mainline kernel security patch for TCPSACK.
- The SSD and Device Mapper mainline bug was fixed in this version.
- Enable RAID and LVM as kernel builtin modules (we can boot with RAID or LVM without needing to load uInitrd first. In previous kernel version RAID and LVM drivers were loadable modules).


Latest Linux kernel 5.x general release information can be found at:
LinuxChanges log

Download at Dropbox:

linux-5.1.11-kirkwood-tld-2-bodhi.tar.bz2
md5:
0c1e64599ca5c03d0dbf045add65c1ad
sha256:
37543ef8d4fba5eff0addf417e7a7f865ad08f3e4d6aa8baf5b818993a8759fd

This tarball contains 6 files:
linux-image-5.1.11-kirkwood-tld-2_2.0_armel.deb
linux-headers-5.1.11-kirkwood-tld-2_2.0_armel.deb
config-5.1.11-kirkwood-tld-2
zImage-5.1.11-kirkwood-tld-2
linux-dtb-5.1.11-kirkwood-tld-2.tar
linux-5.1.11-kirkwood-tld-2.patch

And as always, please verify the hash of what you've downloaded!

-bodhi
===========================
Forum Wiki
bodhi's corner
cholat-temp
Re: control pogoplug E02 Leds
August 16, 2019 04:14PM
Is there a way to just change GPIO assigned to sheevaplug:red:misc?
Re: control pogoplug E02 Leds
August 16, 2019 06:13PM
cholat-temp Wrote:
-------------------------------------------------------
> Is there a way to just change GPIO assigned to
> sheevaplug:red:misc?

Which kernel you are running?

uname -a

-bodhi
===========================
Forum Wiki
bodhi's corner
cholat-temp
Re: control pogoplug E02 Leds
August 17, 2019 03:50AM
Linux debian 3.16.0-6-kirkwood #1 Debian 3.16.56-1+deb8u1 (2018-05-08) armv5tel GNU/Linux
Re: control pogoplug E02 Leds
August 17, 2019 05:32AM
cholat,

IIRC, mainline 3.16 is an FDT kernel.There is no way to replace the DTB as this mainline kernel was built with that Sheevaplug DTB.

So GPIO cannot be reassigned in this kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 08/17/2019 05:34AM by bodhi.
Re: control pogoplug E02 Leds
August 17, 2019 09:42AM
Thnx anyway, bodhi!
Author:

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: