File tree Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Expand file tree Collapse file tree 2 files changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -105,10 +105,15 @@ if "%1%"x =="demo"x (
105
105
:run_fota
106
106
if exist " %2 %" (
107
107
if exist " %3 %" (
108
- echo waiting for making fota pack...
109
- echo this will take a few minutes
110
- REM platform\compilation\fota\fotacreate.exe 4194304 65536 0.lod 1.lod 0.pack
111
- platform\compilation\fota\fotacreate.exe 4194304 65536 %2 % % %3 % % %4 %
108
+ echo [OTA] waiting for making fota pack...
109
+ echo this will take a few minutes...
110
+ md hex/tmp
111
+ set old_ota_path = hex/tmp/old_ota_lod.lod
112
+ set new_ota_path = hex/tmp/new_ota_lod.lod
113
+ python platform/compilation/lodtool.py gen_ota --lod %2 % --out % old_ota_path%
114
+ python platform/compilation/lodtool.py gen_ota --lod %3 % --out % new_ota_path%
115
+ platform\compilation\fota\fotacreate.exe 4194304 65536 %old_ota_path% % % new_ota_path% % 4%
116
+ rd /q /s hex/tmp
112
117
) else (
113
118
echo usage: 'build.bat fota old.lod new.lod fota.pack'
114
119
)
Original file line number Diff line number Diff line change @@ -138,8 +138,8 @@ elif [[ $paramNum -eq 4 ]]; then
138
138
if [[ " $1 x" == " fotax" ]]; then
139
139
if [ -f " $2 " ]; then
140
140
if [ -f " $3 " ]; then
141
- echo " waiting for making fota pack..."
142
- echo " this will take a few minutes"
141
+ echo " [OTA] waiting for making fota pack..."
142
+ echo " this will take a few minutes... "
143
143
mkdir -p hex/tmp
144
144
old_ota_path=hex/tmp/old_ota_lod.lod
145
145
new_ota_path=hex/tmp/new_ota_lod.lod
You can’t perform that action at this time.
0 commit comments