You are not logged in.

#1 2006-09-27 19:27:03

josephmc
Member
From: Texas,USA
Registered: 2005-03-16
Posts: 51
Website

ivtv broken after 2.6.18 kernel upgrade

i'm reverting back to the old kernel right now. i upgraded to the new kernel and ivtv (0.8.0) drivers and ivtv gave me this in dmesg

ivtv:  ==================== START INIT IVTV ====================
ivtv:  version 0.8.0 (tagged release) loading
ivtv:  Linux version: 2.6.18-ARCH SMP preempt mod_unload 686 REGPARM gcc-4.1
ivtv:  In case of problems please include the debug info between
ivtv:  the START INIT IVTV and END INIT IVTV lines, along with
ivtv:  any module options, when mailing the ivtv-users mailinglist.
ivtv0: Autodetected Hauppauge WinTV PVR-150 card (cx23416 based)
ivtv0: loaded v4l-cx2341x-enc.fw firmware (262144 bytes)
tuner 1-0061: chip found @ 0xc2 (ivtv i2c driver #0)
saa7115 1-0021: saa7115 found @ 0x42 (ivtv i2c driver #0)
msp3400 1-0040: MSP4448G-A2 found @ 0x80 (ivtv i2c driver #0)
msp3400 1-0040: MSP4448G-A2 supports radio, mode is autodetect and autoselect
tveeprom 1-0050: Hauppauge model 32032, rev B326, serial# 7193950
tveeprom 1-0050: tuner model is Temic 4036FY5 (idx 26, type 8)
tveeprom 1-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 1-0050: audio processor is MSP4448 (idx 27)
tveeprom 1-0050: decoder processor is SAA7115 (idx 19)
tveeprom 1-0050: has no radio, has IR remote
ivtv0: Corrected autodetection from Hauppauge WinTV PVR-150 to Hauppauge WinTV PVR-250
ivtv0: Encoder revision: 0x02050032
ivtv0: Registered device video0 for encoder MPEG
modprobe: page allocation failure. order:4, mode:0xd0
 [<c0152615>] __alloc_pages+0x1f5/0x2e0
 [<c0168a6e>] cache_alloc_refill+0x2ee/0x520
 [<c0168d10>] __kmalloc+0x70/0x80
 [<c8a74334>] ivtv_init_buffer+0x44/0x1e0 [ivtv]
 [<c8a7533e>] ivtv_stream_alloc+0x12e/0x370 [ivtv]
 [<c012551b>] printk+0x1b/0x20
 [<c8a7db25>] ivtv_stream_init+0x85/0x380 [ivtv]
 [<c8a7da27>] ivtv_reg_dev+0x1d7/0x250 [ivtv]
 [<c8a7e015>] ivtv_streams_setup+0x185/0x5a0 [ivtv]
 [<c8a780e6>] ivtv_probe+0x1666/0x1bd0 [ivtv]
 [<c033069d>] schedule+0x47d/0xae0
 [<c02cd898>] netlink_broadcast+0x208/0x320
 [<c022a2f6>] pci_device_probe+0x56/0x80
 [<c0283184>] driver_probe_device+0x44/0xc0
 [<c02832d4>] __driver_attach+0x64/0x70
 [<c0282afa>] bus_for_each_dev+0x3a/0x60
 [<c02830c6>] driver_attach+0x16/0x20
 [<c0283270>] __driver_attach+0x0/0x70
 [<c028274c>] bus_add_driver+0x8c/0x140
 [<c022a4a6>] __pci_register_driver+0x56/0x80
 [<c8a76990>] module_start+0x90/0x110 [ivtv]
 [<c01427bd>] sys_init_module+0x15d/0x1ac0
 [<c010325d>] sysenter_past_esp+0x56/0x79
Mem-info:
DMA per-cpu:
cpu 0 hot: high 0, batch 1 used:0
cpu 0 cold: high 0, batch 1 used:0
DMA32 per-cpu: empty
Normal per-cpu:
cpu 0 hot: high 42, batch 7 used:26
cpu 0 cold: high 14, batch 3 used:12
HighMem per-cpu: empty
Free pages:       29876kB (0kB HighMem)
Active:14107 inactive:4663 dirty:7 writeback:0 unstable:0 free:7469 slab:3874 mapped:2237 pagetables:137
DMA free:4568kB min:180kB low:224kB high:268kB active:5208kB inactive:196kB present:16384kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 111 111
DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 111 111
Normal free:25308kB min:1260kB low:1572kB high:1888kB active:51220kB inactive:18456kB present:114432kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
DMA: 418*4kB 204*8kB 61*16kB 7*32kB 1*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 4568kB
DMA32: empty
Normal: 889*4kB 1123*8kB 638*16kB 76*32kB 0*64kB 1*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 25308kB
HighMem: empty
Swap cache: add 1618, delete 1279, find 4915/4960, race 0+0
Free swap  = 977116kB
Total swap = 979956kB
Free swap:       977116kB
32704 pages of RAM
0 pages of HIGHMEM
1226 reserved pages
15064 pages shared
339 pages swap cached
11 pages dirty
0 pages writeback
2237 pages mapped
3874 pages slab
137 pages pagetables
ivtv0 warning: No memory on buffer alloc!
ivtv0 warning: Buffer alloc failed!
ivtv0: Couldn't allocate buffers for encoder MPEG stream
ivtv0: Error -12 setting up streams
ivtv0: Error -12 on initialization
ivtv: probe of 0000:02:08.0 failed with error -12
ivtv:  ====================  END INIT IVTV ====================

i just thought somebody would want to know this

Offline

#2 2006-10-02 08:27:55

phreique
Member
Registered: 2006-10-02
Posts: 6

Re: ivtv broken after 2.6.18 kernel upgrade

I'm running into the same problem that you are.  When I give the dmesg, I get the following response:


ivtv:  ==================== START INIT IVTV ====================
ivtv:  version 0.8.0 (tagged release) loading
ivtv:  Linux version: 2.6.18-ARCH SMP preempt mod_unload 686 REGPARM gcc-4.1
ivtv:  In case of problems please include the debug info between
ivtv:  the START INIT IVTV and END INIT IVTV lines, along with
ivtv:  any module options, when mailing the ivtv-users mailinglist.
ivtv0: Autodetected Hauppauge WinTV PVR-350 card (cx23415 based)
ivtv0: unable to open firmware v4l-cx2341x-enc.fw
ivtv0: did you put the firmware in the hotplug firmware directory?
ivtv0 warning: failed loading encoder firmware
ivtv0 warning: Error loading firmware -3!
ivtv0: Error -3 initializing firmware.
Trying to free already-free IRQ 17
ivtv0: Error -12 on initialization
ivtv: probe of 0000:02:01.0 failed with error -12
ivtv:  ====================  END INIT IVTV  ====================

I even tried to downgrade everything that was upgraded, and I'm getting a similar error message with earlier versions of the ivtv driver. 

When I do an slocate to make sure that I have the firmware, I get this:

[root@****** ~]# slocate *.fw
/lib/firmware/v4l-cx25840.fw
/lib/firmware/v4l-cx2341x-dec.fw
/lib/firmware/v4l-cx2341x-enc.fw
/lib/firmware/v4l-pvrusb2-24xxx-01.fw
/lib/firmware/v4l-pvrusb2-29xxx-01.fw
[root@****** ~]#        

Has anyone come up with a work-around?

Offline

#3 2006-10-08 08:37:30

phreique
Member
Registered: 2006-10-02
Posts: 6

Re: ivtv broken after 2.6.18 kernel upgrade

Ok, I think that I figured it out.  After much reading and pulling my hair out, I discovered that the ivtv driver was trying to load before the firmware.  I took a look at my rules in UDEV and found that I needed to add another rule specific to loading firmware. 

The first thing that I did was create a rule under /etc/udev/rules.d called 999-firmware.rules

Inside of /etc/udev/rules.d/999-firmware.rules I put in the following code:


SUBSYSTEM=="firmware", ACTION=="add", RUN+="/lib/udev/firmware.sh"

After a nice system reboot, everything worked as it should.

Hopefully this will relieve some frustration for all of you out there!

-Phreique

"Who you are speaks so loudly that I can hardly hear you."
"Nemo Me Impune Laccessit"

Offline

#4 2006-10-08 21:46:53

enderst
Member
Registered: 2004-06-28
Posts: 69

Re: ivtv broken after 2.6.18 kernel upgrade

there was a udev update in there somewhere. i've never needed to edit udev.rules so i just overwrite it with udev.rules.pacnew haven't had a problem. ran into this initially with 2.6.16 to 2.6.17 upgrade

Offline

#5 2006-10-08 23:19:39

phreique
Member
Registered: 2006-10-02
Posts: 6

Re: ivtv broken after 2.6.18 kernel upgrade

Yeah, I guessed that would have worked too!  I guess I always have to find an engineer's solution to the problem.  Kind of like swatting a fly with a sledgehammer.  heheheh

-Phreique

Offline

#6 2007-06-11 08:36:10

peque
Member
From: Denmark - Møn
Registered: 2005-06-26
Posts: 441

Re: ivtv broken after 2.6.18 kernel upgrade

Well - i got the exact same problem now with hauppauge PVR-500 and kernel 2.6.21

Ran a full system update yesterday and well MythTV ain't working anymore caurse of this .
I'm getting the same error as you describing here - so would like to hear your solutions for the problem - and wondering why I cannot get it to work - Well can't even find my udev.rules.pacnew anywhere ??? Which scares me a little bit - should it not be there - no matter what ???


Just getting better .... All the time

Offline

#7 2007-06-12 10:29:56

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: ivtv broken after 2.6.18 kernel upgrade

peque wrote:

Well can't even find my udev.rules.pacnew anywhere ??? Which scares me a little bit - should it not be there - no matter what ???

It should only be there if you edited udev.rules, and then udev.rules was upgraded. In this case, it's extracted as udev.rules.pacnew , and you've to merge the new changes manually.
If you didn't edit it, you already have the new one.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB