Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PCHDTV HD-3000 V4L HOWTO
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
smasher
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2003
Posts: 95

PostPosted: Thu Mar 24, 2005 8:09 am    Post subject: PCHDTV HD-3000 V4L HOWTO Reply with quote

Here's how I got my pcHDTV HD-3000 card going without xine-hd.
    I'm using:
    AMD64(3200)/Gentoo 2004.3
    gentoo-dev-sources-2.6.11-r3
    mplayer-1.0_pre6-r2
    Video For Linux enabled in kernel

I assume you are logged in as root to install the drivers and tools.

Get the drivers and tools from www.pchdtv.com.
Code:
mkdir ~/pcHDTV
cd ~/pcHDTV

wget http://pchdtv.com/downloads/pcHDTV-2.0.tar.gz
wget http://pchdtv.com/downloads/tools-2.6-a.tar.gz

tar xvzf pcHDTV-2.0.tar.gz
tar xvzf tools-2.6-a.tar.gz

Make,install the video4linux drivers and tools.
Code:
cd ~/pcHDTV/pcHDTV-2.0
## With udev.
make && make install && make udev
# udev permissions file ends up in the wrong directory
mv /etc/udev/rules.d/10-pchdtv.permissions /etc/udev/permissions.d/

## Without udev.
make && make install

cd ~/pcHDTV/tools-2.6-a
# Before running make install you must edit the config file to remove the '-C' from the install line:
# install -C -mode=u=rwx,go=rx $(PROGS)$(PREFIX)/bin to have the following instead:
# install -mode=u=rwx,go=rx $(PROGS)$(PREFIX)/bin
make clean && make

Please note if you leave out this next step the dvb driver will load first if you use kernel auto module loading. That being said I have done this and have lost access to my NTSC tuner/Composite/S-Video inputs. If I boot into the dvb driver and remove cx88-dvb and and insert cx88-atsc by hand all seems well. Maybe it's just me?
Add to /etc/modules.autoload/kernel-2.6
Code:
cx88-atsc

Reboot or try modprobe cx88-atsc.

Verify the drivers are loaded:
Code:
dmesg
...
Linux video capture interface: v1.00
pcHDTV HD3000 driver version 2.0.0 loaded
cx88[0]: subsystem: 7063:3000, board: pcHDTV HD3000 HDTV [card=22,autodetected]
ACPI: PCI interrupt 0000:00:06.2[A] -> GSI 17 (level, low) -> IRQ 201
cx88[0]/2: found at 0000:00:06.2, rev: 5, irq: 201, latency: 64, mmio: 0xcf000000
cx88[0]/2 FW version: 113-4-194-3
cx88[0]/2: registered device video0 [atsc]
cx88[0]/0: found at 0000:00:06.0, rev: 5, irq: 201, latency: 64, mmio: 0xce000000
tuner 0-0061: chip found @ 0xc2 (cx88[0])
tuner 0-0061: type set to 52 (Thomson DDT 7610 (ATSC/NTSC))
cx88[0]/0: registered device video1 [v4l2]
cx88[0]/0: registered device vbi0
cx88[0]/0: registered device radio0
cx2388x dvb driver version 0.0.4 loaded
cx88[0]/2: atsc_open - device data
cx88[0]/2: device minor 0
cx88[0]/2: tuner_type 52

If the dmesg reports: 'DVB: registering frontend 0 (pcHDTV HD3000 HDTV)' then you have the dvb driver installed. You must remove it before installing the v4l driver.
Code:
modprobe -r cx88-dvb
modprobe cx88-atsc

Verify the entries your dev directory.
Code:
ls /dev/dvb*
/dev/dvb0.demux0  /dev/dvb0.dvr0  /dev/dvb0.frontend0  /dev/dvb0.net0

ls /dev/v4l/
radio0  vbi0  video  video0  video1

ls /dev/dtv
/dev/dtv

Warning, if video1 or /dev/dtv is missing then cx88-atsc is not installed or isn't working properly.

This is optional, if you want to use xine-hd. Otherwise you may use it as a list of available HD channels.
Code:
dtvscan /dev/dtv > ~/.xine/channels.atsc


If dtvscan fails and you know what HD channels are available in your area you can check the signal. Replace # is the channel number.
Code:
dtvsignal /dev/dtv #


Watch some HD TV! Replace # with a channel number.
Code:
getatsc /dev/dtv #|mplayer -vo xv -framedrop -vf pp=lb -autoq 6 -tsprog 0 -noconsolecontrols /dev/stdin


I not able to test this but -tsprog 0 is supposed to set the subchannel your are requesting. Here's an example for channel 42.3.
Code:
getatsc /dev/dtv 42|mplayer -vo xv -framedrop -vf pp=lb -autoq 6 -tsprog 3 -noconsolecontrols /dev/stdin


If you want to get rid of the squiggly lines at the top or bottom try cropdetect. It will report a suggested crop value.
Code:
getatsc /dev/dtv 42|mplayer -vo xv -framedrop -vf pp=lb,cropdetect -autoq 6 -tsprog 3 -noconsolecontrols /dev/stdin
# then set it
getatsc /dev/dtv 42|mplayer -vo xv -framedrop -vf pp=lb,crop=1904:1056:8:16 -autoq 6 -tsprog 3 -noconsolecontrols /dev/stdin


And if you want to watch plain old TV. You'll want to adjust your video settings here, the driver doesn't set optimal viewing settings. See the mencoder settings below for some decent values.
Code:
tvtime
# or
xawtv


I have not done any HD recordings, but here's the syntax. Replace # with a channel number.
Code:
getatsc /dev/dtv # > myrecording.ts


If all goes well you should be on your way to viewing HD TV! Now let's try to make our composite in/tv tuner work to capture some home movies.

Here are some things I discovered when trying to grab video from the non-HD side of the card.
    1. The video4linux driver only supports YUY2 output, greatly slowing things down. Also it prevented me from using transcode. Luckily with mencoder and the right codecs/options you can make this happen.
    2. You must use the enclosed audio loopback cable.
    3. Mencoder won't unmute the video4linux driver you may need to run 'v4lctl volume mute off'. Tvtime doesn't have a problem with this so it may be an mplayer issue.
    4. Your capture device must be set correctly. You can use this to test sound capturing.
    Code:
    #test loopback cable, must have sox installed
    v4lctl volume mute off
    rec -c 2 -d /dev/dsp -f s -r 44100 -s w -t wav outfile.wav
    mplayer outfile.wav

    5. And here are some mplayer settings you might need to be familiar with.
    amode=0 (0=mono, 1=stereo)
    input=0 (0=tuner, 1=composite, 2=svideo)


This is what I used to pull some good quality video off the pcHDTV card. My 80 minute clip took a little over 4.5 gigs.
Code:
mencoder -tv driver=v4l2:normid=0:amode=0:input=1:brightness=70:contrast=25:hue=99:saturation=55:outfmt=yuy2:width=640:height=480:device=/dev/video0:adevice=/dev/dsp:audiorate=44100:forceaudio:forcechan=2:volume=95 -ovc lavc -lavcopts vcodec=mjpeg:vhq -vf pp=lb/hb/vb/dr,hqdn3d -oac mp3lame -o output.avi tv://


Some more mplayer examples:
Code:
# view channel 2
mplayer -tv driver=v4l2:norm=ntsc:channels=2-tv1:chanlist=us-bcast:input=0:adevice=/dev/dsp:width=640:height=480:device=/dev/video0:brightness=60:contrast=25:hue=99:saturation=55:outfmt=yuy2 -vf pp=lb tv://

# view channel 5
mplayer -tv driver=v4l2:norm=ntsc:channels=5-tv1:chanlist=us-bcast:input=0:adevice=/dev/dsp:width=640:height=480:device=/dev/video0:brightness=60:contrast=25:hue=99:saturation=55:outfmt=yuy2 -vf pp=lb tv://

# view composite input
mplayer -tv driver=v4l2:input=1:adevice=/dev/dsp:width=640:height=480:device=/dev/video0:brightness=60:contrast=25:hue=99:saturation=55:outfmt=yuy2 -vf pp=lb tv://

# view svideo input
mplayer -tv driver=v4l2:input=2:adevice=/dev/dsp:width=640:height=480:device=/dev/video0:brightness=60:contrast=25:hue=99:saturation=55:outfmt=yuy2 -vf pp=lb tv://


Some more mencoder examples:
Code:
# record channel 2
mencoder -tv driver=v4l2:norm=ntsc:normid=0:amode=1:channel=2-tv1:chanlist=us-bcast:input=0:brightness=70:contrast=25:hue=99:saturation=55:outfmt=yuy2:width=640:height=480:device=/dev/video0:adevice=/dev/dsp:audiorate=44100:forceaudio:forcechan=2:volume=95 -ovc lavc -lavcopts vcodec=mjpeg:vhq -vf pp=lb/hb/vb/dr,hqdn3d -oac mp3lame -o output.avi tv://2

# record channel 5
mencoder -tv driver=v4l2:norm=ntsc:normid=0:amode=1:channel=5-tv1:chanlist=us-bcast:input=0:brightness=70:contrast=25:hue=99:saturation=55:outfmt=yuy2:width=640:height=480:device=/dev/video0:adevice=/dev/dsp:audiorate=44100:forceaudio:forcechan=2:volume=95 -ovc lavc -lavcopts vcodec=mjpeg:vhq -vf pp=lb/hb/vb/dr,hqdn3d -oac mp3lame -o output.avi tv://5

# record composite input
mencoder -tv driver=v4l2:normid=0:amode=0:input=1:brightness=70:contrast=25:hue=99:saturation=55:outfmt=yuy2:width=640:height=480:device=/dev/video0:adevice=/dev/dsp:audiorate=44100:forceaudio:forcechan=2:volume=95 -ovc lavc -lavcopts vcodec=mjpeg:vhq -vf pp=lb/hb/vb/dr,hqdn3d -oac mp3lame -o output.avi tv://

# record svideo input
mencoder -tv driver=v4l2:normid=0:amode=0:input=2:brightness=70:contrast=25:hue=99:saturation=55:outfmt=yuy2:width=640:height=480:device=/dev/video0:adevice=/dev/dsp:audiorate=44100:forceaudio:forcechan=2:volume=95 -ovc lavc -lavcopts vcodec=mjpeg:vhq -vf pp=lb/hb/vb/dr,hqdn3d -oac mp3lame -o output.avi tv://

Also, I should probably note when viewing a 1920 x 1080 HD stream it uses around 65-75% of my cpu.
Back to top
View user's profile Send private message
lavid
n00b
n00b


Joined: 14 Apr 2005
Posts: 6
Location: Urbana, IL

PostPosted: Mon Apr 25, 2005 5:50 am    Post subject: not working... :( Reply with quote

i've tried just about every kernel that i can get my hands on, none of them seem to work with this card.
i tried the drivers included in the 2.6.12-rc2 kernel and with the dvb support, i'm missing a bunch of devices (ca0, audio0, video, ...)
when i try the cx88-atsc module, it simply can't read anything.
i can tune using azap and the dvb module, but nothing else will work :(

i moved the udev permissions and rules to the proper place and i created a pchdtv file in the modules.d directory so the modules.conf file is updated properly.

has anyone else had this problem or similar and knows how to resolve the issue?

-lavid
Back to top
View user's profile Send private message
smasher
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2003
Posts: 95

PostPosted: Mon Apr 25, 2005 12:08 pm    Post subject: Reply with quote

Does you have the appropriate module files for your kernel? Here is what mine looks like:
Code:
/lib/modules/2.6.11-gentoo-r5/v4l2/cx88-atsc.ko
/lib/modules/2.6.11-gentoo-r5/v4l2/cx88-blackbird.ko
/lib/modules/2.6.11-gentoo-r5/v4l2/cx88-dvb.ko
/lib/modules/2.6.11-gentoo-r5/v4l2/cx8800.ko
/lib/modules/2.6.11-gentoo-r5/v4l2/cx8801.ko
/lib/modules/2.6.11-gentoo-r5/v4l2/cx8802.ko
/lib/modules/2.6.11-gentoo-r5/v4l2/cx88xx.ko


If you haven't rebooted since setting up udev you'll need to run udevstart to create the dev files.

How are you planning on using your card, dvb or v4l? MythTV has dvb support while most desktop programs use v4l. ie xine-hd.

Oh and make sure you don't use cx88-dvb and cx88-atsc together. Only one can used a time.
Back to top
View user's profile Send private message
srwalter
n00b
n00b


Joined: 10 Mar 2005
Posts: 10
Location: KY

PostPosted: Tue Apr 26, 2005 1:17 am    Post subject: Try a newer kernel Reply with quote

2.6.12-rc3 and above include updated drivers for the pcHDTV 3000. It is a little hairy to get going, but it will work with the stock kernel drivers, and work well. I'm currently using this kernel on an AMD64 with MythTV to receive wonderful high-definition broadcasts.

As a side note, you probably want a card that can do XvMC, else the playback will be jumpy. Most recent nVidia cards do, but that's a whole other can of worms...
Back to top
View user's profile Send private message
gcasillo
l33t
l33t


Joined: 23 Sep 2003
Posts: 739
Location: Cincinnati, Ohio, USA

PostPosted: Tue Apr 26, 2005 1:44 am    Post subject: Reply with quote

Hey, srwalter, where in KY? I'm in Lexington, and I hope to set aside some time to get my pcHDTV-3000 up in running. What channels/stations are you pulling in? What antenna if any are you using?
Back to top
View user's profile Send private message
SkidSoft
n00b
n00b


Joined: 24 Jul 2003
Posts: 48

PostPosted: Fri Apr 29, 2005 7:47 pm    Post subject: Reply with quote

Is the Quality any good? How is it on your monitor? I know HDTV is something like 1900x something right? I'm VERY interested in this card and Indy has quite a few HDTV broadcast channels from what I understand...
_________________
--------------------------------------------------
Skid

And he got his head sent home in a freezerbag!
--Bill Murray in The Man Who Knows Too Little
Back to top
View user's profile Send private message
immudium
Guru
Guru


Joined: 12 Oct 2004
Posts: 332
Location: Utah

PostPosted: Sat Apr 30, 2005 7:23 am    Post subject: Reply with quote

Thanks for the excellent guide. I've had a pretty hard time getting the 2.0 drivers to work for the HD3000, as such I have been stuck using a 2.6.9 kernel with the 1.6 drivers for quite some time. Checking regularly on the pcHDTV boards for more information is definitely an exercise in futility trying to separate any bits of useful information from the noise. Your installation instructions are defintely the most clear and concise that I have seen so far and as such I have finally had my first success with these blasted 2.0 drivers. So anyway, many thanks for getting me out of the driver dungeon and moving forward finally!
Back to top
View user's profile Send private message
immudium
Guru
Guru


Joined: 12 Oct 2004
Posts: 332
Location: Utah

PostPosted: Sat Apr 30, 2005 7:41 am    Post subject: Reply with quote

Quote:
Is the Quality any good?


It depends on what you mean by quality. If you're referring to the quality of the recorded broadcast, it's kind of irrelevent with HDTV. HDTV is transmitted as a digital transport stream which is basically just just a very high bitrate mpeg2 file. As such, there is no (re)encoding of the transmission such as would be done with a traditional ananlog TV signal and card such as a PVR-350. Things that are relevant to HDTV cards would be signal strength, for example. Higher signal strength results in fewer dropped packets which results in fewer glitches during playback. As far as signal strength goes, my own HD3000 seems to have an excellent tuner. I can pick up all local over the air stations at 90% signal strength from over 40 miles away from the transmission tower using nothing more than 13" X 13" Zenith Silver Sensor antenna in my attic.
Back to top
View user's profile Send private message
Maedhros
Bodhisattva
Bodhisattva


Joined: 14 Apr 2004
Posts: 5511
Location: Durham, UK

PostPosted: Sat Apr 30, 2005 11:11 am    Post subject: Reply with quote

Moved from Multimedia.
_________________
No-one's more important than the earthworm.
Back to top
View user's profile Send private message
immudium
Guru
Guru


Joined: 12 Oct 2004
Posts: 332
Location: Utah

PostPosted: Sun May 01, 2005 10:10 pm    Post subject: Reply with quote

Something weird I just came across. I run two HD3000 cards on different boxes. One running the gentoo testing branch and the other running the stable branch which is intended to by my master MythTV backend. Well since I got the driver working on the testing box, I decided to get it working on my stable box. Well it seems there is something strang going on with udev version 046 and either the rules or permissions files of the pcHDTV 2.0 drivers. It would create some sort of node called /dev/dvb with attributes crwx rather than a dvb directory with an adapter0 subdirectory. I remedied this problem by upgrading to udev testing (which at the time of this writing was 056).
Code:
echo "sys-fs/udev ~x86" >> /etc/portage/package.keywords

So while the dvb directory is probably not used for the v4l driver it was bugging me that I was getting the same results. And for whatever reason, the v4l driver refused to work as well until upgrading so perhaps it had some related issues with the older udev. Anyway just a heads up in case someone else runs across this same problem.
Back to top
View user's profile Send private message
andersbk
n00b
n00b


Joined: 16 Aug 2003
Posts: 35

PostPosted: Fri May 06, 2005 9:52 pm    Post subject: Reply with quote

Need a bit of help. I've got mythtv up and running, just not getting same results with as you with respect to the pcHDTV 3000 card.
I tried pointing to /dev/video0 for the card setup in mythtv-setup, but I get and ERROR message wrt tuning.

Below you'll find relevant output for my setup. It's a gentoo 2005.0 install running 2.6.11.7.
Any ideas? Let me know if there's any other info needed to help me debug.
thanks!

# dmesg
Code:

pcHDTV HD3000 driver version 2.0.0 loaded
cx88[0]: subsystem: 7063:3000, board: pcHDTV HD3000 HDTV [card=22,autodetected]
ACPI: PCI interrupt 0000:02:01.2[A] -> GSI 21 (level, low) -> IRQ 21
cx88[0]/2: found at 0000:02:01.2, rev: 5, irq: 21, latency: 32, mmio: 0xe7000000
cx88[0]/2 FW version: 113-4-194-3
cx88[0]/2: registered device video0 [atsc]
tuner 0-0061: chip found @ 0xc2 (cx88[0])
tuner 0-0061: type set to 52 (Thomson DDT 7610 (ATSC/NTSC))
XFS mounting filesystem dm-0
Ending clean XFS mount for filesystem: dm-0
ACPI: PCI interrupt 0000:02:02.0[A] -> GSI 22 (level, low) -> IRQ 22
e100: eth0: e100_watchdog: link up, 100Mbps, full-duplex
cx88[0]/2: atsc_open - device data
cx88[0]/2: device minor 0
cx88[0]/2: tuner_type 52


# lsmod
Code:

Module                  Size  Used by
fglrx                 240828  9
agpgart                29488  1 fglrx
snd_seq                52880  0
snd_ice1712            60484  0
snd_ice17xx_ak4xxx      3456  1 snd_ice1712
snd_ak4xxx_adda         5888  2 snd_ice1712,snd_ice17xx_ak4xxx
snd_cs8427              8960  1 snd_ice1712
snd_ac97_codec         75768  1 snd_ice1712
snd_pcm                83716  2 snd_ice1712,snd_ac97_codec
snd_timer              22020  2 snd_seq,snd_pcm
snd_page_alloc          8068  1 snd_pcm
snd_i2c                 5248  2 snd_ice1712,snd_cs8427
snd_mpu401_uart         7040  1 snd_ice1712
snd_rawmidi            19328  1 snd_mpu401_uart
snd_seq_device          7564  2 snd_seq,snd_rawmidi
snd                    44980  11 snd_seq,snd_ice1712,snd_ak4xxx_adda,snd_cs8427,snd_ac97_codec,snd_pcm,snd_timer,snd_i2c,snd_mpu401_uart,snd_rawmidi,snd_seq_device
tuner                  26536  0
cx88_atsc              14596  0
cx8802                  7940  1 cx88_atsc
firmware_class          8192  1 cx88_atsc
cx88xx                 48160  2 cx88_atsc,cx8802
i2c_algo_bit            9224  1 cx88xx
video_buf              17668  3 cx88_atsc,cx8802,cx88xx
ir_common               5636  1 cx88xx
btcx_risc               4104  2 cx8802,cx88xx
tveeprom               11672  1 cx88xx
i2c_core               19200  5 tuner,cx88_atsc,cx88xx,i2c_algo_bit,tveeprom
videodev                7936  2 cx88_atsc,cx88xx
v4l2_common             4864  1 cx88_atsc
v4l1_compat            13828  1 cx88_atsc


# cat /proc/interrupts
Code:

           CPU0
  0:     311269    IO-APIC-edge  timer
  7:          0    IO-APIC-edge  parport0
  8:          2    IO-APIC-edge  rtc
  9:          1   IO-APIC-level  acpi
 14:       3793    IO-APIC-edge  ide0
 15:         23    IO-APIC-edge  ide1
 19:          0   IO-APIC-level  uhci_hcd
 20:       2140   IO-APIC-level  eth0
 21:          0   IO-APIC-level  cx88[0]
 22:          0   IO-APIC-level  ICE1712
 23:          0   IO-APIC-level  uhci_hcd
NMI:          0
LOC:     311198
ERR:          0
MIS:          0


Some other interesting info. As you can see, I'm not getting the same /dev entries.
FYI, I just emerged version 056 of udev prior to outputting everything here.
Code:

stream root # uname -a
Linux stream 2.6.11.7-v4l #4 SMP Fri May 6 15:24:28 MDT 2005 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz GenuineIntel GNU/Linux

stream root # ls -l /dev/dv*
lrwxrwxrwx  1 root root 3 May  6 09:35 /dev/dvd -> hdc
lrwxrwxrwx  1 root root 3 May  6 09:35 /dev/dvdrw -> hdc

stream root # ls -l /dev/dt*
lrwxrwxrwx  1 root root 10 May  6 09:36 /dev/dtv -> v4l/video0

stream root # ls -l /dev/v4l/*
crw-rw----  1 root video 81,  64 May  5 09:14 /dev/v4l/radio0
crw-------  1 root sys   81, 224 May  5 09:14 /dev/v4l/vbi0
crw-------  1 root sys   81,   0 May  5 09:14 /dev/v4l/video0

stream root # ls -l /etc/udev/permissions.d/
total 8
-rw-r--r--  1 root root  370 May  6 13:37 10-pchdtv.permissions
-rw-r--r--  1 root root 3820 Mar 11 11:31 50-udev.permissions

stream root # ls -l /etc/udev/rules.d/
total 16
-rw-r--r--  1 root root 1830 May  6 13:37 10-pchdtv.rules
-rw-r--r--  1 root root 8356 May  6 15:33 50-udev.rules

stream root # ls -l /lib/firmware/
total 48
-rw-r--r--  1 root root 12772 May  5 09:37 dvb-fe-or51132-qam.fw
-rw-r--r--  1 root root 17532 May  5 09:37 dvb-fe-or51132-vsb.fw
-rw-r--r--  1 root root  8518 May  5 09:37 dvb-fe-or51211.fw
stream root #

Back to top
View user's profile Send private message
tgeiger
n00b
n00b


Joined: 21 Sep 2003
Posts: 6

PostPosted: Thu May 12, 2005 5:06 pm    Post subject: Reply with quote

andersbk,

I'm having the same issue you are. What I found, is that it only works when I re-install the drivers:

1) don't autoload cx88_atsc on boot
2) cd path-to-driver/pcHDTV-2.0
3) make install
4) modprobe cx88_atsc

I have to do this every time I reboot. If I skip the first three steps, I have the same problem (only video0 is registered). For some reason following these steps causes some other modules to be loaded. I've tried loading the modules by hand, but it still doesn't work.

I haven't had time to investigate this more.

On a side note:
I'm using composite in, and the mplayer settings mentioned work great. How do I get mthtv to use the same yuy2 settings? BTW, I've only been able to see and video by making myth use the v4l driver. The color is skewed, but I can see it. If I use the pcHD300 driver (with composite input set), I get errors about dtv signal strength and a black screen.

Thanks for this post!!!
-Tom
Back to top
View user's profile Send private message
cykoduck
n00b
n00b


Joined: 23 Apr 2005
Posts: 5
Location: Austin, TX

PostPosted: Sun May 15, 2005 12:43 am    Post subject: Reply with quote

Ok so anyone have ideas on this one:

amd64 w/ 2.6.12-r7 and the drivers loaded as modules

Post reboot a dmesg shows that the cx88-dvb loaded and says created adapter and frontend, but I have no adapters in /dev/dvb

I am using udev 56

Thanks
_________________
AMD64 2800 / 1GB RAM / Nvidia 5200
Back to top
View user's profile Send private message
cykoduck
n00b
n00b


Joined: 23 Apr 2005
Posts: 5
Location: Austin, TX

PostPosted: Wed May 18, 2005 4:10 pm    Post subject: Reply with quote

Correction: I am using 2.6.12-r4, I was confusing the r7 with the 2.6.11 kernel i had :)
Back to top
View user's profile Send private message
upgrdman
n00b
n00b


Joined: 10 Apr 2004
Posts: 40
Location: Southern California, USA

PostPosted: Thu May 19, 2005 11:28 pm    Post subject: Reply with quote

using gentoo linux on my amd64, with kernel 2.6.10-gentoo-r6, also tried kerel linux-2.6.11-gentoo-r7.

running make in the pcHDTV-2.0 directory yeilds some worrying warnings:

Code:

...

  CC [M]  /root/pcHDTV-2.0/dvb_ca_en50221.o
/root/pcHDTV-2.0/dvb_ca_en50221.c: In function `dvb_ca_en50221_io_read_condition':
/root/pcHDTV-2.0/dvb_ca_en50221.c:1394: warning: passing arg 3 of `dvb_ringbuffer_pkt_next' from incompatible pointer type
/root/pcHDTV-2.0/dvb_ca_en50221.c:1405: warning: passing arg 3 of `dvb_ringbuffer_pkt_next' from incompatible pointer type
  CC [M]  /root/pcHDTV-2.0/dvb_frontend.o
/root/pcHDTV-2.0/dvb_frontend.c: In function `dvb_frontend_ioctl':
/root/pcHDTV-2.0/dvb_frontend.c:696: warning: cast from pointer to integer of different size
/root/pcHDTV-2.0/dvb_frontend.c:709: warning: cast from pointer to integer of different size
  CC [M]  /root/pcHDTV-2.0/dvb_net.o
/root/pcHDTV-2.0/dvb_net.c: In function `dvb_net_do_ioctl':
/root/pcHDTV-2.0/dvb_net.c:1282: warning: cast from pointer to integer of different size
/root/pcHDTV-2.0/dvb_net.c:1284: warning: cast from pointer to integer of different size

...

  CC [M]  /root/pcHDTV-2.0/or51211.o
/root/pcHDTV-2.0/or51211.c: In function `or51211_load_firmware':
/root/pcHDTV-2.0/or51211.c:113: warning: int format, different type arg (arg 2)

...


modprobe cx88-atsc yeilds the following in dmesg:

Code:
kobject_register failed for v4l1_compat (-17)

Call Trace:<ffffffff801e9786>{kobject_register+70} <ffffffff80147922>{sys_init_module+5058}
       <ffffffff8015cdbb>{__vma_link+75} <ffffffff8015df46>{do_munmap+854}
       <ffffffff8010e1ba>{system_call+126}
pcHDTV HD3000 driver version 2.0.0 loaded
cx88[0]: subsystem: 7063:3000, board: pcHDTV HD3000 HDTV [card=22,autodetected]ACPI: PCI Interrupt Link [APC2] enabled at IRQ 17
ACPI: PCI interrupt 0000:02:09.2[A] -> GSI 17 (level, low) -> IRQ 225
cx88[0]/2: found at 0000:02:09.2, rev: 5, irq: 225, latency: 32, mmio: 0xec000000
cx88[0]/2 FW version: 113-4-194-3
devfs_mk_dev: could not append to parent for v4l/video0
cx88[0]/2: registered device video0 [atsc]
cx88[0]/2: atsc_open - device data
cx88[0]/2: device minor 0
cx88[0]/2: tuner_type 52


attempting to rmmod cx88-atsc yeilds:

Code:
farrell root # rmmod cx88-atsc
Killed
farrell root # rmmod cx88-atsc
ERROR: Removing 'cx88_atsc': Device or resource busy
farrell root # modprobe cx88-dvb

(and it sits there, forever, trying to load cx88-dvb, probably because of issues with the atsc module...)

rebooting and a modprobe cx88-dvb yeild the following in dmesg:

Code:
kobject_register failed for dvb_core (-17)

Call Trace:<ffffffff801e9786>{kobject_register+70} <ffffffff80147922>{sys_init_module+5058}
       <ffffffff801eaf59>{rb_insert_color+201} <ffffffff8015cdbb>{__vma_link+75}
       <ffffffff8015df46>{do_munmap+854} <ffffffff8010e1ba>{system_call+126}

cx2388x dvb driver version 0.0.4 loaded
cx88[0]: subsystem: 7063:3000, board: pcHDTV HD3000 HDTV [card=22,autodetected]
ACPI: PCI Interrupt Link [APC2] enabled at IRQ 17
ACPI: PCI interrupt 0000:02:09.2[A] -> GSI 17 (level, low) -> IRQ 225
cx88[0]/2: found at 0000:02:09.2, rev: 5, irq: 225, latency: 32, mmio: 0xec000000
cx88[0]/2: cx2388x based dvb card
DVB: registering new adapter (cx88[0]).
DVB: registering frontend 0 (pcHDTV HD3000 HDTV)


and I can watch regular (analogue) tv with tvtime or xawtv. but i would like to be able to use HDTV, so I need to get the atsc modules to work, and it would also be nice if the dvb modules would load cleaner (no Call Traces in dmesg...)

thanks,
--farrell f.
Back to top
View user's profile Send private message
smasher
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2003
Posts: 95

PostPosted: Fri May 20, 2005 11:58 am    Post subject: Reply with quote

Quote:
using gentoo linux on my amd64, with kernel 2.6.10-gentoo-r6, also tried kerel linux-2.6.11-gentoo-r7.

running make in the pcHDTV-2.0 directory yeilds some worrying warnings:

Hmm.. when you run make are you running the same kernel version you're compiling for? I know the make script doesn't use the /usr/src/linux symlink for determining the kernel version.

Are these configs options set for your kernel?
Code:
cat /boot/config-2.6.11-gentoo-r7 |grep CX88
CONFIG_VIDEO_CX88=m

Code:
cat /boot/config-2.6.11-gentoo-r7 |grep DVB
CONFIG_DVB=y
CONFIG_DVB_CORE=m
..snip

Code:
cat /boot/config-2.6.11-gentoo-r7 |grep UNLOAD
CONFIG_MODULE_UNLOAD=y
CONFIG_MODULE_FORCE_UNLOAD=n
Back to top
View user's profile Send private message
upgrdman
n00b
n00b


Joined: 10 Apr 2004
Posts: 40
Location: Southern California, USA

PostPosted: Sat May 21, 2005 6:50 am    Post subject: Reply with quote

Yes to all of your questions, see below please :)

Code:
upgrdman@farrell upgrdman $ uname -r
2.6.11-gentoo-r7
upgrdman@farrell upgrdman $ su -
Password:
farrell root # cd pcHDTV-2.0
farrell pcHDTV-2.0 # make clean
rm -f *~ *.o *.ko *.mod.c
rm -f .version .*.o.flags .*.o.d .*.o.cmd .*.ko.cmd
rm -rf .tmp_versions
find . -type l | xargs -r rm
farrell pcHDTV-2.0 # make
ln -s . linux
ln -s . media
ln -s ./usr_hdrs dvb
make -C /lib/modules/2.6.11-gentoo-r7/build SUBDIRS=/root/pcHDTV-2.0 modules
make[1]: Entering directory `/usr/src/linux-2.6.11-gentoo-r7'
  CC [M]  /root/pcHDTV-2.0/video-buf.o
  CC [M]  /root/pcHDTV-2.0/v4l1-compat.o
  CC [M]  /root/pcHDTV-2.0/v4l2-common.o
  CC [M]  /root/pcHDTV-2.0/bttv-driver.o
  CC [M]  /root/pcHDTV-2.0/bttv-cards.o
  CC [M]  /root/pcHDTV-2.0/bttv-risc.o
  CC [M]  /root/pcHDTV-2.0/bttv-if.o
  CC [M]  /root/pcHDTV-2.0/bttv-vbi.o
  CC [M]  /root/pcHDTV-2.0/bttv-i2c.o
  CC [M]  /root/pcHDTV-2.0/bttv-gpio.o
  CC [M]  /root/pcHDTV-2.0/cx88-video.o
  CC [M]  /root/pcHDTV-2.0/cx88-vbi.o
  CC [M]  /root/pcHDTV-2.0/cx88-alsa.o
  CC [M]  /root/pcHDTV-2.0/cx88-mpeg.o
  CC [M]  /root/pcHDTV-2.0/cx88-cards.o
  CC [M]  /root/pcHDTV-2.0/cx88-core.o
  CC [M]  /root/pcHDTV-2.0/cx88-i2c.o
  CC [M]  /root/pcHDTV-2.0/cx88-tvaudio.o
  CC [M]  /root/pcHDTV-2.0/cx88-input.o
  CC [M]  /root/pcHDTV-2.0/dvbdev.o
  CC [M]  /root/pcHDTV-2.0/dmxdev.o
  CC [M]  /root/pcHDTV-2.0/dvb_demux.o
  CC [M]  /root/pcHDTV-2.0/dvb_filter.o
  CC [M]  /root/pcHDTV-2.0/dvb_ca_en50221.o
/root/pcHDTV-2.0/dvb_ca_en50221.c: In function `dvb_ca_en50221_io_read_condition':
/root/pcHDTV-2.0/dvb_ca_en50221.c:1394: warning: passing arg 3 of `dvb_ringbuffer_pkt_next' from incompatible pointer type
/root/pcHDTV-2.0/dvb_ca_en50221.c:1405: warning: passing arg 3 of `dvb_ringbuffer_pkt_next' from incompatible pointer type
  CC [M]  /root/pcHDTV-2.0/dvb_frontend.o
