Устройство имеет rtc, но не имеет питания для rtc. Часы каждый раз обнуляются. В логе загрузки следующее.
* Mounting proc at /proc ... [ ok ]
* Mounting sysfs at /sys ... [ ok ]
* Mounting /dev ... [ ok ]
* Starting udevd ... [ ok ]
* Populating /dev with existing devices through uevents ... [ ok ]
* Waiting for uevents to be processed ... [ ok ]
* Mounting devpts at /dev/pts ... [ ok ]
* Checking root filesystem ...Reiserfs super block in block 16 on 0x5b000 of format 3.6 with standard journal
Blocks (total/free): 3148736/2951371 by 4096 bytes
Filesystem is clean
File system check timestamp is in the future. Checking now.
Filesystem seems mounted read-only. Skipping journal replay.
File system check timestamp is in the future. Checking now.
Checking internal tree.. finished
[ ok ]
* Remounting root filesystem read/write ... [ ok ]
* Checking all filesystems ... [ ok ]
* Mounting local filesystems ... [ ok ]
* Activating (possible) swap ... [ ok ]
* Setting system clock using the hardware clock [Local Time] ...
* hwclock: settimeofday() failed, errno=22: Invalid argument.
* Failed to set clock You will need to set the clock yourself
[ !! ]
* Configuring kernel parameters ...Unknown HZ value! (83) Assume 100.
[ ok ]
* Cleaning /var/lock, /var/run ...Unknown HZ value! (82) Assume 100.
[ ok ]
* Wiping /tmp directory ... [ ok ]
* One of the files in /etc/{conf.d,init.d} or /etc/rc.conf
* has a modification time in the future!
* One of the files in /etc/{conf.d,init.d} or /etc/rc.conf
* has a modification time in the future!
* One of the files in /etc/{conf.d,init.d} or /etc/rc.conf
* has a modification time in the future!
* One of the files in /etc/{conf.d,init.d} or /etc/rc.conf
* has a modification time in the future!
...
Думаю надо сохранять время в файл, а когда будет доступна сеть использовать ntp. Вопрос в том есть ли, что нибудь готовое для этого? или мне самому переписывать /etc/init.d/clock ?