Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 2009 10:10:50 -0800
From:      Julian Elischer <julian@elischer.org>
To:        freebsd-emulation@freebsd.org
Subject:   Re: freebsd-emulation Digest, Vol 342, Issue 5
Message-ID:  <4B06DBAA.2010101@elischer.org>
In-Reply-To: <20091120120017.C95E71065717@hub.freebsd.org>
References:  <20091120120017.C95E71065717@hub.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
freebsd-emulation-request@freebsd.org wrote:
> Send freebsd-emulation mailing list submissions to
> 	freebsd-emulation@freebsd.org
> 
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.freebsd.org/mailman/listinfo/freebsd-emulation
> or, via email, send a message with subject or body 'help' to
> 	freebsd-emulation-request@freebsd.org
> 
> You can reach the person managing the list at
> 	freebsd-emulation-owner@freebsd.org
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of freebsd-emulation digest..."
> 
> 
> Today's Topics:
> 
>    1. Emulation of Linux V4L ioctls (J.R. Oldroyd)
>    2. Re: Emulation of Linux V4L ioctls (Roman Divacky)
>    3. Re: Emulation of Linux V4L ioctls (Alexander Leidinger)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Thu, 19 Nov 2009 15:31:59 -0500
> From: "J.R. Oldroyd" <fbsd@opal.com>
> Subject: Emulation of Linux V4L ioctls
> To: freebsd-emulation@freebsd.org
> Message-ID: <20091119153159.610debc2@shibato.opal.com>
> Content-Type: text/plain; charset=US-ASCII
> 
> I have added support for emulation of the Linux V4L video ioctls
> in compat/linux/linux_ioctl.[ch].
> 
> I am not a committer; the work can be found here:
> 	http://opal.com/freebsd/sys/compat/linux/
> These diffs are made to the 8.0-rc3 sources.
> 
> This enables webcam video to work using the linux-skype port
> and a pwcbsd-based camera.  I expect it will also allow any other
> linux-port to work now, but have only tested with skype.
> 
> I have noticed, however, that flash-based webcam apps cause
> the npviewer.bin process to hang, so that is not yet working.
> Anyone with thoughts on what is going on in the various flash
> support layers is welcome to comment on this.
> 
> 	-jr
> 
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 20 Nov 2009 09:03:17 +0100
> From: Roman Divacky <rdivacky@freebsd.org>
> Subject: Re: Emulation of Linux V4L ioctls
> To: "J.R. Oldroyd" <fbsd@opal.com>
> Cc: freebsd-emulation@freebsd.org
> Message-ID: <20091120080317.GA18284@freebsd.org>
> Content-Type: text/plain; charset=us-ascii
> 
> On Thu, Nov 19, 2009 at 03:31:59PM -0500, J.R. Oldroyd wrote:
>> I have added support for emulation of the Linux V4L video ioctls
>> in compat/linux/linux_ioctl.[ch].
>>
>> I am not a committer; the work can be found here:
>> 	http://opal.com/freebsd/sys/compat/linux/
>> These diffs are made to the 8.0-rc3 sources.
>>
>> This enables webcam video to work using the linux-skype port
>> and a pwcbsd-based camera.  I expect it will also allow any other
>> linux-port to work now, but have only tested with skype.
>>
>> I have noticed, however, that flash-based webcam apps cause
>> the npviewer.bin process to hang, so that is not yet working.
>> Anyone with thoughts on what is going on in the various flash
>> support layers is welcome to comment on this.
> 
> I just glanced over it but it looks good...
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Fri, 20 Nov 2009 10:35:35 +0100
> From: Alexander Leidinger <Alexander@Leidinger.net>
> Subject: Re: Emulation of Linux V4L ioctls
> To: "J.R. Oldroyd" <fbsd@opal.com>
> Cc: freebsd-emulation@freebsd.org
> Message-ID: <20091120103535.815072bwgvis0io0@webmail.leidinger.net>
> Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed"
> 
> Quoting "J.R. Oldroyd" <fbsd@opal.com> (from Thu, 19 Nov 2009 15:31:59 -0500):
> 
>> I have added support for emulation of the Linux V4L video ioctls
>> in compat/linux/linux_ioctl.[ch].
> 
> Wow, great!
> 
>> I am not a committer; the work can be found here:
>> 	http://opal.com/freebsd/sys/compat/linux/
>> These diffs are made to the 8.0-rc3 sources.
> 
> Some things I noticed and worry about:
>   - videodev.h does not have a license, did you generate it
>     yourself or did you take it from somewhere?


I have emails from the original V4L(2) developers statingthat the v4l
include files represent an API and as such they did not copyright them 
and we are welcome to use them directly.


>   - Does it needs to be named videodev.h, or can it also be
>     linux_videodev.h?
>     (if we may want to install this header at some point in time,
>     it should have a name compatible with linux, else we should
>     maybe add a linux_ prefix for consistence and for making it
>     very obvious what we are talking about)
>   - Why are you using __s32 and so on instead of the normal
>     fixed size int types? We also have lint for "linux int"
>     and so on in other files.
>   - On which architecture has this been tested?
>   - Will it run in linux32 emulation on amd64?
>   - Are those structures known in userland (and as such need to
>     have a specific size)? If yes, do they have different sizes
>     in linux depending if the kernel is a 64bit kernel (amd64)
>     or 32bit kernel (x86)?
>   - Has this been run through a "make universe"?
> 
> Bye,
> Alexander.
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B06DBAA.2010101>