Re: Zoran Linux driver 64-bit support

Bernhard Praschinger <[email protected]> Sun, 12 Jun 2011 12:39:21 +0200
Newsgroups gmane.comp.video.mjpeg.devel
Message-ID <[email protected]>
Hallo

This is a follow-up to my last mail.

> 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.
The driver loads, as mentioned in my last mail.

xawtv detects the DC30:
 > xawtv -hwscan
This is xawtv-3.95, running on Linux/x86_64 (2.6.38.7-0.5-desktop)
looking for available devices
port 63-78
     type : Xvideo, image scaler
     name : Radeon Textured Video

/dev/video0: OK                         [ -device /dev/video0 ]
     type : v4l2
     name : DC30plus[0]
     flags: overlay capture

When I try not run xawtv I get always that kind of error:
 > xawtv
This is xawtv-3.95, running on Linux/x86_64 (2.6.38.7-0.5-desktop)
xinerama 0: 1600x1200+0+0
WARNING: couldn't find framebuffer base address, try manual
          configuration ("v4l-conf -a <addr>")
v4l2: WARNING: framebuffer base address mismatch

Running v4l-conf does not help me either:
# v4l-conf
v4l-conf: using X11 display :0
dga: version 2.0
mode: 1600x1200, depth=24, bpp=32, bpl=28, base=unknown
WARNING: couldn't find framebuffer base address, try manual
          configuration ("v4l-conf -a <addr>")
/dev/video0 [v4l2]: configuration done

I found the hint that I can specify the address of the v4l device so I 
did that: /sys/bus/pci/devices/0000:03:07.0> cat resource
0x00000000fdcfe000 0x00000000fdcfefff 0x0000000000040200
...
v4l-conf -a 0x00000000fdcfe000

Using the first address did frezze the system.
Can this problem be related to the built in grafic card ?

auf hoffentlich bald,

Berni the Chaos of Woodquarter

Email: [email protected]
www: http://www.lysator.liu.se/~gz/bernhard

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev