[U-Boot] date time

Jens Scharsig js_at_ng at scharsoft.de
Sun Sep 12 09:10:22 CEST 2010


Am 2010-09-10 23:08, schrieb Charles Seedle:
> There is a messege in the u-boot boot log showing where it set the system
> time. I tried to setting the date and time using the linux command, "date".
> It set them but once the I rebooted the board the values for date and time
> were wrong again. Could this be related to the backup battery ? Is there a
> better way to do this ? 

Hello Randy,

linux command, "date" does only set the linux system datetime. You
should use hwclock to sync or set the rtc. You can also use the U-boot
date command this will set the rtc direct

regards Jens



More information about the U-Boot mailing list