You are not logged in.

#1 2007-02-16 00:37:13

noah
Member
Registered: 2005-02-23
Posts: 14

Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

Upgrading to Kernel 2.6.20-3 seems not to work with ivtv 0.9.1-2

FATAL: Error inserting ivtv (/lib/modules/2.6.20-ARCH/kernel/drivers/media/video/ivtv/ivtv.ko): Unknown symbol in module, or unknown parameter (see dmesg)]

I attempted to to rebuild ivtv and ivtv-utils with abs.  ivtv-utils would not build:

==> Making package: ivtv-utils 0.9.1-1 (Thu Feb 15 19:34:48 EST 2007)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Retrieving Sources...
==>     Using local copy of ivtv-0.9.1.tar.gz
==>     Found firmware.md5sums in build dir
==>     Using local copy of pvr_1.18.21.22254_inf.zip
==>     Using local copy of pvr_2.0.24.23035.zip
==> Validating source files with MD5sums
    ivtv-0.9.1.tar.gz ... Passed
    firmware.md5sums ... Passed
    pvr_1.18.21.22254_inf.zip ... Passed
    pvr_2.0.24.23035.zip ... Passed
==> Extracting Sources...
==>     tar --use-compress-program=gzip -xf ivtv-0.9.1.tar.gz
==>     unzip -qqo pvr_1.18.21.22254_inf.zip
==>     unzip -qqo pvr_2.0.24.23035.zip
==> Starting build()...
ivtv-fw-dec.bin: OK
ivtv-fw-enc.bin: OK
HcwFalcn.rom: OK
HcwMakoA.ROM: OK
make -C driver all
make[1]: Entering directory `/var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver'
created ivtv-svnversion.h
make -C /lib/modules/2.6.20-ARCH/build M=/var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver modules
make[2]: Entering directory `/usr/src/linux-2.6.20-ARCH'
  CC [M]  /var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver/ivtv-osd.o
  CC [M]  /var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver/ivtv-queue.o
  CC [M]  /var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver/ivtv-driver.o
/var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver/ivtv-driver.c:699:55: error: macro "INIT_WORK" passed 3 arguments, but takes just 2
/var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver/ivtv-driver.c: In function 'ivtv_init_struct1':
/var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver/ivtv-driver.c:699: error: 'INIT_WORK' undeclared (first use in this function)
/var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver/ivtv-driver.c:699: error: (Each undeclared identifier is reported only once
/var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver/ivtv-driver.c:699: error: for each function it appears in.)
/var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver/ivtv-driver.c: In function 'ivtv_remove':
/var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver/ivtv-driver.c:1407: warning: passing argument 1 of 'cancel_delayed_work' from incompatible pointer type
make[3]: *** [/var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver/ivtv-driver.o] Error 1
make[2]: *** [_module_/var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.20-ARCH'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/var/abs/extra/multimedia/ivtv-utils/src/ivtv-0.9.1/driver'
make: *** [all] Error 2
==> ERROR: Build Failed.  Aborting...

Offline

#2 2007-02-17 03:19:38

tpb
Member
From: Pittsburgh, PA
Registered: 2005-11-27
Posts: 17

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

Same here, with similar error message, log message and compiler messages as previous post. I have submitted a bug report.

Looking at http://ivtvdriver.org/index.php/Main_Page, it becomes clear that latest arch package ivtv 0.9.1-2 is intended for 2.6.19 kernel ONLY.

INIT_WORK has to do with the workqueue interface and is changed in the new kernel. See this post:
As I've posted in the past, they're changing the workqueue interface in 2.6.20, and at the very least, it breaks madwifi. I've read somewhere that there is or may be a porting effort going on, but I have no idea what the status is.

http://www.linuxquestions.org/questions … p?t=526517

Ton

Last edited by tpb (2007-02-17 03:36:46)

Offline

#3 2007-02-17 03:32:55

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

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

same here.
dmesg gives - ivtv: Unknown symbol i2c_bit_del_bus

noah: 0.9.1-2 is patched for kernel 2.6.20

Offline

#4 2007-02-17 03:42:35

tpb
Member
From: Pittsburgh, PA
Registered: 2005-11-27
Posts: 17

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

When I look in the PKGBUILD for ivtv 0.9.1-2, it looks like the patch just applies to DMA-errors, not the new INIT_WORK interface that is causing problems during compile.

Offline

#5 2007-02-17 10:39:49

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

ivtv 0.10.0rc1-1 went into extra this morning, with a 2.6.20 patch. It will be on your favourite mirror shortly.

Offline

#6 2007-02-17 15:55:58

tpb
Member
From: Pittsburgh, PA
Registered: 2005-11-27
Posts: 17

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

Thank you for very quick response! However, module  ivtv 0.10.0rc1-1 still fails to load on my machine, where dmesg log shows:

[tpb@gudrun ~]$ dmesg | grep ivtv
ivtv: Unknown parameter `ivtv_debug'
ivtv: Unknown parameter `ivtv_debug'
ivtv: Unknown parameter `ivtv_debug'

Ton

Offline

#7 2007-02-17 16:58:57

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

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

loads now and i get a picture but no sound sad
fw_register_device: device_register failed
cx25840 2-0044: unable to open firmware v4l-cx25840.fw

Offline

#8 2007-02-17 18:38:53

noah
Member
Registered: 2005-02-23
Posts: 14

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

Everything working again here.  I updated to Kernel 2.6.20-4 and rebooted - might have influenced things.

Offline

#9 2007-02-17 18:54:57

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

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

hmm, i just updated and get the same firmware issue sad

Offline

#10 2007-02-17 19:54:18

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

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

ivtv:  ==================== START INIT IVTV ====================
ivtv:  version 0.10.0 (tagged release candidate #1) loading
ivtv:  Linux version: 2.6.20-ARCH SMP preempt mod_unload 686 
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 card (cx23416 based)
ACPI: PCI Interrupt 0000:01:08.0[A] -> Link [APC1] -> GSI 16 (level, low) -> IRQ 20
ivtv0: loaded v4l-cx2341x-enc.fw firmware (376836 bytes)
ivtv0: Encoder revision: 0x02050032
ivtv0: Untested encoder firmware version, recommended version is 0x02060039.
tveeprom 2-0050: Hauppauge model 26032, rev C199, serial# 2979196
tveeprom 2-0050: tuner model is TCL 2002N 5H (idx 99, type 50)
tveeprom 2-0050: TV standards NTSC(M) (eeprom 0x08)
tveeprom 2-0050: audio processor is CX25841 (idx 35)
tveeprom 2-0050: decoder processor is CX25841 (idx 28)
tveeprom 2-0050: has no radio, has IR receiver, has IR transmitter
ivtv0: Autodetected Hauppauge WinTV PVR-150
ivtv0: reopen i2c bus for IR-blaster support
tuner 2-0061: chip found @ 0xc2 (ivtv i2c driver #0)
cx25840 2-0044: cx25841-23 found @ 0x88 (ivtv i2c driver #0)
kobject_add failed for i2c-2 with -EEXIST, don't try to register things with the same name in the same directory.
 [<c0225045>] kobject_add+0x115/0x1b0
 [<c028ad1c>] device_add+0xbc/0x520
 [<f8d35578>] ivtv_xfer+0xa8/0x3c0 [ivtv]
 [<c0224cff>] kobject_get+0xf/0x20
 [<c0291020>] _request_firmware+0xf0/0x300
 [<c02912df>] request_firmware+0xf/0x20
 [<f8c5cba4>] cx25840_loadfw+0x24/0x210 [cx25840]
 [<f8b85378>] i2c_master_send+0x38/0x50 [i2c_core]
 [<f8c5a8cd>] cx25840_initialize+0x15d/0x2a0 [cx25840]
 [<f8c5c2c4>] cx25840_detect_client+0x234/0x260 [cx25840]
 [<f8b85b9e>] i2c_probe_address+0x3e/0x130 [i2c_core]
 [<f8b85e97>] i2c_probe+0x207/0x220 [i2c_core]
 [<f8c5c090>] cx25840_detect_client+0x0/0x260 [cx25840]
 [<c028d273>] driver_create_file+0x33/0x50
 [<f8c5c090>] cx25840_detect_client+0x0/0x260 [cx25840]
 [<f8b86399>] i2c_register_driver+0x79/0xa0 [i2c_core]
 [<c0144d9f>] sys_init_module+0x15f/0x1ad0
 [<c0225d8f>] prio_tree_insert+0x1f/0x250
 [<c0103200>] sysenter_past_esp+0x5d/0x81
 =======================
fw_register_device: device_register failed
cx25840 2-0044: unable to open firmware v4l-cx25840.fw
wm8775 2-001b: chip found @ 0x36 (ivtv i2c driver #0)
ivtv0: Registered device video0 for encoder MPEG (4 MB)
ivtv0: Registered device video32 for encoder YUV (2 MB)
ivtv0: Registered device vbi0 for encoder VBI (1 MB)
ivtv0: Registered device video24 for encoder PCM audio (1 MB)
tuner 2-0061: type set to 50 (TCL 2002N)
ivtv0: Initialized Hauppauge WinTV PVR-150, card #0
ivtv:  ====================  END INIT IVTV  ====================

Offline

#11 2007-02-17 21:10:38

tpb
Member
From: Pittsburgh, PA
Registered: 2005-11-27
Posts: 17

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

enderst: one more patch needed for ivtv 0.10.0, see README in ivtv 0.10.0 distribution:

NOTE: This driver will work with kernels 2.6.18, 2.6.19 and 2.6.20. For the
latter kernel you will need to apply the cx25840.diff patch that is in the
'misc' directory (only if your card has the cx2584x chip, it is not needed
otherwise). The 2.6.20 kernel caused a cx2584x bug to surface that prevents
loading of the cx2584x firmware.

Still mine reports ivtv: Unknown parameter `ivtv_debug'

Last edited by tpb (2007-02-17 21:11:25)

Offline

#12 2007-02-17 22:13:22

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

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

i'm using the pkgs not compiling from source. if i was compiling from source there would be no point in posting issues here as they would be ivtv developer issues not pkg maintainer issues.

Last edited by enderst (2007-02-17 22:18:16)

Offline

#13 2007-02-21 12:57:41

tpb
Member
From: Pittsburgh, PA
Registered: 2005-11-27
Posts: 17

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

ivtv_debug problem is resolved; in my /etc/modprobe.conf was a set of options defined for ivtv module; apparently, these do not work anymore. The line read

options ivtv ivtv_debug=1 tuner=50

After removing the line, things are OK. The tuner type is also detected now.

Ton

Offline

#14 2007-02-22 02:22:04

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

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

i can't figure out why i get:
fw_register_device: device_register failed
cx25840 2-0044: unable to open firmware v4l-cx25840.fw

Offline

#15 2007-02-22 02:56:28

tpb
Member
From: Pittsburgh, PA
Registered: 2005-11-27
Posts: 17

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

Is the firmware file available in /lib/firmware? I have the following files there:

-rw-r--r-- 1 root root 262144 2007-02-17 01:50 v4l-cx2341x-dec.fw
-rw-r--r-- 1 root root 376836 2007-02-17 01:50 v4l-cx2341x-enc.fw
-rw-r--r-- 1 root root 155648 2007-02-17 01:50 v4l-cx2341x-init.mpg
-rw-r--r-- 1 root root  14264 2007-02-17 01:50 v4l-cx25840.fw
-rw-r--r-- 1  100 root   8192 2006-10-06 13:48 v4l-pvrusb2-24xxx-01.fw
-rw-r--r-- 1  100 root   8192 2006-07-01 17:18 v4l-pvrusb2-29xxx-01.fw

Offline

#16 2007-02-25 03:30:42

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

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

of course. ivtv-utils is a dependency.

Offline

#17 2007-02-25 03:47:16

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

Re: Kernel 2.6.20-3 and ivtv 0.9.1-2 not working?

out of desperation i was going to downgrade the kernel. then i thought i would look a little closer at the dmesg output. something wasn't right with i2c. i removed i2c-dev and i2c-nforce2 from rc.conf and viola!

thanks to those that tried to help

Last edited by enderst (2007-02-25 03:49:40)

Offline

Board footer

Powered by FluxBB