Saturday, October 01, 2005

Kernel upgrade to 2.6.12 (built-in DVB drivers)

Kernel upgrade to 2.6.12

Before upgrade:
[root@myth ~]# uname -a
Linux myth.donnlee.com 2.6.11-1.14_FC3 #1 Thu Apr 7 19:23:49 EDT 2005 i686 athlon i386 GNU/Linux

Look for latest version:
# yum search kernel | egrep "^kernel"

kernel.i586 2.6.12-1.1376_FC3 updates-released
kernel.i586 2.6.12-1.1378_FC3 updates-released

[root@myth ~]# yum upgrade kernel

Prev dmesg:
Linux video capture interface: v1.00
cx2388x v4l2 driver version 0.0.4 loaded <<<<<<<<<<<<<<<<
ACPI: PCI interrupt 0000:00:09.0[A] -> GSI 12 (level, low) -> IRQ 12
cx88[0]: subsystem: 7063:3000, board: pcHDTV HD3000 HDTV [card=22,autodetected]
tuner 1-0061: chip found @ 0xc2 (cx88[0])
tuner 1-0061: type set to 52 (Thomson DDT 7610 (ATSC/NTSC))
cx88[0]/0: found at 0000:00:09.0, rev: 5, irq: 12, latency: 32, mmio: 0xe2000000
cx88[0]/0: registered device video0 [v4l2]
cx88[0]/0: registered device vbi0
cx88[0]/0: registered device radio0
ACPI: PCI interrupt 0000:00:0c.0[A] -> GSI 10 (level, low) -> IRQ 10
cx88[1]: subsystem: 7063:3000, board: pcHDTV HD3000 HDTV [card=22,autodetected]
tuner 2-0061: chip found @ 0xc2 (cx88[1])
tuner 2-0061: type set to 52 (Thomson DDT 7610 (ATSC/NTSC))
cx88[1]/0: found at 0000:00:0c.0, rev: 5, irq: 10, latency: 32, mmio: 0xe4000000
cx88[1]/0: registered device video1 [v4l2]
cx88[1]/0: registered device vbi1
cx88[1]/0: registered device radio1
cx2388x dvb driver version 0.0.4 loaded <<<<<<<<<<<<<<<<<<<<<<<<
ACPI: PCI interrupt 0000:00:09.2[A] -> GSI 12 (level, low) -> IRQ 12
cx88[0]/2: found at 0000:00:09.2, rev: 5, irq: 12, latency: 32, mmio: 0xe3000000
cx88[0]/2: cx2388x based dvb card
DVB: registering new adapter (cx88[0]).
DVB: registering frontend 0 (pcHDTV HD3000 HDTV)...
ACPI: PCI interrupt 0000:00:0c.2[A] -> GSI 10 (level, low) -> IRQ 10
cx88[1]/2: found at 0000:00:0c.2, rev: 5, irq: 10, latency: 32, mmio: 0xe5000000
cx88[1]/2: cx2388x based dvb card
DVB: registering new adapter (cx88[1]).
DVB: registering frontend 1 (pcHDTV HD3000 HDTV)...
or51132: Waiting for firmware upload(dvb-fe-or51132-vsb.fw)...
or51132: Version: 10001134-19430000 (113-4-194-3) <<<<<<<<<<<<<<<<<<<
or51132: Firmware upload complete.
or51132: Waiting for firmware upload(dvb-fe-or51132-vsb.fw)...
or51132: Version: 10001134-19430000 (113-4-194-3) <<<<<<<<<<<<<<<<<<<
or51132: Firmware upload complete.

Comment out old drivers in rc.local:
# Removed on 10/1/05 during kernel 2.6.12 upgrade (drivers now included in kernel).
#modprobe cx88-dvb

Yum install:
Installed: kernel.i686 0:2.6.12-1.1378_FC3
Dependency Updated: mkinitrd.i386 0:4.1.18.1-1 selinux-policy-targeted.noarch 0:1.17.30-3.16
Complete!
[root@myth ~]#

Reboot.

Now:

[root@myth ~]# uname -a
Linux myth.donnlee.com 2.6.12-1.1378_FC3 #1 Wed Sep 14 04:24:31 EDT 2005 i686 athlon i386 GNU/Linux

New dmesg shows same driver version, but no mention of 'firmware':

Linux video capture interface: v1.00
cx2388x blackbird driver version 0.0.4 loaded <<<<<<<<<<<<<<<<<<<<<
cx88[0]: subsystem: 7063:3000, board: pcHDTV HD3000 HDTV [card=22,autodetected]
tuner 1-0061: chip found @ 0xc2 (cx88[0])
tuner 1-0061: type set to 52 (Thomson DDT 7610 (ATSC/NTSC))
cx88[0]: subsystem: 7063:3000, board: pcHDTV HD3000 HDTV [card=22,autodetected]
tuner 1-0061: chip found @ 0xc2 (cx88[0])
tuner 1-0061: type set to 52 (Thomson DDT 7610 (ATSC/NTSC))
cx2388x v4l2 driver version 0.0.4 loaded
ACPI: PCI Interrupt Link [LNKB] enabled at IRQ 12
PCI: setting IRQ 12 as level-triggered
ACPI: PCI Interrupt 0000:00:09.0[A] -> Link [LNKB] -> GSI 12 (level, low) -> IRQ 12
cx88[0]: subsystem: 7063:3000, board: pcHDTV HD3000 HDTV [card=22,autodetected]
tuner 1-0061: chip found @ 0xc2 (cx88[0])
tuner 1-0061: type set to 52 (Thomson DDT 7610 (ATSC/NTSC))
cx88[0]/0: found at 0000:00:09.0, rev: 5, irq: 12, latency: 32, mmio: 0xe2000000
cx88[0]/0: registered device video0 [v4l2]
cx88[0]/0: registered device vbi0
cx88[0]/0: registered device radio0
ACPI: PCI Interrupt 0000:00:0c.0[A] -> Link [LNKA] -> GSI 10 (level, low) -> IRQ 10
cx88[1]: subsystem: 7063:3000, board: pcHDTV HD3000 HDTV [card=22,autodetected]
tuner 2-0061: chip found @ 0xc2 (cx88[1])
tuner 2-0061: type set to 52 (Thomson DDT 7610 (ATSC/NTSC))
cx88[1]/0: found at 0000:00:0c.0, rev: 5, irq: 10, latency: 32, mmio: 0xe4000000
cx88[1]/0: registered device video1 [v4l2]
cx88[1]/0: registered device vbi1
cx88[1]/0: registered device radio1

No mention of 'firmware' or 'frontend':
[root@myth ~]# less dm_after_kernel_2.6.12_upgrade.txt|egrep -i frontend
[root@myth ~]# less dm_after_kernel_2.6.12_upgrade.txt|egrep -i firmware
[root@myth ~]#

Getting firmware errors after starting BE:

2005-10-01 18:26:53.517 New DB connection, total: 1
Starting up as the master server.
2005-10-01 18:26:53.639 New DB connection, total: 2
2005-10-01 18:26:53.699 DVB#0 DVB SI Table Parser Started
2005-10-01 18:26:53.700 DVB#0 ERROR - Opening DVB frontend device failed.
(2) No such file or directory
2005-10-01 18:26:53.727 DVB#1 DVB SI Table Parser Started
2005-10-01 18:26:53.727 DVB#1 ERROR - Opening DVB frontend device failed.
(2) No such file or directory
2005-10-01 18:26:53.731 New DB scheduler connection
2005-10-01 18:26:53.767 mythbackend version: 0.18.1.20050523-1 www.mythtv.org
2005-10-01 18:26:53.767 Enabled verbose msgs : important general
2005-10-01 18:26:53.768 New DB connection, total: 3
2005-10-01 18:26:55.749 Reschedule requested for id -1.
2005-10-01 18:26:56.901 Scheduled 138 items in 1.2 = 0.49 match + 0.67 place
2005-10-01 18:26:56.904 Recording starts soon, AUTO-Startup assumed
2005-10-01 18:26:56.906 Started recording "CBS Evening News" on channel: 1034 on cardid: 1, sourceid 1
2005-10-01 18:26:56.909 DVB#0 ERROR - Opening DVB frontend device failed.
(2) No such file or directory
2005-10-01 18:26:57.301 Changing from None to RecordingOnly
2005-10-01 18:26:57.374 DVB#0 ERROR - Opening DVB frontend device failed.
(2) No such file or directory
2005-10-01 18:26:57.374 Tuning Error -- aborting recording
2005-10-01 18:26:57.374 TVRec: Recording Prematurely Stopped

lsmod doesn't have dvb loaded:

[root@myth ~]# lsmod|grep cx88_dvb
[root@myth ~]#

'cx88' stuff that IS loaded:

[root@myth ~]# lsmod|grep cx88
cx8800 33613 0
v4l1_compat 13637 1 cx8800
v4l2_common 5825 1 cx8800
cx88_blackbird 14917 0
cx8802 11973 1 cx88_blackbird
cx88xx 53217 3 cx8800,cx88_blackbird,cx8802
i2c_algo_bit 9033 1 cx88xx
video_buf 23621 4 cx8800,cx88_blackbird,cx8802,cx88xx
ir_common 7365 1 cx88xx
btcx_risc 4937 3 cx8800,cx8802,cx88xx
tveeprom 13017 1 cx88xx
videodev 9537 3 cx8800,cx88_blackbird,cx88xx
i2c_core 21313 5 cx88xx,i2c_algo_bit,tuner,tveeprom,i2c_viapro
[root@myth ~]#

From pchdtv forums:

"""
Here's a graph of what module options to select:

Device-drivers ->

Multimedia devices ->

[-] Video for Linux ->
Video for Linux ->
Video Adapters
[-] Conexant 2388x (bt878 successor) support (CONFIG_VIDEO_CX88=m)
[-] DVB support for cx2388x based TV Cards (CONFIG_VIDEO_CX88_DVB=m)

Digital Video Broadcasting Devices ->
[-] DVB for Linux (DVB=m)
[-] DVB Core Support (DVB_CORE=m)
Customize DVB Frontends ->
[-] Conexant cx22702 demodulator (OFDM) (DVB_CX22702=m)
[-] OR51132 based (pcHDTV HD3000 card) (DVB_OR51132=m)
"""

[I think this is the config params for when building a kernel. See

http://www.pchdtv.com/forum/viewtopic.php?t=807&highlight=or51132+frontends ]

Or just:

# modprobe -v cx88-dvb

[root@myth ~]# modprobe -v cx88-dvb
insmod /lib/modules/2.6.12-1.1378_FC3/kernel/drivers/media/dvb/frontends/dvb-pll.ko
insmod /lib/modules/2.6.12-1.1378_FC3/kernel/drivers/media/dvb/frontends/cx22702.ko
insmod /lib/modules/2.6.12-1.1378_FC3/kernel/drivers/media/dvb/dvb-core/dvb-core.ko
insmod /lib/modules/2.6.12-1.1378_FC3/kernel/drivers/media/video/video-buf-dvb.ko
insmod /lib/modules/2.6.12-1.1378_FC3/kernel/drivers/media/dvb/frontends/or51132.ko
insmod /lib/modules/2.6.12-1.1378_FC3/kernel/drivers/media/dvb/frontends/mt352.ko
install /sbin/modprobe cx8800;/sbin/modprobe --ignore-install cx88-dvb
insmod /lib/modules/2.6.12-1.1378_FC3/kernel/drivers/media/video/cx88/cx88-dvb.ko
[root@myth ~]#

New dmesg messages:

cx2388x dvb driver version 0.0.4 loaded
ACPI: PCI Interrupt 0000:00:09.2[A] -> Link [LNKB] -> GSI 12 (level, low) -> IRQ 12
cx88[0]/2: found at 0000:00:09.2, rev: 5, irq: 12, latency: 32, mmio: 0xe3000000
cx88[0]/2: cx2388x based dvb card
DVB: registering new adapter (cx88[0]).
DVB: registering frontend 0 (pcHDTV HD3000 HDTV)...
ACPI: PCI Interrupt 0000:00:0c.2[A] -> Link [LNKA] -> GSI 10 (level, low) -> IRQ 10
cx88[1]/2: found at 0000:00:0c.2, rev: 5, irq: 10, latency: 32, mmio: 0xe5000000
cx88[1]/2: cx2388x based dvb card
DVB: registering new adapter (cx88[1]).
DVB: registering frontend 1 (pcHDTV HD3000 HDTV)...

Now I get dvb LOCK after starting BE:

tail -f mythbackend.log
2005-10-01 18:37:36.289 New DB connection, total: 1
Starting up as the master server.
2005-10-01 18:37:36.301 New DB connection, total: 2
2005-10-01 18:37:36.308 DVB#0 DVB SI Table Parser Started
2005-10-01 18:37:36.309 DVB#0 Using DVB card 0, with frontend pcHDTV HD3000 HDTV.
2005-10-01 18:37:36.311 New DB connection, total: 3
2005-10-01 18:37:44.822 DVB#0 DVB signal 44dc | snr e9b9 | ber 0 | unc 0
2005-10-01 18:37:44.822 DVB#0 Status: LOCK.
2005-10-01 18:37:44.822 DVB#0 Multiplex Locked
2005-10-01 18:37:45.596 DVB#0 Successfully tuned to channel 11_1.
2005-10-01 18:37:45.603 DVB#1 DVB SI Table Parser Started
2005-10-01 18:37:45.604 DVB#1 Using DVB card 1, with frontend pcHDTV HD3000 HDTV.
2005-10-01 18:37:54.042 DVB#1 DVB signal f477 | snr cd37 | ber 0 | unc 0
2005-10-01 18:37:54.408 DVB#1 Status: LOCK.
2005-10-01 18:37:54.408 DVB#1 Multiplex Locked
2005-10-01 18:37:54.888 DVB#1 Successfully tuned to channel 11_1.
2005-10-01 18:37:54.893 New DB scheduler connection
2005-10-01 18:37:54.898 mythbackend version: 0.18.1.20050523-1 www.mythtv.org
2005-10-01 18:37:54.899 Enabled verbose msgs : important general
2005-10-01 18:37:56.899 Reschedule requested for id -1.
2005-10-01 18:37:57.294 Scheduled 137 items in 0.4 = 0.06 match + 0.34 place
2005-10-01 18:37:57.297 Recording starts soon, AUTO-Startup assumed
2005-10-01 18:37:57.299 Started recording "CBS 5 Eyewitness News at 6:30PM" on channel: 1034 on cardid: 1, sourceid 1
2005-10-01 18:37:57.944 DVB#0 DVB signal a49b | snr f6df | ber 0 | unc 0
2005-10-01 18:37:57.944 DVB#0 Status: LOCK.
2005-10-01 18:37:57.944 DVB#0 Multiplex Locked
2005-10-01 18:37:59.006 DVB#0 Successfully tuned to channel 5_1.
2005-10-01 18:37:59.036 Changing from None to RecordingOnly
2005-10-01 18:37:59.057 DVB#0 Recorder: Card opened successfully (using PS mode).
2005-10-01 18:37:59.076 DVB#0 Data read from DMX - This is for debugging with transform.c
2005-10-01 18:38:04.905 New DB connection, total: 4

lsmod now:
[root@myth ~]# lsmod|grep cx88_dvb
cx88_dvb 7621 43
mt352 6341 1 cx88_dvb
or51132 9669 1 cx88_dvb
video_buf_dvb 7109 1 cx88_dvb
cx22702 6085 1 cx88_dvb
dvb_pll 4677 3 cx88_dvb,or51132,cx22702
cx8802 11973 2 cx88_dvb,cx88_blackbird
cx88xx 53217 4 cx88_dvb,cx8800,cx88_blackbird,cx8802
video_buf 23621 6 cx88_dvb,video_buf_dvb,cx8800,cx88_blackbird,cx8802,cx88xx
[root@myth ~]#

Time will tell if this fixes the lost audio problem.

0 Comments:

Post a Comment

<< Home