problem z rdate na TH

Arkadiusz Rdest weed w punkt.pl
Nie, 21 Gru 2008, 19:31:24 CET


Arkadiusz Rdest wrote:

> # uname -a
> Linux ogryzek.infomex.pl 2.6.27.9-1 #1 SMP Sun Dec 14 10:19:30 UTC 2008 
> x86_64 AMD_Opteron(tm)_Processor_280 PLD Linux
> 
> Ktos ma jaki pomysl co moze byc nie tak?
> 

znalazlem taki opis dzialnia /dev/rtc

http://wiki.linuxfromscratch.org/lfs/ticket/2266

sposob z --directisa nie dziala

stworzylem tez /dev/rtc0 z innymi numerami minor i major

# mknod /dev/rtc0 c 253 0
# ls -l /dev | grep rtc
crw-rw-r--  1 root   root     10, 135 Aug  8 17:00 rtc
crw-rw-r--  1 root   root    253,   0 Dec 21 19:21 rtc0

i nadal to samo:

# hwclock --hctosys --utc --debug
hwclock from util-linux-ng 2.14.1
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.

probowalem tez bezposrednio do urzadzenai sie odwolywac:
# hwclock --hctosys --utc --debug --rtc=/dev/rtc
# hwclock --hctosys --utc --debug --rtc=/dev/rtc0

i zawsze to samo.


strace pokazuje ze nie ma takich urzadzen:

# strace hwclock --hctosys --utc --debug
...
write(1, "hwclock from util-linux-ng 2.14.1"..., 34hwclock from 
util-linux-ng 2.14.1) = 34
open("/dev/rtc", O_RDONLY)              = -1 ENODEV (No such device)
open("/dev/rtc0", O_RDONLY)             = -1 ENODEV (No such device)
open("/dev/misc/rtc", O_RDONLY)         = -1 ENOENT (No such file or 
directory)
write(2, "hwclock: "..., 9hwclock: )             = 9
write(2, "Open of /dev/rtc failed"..., 23Open of /dev/rtc failed) = 23
write(2, ", errno=2: No such file or direct"..., 38, errno=2: No such 
file or directory.) = 38
write(1, "No usable clock interface found.\n"..., 33No usable clock 
interface found.




-- 
  -[  net and sys admin  ]-[ Learn the facts and make up your own ]-
  -[ a.rdest()infomex()pl]-[ damn mind. That's why you have one.  ]-


Więcej informacji o liście dyskusyjnej pld-users-pl