[systemd-devel] Run script before the first systemd-timer is triggered? Systemd-timer in UTC?
Koen Kooi
koen at dominion.thruhere.net
Mon Apr 28 23:09:23 PDT 2014
Op 28 apr. 2014, om 17:48 heeft Lennart Poettering <lennart at poettering.net> het volgende geschreven:
> On Mon, 28.04.14 12:22, Manuel Reimer (manuel.spam at nurfuerspam.de) wrote:
>
>>
>> Lukasz Skalski <l.skalski <at> samsung.com> writes:
>>> You can define which RTC (/dev/rtcX) should be read -
>>> "(rtc1) RTC used to set the system time" option in kernel menuconfig.
>>
>> Yes, this is possible. But my RTC does not exist until I do the following on
>> shell:
>>
>> echo ds1307 0x68 > /sys/class/i2c-adapter/i2c-1/new_device
>>
>> Is there some other config option to tell the kernel to auto-initialize the
>> I2C clock module?
>
> Isn't this something devicetree can solve? (not that i knew anything
> about devicetree or embedded hardware...)
Devicetree can handle that, but the following under the i2c node:
rtc at 68 {
compatible = "dallas,ds1307";
reg = <0x68>;
};
While I haven't tried it, you might be able to use aliases to make the ds1307 rtc0, but if not, do a 'status=disabled' in the on-chip rtc node.
regards,
Koen
More information about the systemd-devel
mailing list