Opened 10 years ago

Closed 9 years ago

Last modified 3 years ago

#2262 closed defect (fixed)

New package hwclock

Reported by: Fatus Owned by: kaloz
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version:
Keywords: Cc:


Here's a hwclock package for targets with a RTC, such as NSLU2 (ixp425).

Attachments (1)

hwclock-2.30.diff (1.3 KB) - added by Fatus 10 years ago.
svn diff made in packages/

Download all attachments as: .zip

Change History (12)

Changed 10 years ago by Fatus

svn diff made in packages/

comment:1 Changed 10 years ago by Fatus

Sorry, should have been "enhancement".

comment:2 Changed 10 years ago by anonymous

hwclock package is already created by the util-linux package...

comment:3 Changed 10 years ago by Fatus

Shoot, too blind. Pls close :)

comment:4 Changed 10 years ago by olli

  • Resolution set to invalid
  • Status changed from new to closed

comment:5 Changed 10 years ago by Fate

  • Resolution invalid deleted
  • Status changed from closed to reopened

Actually I found out that util-linux's hwclock does indeed not work on nslu2 (ixp425), probably too old:

hwclock from util-linux-2.12r
hwclock: Open of /dev/rtc failed, errno=2: No such file or directory.
No usable clock interface found.
Cannot access the Hardware Clock via any known method.

Whereas the new/seperate one works:

hwclock 2.29
Kernel IS NOT in 11 minute mode
User did not specify a clock access method. Searching for one...
Found RTC device special file '/dev/rtc0'
Using rtc ioctl interface to clock via file '/dev/rtc0'.

Suggest to upgrade to this newer hwclock. Opinions?

comment:6 Changed 10 years ago by kaloz

  • Owner changed from developers to kaloz
  • Status changed from reopened to new

comment:7 Changed 10 years ago by kaloz

  • Status changed from new to assigned

comment:8 Changed 10 years ago by kaloz

I've nuked util-linux in favor of util-linux-ng with [9444]. Please test and report back.

comment:9 Changed 10 years ago by b.candler@…

FWIW, busybox has hwclock too:

Base System > Busybox
              Configuration > Linux System Utilities > hwclock

That looks for /dev/rtc and /dev/misc/rtc only, but it could be modified to look for /dev/rtc0 too (if it implements the same ioctl interface)

comment:10 Changed 9 years ago by kaloz

  • Resolution set to fixed
  • Status changed from assigned to closed

comment:11 Changed 3 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.