Re: hwclock still not working
Avery Pennarun <apenwarr@worldvisions.ca> writes:
> What does "strace hwclock --systohc --utc" say? That usually helps to
The key seems to be this:
open("/dev/rtc", O_RDONLY) = -1 ENODEV (Operation not supported by device)
Script started on Sun Nov 8 21:26:19 1998
erwin:~# whoami
root
erwin:~# strace hwclock --systohc --utc
execve("/sbin/hwclock", ["hwclock", "--systohc", "--utc"], [/* 16 vars */]) = 0
brk(0) = 0x120106904
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=9649, ...}) = 0
mmap(0, 4831835616, PROT_READ, MAP_FILE, 0, 0) = 0x15555566000
close(3) = 0
open("/lib/libc.so.6.1", O_RDONLY) = 3
mmap(0, 0, PROT_NONE, MAP_FILE, 0, 0) = 0x1555556a000
munmap(0x1555556a000, 8192) = 0
mmap(0, 8192, PROT_NONE, MAP_FILE, 0, 0) = 0x15555668000
mprotect(0x15555728000, 1158240, PROT_NONE) = 0
mmap(0x15555818000, 1158240, PROT_NONE, MAP_FILE, 0, 0) = 0x15555818000
mmap(0x1555583a000, 1158240, PROT_NONE, MAP_FILE, 0, 0) = 0x1555583a000
close(3) = 0
munmap(0x15555566000, 9649) = 0
personality(PER_LINUX) = 0
osf_getsysinfo(0x2d, 0x11ffffcc0, 0x11ffffd38, 0, 0x2) = 0
osf_setsysinfo(0xe, 0x11ffffcc0, 0x11ffffd38, 0, 0x2) = 0
getxpid() = 236
gettimeofday({910581989, 818459}, NULL) = 0
getxuid() = 0
open("/dev/rtc", O_RDONLY) = -1 ENODEV (Operation not supported by device)
write(2, "hwclock is unable to get I/O por"..., 179hwclock 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.
) = 179
exit(0) = ?
erwin:~# exit
Script done on Sun Nov 8 21:26:32 1998
> identify the problem. It would make much more sense if hwclock just printed
> the system error code it code, rather than making something up. In my
> experience, the problem has _never_ been that I forgot to run it with
> superuser privilege.
>
> Have fun,
>
> Avery
>
>
> --
> To UNSUBSCRIBE, email to debian-alpha-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
>
--
John Goerzen Linux, Unix consulting & programming jgoerzen@complete.org |
Developer, Debian GNU/Linux (Free powerful OS upgrade) www.debian.org |
----------------------------------------------------------------------------+
Visit the Air Capital Linux Users Group on the web at http://www.aclug.org
Reply to: