[mythtv-users] Error setting tuner type with PVR-350

blaism at alum.rpi.edu blaism at alum.rpi.edu
Sat Jan 31 15:41:47 EST 2004

I've been in the process of setting up a new MythTV box and for the most
part things have gone pretty well. I have a PVR-350 card and was able to
getting the TV-out working and am able to capture using the S-Video
input. However, I'm having trouble loading the tuner module. If I have
the line "options tuner type=2" in my modules.conf file, then ivtv
doesn't load and neither does any audio drivers. I'm running RH9 with
ATrpms and have been following Jarod's guide. I know this may be more of
an IVTV question but that list doesn't seem to have much activity and I
figured that there are a lot of people using the 350 with MythTV. Any

I've included my modules.conf file and output of dmesg below. In the
dmesg output, you can see that right after the "tuner: chip found @
0xc2" line something bad happens and a stack trace is printed. If I
comment out the "tuner type=2" option in modules.conf, this doesn't
happen and the modules are loaded fine.
Thanks in advance for any help you can offer! 

path[toplevel]=/lib/modules/`uname -r`/updates
# default path
path[toplevel]=/lib/modules/`uname -r`
alias usb-controller usb-ohci
alias usb-controller1 ehci-hcd
alias ieee1394-controller ohci1394
alias eth0 bcm4400

# ALSA portion
alias char-major-116 snd
alias snd-card-0 snd-intel8x0
# module options should go here
# OSS/Free portion
alias char-major-14 soundcore
alias sound-slot-0 snd-card-0
# card #1
alias sound-service-0-0 snd-mixer-oss
alias sound-service-0-1 snd-seq-oss
alias sound-service-0-3 snd-pcm-oss
alias sound-service-0-8 snd-seq-oss
alias sound-service-0-12 snd-pcm-oss
# save stuff
post-install snd-card-0 /usr/sbin/alsactl restore>/dev/null 2>&1 || :
pre-remove snd-card-0 /usr/sbin/alsactl store>/dev/null 2>&1 || :

# This is for WinTV PVR-350 IVTV
alias char-major-61 lirc_i2c
alias char-major-81 videodev
alias char-major-81-0 ivtv
alias char-major-81-1 bttv
options ivtv ivtv_debug=1
options tuner type=2
options saa7127 enable_output=1 output_select=0
options msp3400 once=1 simple=1
add below ivtv msp3400 saa7115 saa7127 tuner
add above ivtv lirc_dev lirc_i2c ivtv-fb

----------Snip of dmesg output---------------
Linux Kernel Card Services 3.1.22
options: [pci] [cardbus] [pm]
Yenta IRQ list 0000, PCI irq11
Socket status: 30000006
cs: IO port probe 0x0c00-0x0cff: clean.
cs: IO port probe 0x0100-0x04ff: excluding 0x290-0x297 0x378-0x37f
0x480-0x48f 0x4d0-0x4d7
cs: IO port probe 0x0a00-0x0aff: clean.
i2c-core.o: i2c core module version 2.8.2 (20031211)
i2c-proc.o version 2.8.2 (20031211)
parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE]
parport0: irq 7 detected
lp0: using parport0 (polling).
lp0: console ready
Linux video capture interface: v1.00
i2c-core.o: i2c core module version 2.8.2 (20031211)
[saa7127.c: INFO]: SAA7127 video encoder driver loaded
ivtv: version 0.1.9 (release) loading
ivtv: SGarray_size = 340, DSGarray_size = 16
ivtv: Found an iTVC15 based chip
tuner: chip found @ 0xc2
Unable to handle kernel NULL pointer dereference at virtual address
printing eip:
*pde = 00000000
Oops: 0000
ivtv msp3400 saa7115 saa7127 tuner i2c-algo-bit i2c-core videodev
parport_pc lp parport autofs4 ds yenta_socket pcmcia_core bcm4400 serial
microcode ohci1394 
CPU: 0
EIP: 0060:[] Not tainted
EFLAGS: 00010097

EIP is at vsnprintf [kernel] 0x2df (2.4.20-28_36.rh9.at)
eax: 000003be ebx: 0000000a ecx: 000003be edx: fffffffe
esi: c036a77a edi: 00000000 ebp: c036ab5f esp: da8d7d28
ds: 0068 es: 0068 ss: 0068
Process modprobe (pid: 3597, stackpage=da8d7000)
Stack: c036a776 c036ab5f ffffffff ffffffff 0000000a ffffffff 00000000
ffffffff ffffffff c036a760 00000246 00000061 00000000 c011c514 c036a760 
00000400 de95e8db da8d7da0 00000061 00000000 00000000 dbfb7a80 dbfb7a80 
Call Trace: [] printk [kernel] 0x64 (0xda8d7d60))
[] .rodata.str1.32 [tuner] 0x81b (0xda8d7d6c))
[] tuner_attach [tuner] 0x11b (0xda8d7d90))
[] .rodata.str1.32 [tuner] 0x800 (0xda8d7d94))
[] i2c_probe_R65fd3f70 [i2c-core] 0x2af (0xda8d7da8))
[] ivtv_cards [ivtv] 0x148 (0xda8d7dac))
[] ivtv_cards [ivtv] 0x148 (0xda8d7dd0))
[] tuner_probe [tuner] 0x60 (0xda8d7dd8))
[] ivtv_cards [ivtv] 0x148 (0xda8d7ddc))
[] addr_data [tuner] 0x0 (0xda8d7de0))
[] tuner_attach [tuner] 0x0 (0xda8d7de4))
[] i2c_add_adapter_Rb2b6afaa [i2c-core] 0xe8 (0xda8d7de8))
[] ivtv_cards [ivtv] 0x148 (0xda8d7dec))
[] ivtv_cards [ivtv] 0x234 (0xda8d7df4))
[] ivtv_cards [ivtv] 0x0 (0xda8d7df8))
[] ivtv_cards [ivtv] 0x148 (0xda8d7e00))
[] vsprintf [kernel] 0x27 (0xda8d7e04))
[] ivtv_cards [ivtv] 0x148 (0xda8d7e08))
[] ivtv_cards [ivtv] 0x0 (0xda8d7e0c))
[] ivtv_cards [ivtv] 0x148 (0xda8d7e14))
[] i2c_bit_add_bus_Rd157eec9 [i2c-algo-bit] 0x4d (0xda8d7e18))
[] ivtv_cards [ivtv] 0x148 (0xda8d7e1c))
[] .rodata.str1.1 [ivtv] 0xafa (0xda8d7e20))
[] ivtv_cards [ivtv] 0x234 (0xda8d7e24))
[] init_ivtv_i2c [ivtv] 0xc4 (0xda8d7e28))
[] ivtv_cards [ivtv] 0x148 (0xda8d7e2c))
[] ivtv_cards [ivtv] 0x0 (0xda8d7e48))
[] ivtv_probe [ivtv] 0x490 (0xda8d7e58))
[] ivtv_cards [ivtv] 0x0 (0xda8d7e5c))
[] __call_console_drivers [kernel] 0x5f (0xda8d7e80))
[] call_console_drivers [kernel] 0x65 (0xda8d7e9c))
[] ivtv_pci_tbl [ivtv] 0x0 (0xda8d7ebc))
[] ivtv_pci_driver [ivtv] 0x0 (0xda8d7ec0))
[] pci_announce_device [kernel] 0x35 (0xda8d7ec8))
[] ivtv_pci_tbl [ivtv] 0x0 (0xda8d7ed0))
[] ivtv_pci_driver [ivtv] 0x0 (0xda8d7ed8))
[] pci_register_driver [kernel] 0x5c (0xda8d7ee4))
[] ivtv_pci_driver [ivtv] 0x0 (0xda8d7ee8))
[] module_start [ivtv] 0x237 (0xda8d7efc))
[] ivtv_pci_driver [ivtv] 0x0 (0xda8d7f00))
[] sys_init_module [kernel] 0x4e1 (0xda8d7f1c))
[] ivtv_sleep_timeout [ivtv] 0x0 (0xda8d7f20))
[] .kmodtab [ivtv] 0x0 (0xda8d7f2c))
[] ivtv_sleep_timeout [ivtv] 0x0 (0xda8d7f58))
[] system_call [kernel] 0x33 (0xda8d7fc0))

Code: 80 38 00 74 07 40 4a 83 fa ff 75 f4 29 c8 83 e7 10 89 c3 75 
<6>ide-floppy driver 0.99.newide
hdb: attached ide-cdrom driver.
hdb: ATAPI 48X DVD-ROM drive, 512kB Cache, UDMA(33)
Uniform CD-ROM driver Revision: 3.12
lirc_dev: IR Remote Control driver registered, at major 61 
bttv: driver version 0.9.12 loaded
bttv: using 8 buffers with 2080k (520 pages) each for capture
ivtv-fb: Framebuffer module loaded (attached to ivtv card id 0)
ivtv: invalid api mailbox
ivtv: invalid api mailbox
ivtv: invalid api mailbox
ivtv: invalid api mailbox
ivtv-fb: screen coords: [134663584 134661628] -> [-693940608 2]
ivtv: invalid api mailbox
ivtv-fb: original global alpha = 134519456
ivtv: invalid api mailbox
ivtv: invalid api mailbox
ivtv-fb: new global alpha = -1072266670
ivtv: invalid api mailbox
ivtv: invalid api mailbox
ivtv-fb: current OSD state = 1
ivtv-fb: warning: cannot reserve video memory at 0xbef80b50
Trying to free nonexistent resource 
ivtv-fb: abort, cannot ioremap video memory 0xd5ec3528 @ 0xbef80b50
----------Snip of dmesg output---------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mythtv.org/pipermail/mythtv-users/attachments/20040131/ae8a4ccf/attachment.htm

More information about the mythtv-users mailing list