[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: hwclock still not working



On Sun, Nov 08, 1998 at 11:28:17AM -0600, John Goerzen wrote:

> erwin:~# hwclock --systohc --utc
> hwclock is unable to get I/O port access.  I.e. iopl(3) returned nonzero return code -1.
> This is often because the program isn't running with superuser privilege, which it needs.
> erwin:~# dpkg -l util-linux
> Desired=Unknown/Install/Remove/Purge
> | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
> |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
> ||/ Name            Version        Description
> +++-===============-==============-============================================
> ii  util-linux      2.7.1-3.1axp   Miscellaneous system utilities.
> erwin:~# whoami
> root
> erwin:~# ls -l /dev/rtc
> crw-rw----   1 root     root      10, 135 Jul  4 20:13 /dev/rtc

Is there /dev/rtc on your system (char, major 10, minor 135)? 
Is it accessible (rw) for the user executing hwclock?

Have you got rtc support compiled into kernel (cat /proc/rtc)?

What does 'hwclock --systohc --utc --debug' tell you?

-- 
Andreas Trottmann <andreas.trottmann@werft22.com>


Reply to: