I backupped old fw of my K5.
How?
According to source code research, I can backup entire EEPROM with this command:
./k5prog -r -v
it reads 8192 (0x2000) bytes, the last 512 (0x200) contains calibration data.
At offset 0x1F40 there are 8 uint16_t values which define battery indicator values:
[0] - 0 bar value
[1] - 1 bar value
[2] - 2 bar value
[3] - 3 bar value it equals to ADC value for 7.6 V
[4] - 4 bar value
[5] - always 0x2300 ???
[6] - always 0xFFFF ???
[7] - always 0xFFFF ???
The battery voltage can be calculated as V = (760 * ADC) / [3] / 100
And I can write new firmware to the radio with this command:
./k5prog -F -YYY -b firmware.bin
Still looking for a way to get current firmware from the radio