/root/pcHDTV-2.0/dvb_frontend.c: In function `dvb_frontend_ioctl':
/root/pcHDTV-2.0/dvb_frontend.c:696: warning: cast from pointer to integer of different size
/root/pcHDTV-2.0/dvb_frontend.c:709: warning: cast from pointer to integer of different size
  CC [M]  /root/pcHDTV-2.0/dvb_net.o
/root/pcHDTV-2.0/dvb_net.c: In function `dvb_net_do_ioctl':
/root/pcHDTV-2.0/dvb_net.c:1282: warning: cast from pointer to integer of different size
/root/pcHDTV-2.0/dvb_net.c:1284: warning: cast from pointer to integer of different size
  CC [M]  /root/pcHDTV-2.0/dvb_ringbuffer.o
  CC [M]  /root/pcHDTV-2.0/saa7134-core.o
  CC [M]  /root/pcHDTV-2.0/saa7134-i2c.o
  CC [M]  /root/pcHDTV-2.0/saa7134-video.o
  CC [M]  /root/pcHDTV-2.0/saa7134-vbi.o
  CC [M]  /root/pcHDTV-2.0/saa7134-tvaudio.o
  CC [M]  /root/pcHDTV-2.0/saa7134-oss.o
  CC [M]  /root/pcHDTV-2.0/saa7134-cards.o
  CC [M]  /root/pcHDTV-2.0/saa7134-ts.o
  CC [M]  /root/pcHDTV-2.0/saa7134-input.o
  CC [M]  /root/pcHDTV-2.0/tuner-core.o
  CC [M]  /root/pcHDTV-2.0/tuner-simple.o
  CC [M]  /root/pcHDTV-2.0/mt20xx.o
  CC [M]  /root/pcHDTV-2.0/tda8290.o
  LD [M]  /root/pcHDTV-2.0/dvb-core.o
  CC [M]  /root/pcHDTV-2.0/cx88-atsc.o
  CC [M]  /root/pcHDTV-2.0/dst.o
  CC [M]  /root/pcHDTV-2.0/bt878.o
  CC [M]  /root/pcHDTV-2.0/dvb-bt8xx.o
  CC [M]  /root/pcHDTV-2.0/or51211.o
/root/pcHDTV-2.0/or51211.c: In function `or51211_load_firmware':
/root/pcHDTV-2.0/or51211.c:113: warning: int format, different type arg (arg 2)
  CC [M]  /root/pcHDTV-2.0/sp887x.o
  CC [M]  /root/pcHDTV-2.0/nxt6000.o
  CC [M]  /root/pcHDTV-2.0/cx24110.o
  CC [M]  /root/pcHDTV-2.0/btcx-risc.o
  CC [M]  /root/pcHDTV-2.0/ir-common.o
  LD [M]  /root/pcHDTV-2.0/bttv.o
  CC [M]  /root/pcHDTV-2.0/tveeprom.o
  LD [M]  /root/pcHDTV-2.0/cx88xx.o
  LD [M]  /root/pcHDTV-2.0/cx8800.o
  LD [M]  /root/pcHDTV-2.0/cx8801.o
  LD [M]  /root/pcHDTV-2.0/cx8802.o
  CC [M]  /root/pcHDTV-2.0/cx88-blackbird.o
  LD [M]  /root/pcHDTV-2.0/saa7134.o
  CC [M]  /root/pcHDTV-2.0/saa7134-empress.o
  CC [M]  /root/pcHDTV-2.0/saa6752hs.o
  LD [M]  /root/pcHDTV-2.0/tuner.o
  CC [M]  /root/pcHDTV-2.0/tda9887.o
  CC [M]  /root/pcHDTV-2.0/msp3400.o
  CC [M]  /root/pcHDTV-2.0/tvaudio.o
  CC [M]  /root/pcHDTV-2.0/tvmixer.o
  CC [M]  /root/pcHDTV-2.0/video-buf-dvb.o
  CC [M]  /root/pcHDTV-2.0/cx88-dvb.o
  CC [M]  /root/pcHDTV-2.0/cx22702.o
  CC [M]  /root/pcHDTV-2.0/dvb-pll.o
  CC [M]  /root/pcHDTV-2.0/or51132.o
  CC [M]  /root/pcHDTV-2.0/saa7134-dvb.o
  CC [M]  /root/pcHDTV-2.0/mt352.o
  CC [M]  /root/pcHDTV-2.0/tda1004x.o
  CC [M]  /root/pcHDTV-2.0/ir-kbd-gpio.o
  CC [M]  /root/pcHDTV-2.0/ir-kbd-i2c.o
  Building modules, stage 2.
  MODPOST
  CC      /root/pcHDTV-2.0/bt878.mod.o
  LD [M]  /root/pcHDTV-2.0/bt878.ko
  CC      /root/pcHDTV-2.0/btcx-risc.mod.o
  LD [M]  /root/pcHDTV-2.0/btcx-risc.ko
  CC      /root/pcHDTV-2.0/bttv.mod.o
  LD [M]  /root/pcHDTV-2.0/bttv.ko
  CC      /root/pcHDTV-2.0/cx22702.mod.o
  LD [M]  /root/pcHDTV-2.0/cx22702.ko
  CC      /root/pcHDTV-2.0/cx24110.mod.o
  LD [M]  /root/pcHDTV-2.0/cx24110.ko
  CC      /root/pcHDTV-2.0/cx88-atsc.mod.o
  LD [M]  /root/pcHDTV-2.0/cx88-atsc.ko
  CC      /root/pcHDTV-2.0/cx88-blackbird.mod.o
  LD [M]  /root/pcHDTV-2.0/cx88-blackbird.ko
  CC      /root/pcHDTV-2.0/cx88-dvb.mod.o
  LD [M]  /root/pcHDTV-2.0/cx88-dvb.ko
  CC      /root/pcHDTV-2.0/cx8800.mod.o
  LD [M]  /root/pcHDTV-2.0/cx8800.ko
  CC      /root/pcHDTV-2.0/cx8801.mod.o
  LD [M]  /root/pcHDTV-2.0/cx8801.ko
  CC      /root/pcHDTV-2.0/cx8802.mod.o
  LD [M]  /root/pcHDTV-2.0/cx8802.ko
  CC      /root/pcHDTV-2.0/cx88xx.mod.o
  LD [M]  /root/pcHDTV-2.0/cx88xx.ko
  CC      /root/pcHDTV-2.0/dst.mod.o
  LD [M]  /root/pcHDTV-2.0/dst.ko
  CC      /root/pcHDTV-2.0/dvb-bt8xx.mod.o
  LD [M]  /root/pcHDTV-2.0/dvb-bt8xx.ko
  CC      /root/pcHDTV-2.0/dvb-core.mod.o
  LD [M]  /root/pcHDTV-2.0/dvb-core.ko
  CC      /root/pcHDTV-2.0/dvb-pll.mod.o
  LD [M]  /root/pcHDTV-2.0/dvb-pll.ko
  CC      /root/pcHDTV-2.0/ir-common.mod.o
  LD [M]  /root/pcHDTV-2.0/ir-common.ko
  CC      /root/pcHDTV-2.0/ir-kbd-gpio.mod.o
  LD [M]  /root/pcHDTV-2.0/ir-kbd-gpio.ko
  CC      /root/pcHDTV-2.0/ir-kbd-i2c.mod.o
  LD [M]  /root/pcHDTV-2.0/ir-kbd-i2c.ko
  CC      /root/pcHDTV-2.0/msp3400.mod.o
  LD [M]  /root/pcHDTV-2.0/msp3400.ko
  CC      /root/pcHDTV-2.0/mt352.mod.o
  LD [M]  /root/pcHDTV-2.0/mt352.ko
  CC      /root/pcHDTV-2.0/nxt6000.mod.o
  LD [M]  /root/pcHDTV-2.0/nxt6000.ko
  CC      /root/pcHDTV-2.0/or51132.mod.o
  LD [M]  /root/pcHDTV-2.0/or51132.ko
  CC      /root/pcHDTV-2.0/or51211.mod.o
  LD [M]  /root/pcHDTV-2.0/or51211.ko
  CC      /root/pcHDTV-2.0/saa6752hs.mod.o
  LD [M]  /root/pcHDTV-2.0/saa6752hs.ko
  CC      /root/pcHDTV-2.0/saa7134-dvb.mod.o
  LD [M]  /root/pcHDTV-2.0/saa7134-dvb.ko
  CC      /root/pcHDTV-2.0/saa7134-empress.mod.o
  LD [M]  /root/pcHDTV-2.0/saa7134-empress.ko
  CC      /root/pcHDTV-2.0/saa7134.mod.o
  LD [M]  /root/pcHDTV-2.0/saa7134.ko
  CC      /root/pcHDTV-2.0/sp887x.mod.o
  LD [M]  /root/pcHDTV-2.0/sp887x.ko
  CC      /root/pcHDTV-2.0/tda1004x.mod.o
  LD [M]  /root/pcHDTV-2.0/tda1004x.ko
  CC      /root/pcHDTV-2.0/tda9887.mod.o
  LD [M]  /root/pcHDTV-2.0/tda9887.ko
  CC      /root/pcHDTV-2.0/tuner.mod.o
  LD [M]  /root/pcHDTV-2.0/tuner.ko
  CC      /root/pcHDTV-2.0/tvaudio.mod.o
  LD [M]  /root/pcHDTV-2.0/tvaudio.ko
  CC      /root/pcHDTV-2.0/tveeprom.mod.o
  LD [M]  /root/pcHDTV-2.0/tveeprom.ko
  CC      /root/pcHDTV-2.0/tvmixer.mod.o
  LD [M]  /root/pcHDTV-2.0/tvmixer.ko
  CC      /root/pcHDTV-2.0/v4l1-compat.mod.o
  LD [M]  /root/pcHDTV-2.0/v4l1-compat.ko
  CC      /root/pcHDTV-2.0/v4l2-common.mod.o
  LD [M]  /root/pcHDTV-2.0/v4l2-common.ko
  CC      /root/pcHDTV-2.0/video-buf-dvb.mod.o
  LD [M]  /root/pcHDTV-2.0/video-buf-dvb.ko
  CC      /root/pcHDTV-2.0/video-buf.mod.o
  LD [M]  /root/pcHDTV-2.0/video-buf.ko
make[1]: Leaving directory `/usr/src/linux-2.6.11-gentoo-r7'
farrell pcHDTV-2.0 # make install
strip --strip-debug bt878.ko btcx-risc.ko bttv.ko cx22702.ko cx24110.ko cx88-atsc.ko cx88-blackbird.ko cx88-dvb.ko cx8800.ko cx8801.ko cx8802.ko cx88xx.ko dst.ko dvb-bt8xx.ko dvb-core.ko dvb-pll.ko ir-common.ko ir-kbd-gpio.ko ir-kbd-i2c.ko msp3400.ko mt352.ko nxt6000.ko or51132.ko or51211.ko saa6752hs.ko saa7134-dvb.ko saa7134-empress.ko saa7134.ko sp887x.ko tda1004x.ko tda9887.ko tuner.ko tvaudio.ko tveeprom.ko tvmixer.ko v4l1-compat.ko v4l2-common.ko video-buf-dvb.ko video-buf.ko
su -c "mkdir -p /lib/modules/2.6.11-gentoo-r7/v4l2; cp -v bt878.ko btcx-risc.ko bttv.ko cx22702.ko cx24110.ko cx88-atsc.ko cx88-blackbird.ko cx88-dvb.ko cx8800.ko cx8801.ko cx8802.ko cx88xx.ko dst.ko dvb-bt8xx.ko dvb-core.ko dvb-pll.ko ir-common.ko ir-kbd-gpio.ko ir-kbd-i2c.ko msp3400.ko mt352.ko nxt6000.ko or51132.ko or51211.ko saa6752hs.ko saa7134-dvb.ko saa7134-empress.ko saa7134.ko sp887x.ko tda1004x.ko tda9887.ko tuner.ko tvaudio.ko tveeprom.ko tvmixer.ko v4l1-compat.ko v4l2-common.ko video-buf-dvb.ko video-buf.ko /lib/modules/2.6.11-gentoo-r7/v4l2;"
`bt878.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/bt878.ko'
`btcx-risc.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/btcx-risc.ko'
`bttv.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/bttv.ko'
`cx22702.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/cx22702.ko'
`cx24110.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/cx24110.ko'
`cx88-atsc.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/cx88-atsc.ko'
`cx88-blackbird.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/cx88-blackbird.ko'
`cx88-dvb.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/cx88-dvb.ko'
`cx8800.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/cx8800.ko'
`cx8801.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/cx8801.ko'
`cx8802.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/cx8802.ko'
`cx88xx.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/cx88xx.ko'
`dst.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/dst.ko'
`dvb-bt8xx.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/dvb-bt8xx.ko'
`dvb-core.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/dvb-core.ko'
`dvb-pll.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/dvb-pll.ko'
`ir-common.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/ir-common.ko'
`ir-kbd-gpio.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/ir-kbd-gpio.ko'
`ir-kbd-i2c.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/ir-kbd-i2c.ko'
`msp3400.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/msp3400.ko'
`mt352.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/mt352.ko'
`nxt6000.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/nxt6000.ko'
`or51132.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/or51132.ko'
`or51211.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/or51211.ko'
`saa6752hs.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/saa6752hs.ko'
`saa7134-dvb.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/saa7134-dvb.ko'
`saa7134-empress.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/saa7134-empress.ko'
`saa7134.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/saa7134.ko'
`sp887x.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/sp887x.ko'
`tda1004x.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/tda1004x.ko'
`tda9887.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/tda9887.ko'
`tuner.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/tuner.ko'
`tvaudio.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/tvaudio.ko'
`tveeprom.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/tveeprom.ko'
`tvmixer.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/tvmixer.ko'
`v4l1-compat.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/v4l1-compat.ko'
`v4l2-common.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/v4l2-common.ko'
`video-buf-dvb.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/video-buf-dvb.ko'
`video-buf.ko' -> `/lib/modules/2.6.11-gentoo-r7/v4l2/video-buf.ko'
su -c "ls /lib/modules/2.6.11-gentoo-r7/v4l2/*.ko |\
xargs -n1 basename |\
xargs -n1 find /lib/modules/2.6.11-gentoo-r7/kernel/drivers -name |\
xargs -n1 rm -vf"
removed `/lib/modules/2.6.11-gentoo-r7/kernel/drivers/media/video/btcx-risc.ko'
removed `/lib/modules/2.6.11-gentoo-r7/kernel/drivers/media/video/cx88/cx88-blackbird.ko'
removed `/lib/modules/2.6.11-gentoo-r7/kernel/drivers/media/video/cx88/cx8800.ko'
removed `/lib/modules/2.6.11-gentoo-r7/kernel/drivers/media/video/cx88/cx8802.ko'
removed `/lib/modules/2.6.11-gentoo-r7/kernel/drivers/media/video/cx88/cx88xx.ko'
removed `/lib/modules/2.6.11-gentoo-r7/kernel/drivers/media/dvb/dvb-core/dvb-core.ko'
removed `/lib/modules/2.6.11-gentoo-r7/kernel/drivers/media/video/tda9887.ko'
removed `/lib/modules/2.6.11-gentoo-r7/kernel/drivers/media/video/tuner.ko'
removed `/lib/modules/2.6.11-gentoo-r7/kernel/drivers/media/video/video-buf.ko'
su -c "/sbin/depmod -e 2.6.11-gentoo-r7"
su -c "mkdir -p /usr/include/linux/dvb; cp -v usr_hdrs/audio.h usr_hdrs/dmx.h usr_hdrs/net.h usr_hdrs/version.h usr_hdrs/ca.h usr_hdrs/frontend.h usr_hdrs/osd.h  usr_hdrs/video.h /usr/include/linux/dvb"
`usr_hdrs/audio.h' -> `/usr/include/linux/dvb/audio.h'
`usr_hdrs/dmx.h' -> `/usr/include/linux/dvb/dmx.h'
`usr_hdrs/net.h' -> `/usr/include/linux/dvb/net.h'
`usr_hdrs/version.h' -> `/usr/include/linux/dvb/version.h'
`usr_hdrs/ca.h' -> `/usr/include/linux/dvb/ca.h'
`usr_hdrs/frontend.h' -> `/usr/include/linux/dvb/frontend.h'
`usr_hdrs/osd.h' -> `/usr/include/linux/dvb/osd.h'
`usr_hdrs/video.h' -> `/usr/include/linux/dvb/video.h'
su -c "mkdir -p /lib/firmware; cp -v firmware/dvb-fe-or51132-qam.fw firmware/dvb-fe-or51132-vsb.fw firmware/dvb-fe-or51211.fw /lib/firmware"
`firmware/dvb-fe-or51132-qam.fw' -> `/lib/firmware/dvb-fe-or51132-qam.fw'
`firmware/dvb-fe-or51132-vsb.fw' -> `/lib/firmware/dvb-fe-or51132-vsb.fw'
`firmware/dvb-fe-or51211.fw' -> `/lib/firmware/dvb-fe-or51211.fw'
su -c "mkdir -p /usr/include/linux; cp -v videodev2.h videodev.h /usr/include/linux"
`videodev2.h' -> `/usr/include/linux/videodev2.h'
`videodev.h' -> `/usr/include/linux/videodev.h'
su -c "patch -Np0 /usr/include/linux/videodev2.h <videodev2-patch"
patching file /usr/include/linux/videodev2.h
su -c "./scripts/patch_modprobe.sh"

farrell pcHDTV-2.0 # modprobe cx88-atsc
farrell pcHDTV-2.0 # dmesg | tail -n 40
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode
agpgart: Found an AGP 3.0 compliant device at 0000:00:00.0.
agpgart: Putting AGP V3 device at 0000:00:00.0 into 8x mode
agpgart: Putting AGP V3 device at 0000:01:00.0 into 8x mode
eth0: no IPv6 routers present
kobject_register failed for v4l1_compat (-17)

Call Trace:<ffffffff801ee786>{kobject_register+70} <ffffffff801485e9>{sys_init_module+5097}
       <ffffffff80150b91>{generic_file_aio_read+49} <ffffffff8015f996>{do_munmap+854}
       <ffffffff8010e1fa>{system_call+126}
kobject_register failed for v4l1_compat (-17)

Call Trace:<ffffffff801ee786>{kobject_register+70} <ffffffff801485e9>{sys_init_module+5097}
       <ffffffff8015d0e0>{handle_mm_fault+400} <ffffffff8015f996>{do_munmap+854}
       <ffffffff8010e1fa>{system_call+126}
cx2388x v4l2 driver version 0.0.4 loaded
ACPI: PCI Interrupt Link [APC2] enabled at IRQ 17
ACPI: PCI interrupt 0000:02:09.0[A] -> GSI 17 (level, low) -> IRQ 225
cx88[0]: subsystem: 7063:3000, board: pcHDTV HD3000 HDTV [card=22,autodetected]
tuner 3-0061: chip found @ 0xc2 (cx88[0])
tuner 3-0061: type set to 52 (Thomson DDT 7610 (ATSC/NTSC))
cx88[0]/0: found at 0000:02:09.0, rev: 5, irq: 225, latency: 32, mmio: 0xeb000000
devfs_mk_dev: could not append to parent for v4l/video0
cx88[0]/0: registered device video0 [v4l2]
cx88[0]/0: registered device vbi0
cx88[0]/0: registered device radio0
kobject_register failed for v4l1_compat (-17)

Call Trace:<ffffffff801ee786>{kobject_register+70} <ffffffff801485e9>{sys_init_module+5097}
       <ffffffff8015d0e0>{handle_mm_fault+400} <ffffffff8015f996>{do_munmap+854}
       <ffffffff8010e1fa>{system_call+126}
pcHDTV HD3000 driver version 2.0.0 loaded
ACPI: PCI interrupt 0000:02:09.2[A] -> GSI 17 (level, low) -> IRQ 225
cx88[0]/2: found at 0000:02:09.2, rev: 5, irq: 225, latency: 32, mmio: 0xec000000
cx88[0]/2 FW version: 113-4-194-3
cx88[0]/2: registered device video1 [atsc]
cx88[0]/2: atsc_open - device data
cx88[0]/2: device minor 1
cx88[0]/2: tuner_type 52
farrell pcHDTV-2.0 # cat /usr/src/linux-2.6.11-gentoo-r7/.config | grep CX88
CONFIG_VIDEO_CX88=m
farrell pcHDTV-2.0 # cat /usr/src/linux-2.6.11-gentoo-r7/.config | grep DVB
CONFIG_DVB=y
CONFIG_DVB_CORE=m
# CONFIG_DVB_AV7110 is not set
# CONFIG_DVB_BUDGET is not set
# CONFIG_DVB_BUDGET_CI is not set
# CONFIG_DVB_BUDGET_AV is not set
# CONFIG_DVB_TTUSB_BUDGET is not set
# CONFIG_DVB_TTUSB_DEC is not set
# CONFIG_DVB_DIBUSB is not set
# CONFIG_DVB_CINERGYT2 is not set
# CONFIG_DVB_B2C2_SKYSTAR is not set
# CONFIG_DVB_B2C2_USB is not set
# Supported DVB Frontends
# Customise DVB Frontends
# DVB-S (satellite) frontends
# CONFIG_DVB_STV0299 is not set
# CONFIG_DVB_CX24110 is not set
# CONFIG_DVB_TDA8083 is not set
# CONFIG_DVB_TDA80XX is not set
# CONFIG_DVB_MT312 is not set
# CONFIG_DVB_VES1X93 is not set
# DVB-T (terrestrial) frontends
# CONFIG_DVB_SP8870 is not set
# CONFIG_DVB_SP887X is not set
# CONFIG_DVB_CX22700 is not set
# CONFIG_DVB_CX22702 is not set
# CONFIG_DVB_L64781 is not set
# CONFIG_DVB_TDA1004X is not set
# CONFIG_DVB_NXT6000 is not set
# CONFIG_DVB_MT352 is not set
# CONFIG_DVB_DIB3000MB is not set
# CONFIG_DVB_DIB3000MC is not set
# DVB-C (cable) frontends
# CONFIG_DVB_ATMEL_AT76C651 is not set
# CONFIG_DVB_VES1820 is not set
# CONFIG_DVB_TDA10021 is not set
# CONFIG_DVB_STV0297 is not set
# CONFIG_DVB_NXT2002 is not set
farrell pcHDTV-2.0 # cat /usr/src/linux-2.6.11-gentoo-r7/.config | grep UNLOAD
CONFIG_MODULE_UNLOAD=y
# CONFIG_MODULE_FORCE_UNLOAD is not set
farrell pcHDTV-2.0 # lsmod
Module                  Size  Used by
cx88_atsc              14596  0
cx8800                 28748  0
cx8802                  8068  1 cx88_atsc
cx88xx                 50400  3 cx88_atsc,cx8800,cx8802
video_buf              19012  4 cx88_atsc,cx8800,cx8802,cx88xx
ir_common               6148  1 cx88xx
btcx_risc               4232  3 cx8800,cx8802,cx88xx
tuner                  27368  0
tveeprom               13912  1 cx88xx
v4l2_common             6272  0
nvidia               4050268  12
nfsd                   65096  9
exportfs                4992  1 nfsd
raw1394                22424  0
dv1394                 18872  0
video1394              16504  0
ohci1394               29508  2 dv1394,video1394
ieee1394               94352  4 raw1394,dv1394,video1394,ohci1394
nls_iso8859_1           5248  0
nls_cp437               6976  0
joydev                  9472  0
it87                   25884  0
i2c_sensor              3200  1 it87
i2c_isa                 2432  0
vfat                   12032  0
fat                    35184  1 vfat
usbhid                 33024  0
wacom                  12224  0
evdev                   8768  1
psmouse                26188  0
farrell pcHDTV-2.0 #


and in case it's not appearent, even though cx88_atsc appears in the lsmod output, there it *NOT* a /dev/dtv :(

Thanks again,
--Farrell F.
Back to top
View user's profile Send private message
smasher
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2003
Posts: 95

PostPosted: Sat May 21, 2005 6:48 pm    Post subject: Reply with quote

Do you have /dev/v4l/video1? video0 will be the analog tuner and video1 will be atsc tuner.

Code:
ls /dev/v4l/ -l
total 0
crw-rw----  1 smasher     video 81,  64 May 11 21:57 radio0
crw-------  1 smasher video   81, 224 May  4 10:51 vbi0
crw-------  1 smasher video   81,   0 May  4 10:51 video
crw-------  1 smasher video   81,   0 May  4 10:51 video0
crw-------  1 smasher video   81,   1 May 18 12:15 video1


