Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[mpeg2] Re: Porting kfir for kernel 2.6



Anssi Hannula wrote:
Anssi Hannula wrote:

Klaus Schmidinger wrote:

(as in the Makefile) I got these log messages:

[...]

After that I did a simple

  cat /dev/video0 > /tmp/x.x

to see if I canget any data, and then the system completely froze.

Ayn ideas what to test next?


It appears to load properly, that's progress :)
I'll investigate and modify the driver more.
I'll probably send a rev2 patch in few days.

Here's the rev2 patch. I made some slight modifications, and added some verbosive debug code (and removed the default debug=1 from Makefile).

Try first insmod kfir.ko debug=1
If it freezes when opening, try with debug=2 (may be *very* verbose)
With debug=2 maybe you should keep a console window open with 'cat /proc/kmsg' so you can see the latest messages before freeze if they don't make it into the syslog.
Now it doesn't freeze any more, but there's no data coming out of
/dev/video0, either.

First I did

        modprobe videodev
        modprobe firmware_class
        modprobe i2c-core
        modprobe i2c-algo-bit
        insmod saa7113.ko
        insmod kfir.ko debug=1

which apparently works fine:

Jan 14 16:26:20 video kernel: Linux video capture interface: v1.00
Jan 14 16:26:42 video kernel: module saa7113 unsupported by SUSE/Novell, tainting kernel.
Jan 14 16:26:42 video kernel: saa7113: init_module
Jan 14 16:26:49 video kernel: module kfir unsupported by SUSE/Novell, tainting kernel.
Jan 14 16:26:49 video kernel: kfir_init_device called... <6>PCI: Found IRQ 5 for device 0000:00:0a.0
Jan 14 16:26:49 video kernel: Kfir board revision 5e... allocated buffers... <4>videodev: "Kfir" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/
Jan 14 16:26:49 video kernel: done
Jan 14 16:26:50 video kernel: loaded microcode with length 32385
Jan 14 16:26:55 video kernel: kfir: Reset Altera
Jan 14 16:26:55 video kernel: kfir: done
Jan 14 16:26:55 video kernel: kfir: Reset Kfir and PLL ... done
Jan 14 16:26:55 video kernel: kfir: ADSP loading successful
Jan 14 16:26:56 video kernel: kfir: ADSP initialization...done
Jan 14 16:26:56 video kernel: kfir: segment: 0  Done
Jan 14 16:26:56 video kernel: kfir: segment: 1  Done
Jan 14 16:26:56 video kernel: kfir: segment: 2  Done
Jan 14 16:26:56 video kernel: kfir: segment: 3  Done
Jan 14 16:26:56 video kernel: kfir: segment: 4  Done
Jan 14 16:26:56 video kernel: kfir: segment: 5  Done
Jan 14 16:26:56 video kernel: kfir: Download parameters...kfir: done
Jan 14 16:26:56 video kernel: saa7113: version=11
Jan 14 16:26:56 video kernel: saa7113: attaching SAA7113 at 0x4a
Jan 14 16:26:56 video kernel: kfir: saa7113 decoder attached
Jan 14 16:26:56 video kernel: kfir: i2c attach [SAA7113]
Jan 14 16:26:59 video kernel: saa7113: status=81
Jan 14 16:26:59 video kernel: saa7113: attached to adapter kfir #0
Jan 14 16:26:59 video kernel: kfir: Found i2c device at: 0x4a
Jan 14 16:26:59 video kernel: kfir: decoder status=7

Then I did 'cat /dev/video0 > x.x' a few times, which always returned after
a short while, with nothing written into the file:

Jan 14 16:27:40 video kernel: kfir: kfir_open called... video_exclusive_open ok... done, status 0
Jan 14 16:27:40 video kernel: kfir: start recording
Jan 14 16:27:41 video kernel: kfir: Download parameters...kfir: done
Jan 14 16:27:41 video kernel: eready=00200001
Jan 14 16:27:41 video kernel: kfir: kfir_close called... sent stop command... kfir: end code 1 found at 6028
Jan 14 16:27:41 video kernel: kfir: end code 2 found at 6032
Jan 14 16:28:02 video kernel: stopped... eready=00200001... donekfir: kfir_open called... video_exclusive_open ok... done, status 0
Jan 14 16:28:02 video kernel: kfir: start recording
Jan 14 16:28:02 video kernel: kfir: Download parameters...kfir: done
Jan 14 16:28:02 video kernel: eready=00200001
Jan 14 16:28:03 video kernel: kfir: kfir_close called... sent stop command... kfir: end code 1 found at 6004
Jan 14 16:28:03 video kernel: kfir: end code 2 found at 6008
Jan 14 16:28:19 video kernel: stopped... eready=00200001... donekfir: kfir_remove_one()

I then did

         rmmod kfir
         insmod kfir.ko vidinput=0 vidrate=3000000 debug=0 streamtype=4

(which are the parameters I actually use on my running system)
and repeated the 'cat' test, but again there was nothing written
into the file:

Jan 14 16:28:19 video kernel: kfir: i2c detach [SAA7113]
Jan 14 16:29:07 video kernel: module kfir unsupported by SUSE/Novell, tainting kernel.
Jan 14 16:29:07 video kernel: kfir_init_device called... <6>PCI: Found IRQ 5 for device 0000:00:0a.0
Jan 14 16:29:07 video kernel: Kfir board revision 5e... allocated buffers... <4>videodev: "Kfir" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/
Jan 14 16:29:07 video kernel: done
Jan 14 16:29:08 video kernel: loaded microcode with length 32385
Jan 14 16:29:13 video kernel: kfir: Reset Altera
Jan 14 16:29:13 video kernel: kfir: done
Jan 14 16:29:13 video kernel: kfir: Reset Kfir and PLL ... done
Jan 14 16:29:13 video kernel: kfir: ADSP loading successful
Jan 14 16:29:13 video kernel: kfir: ADSP initialization...done
Jan 14 16:29:13 video kernel: kfir: segment: 0  Done
Jan 14 16:29:13 video kernel: kfir: segment: 1  Done
Jan 14 16:29:13 video kernel: kfir: segment: 2  Done
Jan 14 16:29:13 video kernel: kfir: segment: 3  Done
Jan 14 16:29:13 video kernel: kfir: segment: 4  Done
Jan 14 16:29:13 video kernel: kfir: segment: 5  Done
Jan 14 16:29:14 video kernel: kfir: done
Jan 14 16:29:14 video kernel: saa7113: version=11
Jan 14 16:29:14 video kernel: saa7113: attaching SAA7113 at 0x4a
Jan 14 16:29:14 video kernel: kfir: saa7113 decoder attached
Jan 14 16:29:14 video kernel: kfir: i2c attach [SAA7113]
Jan 14 16:29:17 video kernel: saa7113: status=81
Jan 14 16:29:17 video kernel: saa7113: attached to adapter kfir #0
Jan 14 16:29:17 video kernel: kfir: Found i2c device at: 0x4a
Jan 14 16:29:17 video kernel: kfir: decoder status=7
Jan 14 16:29:27 video kernel: kfir: kfir_open called... video_exclusive_open ok... done, status 0
Jan 14 16:29:27 video kernel: kfir: done
Jan 14 16:29:27 video kernel: eready=00200001

Thanks for your efforts, apparently things are improving.
I hope you can find out why there is no data...

Klaus




Home | Main Index | Thread Index