sq5bpf / k5prog

Quansheng UV-K5 EEPROM programmer
GNU General Public License v3.0
131 stars 30 forks source link

Unable to update firmware #14

Open OlegAstrakhantsev opened 8 months ago

OlegAstrakhantsev commented 8 months ago

Hello! I'm trying to flash UV-K5(8) but I get a dead device. The program detected the bootloader version as 2.00.06. There are no errors during the firmware update. The command in the console is as follows ./k5prog -F -YYY -b fw_modded.bin The same firmware file is successfully updated via the UVMOD website. What am I doing wrong?

bricky149 commented 8 months ago

May I ask where you got the firmware binary from?

OlegAstrakhantsev commented 8 months ago

The firmware has been checked. It was generated on the site UVMOD

bricky149 commented 8 months ago

Can confirm when flashing unmodified firmware binaries. The official updater should work in the meantime.

bialystok commented 7 months ago

no working

sq5bpf commented 6 months ago

please see if this version works for you. if it doesn't please port the firmware binary, and i will try to flash it on my radio

srem1 commented 6 months ago

@sq5bpf przecież dostałeś link, sprawdz sam. U mnie też nie działa

OlegAstrakhantsev commented 6 months ago

The new program is not working. The radio shows no signs of life.

bricky149 commented 6 months ago

The new program is not working. The radio shows no signs of life.

As previously stated, the flasher doesn't work with firmwares intended to be used with the official flasher (i.e. they are packed/obfuscated). UVMOD can flash directly to the radio in the meantime. I've personally used this program to flash custom firmwares to radios and it works as intended.

I don't know what else to tell you apart from not trying the same thing over and expecting different results.

iw2evk commented 2 months ago

i've tried to write IJV modded firmware into eeprom.The k5progr start , lconnect radio , load in eeprom the data , but at the end of procedure the radio don't restart (stucked). If use UVMOD procedure via web all work fine..

Can you check ?

I use Linux Lubuntu 20.04 LTS

OlegAstrakhantsev commented 2 months ago

i've tried to write IJV modded firmware into eeprom.The k5progr start , lconnect radio , load in eeprom the data , but at the end of procedure the radio don't restart (stucked). If use UVMOD procedure via web all work fine..

Can you check ?

I use Linux Lubuntu 20.04 LTS

This program doesn't work with "packed" firmware (firmware.packed.bin). It needs to be unpacked somehow, but I don't know how to do that. If you build the firmware yourself using Egzummer, you'll get two firmware files: a regular one and a packed one. This program should be able to flash the regular firmware.

iw2evk commented 1 month ago

this fork seem working with obfuscated firmware

https://github.com/nica-f/k5prog

-f filename that contains the eeprom dump (default: k5_eeprom.raw) -b filename that contains the raw flash image (default k5_flash.raw) -Y increase "I know what I'm doing" value, to enable functionality likely to break the radio -D wait for the message from the radio flasher, print it's version -V read firmware version from radio and exit, good for testing serial connection with radio -R read RSSI, noise and glitch from radio -E read electrical data (voltage and current) from radio** -F flash firmware, WARNING: this will likely brick your radio! -M Set the firmware major version to during the flash process (default: *.01.23) -r read eeprom -w write eeprom like the original software does -W write most of the EEPROM (but without what I think is calibration data) -B write ALL of the EEPROM (the "brick my radio" mode) -p device name (default: /dev/ttyUSB0) -s serial speed (default: 38400, the UV-K5 doesn't accept any other speed) -h print this help -v be verbose, use multiple times for more verbosity

can you merge in standard version ?