How to use hwclock??

eduardo
Hello everybody,

I'm trying to setup current date time to my device, but I don't know how to
use hwclock to do that.

I'm trying some parameters, but no one seems to work.

[root@FriendlyARM /]# hwclock -w 032420101143
s3c2410-rtc s3c2410-rtc: rtc only supports 100 years
hwclock: RTC_SET_TIME: Invalid argument
[root@FriendlyARM /]# 


Anyone knows where can I find a manual?

thanks in advance!

eduardo
Solved!

I wasn't using the parameters properly.

The correct statment is:

hwclock -w MMDDhhmmYYYY


hope it helps someone.

sahil
do man page yaar...!!

Jason
Mine does not work... I still get the same error you got... hwclock -w
option sets the hardware clock from the system clock. The values you used
after it were ignored.

davef
Try setting the date and then do:

hwclock -uw

Titus Breidung
If that not work, try 'hwclock --systohc' after setting date...

Sushant
Hello,
How to update system call time in mini2440 date +%t "11;10" not works

davef
Not much point in double posting.

sushant
Hello,
i have add this line in rcS file 
/sbin/hwclock -s

start board on the next day date and time in not set correctly.
example
 current date 30jan2014 time 17.30.00  set 
 
start system on the next day 
 current date 30Jan2014 time 20.30.00