Ticket #1797 (closed defect: invalid)

Opened 5 years ago

Last modified 4 years ago

Cannot set hardware clock

Reported by: joka Owned by: hardware
Priority: normal Milestone:
Component: hardware Version: Om2008.8
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Estimated Completion (week):
HasPatchForReview: PatchReviewResult:
Reproducible:

Description

Cannot set hardware clock:

root@om-gta02:~# hwclock -f /dev/rtc --systohc
hwclock: can't open '/dev/rtc': Device or resource busy

Change History

comment:1 Changed 5 years ago by zecke

  • Status changed from new to closed
  • Resolution set to invalid
  • Milestone OM-2008.8 deleted

See the developer and community mailinglist for that question. It has been asked on both mailinglists and should be easy to find with google.

We run atd, you can ask atd to write the system time. More details in the atd sourcecode and the mailinglist posts. Or I can look that up tomorrow (need to leave the train now).

comment:2 Changed 4 years ago by fschlich

The answer can be found at http://wiki.openmoko.org/wiki/Setting_Date_and_Time#Syncing_the_hardware_clock

echo "W\n" > /var/spool/at/trigger

(This bug is the only thing that comes up when feeding the error message from 2008.12 to Google, and references to it feature prominently in other searches, so I thought it's useful to document things here as well)

Note: See TracTickets for help on using tickets.