Welcome! Log In Create A New Profile

Advanced

Managing Leds on a Lacie 2big Nas

Posted by mdg69 
Managing Leds on a Lacie 2big Nas
July 18, 2024 04:14PM
I am triyng to get control of the leds on a lacie 2big NAS with no luck.
My /sys/class/leds folder is always empty.
Any suggestion?

Do you know if the Kernel has gpio-leds support or there is a specific module to be loaded with modprobe?

Thanks

My device: LaCie 2big NAS

Currently running:
Debian GNU/Linux "Bookworm" 12.2
Linux debian 6.9.6-kirkwood-tld-1 #1 PREEMPT Wed Apr 17 17:22:34 PDT 2024 armv5tel
Re: Managing Leds on a Lacie 2big Nas
July 18, 2024 05:23PM
mdg69,

> I am triyng to get control of the leds on a lacie
> 2big NAS with no luck.
> My /sys/class/leds folder is always empty.
> Any suggestion?

That's because you are using the GF Home DTB. The LED definitions are different.

>
> Do you know if the Kernel has gpio-leds support or
> there is a specific module to be loaded with
> modprobe?
>

There is no need to modprobe anything.

Please do what I asked:

https://forum.doozan.com/read.php?2,137413,137629#msg-137629

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Managing Leds on a Lacie 2big Nas
July 19, 2024 08:41AM
bodhi Wrote:
-------------------------------------------------------
> mdg69,
>
> > I am triyng to get control of the leds on a
> lacie
> > 2big NAS with no luck.
> > My /sys/class/leds folder is always empty.
> > Any suggestion?
>
> That's because you are using the GF Home DTB. The
> LED definitions are different.
>
> >
> > Do you know if the Kernel has gpio-leds support
> or
> > there is a specific module to be loaded with
> > modprobe?
> >
>
> There is no need to modprobe anything.
>
> Please do what I asked:
>
> https://forum.doozan.com/read.php?2,137413,137629#msg-137629

Hi bodhi,
I was not albe to connect serial console to run the test you asked.

In any case, since that post I switched to the nas2big.dts instead of GF one.
I succeed compiling (forcing the output) a working version without the known issue of the controller of ethernet port that didn't allow to show the Lacie box on the network. Attached there is the dts and dtb I normally use.

This version allow to manual control the fan but it seems to me the kernel miss the coretemp module to check the cpu temp. I would like to create a script that control the fan rpm in conjunction with the cpu and HDD temp (drivetemp module is available with modprobe).

Currently, I cannot manage the leds event in the dts/dtb file correctly listed in the /sys/class/leds folder.

Also attached, dmesg of my system.

My device: LaCie 2big NAS

Currently running:
Debian GNU/Linux "Bookworm" 12.2
Linux debian 6.9.6-kirkwood-tld-1 #1 PREEMPT Wed Apr 17 17:22:34 PDT 2024 armv5tel
Attachments:
open | download - nas2big_mdg69.dtb (12.3 KB)
open | download - nas2big_mdg69.dts (14.7 KB)
open | download - dmesg_nas2big_mdg69 (25.3 KB)
Re: Managing Leds on a Lacie 2big Nas
July 19, 2024 02:20PM
mdg69,

> I was not albe to connect serial console to run
> the test you asked.

That will make it harder for me to help.

> This version allow to manual control the fan but
> it seems to me the kernel miss the coretemp module
> to check the cpu temp. I would like to create a
> script that control the fan rpm in conjunction
> with the cpu and HDD temp (drivetemp module is
> available with modprobe).

This kernel has kirkwood_thermal (for 6282 SoC such as this NAS and the Dell Kace M300). So check it,
cat /sys/class/hwmon/hwmon0/name
cat /sys/class/hwmon/hwmon0/temp1_input
expect output
kirkwood_thermal
<current CPU temperature>
(If hwmon is not populated, modprobe kirkwood_thermal. And I think you only need to do it once).

To do it manually in the script, you can use the /sys/class/hwmon/hwmon0/temp1_input.

To make it automatic, install fancontrol.

>
> Currently, I cannot manage the leds event in the
> dts/dtb file correctly listed in the
> /sys/class/leds folder.

Boot back to sysvinit and check the /sys/class/leds again to see if they are populated.

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



Edited 1 time(s). Last edit at 07/19/2024 02:24PM by bodhi.
Re: Managing Leds on a Lacie 2big Nas
July 19, 2024 07:50PM
bodhi Wrote:

> > Currently, I cannot manage the leds event in
> the
> > dts/dtb file correctly listed in the
> > /sys/class/leds folder.
>
> Boot back to sysvinit and check the
> /sys/class/leds again to see if they are
> populated.

Nevermind. I've found that the current kernel 6.9.6 does not have the LED control for this box. While other Kirwood boxes are OK with the normal LED control, this Lacie 2Big NAS actually needs an addition driver configuring in. I will look into that in the next release.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Managing Leds on a Lacie 2big Nas
July 20, 2024 06:44AM
bodhi Wrote:
-------------------------------------------------------
> bodhi Wrote:
>
> > > Currently, I cannot manage the leds event in
> > the
> > > dts/dtb file correctly listed in the
> > > /sys/class/leds folder.
> >
> > Boot back to sysvinit and check the
> > /sys/class/leds again to see if they are
> > populated.
>
> Nevermind. I've found that the current kernel
> 6.9.6 does not have the LED control for this box.
> While other Kirwood boxes are OK with the normal
> LED control, this Lacie 2Big NAS actually needs an
> addition driver configuring in. I will look into
> that in the next release.

Thanks Bodhi!
That sounds great!
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: