From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=36290 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OnqZe-0003aw-5v for qemu-devel@nongnu.org; Tue, 24 Aug 2010 06:17:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OnqZc-0001Sv-Sc for qemu-devel@nongnu.org; Tue, 24 Aug 2010 06:17:46 -0400 Received: from mail-wy0-f173.google.com ([74.125.82.173]:46913) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OnqZc-0001Sh-Gc for qemu-devel@nongnu.org; Tue, 24 Aug 2010 06:17:44 -0400 Received: by wyb40 with SMTP id 40so282767wyb.4 for ; Tue, 24 Aug 2010 03:17:43 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 24 Aug 2010 15:47:42 +0530 Message-ID: Subject: Re: [Qemu-devel] Emulate character device From: Thisara Rupasinghe Content-Type: multipart/alternative; boundary=0016e649ce46617c68048e8f1308 List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: qemu-devel --0016e649ce46617c68048e8f1308 Content-Type: text/plain; charset=ISO-8859-1 Thank you Stefan, I will work on this. Thanks for the support. On Tue, Aug 24, 2010 at 2:43 PM, Stefan Hajnoczi wrote: > On Tue, Aug 24, 2010 at 10:02 AM, Thisara Rupasinghe > wrote: > > Thank you very much for your information. > > > > That means i can pass web cam as usb device into the emulator. right? > > If you can give me some directions, that will be very helpful. > > Please keep qemu-devel@nongnu.org CCed so others can help too. > > Passing a USB webcam into the Android guest would work if the Android > OS has the required USB webcam driver. You could check the Android > source tree or ask the developers to understand what webcam drivers > are available. > > QEMU USB passthrough works like this: > $ qemu -usb -usbdevice host:VVVV:DDDD > > Where VVVV is the vendor ID and DDDD is the product ID of the device. > You can find these using lsusb(1) on the host. For example: > $ lsusb > Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub > Bus 006 Device 003: ID 413c:2003 Dell Computer Corp. Keyboard > Bus 006 Device 002: ID 413c:3012 Dell Computer Corp. Optical Wheel Mouse > > If I want to pass through the keyboard, I use -usbdevice host:413c:2003. > > I haven't tested these steps, it's been a while since I used USB > passthrough. For a full guide, try: > http://bitbud.com/2008/08/09/usb-device-passthrough-under-kvm/ > > Stefan > -- Thanks & Regards, Thisara. --0016e649ce46617c68048e8f1308 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thank you Stefan,
I will work on this.

Thanks for the support.
On Tue, Aug 24, 2010 at 2:43 PM, Stefan Haj= noczi <stefanha@= gmail.com> wrote:
On Tue, Aug 24, 2010 at 10:02 AM, Thisara Rupasinghe
<thisarattr@gmail.com> wr= ote:
> Thank you very much for your information.
>
> That means i can pass web cam as usb device into the emulator. right?<= br> > If you can give me some directions, that will be very helpful.

Please keep qemu-devel@nongn= u.org CCed so others can help too.

Passing a USB webcam into the Android guest would work if the Android
OS has the required USB webcam driver. =A0You could check the Android
source tree or ask the developers to understand what webcam drivers
are available.

QEMU USB passthrough works like this:
$ qemu -usb -usbdevice host:VVVV:DDDD

Where VVVV is the vendor ID and DDDD is the product ID of the device.
You can find these using lsusb(1) on the host. =A0For example:
$ lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 003: ID 413c:2003 Dell Computer Corp. Keyboard
Bus 006 Device 002: ID 413c:3012 Dell Computer Corp. Optical Wheel Mouse
If I want to pass through the keyboard, I use -usbdevice host:413c:2003.
I haven't tested these steps, it's been a while since I used USB passthrough. =A0For a full guide, try:
http://bitbud.com/2008/08/09/usb-device-passthrough-under= -kvm/

Stefan



--
Thanks & Reg= ards,
Thisara.
--0016e649ce46617c68048e8f1308--