[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: leds and rtc problem



Andrea Lanza <andrea.lanza@frameweb.it> writes:

Hi,

> Hi all, this is a follow-up of yesterday problem about poerformance
> I was said to do:
>
>>The disks leds are disabled by default and don't have a trigger to
>>enable them. Look at the /sys/class/leds/ directory. If you want to
>>enable them, echo '1' in the brightness file. For instance:
>
>>echo 1 > /sys/class/leds/HD1:green/brightness
>
>>The hardware will do the rest for the disk I/O access for the green
>>leds.
>
> Now I compiled my zImage with leds support, and on boot I can read:
>
> ....
> INIT: version 2.86 booting
> Starting the hotplug events dispatcher: udevd.
> Synthesizing the initial hotplug events...done.
> Waiting for /dev to be fully populated...Registered led device: status:amber
> Registered led device: HD:green
> done.
> ...
>
> lsmod output:
> storage01:/sys/class/leds# lsmod
> Module                  Size  Used by
> dm_snapshot            15712  0
> dm_mirror              24960  0
> dm_mod                 51876  2 dm_snapshot,dm_mirror
> leds_gpio               3072  0
> led_class               3876  1 leds_gpio
>
> and /sys/class/leds directory:
> storage01:/sys/class/leds# dir
> total 0
> drwxr-xr-x  4 root root 0 Nov 19 15:19 .
> drwxr-xr-x 22 root root 0 Jan  1  1970 ..
> drwxr-xr-x  3 root root 0 Nov 19 15:19 HD:green
> drwxr-xr-x  3 root root 0 Nov 19 15:19 status:amber

Theses 2 leds are provided by the iop gpios but the others are provided
by the f75111 driver. Check that you have enabled it in your kernel
configuration (iirc you'll find the option to enable this module in the
i2c menu).
>
> ---
> 2nd question: I have no rtc inside; I setup in order to get the time from an external time server,
> and it is ok; Anyway I would like to know if this system (ss4000e) actually support rtc, and
> what can I try to do to enable it. I have non /dev/rtc0 nor any module compiled about rtc

Look for rs5c372 in your kernel configuration


Arnaud


Reply to: