KT26-0607_AC695n-BTE-SDK312/cpu/br23/tools/download/standard/download.bat
2026-06-07 19:38:16 +08:00

82 lines
2.4 KiB
Batchfile
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@echo off
cd %~dp0
copy ..\..\script.ver .
copy ..\..\uboot.boot .
copy ..\..\tone.cfg .
copy ..\..\cfg_tool.bin .
copy ..\..\app.bin .
copy ..\..\br23loader.bin .
copy ..\..\eq_cfg_hw.bin .
copy ..\..\ota_all.bin .
copy ..\..\ota_nor.bin .
::..\..\isd_download.exe -tonorflash -dev br23 -boot 0x12000 -div8 -wait 300 -uboot uboot.boot -app app.bin -res font.bin gbk2utf8.tab AD10x_code.bin tone.cfg cfg_tool.bin eq_cfg_hw.bin -format all %1
..\..\isd_download.exe -tonorflash -dev br23 -boot 0x12000 -div8 -wait 300 -uboot uboot.boot -app app.bin -res tone.cfg cfg_tool.bin eq_cfg_hw.bin -format all %1
:: -format all
::-reboot 2500
@rem 删除临时文件-format all
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
@rem 生成固件升级文件
copy ota_all.bin ota.bin
..\..\fw_add.exe -noenc -fw jl_isd.fw -add ota.bin -type 100 -out jl_isd_all.fw
copy ota_nor.bin ota.bin
..\..\fw_add.exe -noenc -fw jl_isd.fw -add ota.bin -type 100 -out jl_isd_nor.fw
@rem 添加配置脚本的版本信息到 FW 文件中
..\..\fw_add.exe -noenc -fw jl_isd_all.fw -add script.ver -out jl_isd_all.fw
..\..\fw_add.exe -noenc -fw jl_isd_nor.fw -add script.ver -out jl_isd_nor.fw
..\..\ufw_maker.exe -fw_to_ufw jl_isd_all.fw
..\..\ufw_maker.exe -fw_to_ufw jl_isd_nor.fw
copy jl_isd_all.ufw update.ufw
copy jl_isd_nor.ufw nor_update.ufw
copy jl_isd_all.fw jl_isd.fw
del jl_isd_all.ufw jl_isd_nor.ufw jl_isd_all.fw jl_isd_nor.fw
ufw_maker.exe -chip AC695X -noenc -res update.ufw -output AC695X_all.ufw
IF EXIST ad100_update_all.ufw (
copy /Y /B ad100_update_all.ufw ad100_fw.ufw
ufw_maker.exe -chip AC695X -noenc -res ad100_fw.ufw -output ad100_all.ufw
ufw_maker.exe -chip AC695X -noenc -res update.ufw ad100_fw.ufw -output AC695X_ad100_all.ufw
)
IF EXIST ad100_update_code.ufw (
copy /Y /B ad100_update_code.ufw ad100_fw.ufw
ufw_maker.exe -chip AC695X -noenc -res ad100_fw.ufw -output ad100_code.ufw
ufw_maker.exe -chip AC695X -noenc -res update.ufw ad100_fw.ufw -output AC695X_ad100_code.ufw
)
@REM 生成配置文件升级文件
::ufw_maker.exe -chip AC800X %ADD_KEY% -output config.ufw -res bt_cfg.cfg
::IF EXIST jl_696x.bin del jl_696x.bin
@rem 常用命令说明
@rem -format vm //擦除VM 区域
@rem -format cfg //擦除BT CFG 区域
@rem -format 0x3f0-2 //表示从第 0x3f0 个 sector 开始连续擦除 2 个 sector(第一个参数为16进制或10进制都可第二个参数必须是10进制)
ping /n 2 127.1>null
IF EXIST null del null