Skip to content

Instantly share code, notes, and snippets.

@Informatic
Created April 21, 2026 19:33
Show Gist options
  • Select an option

  • Save Informatic/6c62d9cc5b9d104113135ebba6c15c71 to your computer and use it in GitHub Desktop.

Select an option

Save Informatic/6c62d9cc5b9d104113135ebba6c15c71 to your computer and use it in GitHub Desktop.
Wyse 3040 USB Gadget hack

Wyse 3040 USB3 front port can be used for USB Gadget ("device").

This probably applies to other Bay/Cherry Trail-based devices (Z8350).

Prerequisites

Usage

  • Boot UEFI Shell
  • setup_var.efi Setup:0x1a8=1 ("USB OTG Support" = "PCI Mode" extracted from EFI IFR menus)
  • Boot Linux
  • Should see 8086:22b7 PCI device.
  • modprobe dwc3-pci
  • echo device > /sys/class/usb_role/intel_xhci_usb_sw-role-switch/role
  • modprobe g_ether

References

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment