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

Re: fake rtc



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
value.

-- 
Eric Cooper             e c c @ c m u . e d u


Reply to: