Page 1 of 2

Upload codeplug on Linux

Posted: Mon Mar 20, 2023 3:12 pm
by R1CBU
Hello!

I bought an RT3S and want to flash your firmware into it. I have already read the topic about problems on new devices and I have exactly S/N: 2212R03. But I understand that the problem was solved. I myself am a programmer, I worked with STM32 and ST-Link is available, so I can help if necessary.

Now the question is this. I only work on Linux. How do I securely flash with dfu-util? I searched on this topic on the forum and found nothing.

I already launched dfu-util and the device is visible:
Found DFU: [0483:df11] ver=0200, devnum=86, cfg=1, intf=0, path="5-1.2", alt=1, name="@SPI Flash Memory /0x00000000/16*064Kg", serial="00000000010C"
Found DFU: [0483:df11] ver=0200, devnum=86, cfg=1, intf=0, path="5-1.2", alt=0, name="@Internal Flash /0x0800C000/01*016Kg,01*064Kg,07*128Kg", serial="00000000010C"

Re: Flash via dfu-util

Posted: Mon Mar 20, 2023 9:37 pm
by VK3KYY
It is not possible to load firmware onto these radios using normal DFU tools


Daniel F1RMB has written a Python based loader to support installing the firmware from a Linux computer

https://opengd77.com/downloads/CPS/Late ... M32_radios

Note. You still need to download an extract the official 'donor' firmware as documented in the MD-9600 and MD-UV380 installation instructions
We use the same 'donor' firmware for all STM32 CPU radios

Re: Flash via dfu-util

Posted: Mon Mar 20, 2023 10:25 pm
by R1CBU
Thank you! It worked out. It flashed and started. Further in the instructions it says:
You should now backup the Flash memory in your radio and save that file in a safe location
You will need to upload codeplug from the OpenGD77 CPS into the radio
How can I do it? OpenGD77 CPS under wine does not find any com port

Re: Flash via dfu-util

Posted: Mon Mar 20, 2023 11:33 pm
by R1CBU

Re: Flash via dfu-util

Posted: Mon Mar 20, 2023 11:40 pm
by VK3KYY
Your post is confusing

Codeplug is not transferred via DFU, only firmware is transferred by a Custom DFU protocol on these radios
I will change the title of the topic

Re: Upload codeplug on Linux

Posted: Mon Mar 20, 2023 11:51 pm
by R1CBU
The question was "how to flash under Linux?" And what is included in this process is already particular.

I have the following problem, when I try to enable PTT, "Error Rx Only" occurs

UPD:
It turned out that the codeplug flooded somehow strangely, the parameters are not correct everywhere (and therefore do not change), the frequencies are somehow not the same. Uploaded DefaultOpenGD77.g77 from the OpenGD77CPS distribution

Re: Upload codeplug on Linux

Posted: Tue Mar 21, 2023 2:52 am
by W8SCL
Check this previous discussion. I wasn’t able to get it to work under MacOS, but it seems to be doable under Linux.

https://opengd77.com/viewtopic.php?t=2426

On a side note, good to see you here! Love the work you’ve put into the custom Xiegu X6100 firmware!

Re: Upload codeplug on Linux

Posted: Tue Mar 21, 2023 5:13 am
by VK3KYY
R1CBU wrote:
Mon Mar 20, 2023 11:51 pm
The question was "how to flash under Linux?" And what is included in this process is already particular.

I have the following problem, when I try to enable PTT, "Error Rx Only" occurs

UPD:
It turned out that the codeplug flooded somehow strangely, the parameters are not correct everywhere (and therefore do not change), the frequencies are somehow not the same. Uploaded DefaultOpenGD77.g77 from the OpenGD77CPS distribution
The firmware can't read the offical codeplug data in any radio other than the GD77. So it displays various errors

You must load a GD77 format codeplug.

In the longer term we may be able to create some default codeplug in the UV380/RT3S/DM1701/RT84 if it detects invalid codeplug data, but at the moment there are many other higher priority things for the developers to do, becuase users can simply upload the default GD77 codeplug to solve the problem

Re: Upload codeplug on Linux

Posted: Tue Mar 21, 2023 6:48 am
by R1CBU
KE8WPJ wrote:
Tue Mar 21, 2023 2:52 am
Check this previous discussion. I wasn’t able to get it to work under MacOS, but it seems to be doable under Linux.
Victory! Thank's it's helped!
KE8WPJ wrote:
Tue Mar 21, 2023 2:52 am
On a side note, good to see you here! Love the work you’ve put into the custom Xiegu X6100 firmware!
So far, I'm doing better with the X6100 than with the DMR :lol:

Re: Upload codeplug on Linux

Posted: Tue Mar 21, 2023 12:45 pm
by R1CBU
Thanks to all! The sources are builded, uploaded and working. I will delve deeper