[opensuse-factory] USB Gadget Support
![](https://seccdn.libravatar.org/avatar/c9cd36c11b384c233c9ede5226533739.jpg?s=120&d=mm&r=g)
Hi all, I've stumbled upon this Bug ( https://bugzilla.novell.com/show_bug.cgi?id=1108320) asking for USB gadget support. The bug's resolved since adding it on Leap seems unlikely. Yet I see it's enabled for arm64 on Tumbleweed. Would it cause any problem for us to also enable it on x86_64? Regards, Nicolas
![](https://seccdn.libravatar.org/avatar/aebdf31d465b04113cd13a6bffde8527.jpg?s=120&d=mm&r=g)
On 09/27/2018, 04:50 PM, Nicolas Saenz Julienne wrote:
Hi all, I've stumbled upon this Bug ( https://bugzilla.novell.com/show_bug.cgi?id=1108320) asking for USB gadget support. The bug's resolved since adding it on Leap seems unlikely. Yet I see it's enabled for arm64 on Tumbleweed. Would it cause any problem for us to also enable it on x86_64?
menuconfig USB_GADGET Enable this configuration option if you want to run Linux inside a USB peripheral device. Is this the case for x86_64? What device you have and is not supported in tumbleweed? Do you have an lsusb output? thanks, -- js suse labs
![](https://seccdn.libravatar.org/avatar/a725014f091bcd9e8ff16e9f2a0d7e20.jpg?s=120&d=mm&r=g)
On Sonntag, 30. September 2018 09:51:15 CEST Jiri Slaby wrote:
On 09/27/2018, 04:50 PM, Nicolas Saenz Julienne wrote:
Hi all, I've stumbled upon this Bug ( https://bugzilla.novell.com/show_bug.cgi?id=1108320) asking for USB gadget support. The bug's resolved since adding it on Leap seems unlikely. Yet I see it's enabled for arm64 on Tumbleweed. Would it cause any problem for us to also enable it on x86_64?
menuconfig USB_GADGET Enable this configuration option if you want to run Linux inside a USB peripheral device.
Is this the case for x86_64? What device you have and is not supported in tumbleweed? Do you have an lsusb output?
thanks,
The only prerequisite is the hardware implements either DR/OTG or a dedicated device controller. Although this is much more common for ARM devices, there is nothing for ruling this out. E.g (although 32bit): https://www.intel.com/content/dam/www/public/us/en/documents/manuals/quark-x... The no longer available Intel Joule (64bit) also had a DR capable controller. Kind regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen home: +49 241 53809034 mobile: +49 151 50412019
![](https://seccdn.libravatar.org/avatar/c9cd36c11b384c233c9ede5226533739.jpg?s=120&d=mm&r=g)
Hi Jiri, On Sun, 2018-09-30 at 09:51 +0200, Jiri Slaby wrote:
On 09/27/2018, 04:50 PM, Nicolas Saenz Julienne wrote:
Hi all, I've stumbled upon this Bug ( https://bugzilla.novell.com/show_bug.cgi?id=1108320) asking for USB gadget support. The bug's resolved since adding it on Leap seems unlikely. Yet I see it's enabled for arm64 on Tumbleweed. Would it cause any problem for us to also enable it on x86_64?
menuconfig USB_GADGET Enable this configuration option if you want to run Linux inside a USB peripheral device.
Is this the case for x86_64? What device you have and is not supported in tumbleweed? Do you have an lsusb output?
The user that created the bug points to this library: https://wiki.analog.com/resources/tools-software/linux-software/libiio#how_t... It seems to need gadget support to build/run some of it's components. I can't really comment on why the library needs it. We do provide this module in tumbleweed: https://kernel.opensuse.org/cgit/kernel/tree/drivers/usb/roles/intel-xhci-us... It adds USB host/device switching capabilities on some Intel platforms and it's useless as long as we don't add gadget support. Sadly, I don't have any HW available to test it. Even if a corner case, someone may want to play around with it. Best, Nicolas
thanks,
![](https://seccdn.libravatar.org/avatar/a725014f091bcd9e8ff16e9f2a0d7e20.jpg?s=120&d=mm&r=g)
On Montag, 1. Oktober 2018 18:31:50 CEST Nicolas Saenz Julienne wrote:
Hi Jiri,
On Sun, 2018-09-30 at 09:51 +0200, Jiri Slaby wrote:
On 09/27/2018, 04:50 PM, Nicolas Saenz Julienne wrote:
Hi all, I've stumbled upon this Bug ( https://bugzilla.novell.com/show_bug.cgi?id=1108320) asking for USB gadget support. The bug's resolved since adding it on Leap seems unlikely. Yet I see it's enabled for arm64 on Tumbleweed. Would it cause any problem for us to also enable it on x86_64?
menuconfig USB_GADGET
Enable this configuration option if you want to run Linux inside a USB peripheral device.
Is this the case for x86_64? What device you have and is not supported in tumbleweed? Do you have an lsusb output?
The user that created the bug points to this library: https://wiki.analog.com/resources/tools-software/linux-software/libiio#how_t o_build_it It seems to need gadget support to build/run some of it's components. I can't really comment on why the library needs it.
I think the original reporter is confusing two things, initiator and target. If you scroll to the top of the iio wiki page, you will see a diagram with a network link, i.e. libiio is using the Network Backend. Now, mentally replace the network link with USB. As USB is asymetric (Device/ Host), one of the two has to be a device (and I assume it has to be the "target", i.e. the computer exporting the IIO devices). As far as I can see, the initiator (the computer on the right, in this case running Windows) only requires libusb. Currently, libiio in project hardware (and by linking hardware:sdr) is compiled without libusb support. Submission with USB support pending: https://build.opensuse.org/request/show/639445 Kind regards, Stefan -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
![](https://seccdn.libravatar.org/avatar/ca718a38fd132c320ab1c8a9ab68d372.jpg?s=120&d=mm&r=g)
On So, 2018-09-30 at 09:51 +0200, Jiri Slaby wrote:
On 09/27/2018, 04:50 PM, Nicolas Saenz Julienne wrote:
Hi all, I've stumbled upon this Bug ( https://bugzilla.novell.com/show_bug.cgi?id=1108320) asking for USB gadget support. The bug's resolved since adding it on Leap seems unlikely. Yet I see it's enabled for arm64 on Tumbleweed. Would it cause any problem for us to also enable it on x86_64?
menuconfig USB_GADGET Enable this configuration option if you want to run Linux inside a USB peripheral device.
Is this the case for x86_64? What device you have and is not supported in tumbleweed? Do you have an lsusb output?
You would see it in lspci, not lsusb. Technically, if we do it for one architecture we can do it for every architecture. THe main fear I see concerning this is the security issue. There has been no audit of the gadget drivers. Regards Oliver -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
participants (5)
-
Brüns, Stefan
-
Jiri Slaby
-
Nicolas Saenz Julienne
-
Oliver Neukum
-
Stefan Brüns