Upload codeplug on Linux

R1CBU
Posts: 27
Joined: Mon Mar 20, 2023 3:00 pm
Contact:

Upload codeplug on Linux

Post by R1CBU » Mon Mar 20, 2023 3:12 pm

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"

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

Re: Flash via dfu-util

Post by VK3KYY » Mon Mar 20, 2023 9:37 pm

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

R1CBU
Posts: 27
Joined: Mon Mar 20, 2023 3:00 pm
Contact:

Re: Flash via dfu-util

Post by R1CBU » Mon Mar 20, 2023 10:25 pm

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

R1CBU
Posts: 27
Joined: Mon Mar 20, 2023 3:00 pm
Contact:

Re: Flash via dfu-util

Post by R1CBU » Mon Mar 20, 2023 11:33 pm


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

Re: Flash via dfu-util

Post by VK3KYY » Mon Mar 20, 2023 11:40 pm

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

R1CBU
Posts: 27
Joined: Mon Mar 20, 2023 3:00 pm
Contact:

Re: Upload codeplug on Linux

Post by R1CBU » 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

W8SCL
Posts: 13
Joined: Sat Feb 25, 2023 3:56 am

Re: Upload codeplug on Linux

Post by W8SCL » 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.

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!

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

Re: Upload codeplug on Linux

Post by VK3KYY » Tue Mar 21, 2023 5:13 am

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

R1CBU
Posts: 27
Joined: Mon Mar 20, 2023 3:00 pm
Contact:

Re: Upload codeplug on Linux

Post by R1CBU » Tue Mar 21, 2023 6:48 am

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:

R1CBU
Posts: 27
Joined: Mon Mar 20, 2023 3:00 pm
Contact:

Re: Upload codeplug on Linux

Post by R1CBU » Tue Mar 21, 2023 12:45 pm

Thanks to all! The sources are builded, uploaded and working. I will delve deeper
Attachments
opengd77.jpeg
opengd77.jpeg (27.65 KiB) Viewed 2928 times

Post Reply