LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-28-2011, 07:27 AM   #1
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 147

Rep: Reputation: 2
Problems with Leadtek PVR 2000 card/driver and tv programs in Slackware 13.37


Hello,

I have the following problem:
I am using Leadtek PVR 2000 (RO) and when it loads the kernel sometimes it reports that it detected it but it waits 120 s. The same when it reaches the 'udeadm ... -type= failed'. But there are times when the kernel boots normaly, without this waiting time. I have 2 questions.
1. Is there any way to stop this module detection at boot time, i didn't found any kernel-module config file for this module that seems to be loaded.
2. Is there any way to make the card work, to configure it properly? I noticed that it makes reference to cx88 card type and seemingly the video4linux driver. Also, is there a tv application that works under Slack13.37? I have tried tvtime and xawtv but without success.

Thank you.
 
Old 11-29-2011, 06:30 AM   #2
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
you have to drop the firmware that the kernel asks for at boot up time into /usr/lib/firmware and reboot then to get you .azap/channels.conf file do: scan /usr/share/dvb/atsc/us-ATSC-center-frequencies-8VSB > ~/.azap/channels.conf note: you'll probably want to symlinke that file into the following directories. .mplayer/ .vlc/ .tzap/ .xine/ you get the scan program & the firmware from: http://linuxtv.org/wiki/index.php/Zap
 
1 members found this post helpful.
Old 11-29-2011, 09:26 AM   #3
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 147

Original Poster
Rep: Reputation: 2
thanks for the response.
i have installed dvb-apps package. i don't know what file to put into /usr/lib/firmware. i noticed that there are the following sylinks:

/dev/v4l/by-path/pci-0000:01:01.0-video-index0
/dev/v4l/by-path/pci-0000:01:01.0-video-index1

pointing to /dev/video0 and /dev/vbi0

The dmesg output is as follows:


[ 8.897144] cfg80211: World regulatory domain updated:
[ 8.897155] (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 8.897164] (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 8.897171] (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 8.897178] (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 8.897185] (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 8.897192] (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 8.979628] [drm] radeon: ring at 0x0000000020001000
[ 8.979673] [drm] ring test succeeded in 7 usecs
[ 8.979832] [drm] radeon: ib pool ready.
[ 8.979919] [drm] ib test succeeded in 0 usecs
[ 8.979932] failed to evaluate ATIF got AE_BAD_PARAMETER
[ 8.980252] [drm] Radeon Display Connectors
[ 8.980258] [drm] Connector 0:
[ 8.980262] [drm] VGA
[ 8.980267] [drm] DDC: 0x7e40 0x7e40 0x7e44 0x7e44 0x7e48 0x7e48 0x7e4c 0x7e4c
[ 8.980275] [drm] Encoders:
[ 8.980279] [drm] CRT1: INTERNAL_KLDSCP_DAC1
[ 8.980284] [drm] Connector 1:
[ 8.980288] [drm] S-video
[ 8.980291] [drm] Encoders:
[ 8.980295] [drm] TV1: INTERNAL_KLDSCP_DAC2
[ 8.980300] [drm] Connector 2:
[ 8.980304] [drm] DVI-I
[ 8.980308] [drm] HPD1
[ 8.980313] [drm] DDC: 0x7e50 0x7e50 0x7e54 0x7e54 0x7e58 0x7e58 0x7e5c 0x7e5c
[ 8.980320] [drm] Encoders:
[ 8.980324] [drm] CRT2: INTERNAL_KLDSCP_DAC2
[ 8.980329] [drm] DFP1: INTERNAL_KLDSCP_TMDS1
[ 9.057392] [drm] Possible lm63 thermal controller at 0x4c
[ 9.159179] [drm] fb mappable at 0xD00C0000
[ 9.159188] [drm] vram apper at 0xD0000000
[ 9.159193] [drm] size 5242880
[ 9.159197] [drm] fb depth is 24
[ 9.159201] [drm] pitch is 5120
[ 9.177945] Console: switching to colour frame buffer device 160x64
[ 9.183389] fb0: radeondrmfb frame buffer device
[ 9.183422] drm: registered panic notifier
[ 9.184331] [drm] Initialized radeon 2.7.0 20080528 for 0000:05:00.0 on minor 0
[ 9.205553] cx88/0: cx2388x v4l2 driver version 0.0.8 loaded
[ 9.205720] cx8800 0000:01:01.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[ 9.208290] cx88[0]: subsystem: 107d:6630, board: Leadtek PVR 2000 [card=9,autodetected], frontend(s): 0
[ 9.208470] cx88[0]: TV tuner type 38, Radio tuner type -1
[ 9.215014] IR Sony protocol handler initialized
[ 9.275404] lirc_dev: IR Remote Control driver registered, major 244
[ 9.285624] IR LIRC bridge handler initialized
[ 9.290368] cx88/2: cx2388x MPEG-TS Driver Manager version 0.0.8 loaded
[ 9.468560] All bytes are equal. It is not a TEA5767
[ 9.468693] tuner 6-0060: chip found @ 0xc0 (cx88[0])
[ 9.475652] tuner 6-0043: chip found @ 0x86 (cx88[0])
[ 9.477988] tda9887 6-0043: creating new instance
[ 9.478039] tda9887 6-0043: tda988[5/6/7] found
[ 9.529043] cx88[0]: Leadtek Winfast 2000XP Expert config: tuner=38, eeprom[0]=0x04
[ 9.533267] tuner-simple 6-0060: creating new instance
[ 9.533312] tuner-simple 6-0060: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3))
[ 9.536817] cx88[0]/0: found at 0000:01:01.0, rev: 5, irq: 22, latency: 64, mmio: 0xfc000000
[ 9.536970] cx88[0]/0: registered device video0 [v4l2]
[ 9.537057] cx88[0]/0: registered device vbi0
[ 9.537127] cx88[0]/0: registered device radio0
[ 9.539080] cx88[0]/2: cx2388x 8802 Driver Manager
[ 9.539128] cx88-mpeg driver manager 0000:01:01.2: PCI INT A -> GSI 22 (level, low) -> IRQ 22
[ 9.539193] cx88[0]/2: found at 0000:01:01.2, rev: 5, irq: 22, latency: 64, mmio: 0xfd000000
[ 9.570541] cx2388x blackbird driver version 0.0.8 loaded
[ 9.570589] cx88/2: registering cx8802 driver, type: blackbird access: shared
[ 9.570640] cx88[0]/2: subsystem: 107d:6630, board: Leadtek PVR 2000 [card=9]
[ 9.570691] cx88[0]/2: cx23416 based mpeg encoder (blackbird reference design)
[ 9.570961] cx88[0]/2-bb: Firmware and/or mailbox pointer not initialized or corrupted
[ 9.574446] cx88[0]/2-bb: ERROR: Hotplug firmware request failed (v4l-cx2341x-enc.fw).
[ 9.574450] cx88[0]/2-bb: Please fix your hotplug setup, the board will not work without firmware loaded!
[ 9.574523] cx88[0]/2: registered device video1 [mpeg]

