USB device not recognized in "Firmware Update" mode

Questions about Wine on Linux
Locked
StorageB
Newbie
Newbie
Posts: 4
Joined: Tue Apr 11, 2023 11:19 am

USB device not recognized in "Firmware Update" mode

Post by StorageB »

Ubuntu 20.04.6 LTS
wine-8.5

I have a Headrush Pedalboard (digital guitar effects pedal) and am trying to update the firmware over USB with their Firmware Updater .exe file.

The updater will open with Wine (screenshot), but will not recognize the device (screenshot).

The pedalboard has 2 modes to select from when connected to a computer: USB transfer mode, and firmware update mode. In USB transfer mode I am able to access the device in Linux as USB storage and transfer files. In firmware update mode I am able to see the device in Linux (but not as a USB storage device).

In firmware update mode:

from output of lsusb:
Bus 001 Device 008: ID 0763:3016 M-Audio
from output of usb-devices:
T: Bus=01 Lev=02 Prnt=03 Port=01 Cnt=01 Dev#= 8 Spd=480 MxCh= 0
D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
P: Vendor=0763 ProdID=3016 Rev=99.99
S: Manufacturer=AIR
S: Product=Eleven
C: #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=2mA
I: If#=0x0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=42 Prot=03 Driver=(none)
from output of dmesg:
[ 1888.110312] usb 1-10-port2: Cannot enable. Maybe the USB cable is bad?
[ 1888.837476] usb 1-10.2: new high-speed USB device number 7 using xhci_hcd
[ 1889.718377] usb 1-10-port2: Cannot enable. Maybe the USB cable is bad?
[ 1889.723917] usb 1-10-port2: attempt power cycle
[ 1890.761578] usb 1-10.2: new high-speed USB device number 8 using xhci_hcd
[ 1890.812444] usb 1-10.2: New USB device found, idVendor=0763, idProduct=3016, bcdDevice=99.99
[ 1890.812456] usb 1-10.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 1890.812461] usb 1-10.2: Product: Eleven
[ 1890.812464] usb 1-10.2: Manufacturer: AIR


Additional info about the .exe updater:

HeadRush Pedalboard Firmware Version: 2.6
Minimum System Requirements
• Windows 8 or macOS 10.15
• Host USB 2.0 port
https://www.headrushfx.com/downloads


Other notes:

Output from Wine your_app.exe &> /tmp/log.txt 2>&1:
https://pastebin.com/TxEbAq7u

• I have successfully updated the device several times in the past using Windows 10.
• I am using the official USB cable that came with the device.
• I have read the Wine User Guide - Serial and Parallel Ports but was still not able to get it working.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: USB device not recognized in "Firmware Update" mode

Post by jkfloris »

Is a device created in /dev when you connect the Pedalboard? Make sure you have read and write permissions to that device.

Perhaps the wineusb debug channel will provide more information

Code: Select all

WINEDEBUG=+wineusb wine FirmwareUpdater.exe
StorageB
Newbie
Newbie
Posts: 4
Joined: Tue Apr 11, 2023 11:19 am

Re: USB device not recognized in "Firmware Update" mode

Post by StorageB »

When the Pedalboard is in USB transfer mode, I can confirm a device is created as shown below.

However, in Firmware Update mode, that device is removed and nothing new is created in /dev.

from fdisk -l output in USB Transfer mode:
Disk /dev/sdi: 2.85 GiB, 3040870400 bytes, 5939200 sectors
Disk model: File-Stor Gadget
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x5a742bbd

Device Boot Start End Sectors Size Id Type
/dev/sdi1 2048 5939199 5937152 2.9G c W95 FAT32 (LBA)
Running the wineusb debug shows "Failed to open device: Access denied" multiple times. I am a member of the sys and dialout groups - is there something else I'm missing that would not allow access?

Full wineusb debug output:
https://pastebin.com/9pkQsW6g
invisible kid
Level 5
Level 5
Posts: 368
Joined: Tue Dec 24, 2019 3:23 pm

Re: USB device not recognized in "Firmware Update" mode

Post by invisible kid »

Just a fellow user spit-balling here. One option is to just run as root. If you don't want to do that you can check what other groups exist. On my setup I have a "usb" group as well. On my setup i can "cat /etc/group" and it will show all groups. Yours may be somewhere else.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: USB device not recognized in "Firmware Update" mode

Post by jkfloris »

Code: Select all

Bus 001 Device 008: ID 0763:3016 M-Audio

Code: Select all

0088:trace:wineusb:add_usb_device Adding new device 0x7f28dc026240, vendor 0763, product 3016.
0088:warn:wineusb:add_usb_device Failed to open device: Access denied (insufficient permissions)
Change the permissions of /dev/bus/usb/001/008 and try again.
StorageB
Newbie
Newbie
Posts: 4
Joined: Tue Apr 11, 2023 11:19 am

Re: USB device not recognized in "Firmware Update" mode

Post by StorageB »

Changing the permissions for the devices in /dev/bus/usb fixed the "Access denied (insufficient permissions)". However, Wine USB debug now shows several "libusb: warning [windows_get_device_list] could not retrieve port number for device" messages.

Full wineusb debug output:
https://pastebin.com/1E8yYVf8

I also tried running as sudo, and am met with the same results.
jkfloris
Level 12
Level 12
Posts: 3201
Joined: Thu Aug 14, 2014 10:10 am

Re: USB device not recognized in "Firmware Update" mode

Post by jkfloris »

Unfortunately, I don't know a solution for this either.
You can file a bug here.
Hopefully the Wine developers can find a solution.
StorageB
Newbie
Newbie
Posts: 4
Joined: Tue Apr 11, 2023 11:19 am

Re: USB device not recognized in "Firmware Update" mode

Post by StorageB »

Ok, no problem. I appreciate you taking the time to help!
Locked