'hwclock' not working? (ASU)

Christopher White chris at grierwhite.com
Sat Jul 26 20:55:15 CEST 2008


On Sat, 2008-07-26 at 22:56 +1000, Lorn Potter wrote:
> Torfinn Ingolfsen wrote:
> > I'm running ASU on my FR.
> > 
> > It seems that something is broken or missing for the 'hwclock' command to work:
> > 
> > root at om-gta02:~# hwclock --systohc
> > hwclock: can't open '/dev/misc/rtc': No such file or directory

> quick fix is to run
> mkdir /dev/misc
> ln -s /dev/rtc /dev/misc/rtc

I ran into the same issue.  After running the above link, I also had to
stop the atd daemon which had /dev/rtc0 open:

# opkg install lsof
# lsof | grep rtc
atd       1334       root    3r   CHR      254,0
1304 /dev/rtc0
# /etc/init.d/atd stop
# /etc/init.d/atd stop
Stopping at daemon: atd.
# hwclock --systohc
# /etc/init.d/atd start
Starting at daemon: atd.

...cj






More information about the community mailing list