List Info

Thread: TS-7800 ioctl issues while using v4l and webcams




TS-7800 ioctl issues while using v4l and webcams
country flaguser name
United States
2008-03-25 14:15:35

Dear community,

We had in the past an application based on webcam-server running fine
on the TS-7300 (kernel 2.4.x) with two old webcams using the pwc 9.x
driver.

Now, we have take a step into a brand new TS-7800 (btw there is no
adequate manual or enough information, we are pretty disappointed
about the lack of documentation on the FPGA but that's another story).

About my issue, so we tried our application on our TS-7800 (kernel
2.6.21) but it's not working. The webcam is well recognized and
cat /dev/video0 gives an output.

But when launching the application we are getting ioctl issues:

rootts7800:root# webcam-server
ioctl (VIDIOCGCAP): Invalid argument
ioctl (VIDIOCSPICT): Invalid argument
error setting video device parameters, using defaults
ioctl (VIDIOCGCAP): Invalid argument
ioctl (VIDIOCSPICT): Invalid argument
not a valid video device? quitting.

What could be done ?
A video for linux version issue, a pwc driver issue ?
Does anyone can suggest another distribution to put on the last
partition of the SD card ?

We tried all different os version available on the ftp, crosscompiled
with all different crosstool available, still the same errors.

Thanks for your help as the support staff doesn't reply for weeks,

Happy Easter,
Francois

__._,_.___
.

__,_._,___
Re: TS-7800 ioctl issues while using v4l and webcams
country flaguser name
Australia
2008-03-25 18:27:20

On Tue, Mar 25, 2008 at 07:15:35PM -0000, tigordito wrote:
> We had in the past an application based on webcam-server running fine
> on the TS-7300 (kernel 2.4.x) with two old webcams using the pwc 9.x
> driver. ...
> But when launching the application we are getting ioctl issues: ..

On EABI kernels, the support for non-EABI binaries is not perfect and
might produce a problem like this with ioctls - it does with Alsa.

You could try an EABI userland. I'd recommend the
arm-ep9312-linux-gnueabi toolchain on Martin Guy's web pages
http://freaknet.org/martin/crosstool/packages/

Andrew

__._,_.___
.

__,_._,___
Re: TS-7800 ioctl issues while using v4l and webcams
country flaguser name
United States
2008-03-29 10:58:01

Hi --

--- In ts-7000%40yahoogroups.com">ts-7000yahoogroups.com, "tigordito" <francois...> wrote:
&gt;
> Dear community,
>
> We had in the past an application based on webcam-server running
fine
> on the TS-7300 (kernel 2.4.x) with two old webcams using the pwc
9.x
> driver.
>
> Now, we have take a step into a brand new TS-7800 (btw there is no
> adequate manual or enough information, we are pretty disappointed
> about the lack of documentation on the FPGA but that's another
story).
>
> About my issue, so we tried our application on our TS-7800 (kernel
> 2.6.21) but it's not working. The webcam is well recognized and
> cat /dev/video0 gives an output.
>
> But when launching the application we are getting ioctl issues:
>
> rootts7800:root# webcam-server
> ioctl (VIDIOCGCAP): Invalid argument
> ioctl (VIDIOCSPICT): Invalid argument
> error setting video device parameters, using defaults
> ioctl (VIDIOCGCAP): Invalid argument
> ioctl (VIDIOCSPICT): Invalid argument
> not a valid video device? quitting.
>
>
> What could be done ?
> A video for linux version issue, a pwc driver issue ?
> Does anyone can suggest another distribution to put on the last
> partition of the SD card ?
>
> We tried all different os version available on the ftp,
crosscompiled
> with all different crosstool available, still the same errors.
>
>
> Thanks for your help as the support staff doesn't reply for weeks,
&gt;
> Happy Easter,
> Francois
>

Sorry to jump in late, but isn't the 9.x version of pwc quite old?
IIRC, that is the one that needed a binary blob to work well. It
would work without it, but you needed the binary blob to get full
functionality.

I would be very surprised if that worked on a 2.6 kernel. Have you
tried the 10.0.12 driver (or a later snapshot)? It does not need a
binary blob, works with many more cameras, and is designed for v4l2
in 2.6 kernels:
http://www.saillard.org/linux/pwc/

Regards, .......... Charlie

__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )