Trouble porting Geode LX Graphics_Video4Linux2_03.03.0000

Yoder, John John.Yoder at amd.com
Fri Jun 6 13:20:24 EDT 2008


On 06/06/08 12:48 +0200, Holger Mueller wrote:

> Hello,

> 

> a customer asked me to port the 2.6.11 v4l2 driver to  a 2.6.18 kernel


> for their embedded hardware.

> 

> In general Linux works well on that machine, and they have chosen 

> 2.6.18 as kernel version for their system image.

> 

> The Cimarron driver compiles cleanly on the newer kernel (geode 

> registers are accessible and seem to be in sane state).

> 

> The lxv4l2 part was a little bit harder (detection of pci devices has 

> changed).

> 

> After initializing  the saa7115 video decoder the geode registers the 

> clock interrupt of the video signal.

> 

> Now my problem:

> 

> by calling you example Application LinuxVPE I only get a rectangular 

> overlay which is grayed! out. Mr. Pietrek and I have tried to figure 

> out where this gray color is coming from.

 

I am not familiar with the LinuxVPE application, so I don't know what
color key it uses, but a grey key would be somewhat sane.  If it is a
grey key, then your problem is that you are not getting any video in, or
it isn't being correctly sent to the overlay.

 

> Setting ckey_x to 0 in cim_df.c results in no visible change at all.

> around line 679:

> WRITE_REG32 (DC3_CLR_KEY_X, ckey_x);

 

That register controls the color key for graphics, which is probably not
what you are looking for.  You need to verify that the video data is
being correctly written into memory and that the overlay is set up to
process the color space.

 

 

The grey color does come from the color key. However, the only instance
that I am aware of with the Graphics_Video4Linux2_03.03.0000 driver
where you will get a grey window as you suggest is when there is no
video in the frame buffer. Please verify your video source. Does your
setup work with the 2.6.11 kernel and Graphics_Video4Linux2_03.03.0000
driver version?

 

What really bothers me is the statement:

  "lxv4l2 part was a little bit harder (detection of pci devices has
changed).

   After  initializing  the saa7115 video decoder the geode registers
the 

   clock interrupt of the video signal."

 

The Graphics_Video4Linux2_03.03.0000 does not include any code for
saa7115, so I don't know anything about this. Could you please send me
your patch to look at it?

 

John Yoder



 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://bombadil.infradead.org/pipermail/linux-geode/attachments/20080606/82748315/attachment.html 


More information about the Linux-geode mailing list