[ 240.369021] INFO: task v4l_id:1548 blocked for more than 120 seconds.
[ 240.369024] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 240.369027] v4l_id D f57a3d58 0 1548 1 0x00000000
[ 240.369032] f57a3d68 00000082 00000002 f57a3d58 00000002 f6802dc4 3b0334a3 00000002
[ 240.369039] 00000000 3b127540 c19e64c0 00000000 00000000 3b0334a3 f6806240 f57a2000
[ 240.369045] c1d92240 f5055500 c1d92240 c1d92240 f50556b0 00000000 c19ddf3b c1d92240
[ 240.369051] Call Trace:
[ 240.369060] [<c19ddf3b>] ? smp_apic_timer_interrupt+0x5b/0x8a
[ 240.369064] [<c19dda01>] ? apic_timer_interrupt+0x31/0x38
[ 240.369069] [<c103e16d>] ? mutex_spin_on_owner+0x7d/0xb0
[ 240.369074] [<c19dc2d0>] __mutex_lock_slowpath+0xd0/0x130
[ 240.369077] [<c19dbea5>] mutex_lock+0x25/0x40
[ 240.369085] [<fac090f9>] cx8802_request_acquire+0x59/0xf0 [cx8802]
[ 240.369089] [<c19dbea5>] ? mutex_lock+0x25/0x40
[ 240.369094] [<fac88b1a>] mpeg_open+0x5a/0x280 [cx88_blackbird]
[ 240.369098] [<c10fc426>] ? cdev_get+0x26/0x90
[ 240.369105] [<f92295d0>] v4l2_open+0xe0/0x110 [videodev]
[ 240.369108] [<c10fccbc>] chrdev_open+0xac/0x1a0
[ 240.369112] [<c10f764a>] __dentry_open+0xca/0x290
[ 240.369116] [<c10f8796>] nameidata_to_filp+0x66/0x80
[ 240.369119] [<c10fcc10>] ? chrdev_open+0x0/0x1a0
[ 240.369123] [<c11050b7>] do_last+0x387/0x5e0
[ 240.369126] [<c11054d8>] do_filp_open+0x1c8/0x4f0
[ 240.369130] [<c110286a>] ? getname+0x2a/0x120
[ 240.369134] [<c10f880a>] do_sys_open+0x5a/0x100
[ 240.369138] [<c10e1100>] ? arch_unmap_area_topdown+0x0/0x20
[ 240.369141] [<c10f88de>] sys_open+0x2e/0x40
[ 240.369145] [<c19dd5ac>] syscall_call+0x7/0xb


As you may have noticed there is a:

cx88[0]/2-bb: Firmware and/or mailbox pointer not initialized or corrupted
cx88[0]/2-bb: ERROR: Hotplug firmware request failed (v4l-cx2341x-enc.fw).
cx88[0]/2-bb: Please fix your hotplug setup, the board will not work without firmware loaded!

How can i resolve these?
 
Old 11-29-2011, 05:03 PM   #4
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 147

Original Poster
Rep: Reputation: 2
i don't know where to get the v4l-cx2341x-enc.fw firmware from. I've found this archive http://dl.ivtvdriver.org/ivtv/firmwa...irmware.tar.gz which is said to contain the firmware but the archive is corupted. Any suggestion?
 
Old 11-29-2011, 08:07 PM   #5
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
The firmware is supposed to go in /lib/firmware, I don't know how/why I put /usr in front of that, I apologize.

Regarding the firmware download archive being corrupted.

Perhaps try from here:

http://www.linuxtv.org/downloads/firmware/#tarball

or perhaps, ubuntus source package as they do host the files

http://packages.ubuntu.com/source/on...linux-firmware
 
1 members found this post helpful.
Old 11-30-2011, 06:53 AM   #6
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 147

Original Poster
Rep: Reputation: 2
I've found the firmware on ubuntu. Now, on boot-up, it passes over the first point where it stayed for 120s before, but at the second point, the one with 'udevadm', it still waits, most of the boots. Here is the output:

[...] Triggering udev events: /sbin/udevadmin trigger --type=failed

udevadm settle - timeout of 120 seconds reached, the event queue contains:

/sys/devices/pci0000:00/0000:00:1e.0/0000:01:01.2/video4linux/video1 (1745)


(Note: video1 is a directory) ls -lra:
total 0
-rw-r--r-- 1 root root 4096 Nov 30 2011 uevent
lrwxrwxrwx 1 root root 0 Nov 30 2011 subsystem -> ../../../../../../class/video4linux/
drwxr-xr-x 2 root root 0 Nov 30 14:35 power/
-r--r--r-- 1 root root 4096 Nov 30 14:35 name
-r--r--r-- 1 root root 4096 Nov 30 14:35 index
lrwxrwxrwx 1 root root 0 Nov 30 14:35 device -> ../../../0000:01:01.2/
-r--r--r-- 1 root root 4096 Nov 30 14:35 dev
drwxr-xr-x 3 root root 0 Nov 30 2011 ../
drwxr-xr-x 3 root root 0 Nov 30 2011 ./



Now, i noticed there is a red link at: /dev/.udev/failed
The command 'ls -lra' shows:
total 0
lrwxrwxrwx 1 root root 64 Nov 30 14:17 video4linux:video1 -> /devices/pci0000:00/0000:00:1e.0/0000:01:01.2/video4linux/video1

So, the pointed file doesn't exist.

Now, here is a short fregment of the output of the dmesg:


[ 9.573997] cx2388x blackbird driver version 0.0.8 loaded
[ 9.574054] cx88/2: registering cx8802 driver, type: blackbird access: shared
[ 9.574106] cx88[0]/2: subsystem: 107d:6630, board: Leadtek PVR 2000 [card=9]
[ 9.574157] cx88[0]/2: cx23416 based mpeg encoder (blackbird reference design)
[ 9.574427] cx88[0]/2-bb: Firmware and/or mailbox pointer not initialized or corrupted
[ 12.256763] cx88[0]/2-bb: Firmware upload successful.
[ 12.259785] cx88[0]/2-bb: Firmware version is 0x02060039
[ 12.266699] cx88[0]/2: registered device video1 [mpeg]


Any idea? Thank you very much for the support, so far.
 
Old 11-30-2011, 07:14 AM   #7
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 147

Original Poster
Rep: Reputation: 2
Now, about the scan program, here is the result of running the command: 'scan /usr/share/dvb/dvb-t/ro-Bucharest':

scanning /usr/share/dvb/dvb-t/ro-Bucharest
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
main:2705: FATAL: failed to open '/dev/dvb/adapter0/frontend0': 2 No such file or directory
 
Old 11-30-2011, 08:42 AM   #8
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 147

Original Poster
Rep: Reputation: 2
More about the device settings, there are the follofing symlinks:

/dev/v4l/by-path$ ls -lra
total 0
lrwxrwxrwx 1 root root 10 Nov 30 2011 pci-0000:01:01.0-video-index1 -> ../../vbi0
lrwxrwxrwx 1 root root 12 Nov 30 2011 pci-0000:01:01.0-video-index0 -> ../../video0
drwxr-xr-x 3 root root 60 Nov 30 2011 ../
drwxr-xr-x 2 root root 80 Nov 30 2011 ./


Maybe you know what configuration files needs to be changed. Thanks.
 
Old 11-30-2011, 01:36 PM   #9
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
I'm at a loss here to be honest. The fact that udev is erroring and why you have dead links in your /dev is beyond me. The way I told you to get it working works for me, sorry to say.

I can tell you that without a proper /dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0 you will get no where fast So you're going to have to figure out what is going on with udev.

Do you have a 'full installation'? custom kernel? Maybe try a different PCI slot on the computer?

One thing I failed to mention in response to your original post is a good app to use (once you get it working) which is kaffeine which you can get buildscripts from Slackbuilds.org
 
Old 11-30-2011, 02:08 PM   #10
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 147

Original Poster
Rep: Reputation: 2
Thanks a lot for your help. I'll see what can i do about this problem. Yes, it's a full installation of Slackware 13.37, with the default kernel, which works fine. I think the firmware might be the problem. You may be right about the PCI slot, i'll try another one, now it's not on the first one that's for sure. I'll see which one is the first ... and hope it will work.
Thank's for the tip about kaffeine. Anyway, do you know what app is good for Analog TV cable? I have both sygnal systems: digital and analog on the same cable, the digital one is decoded first, with a special device, before entering tv.
 
Old 11-30-2011, 03:03 PM   #11
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 147

Original Poster
Rep: Reputation: 2
i have discovered another thing. when on successful boot-up, that means without the failure message from udev and without the 120 s waiting time, which has happened rarely, i looked into /dev/v4l/by-path/ and here there are now 3 symlinks instead of 2, like i metioned before. Now, there are /dev/vbi0, /dev/video0 and /dev/video1 (the 3 pointed files instead of 2, on failed boot-up). So, i looked to see on what PCI # is the card put on and it is on the 2-nd one. So, about the /dev/video1 linked to,the driver&firmware might have just recognized it and created the link to it.

About changing the card to the first PCI, i have tried but it messes with the bios setup in linux and apparently in windows too. So for this change to the system to be done, i need to install both of the OS-s again. So i guess i'll let it this way for now.
 
Old 11-30-2011, 03:45 PM   #12
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 147

Original Poster
Rep: Reputation: 2
ok, i have changed the slot of the card with success and now the dead links are gone. This is the first boot without errors, i hope the next ones will be the same. It seems that the card is finally well configured. Now it remains to see what can be done with the apps.
 
Old 11-30-2011, 05:48 PM   #13
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
WOW ! great news so far then Regarding analog tv, kaffeine will do that also. But I also use "tvtime" for analog tv as well. Alien Bob has a nice package at his site, and I believe that Slackbuilds.org has build scripts as well. Regarding windows, I would think that since your drivers are already installed once windows should pick it up on first boot in. Let's just hope that they dont hard code pci slot into the registry on some of the apps that came with the card, else yeah, you might have to reinstall the card in windows. But I would think that you should *not* have to do a full reinstall of windows. Good Luck
 
Old 11-30-2011, 07:04 PM   #14
mitusf
Member
 
Registered: Nov 2011
Location: Bucharest, Romania
Distribution: Slackware
Posts: 147

Original Poster
Rep: Reputation: 2
i have installed kafeine. it works but it doesn't have analog tv and the digital part has scanning button inactive. It is version 1.2.2. With tvtime, i couldn't find a working package. I would try too see analog tv with mplayer but i dont know the exact command to use. About the card config at linux boot, it might still be problems. Until now it detected and configured about 3 times well and 1 time bad. I'll see tomorrow, after cold booting how it works again. At least i know i found and supplied the firmware, for which i thank you again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do find out if ubuntu 8.04 can recognise my Winfast PVR 2000 TV Card poplar Linux - Newbie 1 08-17-2008 02:41 AM
leadtek winfast tv 2000 xp rm edition problem warshke Linux - Hardware 5 05-28-2006 07:52 PM
Leadtek Winfast 2000 XP Expert TV Card Nightmare FPxX Linux - Hardware 6 11-02-2004 06:44 AM
Leadtek Winfast TV 2000 XP Expert and Linux LeHardi Linux - Hardware 0 04-05-2004 05:50 PM
ERROR[ IN IT],MDK9.1-leadtek TV 2000. akihandyman Linux - Hardware 0 01-30-2004 06:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration