Re: Zoran Linux driver 64-bit support

Klaus Stengel <[email protected]> Sun, 29 May 2011 17:17:26 +0200
Newsgroups gmane.comp.video.mjpeg.devel
Message-ID <[email protected]>
Hi Bernhard,

Bernhard Praschinger wrote:
> >> Do you need to load any modules manual ?
> > No. On Debian squeeze I didn't have to load anything manually. It just
> > works out of the box.
> Are the driver for the additional IC's like advc7175, or saa7110 also 
> loaded ?

Yes. The reason why those aren't loaded on your machine is because the
autodetection of those depends on the proper initialization of the
i2c-bus on the zoran card. If that doesn't work, the zoran driver won't
issue a request to load those drivers.

> > You could try to add a short delay immediately after the call to
> > zr36057_restart in zoran_card.c (around line 1353) by inserting the
> > following line:
> > mdelay(1);
> I did and recompiled it but it did not change anything.
> 
> I did load the kernel with the option i2c_debug=3
> And I have attached the log from dmesg.

Ok, thanks. After having a closer look on the ic2-algo-bit driver again,
I think found the culprit (at least I can reproduce it now). I noticed
that the bus testing that fails on your machine is supposed to be
disabled by default; At least on my machine it doesn't even try it in
the first place, and if I explicitly enable it, I get the same error you
reported ;-)

So, could you try to execute "rgrep bit_test /etc/ 2>/dev/null" and see
if bit_test is set to 1 in one of your module configuration files? Does
it work if you set it to zero instead, or reload the i2c-algo-bit module
with bit_test=0 as parameter? Note that you may have to rebuild your
initramfs for your kernel after changing the module configuration.

I also found some recommendation in the Linux documentation to enable
the bit_test for bttv cards, in case the driver needs a very long time
to start. Maybe you enabled that when testing with a bttv, or the
default on the SuSE distributions is just different for some reason.

> > Additionally, you should try to get more debug output for both the
> > i2c_algo_bit and zr36067 modules. You can try to remove both modules and
> > load them again with modprobe and the parameters i2c_debug=3 for
> > i2c_algo_bit and debug=5 for zr36067.
> Is the proper command for loading the module with that option:
> modprobe -v zr36067 zr36067_debug=5 ?

I guess it's supposed to be just debug=5 instead of zr36067_debug=5.
However, it probably wouldn't really have had any effect anyway because
the zoran module already fails in quite an early initialization phase.

> Do you think that it would help disabling the onboard graphic card and 
> installing a extra graphic card ? I have a ATI Radeon HD2600 card around 
> from my MAC I could use for testing.

No, I don't think it has any relationship with your graphics card. 

Regards,
Klaus


------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1