Re: fake rtc
On Thu, 2010-10-21 at 15:08 -0400, Eric Cooper wrote:
> Another approach would be to use a u-boot environment variable to save
> and restore the (approximate) time. The advantage is that it could be
> done before fscking any filesystems, at the cost of some additional
> wear on the flash.
> No matter where you store the time, when restoring it you could also
> look for the newest mtime of files in /var, to get a better estimate
> in the case where the system crashed before saving a recent time
I think the /var approach would be more flexible, as not dependent on a
Is it possible to take a look at a filesystems modification time? That
would be probably the best source, to look when the rootfs has been last
Could be maybe done in the initrd enviorment, before fsck kicks in...
> Eric Cooper e c c @ c m u . e d u