hwclock time out...

The "hwclock" command times out (output listed below). I'm running
Ubuntu Lucid 10.04 on Beagleboard rev C4 with no zippy board and
backup battery installed. Any idea why it times out on "select" call
(strace output listed below)? Is there a tarball of SDcard image that
I can try out to see hwclock actually works on my board?
Thanks,

root@beagleboard:~# hwclock -Dr
hwclock from util-linux-ng 2.17.2
Using /dev interface to clock.
Assuming hardware clock is kept in local time.
Waiting for clock tick...
select() to /dev/rtc0 to wait for clock tick timed out
...synchronization failed

root@beagleboard:~# dmesg|grep -i rtc
[ 0.000000] Kernel command line: console=ttyS2,115200n8
console=tty0 root=/dev/mmcblk0p2 rootwait ro vram=12MB omapfb.mode=dvi:
1280x720MR-16@60 fixrtc buddy=unknown mpurate=720
[ 12.619781] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0
[ 12.753570] twl_rtc twl_rtc: Enabling TWL-RTC.

root@beagleboard:~# uname -a
Linux beagleboard 2.6.35.6-l5 #1 PREEMPT Mon Sep 27 15:05:25 UTC 2010
armv7l GNU/Linux

root@beagleboard:~# lsmod|grep rtc
rtc_twl 5306 0
rtc_core 18220 1 rtc_twl

root@beagleboard:~# strace hwclock
:
:
open("/dev/rtc", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or
directory)
open("/dev/rtc0", O_RDONLY|O_LARGEFILE) =
3
stat64("/etc/adjtime", 0xbee7a2b0) = -1 ENOENT (No such file or
directory)
ioctl(3, RTC_UIE_ON, 0) =
0
select(4, [3], NULL, NULL, {5, 0}) = 0
(Timeout)
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/util-linux-ng.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/util-linux-ng.mo",
O_RDONLY) = -1 ENOENT (No such file or directory)
:
:

coco <hee1lee@...> writes:

The "hwclock" command times out (output listed below). I'm running
Ubuntu Lucid 10.04 on Beagleboard rev C4 with no zippy board and
backup battery installed. Any idea why it times out on "select" call
(strace output listed below)? Is there a tarball of SDcard image that
I can try out to see hwclock actually works on my board?
Thanks,

I am having the same problem. Ubuntu Beagleboard rev C4

uname -a
Linux 2.6.33.4-13 #1 PREEMPT Fri May 14 05:45:42 UTC 2010 armv71 GNU/Linux

I could not find a response to this post. Can anyone help?

I found this patch on the internet and works fine with my beagle board.
http://groups.google.com/group/rowboat/browse_thread/thread/ec948c81238b8790

The problem probably be the mSecure signal on beagle board pulled low; makes
the rtc setup not working.

Ivan

I’ve had longstanding problems where my hwclock has drifted off from correct time. Most of the time my machine is connected to the network, so the system time gets updated to run correctly, but it would be nice to have the hwclock set correctly as well. I’ve not been able to do it for a long time.

Following the details in the patch, I was able to fix the hwclock access in the 2.6.39 kernel.

What needs to be done to get a patch submitted to the main kernel.org distribution so that the clock is writable as well as readable?

try 'crontab -e2, put 'hwclock -w' in table