piotr022 / UV_K5_playground

425 stars 66 forks source link

Radio can not open after flash the rssi_sbar_encoded.bin that created by k5_v3.00.10_flashable.bin. #35

Open troilus opened 1 year ago

troilus commented 1 year ago

Could you please help me with this situation:

The k5_v3.00.10_flashable.bin is this one: https://github.com/amnemonic/Quansheng_UV-K5_Firmware/blob/main/firmware/k5_v3.00.10_flashable.bin My steps:

  1. unpack k5_v3.00.10_flashable.bin and get k5_v3.00.10_flashable.dec.bin
  2. mv k5_v3.00.10_flashable.dec.bin to .\src\orginal_fw and rename to orginal_fw.bin
  3. mkdir build $ cd build $ cmake ../ -G Ninja $ ninja rssi_sbar_encoded
  4. Flash the rssi_sbar_encoded.bin to UV-K5 with official tool, the tool prompts upload success, but the radio can not open.

These are files: files.zip

troilus commented 1 year ago

Maybe I should edit the addresses in libs/k5_uv_system/system.hpp?

piotr022 commented 1 year ago

Maybe I should edit the addresses in libs/k5_uv_system/system.hpp?

exacly that should be done according to new location in original fw of all of this functions, and data.

also current build scripts assumes that orginal_fw.bin contains bootloader at first 4096 bytes, so you should manualy add bootloader org_bootloader.zip at the begining of your original_fw.bin file, or modify fw_decomposer.py and CMakeLists to discard generation of bootloader data objects , change vector table location to 0x0 and get rid of _with_bootloader targets