2009/7/1 zuowenping <[email protected]>: > If i only use i2c_dev.c to test ds1672,it read and set time ok,so i can > ensure the hardware is ok,i can write driver to use it, > but i want to add the device to kernel,and if i use the command just > as gettimeofday or date it can been used well! > > > 2009-07-01 > ________________________________ > zuowenping > ________________________________ > 发件人: zuowenping > 发送时间: 2009-07-01 10:57:08 > 收件人: davinci-linux-open-source > 抄送: > 主题: why cann't i use kernel RTC(DS1672) ? > > dear all: > I used a DS1672 in my customed dm355 board,so I make menuconfig the 2.6.18 > kernel in mvl5.0.0,I used the command date to setup current time,then i > check the datetime and it is ok, but when i reboot my kernel and i read the > datatime it is the old time 1970-01-01 00:00:00,why it cann't read time > from ds1672?
I think that the command line utility 'date' does not write to hardware. You should use the 'hwclock' utility for that. Regards, Bjørn Forsman > 2009-07-01 > ________________________________ > zuowenping > _______________________________________________ > Davinci-linux-open-source mailing list > [email protected] > http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source > > _______________________________________________ Davinci-linux-open-source mailing list [email protected] http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
