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

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:58 pm

When I tried this with the latest OpenGD77 firmware from https://github.com/rogerclarkmelbourne/ ... latest.sgl I got this error:

Code: Select all

ERROR: SGL! header missing.
Error. Missing SGL! in .sgl file header
But it was able to load the OEM firmware on a Raspbian, with the fix I mentioned above.

VK3KYY
Posts: 7478
Joined: Sat Nov 16, 2019 3:25 am
Location: Melbourne, Australia

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

Post by VK3KYY » Wed Nov 27, 2019 10:36 pm

The file does have the SGL header in it

Code: Select all

Offset(h) 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

00000000  53 47 4C 21 16 09 0F 77 63 77 7D 1B 9C 47 14 D7  SGL!...wcw}.œG.×

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 » Thu Nov 28, 2019 1:20 am

Oh, good grief. It didn't download what I thought it did. My bad.

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 » Thu Nov 28, 2019 4:38 am

While trying again today, I got this:

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
Looking at the kernel logs, I see this:

Code: Select all

[3644452.264930] usb 1-1.4: new full-speed USB device number 12 using dwc_otg
[3644452.398171] usb 1-1.4: New USB device found, idVendor=15a2, idProduct=0073, bcdDevice= 0.02
[3644452.398192] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[3644452.398207] usb 1-1.4: Product: USB COMPOSITE DEVICE
[3644452.398219] usb 1-1.4: Manufacturer: FREESCALE SEMICONDUCTOR INC.
[3644452.404720] hid-generic 0003:15A2:0073.0006: hiddev96,hidraw0: USB HID v1.00 Device [FREESCALE SEMICONDUCTOR INC. USB COMPOSITE DEVICE] on usb-3f980000.usb-1.4/input0
[3644475.287217] usb 1-1.4: usbfs: interface 0 claimed by usbhid while 'mono' sets config #1
[3644475.388202] usb 1-1.4: usbfs: process 11140 (mono) did not claim interface 0 before use

User avatar
F1RMB
Posts: 2518
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 » Thu Nov 28, 2019 4:55 am

Hi,
KC7RBW wrote:
Thu Nov 28, 2019 4:38 am
While trying again today, I got this:

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
Looking at the kernel logs, I see this:

Code: Select all

[3644452.264930] usb 1-1.4: new full-speed USB device number 12 using dwc_otg
[3644452.398171] usb 1-1.4: New USB device found, idVendor=15a2, idProduct=0073, bcdDevice= 0.02
[3644452.398192] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[3644452.398207] usb 1-1.4: Product: USB COMPOSITE DEVICE
[3644452.398219] usb 1-1.4: Manufacturer: FREESCALE SEMICONDUCTOR INC.
[3644452.404720] hid-generic 0003:15A2:0073.0006: hiddev96,hidraw0: USB HID v1.00 Device [FREESCALE SEMICONDUCTOR INC. USB COMPOSITE DEVICE] on usb-3f980000.usb-1.4/input0
[3644475.287217] usb 1-1.4: usbfs: interface 0 claimed by usbhid while 'mono' sets config #1
[3644475.388202] usb 1-1.4: usbfs: process 11140 (mono) did not claim interface 0 before use
Looks like the udev file /etc/udev/rules.d/99-gd77.rules is missing, as usbdev has claimed the interface.

And good catch for the libusb symlink. I remember reading that, but didn't experienced that problem with LinuxMint. What distro are you using in your RPi (jessie, stretch, buster)?

Cheers.
---
Daniel

User avatar
DU2XXR
Posts: 191
Joined: Thu Nov 28, 2019 5:25 am
Location: Philippines
Contact:

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

Post by DU2XXR » Fri Nov 29, 2019 2:31 am

On OSX High Sierra 10.13.6, with mono

Code: Select all

jangeloracoma:GD77_FirmwareLoader jangelo$ mono GD77_FirmwareLoader.exe OpenGD77_latest2.sgl 
Firmware file confirmed as SGL
.ERROR: Submit Async Read Failed.
Error read returned 
Error sending command 

Error while sending initial commands
^C
Mono version is:

Mono JIT compiler version 6.4.0.198 (2019-06/fe64a4765e6 Wed Sep 18 14:14:51 EDT 2019)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com

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 » Fri Nov 29, 2019 3:23 am

F1RMB wrote:
Thu Nov 28, 2019 4:55 am
Looks like the udev file /etc/udev/rules.d/99-gd77.rules is missing, as usbdev has claimed the interface.
The udev rule is definitely present. I'm unsure why it's not working. It did work the first time I tried it. I also tried rebooting but this didn't help. I haven't figured out how to debug udev when it's not logging to a file. The journal doesn't seem to show anything relevant except what's coming from the kernel log (already posted).
F1RMB wrote:
Thu Nov 28, 2019 4:55 am
And good catch for the libusb symlink. I remember reading that, but didn't experienced that problem with LinuxMint. What distro are you using in your RPi (jessie, stretch, buster)?
Currently running Raspbian 10 (Buster).

User avatar
F1RMB
Posts: 2518
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 » Fri Nov 29, 2019 9:28 am

Hi,
KC7RBW wrote:
Fri Nov 29, 2019 3:23 am
F1RMB wrote:
Thu Nov 28, 2019 4:55 am
Looks like the udev file /etc/udev/rules.d/99-gd77.rules is missing, as usbdev has claimed the interface.
The udev rule is definitely present. I'm unsure why it's not working. It did work the first time I tried it. I also tried rebooting but this didn't help. I haven't figured out how to debug udev when it's not logging to a file. The journal doesn't seem to show anything relevant except what's coming from the kernel log (already posted).
F1RMB wrote:
Thu Nov 28, 2019 4:55 am
And good catch for the libusb symlink. I remember reading that, but didn't experienced that problem with LinuxMint. What distro are you using in your RPi (jessie, stretch, buster)?
Currently running Raspbian 10 (Buster).
Okay. So, I'll try that on a RPi here, after I finished the fonts stuff.

Thanks for tests.

Cheers.
---
Daniel

User avatar
F1RMB
Posts: 2518
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 » Fri Nov 29, 2019 9:30 am

Hi,
4I1RAC wrote:
Fri Nov 29, 2019 2:31 am
On OSX High Sierra 10.13.6, with mono

Code: Select all

jangeloracoma:GD77_FirmwareLoader jangelo$ mono GD77_FirmwareLoader.exe OpenGD77_latest2.sgl 
Firmware file confirmed as SGL
.ERROR: Submit Async Read Failed.
Error read returned 
Error sending command 

Error while sending initial commands
^C
Mono version is:

Mono JIT compiler version 6.4.0.198 (2019-06/fe64a4765e6 Wed Sep 18 14:14:51 EDT 2019)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
Yes, as Alex reported, there is a problem with the USB HID claiming, as under Linux, where you can solve that with a udev rule. We need to find how to do that on OS-X.

Thanks for the tests.

Cheers.
---
Daniel

User avatar
F1RMB
Posts: 2518
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 » Sun Dec 01, 2019 4:59 pm

Hi,
KC7RBW wrote:
Fri Nov 29, 2019 3:23 am
F1RMB wrote:
Thu Nov 28, 2019 4:55 am
Looks like the udev file /etc/udev/rules.d/99-gd77.rules is missing, as usbdev has claimed the interface.
The udev rule is definitely present. I'm unsure why it's not working. It did work the first time I tried it. I also tried rebooting but this didn't help. I haven't figured out how to debug udev when it's not logging to a file. The journal doesn't seem to show anything relevant except what's coming from the kernel log (already posted).
F1RMB wrote:
Thu Nov 28, 2019 4:55 am
And good catch for the libusb symlink. I remember reading that, but didn't experienced that problem with LinuxMint. What distro are you using in your RPi (jessie, stretch, buster)?
Currently running Raspbian 10 (Buster).
Well, it took me 8 hours to install mono-complete on a RPi 3 A+ :-D

Replace the udev rules file with the attached one, then execute the following (or reboot):

sudo udevadm control --reload-rules

Cheers.
Attachments
99-gd77.rules.rpi.zip
(635 Bytes) Downloaded 186 times

Post Reply