[opensuse-factory] USB Gadget Support

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

On 09/27/2018, 04:50 PM, Nicolas Saenz Julienne wrote:
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

On Sonntag, 30. September 2018 09:51:15 CEST Jiri Slaby wrote:
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

Hi Jiri, On Sun, 2018-09-30 at 09:51 +0200, Jiri Slaby wrote:
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,

On Montag, 1. Oktober 2018 18:31:50 CEST Nicolas Saenz Julienne wrote:
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

On So, 2018-09-30 at 09:51 +0200, Jiri Slaby wrote:
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

On 09/27/2018, 04:50 PM, Nicolas Saenz Julienne wrote:
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

On Sonntag, 30. September 2018 09:51:15 CEST Jiri Slaby wrote:
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

Hi Jiri, On Sun, 2018-09-30 at 09:51 +0200, Jiri Slaby wrote:
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,

On Montag, 1. Oktober 2018 18:31:50 CEST Nicolas Saenz Julienne wrote:
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

On So, 2018-09-30 at 09:51 +0200, Jiri Slaby wrote:
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