From owner-freebsd-emulation@FreeBSD.ORG Fri Nov 20 18:10:52 2009 Return-Path: Delivered-To: freebsd-emulation@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 483F51065670 for ; Fri, 20 Nov 2009 18:10:52 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outV.internet-mail-service.net (outv.internet-mail-service.net [216.240.47.245]) by mx1.freebsd.org (Postfix) with ESMTP id 2D7C28FC20 for ; Fri, 20 Nov 2009 18:10:51 +0000 (UTC) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 54E7114DF6D for ; Fri, 20 Nov 2009 10:11:04 -0800 (PST) X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (h-67-100-89-137.snfccasy.static.covad.net [67.100.89.137]) by idiom.com (Postfix) with ESMTP id 3EDB42D6014 for ; Fri, 20 Nov 2009 10:10:51 -0800 (PST) Message-ID: <4B06DBAA.2010101@elischer.org> Date: Fri, 20 Nov 2009 10:10:50 -0800 From: Julian Elischer User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: freebsd-emulation@freebsd.org References: <20091120120017.C95E71065717@hub.freebsd.org> In-Reply-To: <20091120120017.C95E71065717@hub.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: freebsd-emulation Digest, Vol 342, Issue 5 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Nov 2009 18:10:52 -0000 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" > 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 > Subject: Re: Emulation of Linux V4L ioctls > To: "J.R. Oldroyd" > 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 > Subject: Re: Emulation of Linux V4L ioctls > To: "J.R. Oldroyd" > 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" (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. >