[Testers Needed] GD-77 Firmware Loader for Linux and OS-X

EA3IGM
Posts: 17
Joined: Tue Nov 26, 2019 4:18 pm

Re: [Testers Needed] GD-77 Firmware Loader for Linux and OS-X

Post by EA3IGM » Tue Nov 26, 2019 8:32 pm

Sorry for the delay...
Besides a minor visual bug ( https://imgur.com/a/QcILy3M ), it loaded successfully with ZERO problems whatsoever.

Console output. keep in mind the first "timed out" and "Error reading/sending" were because I hadn't held the functions keys so it wasn't in programming mode (my bad). That being said, firmware working fantastic!

Code: Select all

Device Not Found. 
Error. Can't connect to the GD-77
Firmware file confirmed as SGL
.Write ERROR: MonoApiError:Wait:Operation timed out Ep 0x02 
-7:ErrorTimeout:Operation timed out
Error read returned 
Error sending command 

Error while sending initial commands
Firmware file confirmed as SGL
.......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................


User avatar
F1RMB
Posts: 2517
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: [Testers Needed] GD-77 Firmware Loader for Linux and OS-X

Post by F1RMB » Tue Nov 26, 2019 8:48 pm

Thanks for the test (afaik this is not the latest version I just submitted, but that doesn't matter ;) )

What is you Mono version ?

About the glitch with the label above progress bar, yet I didn't fixed that.


Cheers.

DL4LEX
Posts: 62
Joined: Sat Nov 16, 2019 3:09 pm

Re: [Testers Needed] GD-77 Firmware Loader for Linux and OS-X

Post by DL4LEX » Tue Nov 26, 2019 11:53 pm

First test on MacOS: does not work. :(

Code: Select all

% mono GD77_FirmwareLoader.exe firmware.sgl
Firmware file confirmed as SGL

 - Sending Download commandERROR: Submit Async Read Failed.

Error unexpected response from GD-77: 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
Error sending command.

Error while sending initial commands
It seems to be a problem with USB.
But I've never used mono, so no clue where to look.

User avatar
F1RMB
Posts: 2517
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: [Testers Needed] GD-77 Firmware Loader for Linux and OS-X

Post by F1RMB » Wed Nov 27, 2019 5:53 am

Hi Alex,

Is there anything "dmesg" says ?. I had the same king of problems In Linux, when the usbhid was taking over the USB interface:

Code: Select all

231921.901298] hid-generic 0003:15A2:0073.01E9: hiddev0,hidraw1: USB HID v1.00 Device [FREESCALE SEMICONDUCTOR INC. USB COMPOSITE DEVICE] on usb-0000:00:14.0-2/input0
[231972.469396] usb 3-2: usbfs: interface 0 claimed by usbhid while 'mono' sets config #1
[231972.478922] usb 3-2: usbfs: process 3627 (mono) did not claim interface 0 before use
with the same result from GD77_FirmwareLoader.exe:

Code: Select all

Firmware file confirmed as SGL

 - Sending Download commandERROR: Submit Async Read Failed.

Error unexpected response from GD-77: 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
Error sending command.

Error while sending initial commands
This is why one of the udev rules unbind the USB device from usbhid driver, letting full usage of the configuration and ability to claim the interface.
The point is I don't know how to do that under OS-X.

But the good point is, we can open the USB HID device already. This is a good news.

Cheers.

User avatar
F1RMB
Posts: 2517
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: [Testers Needed] GD-77 Firmware Loader for Linux and OS-X

Post by F1RMB » Wed Nov 27, 2019 6:31 am

Alex,

Maybe that could help you with OS-X:

http://www.proxmark.org/forum/viewtopic.php?id=986

It seems that you need to set a dummy driver to prevent OS-X from opening exclusively the device.

Cheers.
---
Daniel

DL4LEX
Posts: 62
Joined: Sat Nov 16, 2019 3:09 pm

Re: [Testers Needed] GD-77 Firmware Loader for Linux and OS-X

Post by DL4LEX » Wed Nov 27, 2019 6:09 pm

Daniel,

the dummy driver does not work, as kernel extensions have to be signed in newer MacOS versions.

But the console records this message:

Code: Select all

058656.355282 mono-sgen@(null): IOUSBUserClientLegacy::start: missing entitlement com.apple.bluetooth.control
Perhaps this helps...

KC7RBW
Posts: 159
Joined: Wed Nov 20, 2019 1:23 am

Re: [Testers Needed] GD-77 Firmware Loader for Linux and OS-X

Post by KC7RBW » Wed Nov 27, 2019 7:50 pm

For Linux users, don't forget to tweak the udev config, otherwise usbhid will claim the USB interface, and communication won't work)
Could it be coded to talk to the HID interface instead, so that this is not needed?

User avatar
F1RMB
Posts: 2517
Joined: Sat Nov 16, 2019 5:42 am
Location: Grenoble, France

Re: [Testers Needed] GD-77 Firmware Loader for Linux and OS-X

Post by F1RMB » Wed Nov 27, 2019 8:06 pm

@Alex. I'll try to find something.

@KC7RBW unfortunately, you need to have a udev configuration file (just like with the MD-380). But once you put the file in /etc/udev/rules.d/, you're fine. Without this rule, we're unable to use the USB HID interface.


And IF we package that binary, the udev cfg file will be automatically installed

Cheers.

KC7RBW
Posts: 159
Joined: Wed Nov 20, 2019 1:23 am

Re: [Testers Needed] GD-77 Firmware Loader for Linux and OS-X

Post by KC7RBW » Wed Nov 27, 2019 9:21 pm

I tried this on my Raspberry Pi (running Raspbian) and got this error:

Code: Select all

ERROR: libusb-1.0 library not found.  This is often an indication that libusb-1.0 was installed to '/usr/local/lib' and mono.net is not looking for it there. To resolve this, add the path '/usr/local/lib' to '/etc/ld.so.conf' and run 'ldconfig' as root. (http://www.mono-project.com/DllNotFoundException)
Probably something weird to do with Mono on ARM? I do have libusb installed at /lib/arm-linux-gnueabihf/libusb-1.0.so.0

KC7RBW
Posts: 159
Joined: Wed Nov 20, 2019 1:23 am

Re: [Testers Needed] GD-77 Firmware Loader for Linux and OS-X

Post by KC7RBW » Wed Nov 27, 2019 9:39 pm

Probably something weird to do with Mono on ARM? I do have libusb installed at /lib/arm-linux-gnueabihf/libusb-1.0.so.0
Found some references that said that LibUsbDotNet.dll will only load libusb-1.0.so and not libusb-1.0.so.0, so I created a symlink called libusb-1.0.so and then it worked.

Post Reply