Skip to main content

OpenGD77CPS running well on linux/wine (DFU mode didnt checked yet)

Disclaimer: there is NO password provided somewhere in the post, you need to get actual firmware/microcode and do some steps manually. Also you need carefuly read the f.cking manuals provided by vendor, manufacturer, ODM or OEM vendor to avoid getting some unexpected results before run any commands or apply any configurations. All steps provided is abnormal and should not be used in prod environment. In some extraodinry cases you simply ruin your whole installation ;)

This is all about codeplugs not programming f/w, libusb is another story.

Problem: OpenGD77CPS.exe can not detect any avail COM ports under wine.

I’ll asume:

  • you running under normal user (not root)
  • there is no permission problem (under arch u only need to add user into uucp group)
  • also preferable to create new clean win32 wine env (to avoid any possible problems with dotnet, for example)
  • you are familar (a little bit) with linux/wine
  • there is NO another connected cdc-acm devices  

Solution below:

export LC_ALL=C 
export WINEARCH=win32
export WINEPREFIX=$HOME/wine-opengd77cps
# make sure your radio connected and powered up BEFORE run this!!!
wine downloads/radio/OpenGD77CPSInstaller_E2022.10.16.01.exe
# find correct COM-port
# assume no other cdc-acm device connect, pay attention !!!
PORT=`ls -la $WINEPREFIX/dosdevices | grep ACM | awk '{print toupper($9)}'`
wine reg add "HKLM\System\CurrentControlSet\Enum\SERIAL\\${PORT}\\${PORT}" /v ClassGUID /t REG_SZ /d {4D36E978-E325-11CE-BFC1-08002BE10318}
wine reg add "HKLM\System\CurrentControlSet\Enum\SERIAL\\${PORT}\\${PORT}" /v FriendlyName /t REG_SZ /d "OpenGD77 (${PORT})"
wine C:/Program\ Files/OpenGD77CPS/OpenGD77CPS.exe

Got an idea from Getting X-CTU in Wine to detect your serial ports.

PS: some version/revision below

linux 6.0.1.arch2-1
wine 7.19-1
wine-mono 7.3.0-1