Re: Zoran Linux driver 64-bit support
Bernhard Praschinger <[email protected]> Sun, 22 May 2011 13:35:28 +0200
| Newsgroups | gmane.comp.video.mjpeg.devel |
|---|---|
| Message-ID | <[email protected]> |
Hallo > finally I managed to come up with a patch for 64-bit support current > Linux kernel versions. In order to implement the PCI bus APIs I had to > rewrite the most of the JPEG buffer allocation. While doing that I > noticed a potential security issue in the handler for the mmap syscall, > which might allow an attacker with access to the v4l device to get > access to protected memory areas. So is that more or less a updated patch for the problem you fixed 2 years ago ? At that time for kernel 2.6.24 > The attached patches enable 64-bit support and fix the issue for kernels > 2.6.32 and 2.6.38+ (tested on Debian Linux but should apply for most I did download the 2.6.38.7 linux kernel from kernel.org and built it. The patch did apply without any problems. But I have problems getting the driver working. I do not get a /dev/video0 device. The DC-30 is detected in some way but refuses to work. I hope that you can give me a hint how to accomplish that. I did load the modules manually: zr36067 76446 0 zr36050 8055 0 zr36016 4775 0 videocodec 6286 3 zr36067,zr36050,zr36016 adv7175 4573 0 vpx3220 7271 0 v4l2_common 11391 3 zr36067,adv7175,vpx3220 videodev 75998 4 zr36067,adv7175,vpx3220,v4l2_common i2c_dev 7823 0 i2c_algo_bit 5641 2 zr36067,radeon But when loading the zr36067 modules I find that in /var/log/messages [ 2576.120748] Linux video capture interface: v2.00 [ 2635.218934] Linux video codec intermediate layer: v0.2 [ 2650.926927] Zoran MJPEG board driver version 0.10.0 [ 2650.928071] MJPEG[0]: Zoran ZR36067 (rev 2), irq: 21, memory: 0xfdcfe000 [ 2650.928079] MJPEG[0]: Subsystem vendor=0x1031 id=0xd801 [ 2650.930238] DC30plus[0]: SCL unexpected low while pulling SDA low! [ 2650.930267] DC30plus[0]: zoran_probe - can't initialize i2c bus xawtv fail afterwards as expected: > xawtv This is xawtv-3.95, running on Linux/x86_64 (2.6.38.7-0.5-desktop) xinerama 0: 1600x1200+0+0 can't open /dev/video0: No such file or directory v4l-conf had some trouble, trying to continue anyway v4l2: open /dev/video0: No such file or directory v4l: open /dev/video0: No such file or directory no video grabber device available Do you have any idea what kind of problem I run into ? I can also put the Iomega Buz into the computer and to a test run. > other kernel flavors as well). We should try to get that in mainline if > possible. That is right. > The next task is now to update the lavrec tool to use the V4L2 > interface for setting up the card, because I couldn't test on 2.6.38 > yet. Or does anyone know an alternative tool to capture the JPEG frames > on Linux? I don't know of any other tool to record from a zoran based car. A patch for lavrec would be really great. auf hoffentlich bald, Berni the Chaos of Woodquarter Email: [email protected] www: http://www.lysator.liu.se/~gz/bernhard ------------------------------------------------------------------------------ What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including clusters. http://p.sf.net/sfu/intel-dev2devmay