* [Qemu-devel] git master: usb-host needs additional parameters - no documentation which
@ 2013-11-26 14:52 Erik Rull
2013-11-26 15:57 ` Gerd Hoffmann
0 siblings, 1 reply; 7+ messages in thread
From: Erik Rull @ 2013-11-26 14:52 UTC (permalink / raw)
To: qemu-devel@nongnu.org; +Cc: Gerd Hoffmann
Hi all,
when using the latest GIT master qemu fails with the following error:
qemu-system-x86_64: -device usb-host,bus=ehci.0: Parameter 'driver' expects
device type
I haven't changed anything in the call parameters since 1.2.0 and the
documentation that is provided in the GIT repository doesn't show any mistakes
to me. Btw. the "bus" parameter is still missing there.
If there is a new way of routing usb devices to the guest, I would like to get
the information how to do that.
Thanks.
Best regards,
Erik
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] git master: usb-host needs additional parameters - no documentation which
2013-11-26 14:52 [Qemu-devel] git master: usb-host needs additional parameters - no documentation which Erik Rull
@ 2013-11-26 15:57 ` Gerd Hoffmann
2013-11-26 16:44 ` Erik Rull
0 siblings, 1 reply; 7+ messages in thread
From: Gerd Hoffmann @ 2013-11-26 15:57 UTC (permalink / raw)
To: Erik Rull; +Cc: qemu-devel@nongnu.org
On Di, 2013-11-26 at 15:52 +0100, Erik Rull wrote:
> Hi all,
>
> when using the latest GIT master qemu fails with the following error:
> qemu-system-x86_64: -device usb-host,bus=ehci.0: Parameter 'driver' expects
> device type
Any chance you don't have libusbx-devel installed and qemu is therefore
built without usb-host support?
cheers,
Gerd
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] git master: usb-host needs additional parameters - no documentation which
2013-11-26 15:57 ` Gerd Hoffmann
@ 2013-11-26 16:44 ` Erik Rull
2013-11-26 17:29 ` Erik Rull
2013-11-27 6:53 ` Gerd Hoffmann
0 siblings, 2 replies; 7+ messages in thread
From: Erik Rull @ 2013-11-26 16:44 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: qemu-devel@nongnu.org
Hi Gerd,
I only have libusb (0.1 and 1.0) installed. Is there a chance to get an
error message a bit earlier - or a warning that the usb-host support was
disabled? configure doesn't print out a libusb - disabled message when not
passing the libusb-parameter.
I tried now explicitly with --enable-libusb - fails :-(
I would like to point to a different version of libusb - my built machine
has the sources for the latest libusb but not in the location where it is
expected for a standard distribution...
My target system has this library available but there I can't compile, so
qemu should run there.
I'm really interested getting qemu running again, but I'm running from
trouble to trouble now for more than 4 weeks - python, ACPI, USB,...
Thanks.
Best regards,
Erik
Gerd Hoffmann wrote:
> On Di, 2013-11-26 at 15:52 +0100, Erik Rull wrote:
>> Hi all,
>>
>> when using the latest GIT master qemu fails with the following error:
>> qemu-system-x86_64: -device usb-host,bus=ehci.0: Parameter 'driver' expects
>> device type
>
> Any chance you don't have libusbx-devel installed and qemu is therefore
> built without usb-host support?
>
> cheers,
> Gerd
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] git master: usb-host needs additional parameters - no documentation which
2013-11-26 16:44 ` Erik Rull
@ 2013-11-26 17:29 ` Erik Rull
2013-11-26 17:59 ` Paolo Bonzini
2013-11-27 6:53 ` Gerd Hoffmann
1 sibling, 1 reply; 7+ messages in thread
From: Erik Rull @ 2013-11-26 17:29 UTC (permalink / raw)
To: Gerd Hoffmann; +Cc: qemu-devel@nongnu.org
Erik Rull wrote:
> Hi Gerd,
>
> I only have libusb (0.1 and 1.0) installed. Is there a chance to get an
> error message a bit earlier - or a warning that the usb-host support was
> disabled? configure doesn't print out a libusb - disabled message when not
> passing the libusb-parameter.
>
> I tried now explicitly with --enable-libusb - fails :-(
> I would like to point to a different version of libusb - my built machine
> has the sources for the latest libusb but not in the location where it is
> expected for a standard distribution...
> My target system has this library available but there I can't compile, so
> qemu should run there.
>
> I'm really interested getting qemu running again, but I'm running from
> trouble to trouble now for more than 4 weeks - python, ACPI, USB,...
>
> Thanks.
>
> Best regards,
>
> Erik
>
>
>
>
> Gerd Hoffmann wrote:
>> On Di, 2013-11-26 at 15:52 +0100, Erik Rull wrote:
>>> Hi all,
>>>
>>> when using the latest GIT master qemu fails with the following error:
>>> qemu-system-x86_64: -device usb-host,bus=ehci.0: Parameter 'driver' expects
>>> device type
>>
>> Any chance you don't have libusbx-devel installed and qemu is therefore
>> built without usb-host support?
>>
>> cheers,
>> Gerd
>>
>>
>
>
Just a thought:
Snippet from configure:
libusb_cflags=$($pkg_config --cflags libusb-1.0)
libusb_libs=$($pkg_config --libs libusb-1.0)
QEMU_CFLAGS="$QEMU_CFLAGS $libusb_cflags"
libs_softmmu="$libs_softmmu $libusb_libs"
Is it possible to expose the two libusb_ variables to a
configure-parameter? This would be sufficient for me to compile qemu with
the parameters I need. I don't have the package installed but the includes
and libs are present on the build machine and the lib is available on the
target machine.
Best regards,
Erik
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] git master: usb-host needs additional parameters - no documentation which
2013-11-26 17:29 ` Erik Rull
@ 2013-11-26 17:59 ` Paolo Bonzini
2013-11-27 6:55 ` Gerd Hoffmann
0 siblings, 1 reply; 7+ messages in thread
From: Paolo Bonzini @ 2013-11-26 17:59 UTC (permalink / raw)
To: Erik Rull; +Cc: Gerd Hoffmann, qemu-devel@nongnu.org
Il 26/11/2013 18:29, Erik Rull ha scritto:
>
> Just a thought:
> Snippet from configure:
>
> libusb_cflags=$($pkg_config --cflags libusb-1.0)
> libusb_libs=$($pkg_config --libs libusb-1.0)
> QEMU_CFLAGS="$QEMU_CFLAGS $libusb_cflags"
> libs_softmmu="$libs_softmmu $libusb_libs"
>
> Is it possible to expose the two libusb_ variables to a
> configure-parameter? This would be sufficient for me to compile qemu
> with the parameters I need. I don't have the package installed but the
> includes and libs are present on the build machine and the lib is
> available on the target machine.
Note that configure does have this:
echo "libusb $libusb"
It seems strange to me that you have includes and libs but no .pc file.
Perhaps the pkg-config path (PKG_CONFIG_PATH) is not set correctly?
Note that in the meanwhile you can use "-device usb-host-linux", I think.
Paolo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] git master: usb-host needs additional parameters - no documentation which
2013-11-26 16:44 ` Erik Rull
2013-11-26 17:29 ` Erik Rull
@ 2013-11-27 6:53 ` Gerd Hoffmann
1 sibling, 0 replies; 7+ messages in thread
From: Gerd Hoffmann @ 2013-11-27 6:53 UTC (permalink / raw)
To: Erik Rull; +Cc: qemu-devel@nongnu.org
On Di, 2013-11-26 at 17:44 +0100, Erik Rull wrote:
> Hi Gerd,
>
> I only have libusb (0.1 and 1.0) installed. Is there a chance to get an
> error message a bit earlier - or a warning that the usb-host support was
> disabled? configure doesn't print out a libusb - disabled message when not
> passing the libusb-parameter.
It lists libusb like everything else:
[ ... ]
xfsctl support no
nss used yes
libusb yes <====
usb net redir yes
[ ... ]
> I tried now explicitly with --enable-libusb - fails :-(
Again standard configure behavior: If you explicitly ask for a feature
and the dependencies are not found configure will error out (instead of
silently disabling the feature).
> I would like to point to a different version of libusb - my built machine
> has the sources for the latest libusb but not in the location where it is
> expected for a standard distribution...
pkg-config is used for detection, so if you set PKG_CONFIG_PATH to
include your custom location configure should find it.
HTH,
Gerd
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Qemu-devel] git master: usb-host needs additional parameters - no documentation which
2013-11-26 17:59 ` Paolo Bonzini
@ 2013-11-27 6:55 ` Gerd Hoffmann
0 siblings, 0 replies; 7+ messages in thread
From: Gerd Hoffmann @ 2013-11-27 6:55 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: Erik Rull, qemu-devel@nongnu.org
Hi,
> Note that in the meanwhile you can use "-device usb-host-linux", I think.
That is true for 1.5 + 1.6, but in 1.7 the old non-libusb code is gone.
cheers,
Gerd
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2013-11-27 6:55 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-26 14:52 [Qemu-devel] git master: usb-host needs additional parameters - no documentation which Erik Rull
2013-11-26 15:57 ` Gerd Hoffmann
2013-11-26 16:44 ` Erik Rull
2013-11-26 17:29 ` Erik Rull
2013-11-26 17:59 ` Paolo Bonzini
2013-11-27 6:55 ` Gerd Hoffmann
2013-11-27 6:53 ` Gerd Hoffmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).