Re: Zoran Linux driver 64-bit support

Klaus Stengel <[email protected]> Sun, 22 May 2011 15:50:37 +0200
Newsgroups gmane.comp.video.mjpeg.devel
Message-ID <[email protected]>
Hi Bernhard,

Bernhard Praschinger wrote:
> Klaus Stengel wrote:
> > finally I managed to come up with a patch for 64-bit support current
> > Linux kernel versions. 
> 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

Yes, that's basically the same, but adapted to work together with the
restructuring of the buffer management in recent kernels and contains
some minor improvements.

> > 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.
>
> [ 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

Hmm, that's interesting. Did you also try without the patch, or with a
2.6.32 kernel? At least the hardware detection should work, no matter
which kernel or whether my patch was applied or not. With my DC10+ I
think I always got at least a proper device entry. Only if I tried to
watch the video on screen or actually tried to capture some video, the
driver and/or machine would crash. So either the DC30 tries to allocate
some additional buffers with the wrong APIs or, as indicated by the
error message, something else with the I2C interface is broken.

> 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.

That would certainly help to narrow down the problem in case it's
something specific to the DC30 chipset drivers.

> I don't know of any other tool to record from a zoran based car. A patch 
> for lavrec would be really great.

Ok, I'm currently hacking something together just to make it capture
with a mostly fixed set of parameters. Trying to translate the existing
lavrec data structures to V4L2 syscalls isn't that easy, because there
is no one-to-one correspondence for the whole decimation settings and
many parameters for input and norm selection also look quite different.

Regards,
Klaus


------------------------------------------------------------------------------
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