Or you running devfs or udev? If using udev, try running udevstart.
Back to top
View user's profile Send private message
upgrdman
n00b
n00b


Joined: 10 Apr 2004
Posts: 40
Location: Southern California, USA

PostPosted: Sat May 21, 2005 9:05 pm    Post subject: Reply with quote

I do not think I'm using udev, but a "udev [tab]" in my colsole does show some utilities:

Code:
farrell root # udev
udev            udevd           udevsend        udevtest
udev_volume_id  udevinfo        udevstart
farrell root # udev


So I checked with make menuconfig, and I see:

Code:
[*] /dev file system support (OBSOLETE)
[*]   Automatically mount at boot


and heres what I have for v4l:

Code:
farrell root # ls /dev/v4l/ -l
total 0
crw-rw----  1 root video 81,  64 Dec 31  1969 radio0
crw-rw----  1 root video 81, 224 Dec 31  1969 vbi0
crw-rw----  1 root video 81,   0 May 20 16:38 video0
crw-rw----  1 root video 81,   1 Dec 31  1969 video1
farrell root #


So since I have a video1, should I attempt to compile and install xine-hd? Anything I need to do differently from the READMEs for my card or the docs in the xine-hd package?

Thanks,
--Farrell F.
Back to top
View user's profile Send private message
smasher
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2003
Posts: 95

PostPosted: Mon May 23, 2005 2:16 am    Post subject: Reply with quote

Quote:
So since I have a video1, should I attempt to compile and install xine-hd? Anything I need to do differently from the READMEs for my card or the docs in the xine-hd package?

I would make the /dev/dtv link to /dev/v4l/video1 and test the atsc tools first.

Ie, run "dtvscan /dev/dtv" This will also verify you're getting a signal.
Back to top
View user's profile Send private message
upgrdman
n00b
n00b


Joined: 10 Apr 2004
Posts: 40
Location: Southern California, USA

PostPosted: Mon May 23, 2005 7:34 am    Post subject: Reply with quote

ok, I made the /dev/dtv link, and I get this with dtvscan:

Code:
farrell root # ln -s /dev/v4l/video1 /dev/dtv
farrell root # ls -l /dev/dtv
lr-xr-xr-x  1 root root 15 May 23 00:25 /dev/dtv -> /dev/v4l/video1
farrell root # dtvscan /dev/dtv
main: argc 2 argv[1] /dev/dtv
channel = 2
channel = 3
channel = 4
[. . .]
channel = 80
channel = 81
channel = 82
channel = 83

farrell root #


but then I get this really weird output when I try dtvsignal:

Code:
farrell root # dtvsignal /dev/dtv 7.1
main: argc 3 argv[1] /dev/dtv
channel 7
freq*16 = 2804
main: ioctl 1 rtn 0
main: ioctl 2 rtn 0
dtvsignal ver 0.2 - by Jack Kelliher (c) 2002
channel = 7 freq*16 = 2804
Signal:           |    .    :    .    |    .____:____.____|
Signal > 100
Signal > 100$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Signal > 100$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Signal > 100$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
[. . .]
Signal > 100$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Signal > 100$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Signal > 100$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Signal > 100$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Signal: 100 $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
farrell root #


and those repeated lines repeat _very_ fast... I Ctrl-C'd in a fraction of a second, and hundreds if not thousands of those lines were spit out.

and, yes, channel 7.1 does exist in my area, its ABC. I checked with antennaweb.org...

Thanks again,
--Farrell F.
Back to top
View user's profile Send private message
upgrdman
n00b
n00b


Joined: 10 Apr 2004
Posts: 40
Location: Southern California, USA

PostPosted: Mon May 23, 2005 8:05 am    Post subject: Reply with quote

um, well now I fell a little dumb. I rebuilt my "tools" package, and now I get something better:

Code:
farrell tools-2.6-a # dtvsignal /dev/v4l/video1 9.1
main: argc 3 argv[1] /dev/v4l/video1
channel 9
freq*16 = 2996
main: ioctl 1 rtn 0
main: ioctl 2 rtn 0
dtvsignal ver 0.2 - by Jack Kelliher (c) 2002
channel = 9 freq*16 = 2996
Signal:           |    .    :    .    |    .____:____.____|
Signal: 022 -----------


I'll work on moving my antenna around and see if signal quality improves any...

thanks,
--farrell f.
Back to top
View user's profile Send private message
upgrdman
n00b
n00b


Joined: 10 Apr 2004
Posts: 40
Location: Southern California, USA

PostPosted: Mon May 23, 2005 8:19 am    Post subject: Reply with quote

now with my recompiled tools, dtvscan found about 10 decent channels that dtvsignal shows receptions levels of 070 or more... the highest being 083. now im gonna work on install xine-hd and mess around.

weird things is the NONE of the channel i get decent recption for are listed on antennaweb...

thanks,
--farrell f.
Back to top
View user's profile Send private message
upgrdman
n00b
n00b


Joined: 10 Apr 2004
Posts: 40
Location: Southern California, USA

PostPosted: Mon May 23, 2005 9:26 am    Post subject: Reply with quote

sorry to keep replying... so far im very happy... I can record broadcasts with getatsc, and view the .ts file with xine and mplayer very nicely. still trying to get xine to be able to watch stuff live...

only two questions left, aside from live tuning with xine:

I can noticably see the compression artifacts, is this normal? i'm not talking about glitching from dropped packets, i expected that, but I mean it doesnt looks like a dvd. its not bad, but its just that i can see the effect of mpeg or whatever compression. just curious if this is normal, and why? certain bandwidth constraints, or is it just that broadcasters are using cheap encoders or something?

lastly, on some channels, it looks as though they have more than one video stream, each with its own audio stream(s) ... like one of the PBS channels seems like it broadcasting both HD and SD, and xine gets confused. It will play the SD video, but without sound, and if click on the timeline the video stops but I hear audio from the HD video for a few seconds before xine dies. Mplayer does better and plays the right audio stream with the right video stream to begin with, and doesn't die when I fast-forward, etc... and I have this one .ts file that plays one video stream by default with xine, and another by defualt with mplayer. so is this normal, and if so, how so i select which stream to watch? preferably, how to do so with mplayer/gmplayer. is it like dvd "angles" ?

btw, i have the .ts, and can also do a xvidcap to show how it plays different streams in xine or mplayer, if anyone wants to look. :)

thanks, and sorry for all the posts,
--farrell f.
Back to top
View user's profile Send private message
smasher
Tux's lil' helper
Tux's lil' helper


Joined: 15 Nov 2003
Posts: 95

PostPosted: Mon May 23, 2005 1:35 pm    Post subject: Reply with quote

Quote:
I can noticably see the compression artifacts, is this normal? i'm not talking about glitching from dropped packets, i expected that, but I mean it doesnt looks like a dvd. its not bad, but its just that i can see the effect of mpeg or whatever compression. just curious if this is normal, and why? certain bandwidth constraints, or is it just that broadcasters are using cheap encoders or something?

Artifacts can come from weak signal or a slow decoder. Do you have a nvidia card? You can try the Xvmc video option can improve the video quality. As for the quality of the mpeg from the broadcasters, it's all depends on them. They don't all do it the same.

Quote:
lastly, on some channels, it looks as though they have more than one video stream, each with its own audio stream(s) ... like one of the PBS channels seems like it broadcasting both HD and SD, and xine gets confused. It will play the SD video, but without sound, and if click on the timeline the video stops but I hear audio from the HD video for a few seconds before xine dies. Mplayer does better and plays the right audio stream with the right video stream to begin with, and doesn't die when I fast-forward, etc... and I have this one .ts file that plays one video stream by default with xine, and another by defualt with mplayer. so is this normal, and if so, how so i select which stream to watch? preferably, how to do so with mplayer/gmplayer. is it like dvd "angles" ?

For receiveing direct broadcasts (not saving to a file first) from my experience I think xine-hd is buggy, which is why I don't use it. I prefer to use mplayer because it handles switching frame rates better. I just haven't figured out how to change channels with mplayer running. So I built a little kdialog script to allow me to select what channel I want.

If I remember correctly xine will handle substreams by adding .X to the channel number, ie 42.1 or 42.3... Mplayer is supposed to handle substreams like this:
Quote:
I not able to test this but -tsprog 0 is supposed to set the subchannel your are requesting. Here's an example for channel 42.3.
Code:
Code:
getatsc /dev/dtv 42|mplayer -vo xv -framedrop -vf pp=lb -autoq 6 -tsprog 3 -noconsolecontrols /dev/stdin
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum