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:
Hi!

I didn't see my first mail come through, here again:

I had some spare time, and made a patch which makes the kfir and saa7113
drivers compile and load under 2.6. This is against current CVS version.

As I know almost nothing about writing kernel code, or how these drivers
work, It's most likely that these drivers won't work (yet).
But, I don't even have such card so I can't really test/debug this, or
test how the 2.4 works.

I hope someone could test this, and see what happens (or even fix it)...


It now uses hotplug firmware loading, so hotplug must be present and the altera_keb_plx_5e.rbf and MPEG1_6.HLD should be in /usr/lib/hotplug/firmware/ or /lib/hotplug/firmware/, depending on distro.
I have taken the latest CVS driver version, applied your patch and
compiled it on SuSE 9.2. Compilation worked fine. When I loaded the driver
with

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

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

Jan  3 16:49:45 video kernel: Linux video capture interface: v1.00
Jan  3 16:50:23 video kernel: module saa7113 unsupported by SUSE/Novell, tainting kernel.
Jan  3 16:50:23 video kernel: saa7113: module license 'unspecified' taints kernel.
Jan  3 16:50:23 video kernel: saa7113: init_module
Jan  3 16:50:35 video kernel: module kfir unsupported by SUSE/Novell, tainting kernel.
Jan  3 16:50:35 video kernel: kfir: Kfir board revision 5e
Jan  3 16:50:35 video kernel: videodev: "Kfir" has no release callback. Please fix your driver for proper sysfs support, see http://lwn.net/Articles/36850/
Jan  3 16:50:36 video kernel: loaded microcode with length 32385
Jan  3 16:50:41 video kernel: kfir: Reset Altera
Jan  3 16:50:41 video kernel: kfir: done
Jan  3 16:50:41 video kernel: kfir: Reset Kfir and PLL ... done
Jan  3 16:50:41 video kernel: kfir: ADSP loading successful
Jan  3 16:50:42 video kernel: kfir: ADSP initialization...done
Jan  3 16:50:42 video kernel: kfir: segment: 0  Done
Jan  3 16:50:42 video kernel: kfir: segment: 1  Done
Jan  3 16:50:42 video kernel: kfir: segment: 2  Done
Jan  3 16:50:42 video kernel: kfir: segment: 3  Done
Jan  3 16:50:42 video kernel: kfir: segment: 4  Done
Jan  3 16:50:42 video kernel: kfir: segment: 5  Done
Jan  3 16:50:42 video kernel: kfir: Download parameters...kfir: done
Jan  3 16:50:42 video kernel: saa7113: version=11
Jan  3 16:50:42 video kernel: saa7113: attaching SAA7113 at 0x4a
Jan  3 16:50:42 video kernel: kfir: saa7113 decoder attached
Jan  3 16:50:42 video kernel: kfir: i2c attach [SAA7113]
Jan  3 16:50:45 video kernel: saa7113: status=81
Jan  3 16:50:45 video kernel: saa7113: attached to adapter kfir #0
Jan  3 16:50:45 video kernel: kfir: Found i2c device at: 0x4a
Jan  3 16:50:45 video kernel: kfir: decoder status=7

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?

Klaus




Home | Main Index | Thread Index