Initial import

This commit is contained in:
2026-09-01 17:31:15 +08:00
commit 3ab37b7845
958 changed files with 231015 additions and 0 deletions
@@ -0,0 +1,65 @@
@echo off
cd %~dp0
copy ..\..\script.ver .
copy ..\..\tone.cfg .
copy ..\..\p11_code.bin .
copy ..\..\br28loader.bin .
copy ..\..\ota.bin .
copy ..\..\anc_coeff.bin .
copy ..\..\anc_gains.bin .
if not exist p11_code.bin (
echo [download] ERROR: ..\..\p11_code.bin is missing
exit /b 1
)
set "ISD_CMD=..\..\isd_download.exe ..\..\isd_config.ini -tonorflash -dev br28 -boot 0x120000 -div8 -wait 300 -uboot ..\..\uboot.boot -app ..\..\app.bin -res ..\..\cfg_tool.bin tone.cfg p11_code.bin -uboot_compress"
if not exist RS-5B88.key (
echo [download] ERROR: RS-5B88.key not found
exit /b 1
)
echo [download] USB burn: WITH key RS-5B88.key
if exist jl_isd.fw del jl_isd.fw
if exist jl_isd.ufw del jl_isd.ufw
%ISD_CMD% -key RS-5B88.key
if not exist jl_isd.fw (
echo [download] ERROR: jl_isd.fw was not generated
exit /b 1
)
copy /y jl_isd.fw jl_isd_key.fw >nul
..\..\ufw_maker.exe -fw_to_ufw jl_isd.fw
if not exist jl_isd.ufw (
echo [download] ERROR: jl_isd.ufw was not generated
exit /b 1
)
copy /y jl_isd.ufw update.ufw >nul
copy /y jl_isd.ufw update_key.ufw >nul
del jl_isd.ufw
if exist db_update_data.bin copy /y db_update_data.bin db_update_data_key.bin >nul
@rem delete temp files
if exist *.mp3 del *.mp3
if exist *.PIX del *.PIX
if exist *.TAB del *.TAB
if exist *.res del *.res
if exist *.sty del *.sty
if exist script.ver del script.ver
if exist tone.cfg del tone.cfg
if exist p11_code.bin del p11_code.bin
if exist br28loader.bin del br28loader.bin
if exist anc_coeff.bin del anc_coeff.bin
if exist anc_gains.bin del anc_gains.bin
@rem common isd_download flags
@rem -format vm erase VM area
@rem -format cfg erase BT CFG area
@rem -format 0x3f0-2 erase 2 sectors from 0x3f0 (1st arg hex/dec, 2nd must be decimal)
ping /n 2 127.1>null
IF EXIST null del null