/dev/rtc i mplayer-1.0-0.pre5.{1,2}

2004-07-27 Wątek Bobby Spark
Wyl tu, do users
nie bd developerw mczy, moe to co u mnie :P

problem jest taki:
nie chce mi dziaa RTC z mplayerem 1.0-0.pre5.{1,2}
ani z usera ani z roota
przy wersji mplayera 1.0-0.pre4 
z kernelem 2.6.7-1 dziaao na 100%

no i gwne pytanie czy to wina mplayera czy kernela ?
teraz pre4 wcieo to nie mog zobaczy


INFO:
$ rpm -q dev
dev-2.9.0-12
$ rpm -q kernel
kernel-2.6.7-3
$ rpm -q mplayer
mplayer-1.0-0.pre5.2 i mplayer-1.0-0.pre5.1

$ ls -l /dev/rtc
crw-rw-r--  1 root root 10, 135 2004-07-16 03:07 /dev/rtc

(user)$ cat /proc/sys/dev/rtc/max-user-freq
cat: /proc/sys/dev/rtc/max-user-freq: Brak dostpu.
Tak chyba ma by,
poprostu /proc/sys ma ustawione 550

(root)# cat /proc/sys/dev/rtc/max-user-freq
1024

w zaczniku strace


:wq

Sparky{PI]
pre5.1 user

open(/dev/rtc, O_RDONLY|O_LARGEFILE)  = 3
ioctl(3, RTC_IRQP_SET, 0x400)   = -1 ENOTTY (Inappropriate ioctl for device)
write(2, Linux RTC init error in ioctl (r..., 84Linux RTC init error in ioctl 
(rtc_irqp_set 1024): Niewaciwy ioctl dla urzdzenia
) = 84
write(1, Font /usr/share/mplayer/font/fon..., 161Font 
/usr/share/mplayer/font/font.desc loaded successfully! (210 chars)
Try adding echo 1024  /proc/sys/dev/rtc/max-user-freq to your system startup 
scripts.
) = 161
close(3)= 0
write(1, Using usleep() timing\n, 22Using usleep() timing
) = 22


pre5.1 root

open(/dev/rtc, O_RDONLY|O_LARGEFILE)  = 5
ioctl(5, RTC_IRQP_SET, 0x400)   = -1 ENOTTY (Inappropriate ioctl for device)
write(2, Linux RTC init error in ioctl (r..., 84Linux RTC init error in ioctl 
(rtc_irqp_set 1024): Niewaciwy ioctl dla urzdzenia
) = 84
write(1, Font /usr/share/mplayer/font/fon..., 161Font 
/usr/share/mplayer/font/font.desc loaded successfully! (210 chars)
Try adding echo 1024  /proc/sys/dev/rtc/max-user-freq to your system startup 
scripts.
) = 161
close(5)= 0
write(1, Using usleep() timing\n, 22Using usleep() timing
) = 22


pre5.2 user

open(/dev/rtc, O_RDONLY|O_LARGEFILE)  = 3
ioctl(3, RTC_IRQP_SET, 0x400)   = -1 ENOTTY (Inappropriate ioctl for device)
write(2, Linux RTC init error in ioctl (r..., 84Linux RTC init error in ioctl 
(rtc_irqp_set 1024): Niewaciwy ioctl dla urzdzenia
) = 84
write(1, Font /usr/share/mplayer/font/fon..., 161Font 
/usr/share/mplayer/font/font.desc loaded successfully! (210 chars)
Try adding echo 1024  /proc/sys/dev/rtc/max-user-freq to your system startup 
scripts.
) = 161
close(3)= 0
write(1, Using usleep() timing\n, 22Using usleep() timing
) = 22


pre5.2 root

open(/dev/rtc, O_RDONLY|O_LARGEFILE)  = 5
ioctl(5, RTC_IRQP_SET, 0x400)   = -1 ENOTTY (Inappropriate ioctl for device)
write(2, Linux RTC init error in ioctl (r..., 84Linux RTC init error in ioctl 
(rtc_irqp_set 1024): Niewaciwy ioctl dla urzdzenia
) = 84
write(1, Font /usr/share/mplayer/font/fon..., 161Font 
/usr/share/mplayer/font/font.desc loaded successfully! (210 chars)
Try adding echo 1024  /proc/sys/dev/rtc/max-user-freq to your system startup 
scripts.
) = 161
close(5)= 0
write(1, Using usleep() timing\n, 22Using usleep() timing
) = 22

___
pld-users-pl mailing list
[EMAIL PROTECTED]
http://lists.pld-linux.org/mailman/listinfo/pld-users-pl


Re: /dev/rtc i mplayer-1.0-0.pre5.{1,2}

2004-07-27 Wątek Pawe Sikora
On Wednesday 28 of July 2004 01:31, Bobby Spark wrote:

 w zaczniku strace

(...)
open(/dev/rtc, O_RDONLY|O_LARGEFILE)  = 3
ioctl(3, RTC_IRQP_SET, 0x400)   = -1 ENOTTY
  (Inappropriate ioctl for device)
(...)

# cvs diff -u -r 1.82.10.24 -r 1.82.10.25 kernel-i386.config
Index: kernel-i386.config
===
RCS file: /cvsroot/SOURCES/kernel-i386.config,v
retrieving revision 1.82.10.24
retrieving revision 1.82.10.25
diff -u -r1.82.10.24 -r1.82.10.25
--- kernel-i386.config  16 Jul 2004 19:36:55 -  1.82.10.24
+++ kernel-i386.config  16 Jul 2004 21:29:42 -  1.82.10.25
^^^
@@ -94,7 +94,7 @@
 CONFIG_X86_USE_PPRO_CHECKSUM=y
 CONFIG_X86_USE_3DNOW=y
 CONFIG_HPET_TIMER=y
-# CONFIG_HPET_EMULATE_RTC is not set
+CONFIG_HPET_EMULATE_RTC=y
 # CONFIG_SMP is not set
 # CONFIG_PREEMPT is not set
 CONFIG_X86_UP_APIC=y
@@ -1705,9 +1705,7 @@
 CONFIG_USBPCWATCHDOG=m
 CONFIG_HW_RANDOM=m
 CONFIG_NVRAM=m
-CONFIG_RTC=m
-CONFIG_GEN_RTC=m
-CONFIG_GEN_RTC_X=y
+CONFIG_RTC=y
 CONFIG_DTLK=m
 CONFIG_R3964=m
 CONFIG_APPLICOM=m
@@ -1771,7 +1769,7 @@
 # CONFIG_SCx200_GPIO is not set
 CONFIG_RAW_DRIVER=m
 CONFIG_HPET=y
-CONFIG_HPET_RTC_IRQ=y
+# CONFIG_HPET_RTC_IRQ is not set
 # CONFIG_HPET_NOMMAP is not set
 CONFIG_MAX_RAW_DEVS=1024
 CONFIG_HANGCHECK_TIMER=m


-- 
/* Copyright (C) 2003, SCO, Inc. This is valuable Intellectual Property. */

   #define say(x) lie(x)

___
pld-users-pl mailing list
[EMAIL PROTECTED]
http://lists.pld-linux.org/mailman/listinfo/pld-users-pl