[Feature][ZXW-130]merge P50U02 version
Only Configure: No
Affected branch: master
Affected module: unknow
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No
Change-Id: I4f29ec5bb7c59385f23738d2b7ca84e67c100f69
diff --git a/allbins/tools/mtd-utils/ubinize-static.sh b/allbins/tools/mtd-utils/ubinize-static.sh
new file mode 100755
index 0000000..84f6aaf
--- /dev/null
+++ b/allbins/tools/mtd-utils/ubinize-static.sh
@@ -0,0 +1,37 @@
+#!/bin/bash
+
+if [ $# -ne 4 ]; then
+ echo "$0 error"
+ echo "Usage:"
+ echo " $0 mtd_name outfile image_file ubinize_para"
+ exit -1
+fi
+
+mtdname=$1
+outfile=$2
+imgfile=$3
+ubinize_para=$4
+
+filesize="$(stat -c%s $imgfile)"
+
+cfg_file_name=$mtdname.cfg
+
+echo "[$mtdname]" > $cfg_file_name
+echo "mode=ubi" >> $cfg_file_name
+echo "image=$imgfile" >> $cfg_file_name
+echo "vol_id=0" >> $cfg_file_name
+echo "vol_size=${filesize}" >> $cfg_file_name
+echo "vol_type=dynamic" >> $cfg_file_name
+echo "vol_name=$mtdname" >> $cfg_file_name
+
+cat $cfg_file_name
+
+ubinize -o $outfile $ubinize_para $cfg_file_name
+if [ $? -ne 0 ]; then
+ echo "ubinize error"
+ exit -2
+else
+ echo "ubinize ok"
+fi
+
+rm -v $cfg_file_name
diff --git a/allbins/tools/resign_tool/fileread b/allbins/tools/resign_tool/fileread
new file mode 100755
index 0000000..cfcc472
--- /dev/null
+++ b/allbins/tools/resign_tool/fileread
Binary files differ
diff --git a/allbins/tools/resign_tool/fileread.exe b/allbins/tools/resign_tool/fileread.exe
new file mode 100755
index 0000000..97740d6
--- /dev/null
+++ b/allbins/tools/resign_tool/fileread.exe
Binary files differ
diff --git a/allbins/tools/resign_tool/fileseek b/allbins/tools/resign_tool/fileseek
new file mode 100755
index 0000000..c63a901
--- /dev/null
+++ b/allbins/tools/resign_tool/fileseek
Binary files differ
diff --git a/allbins/tools/resign_tool/fileseek.exe b/allbins/tools/resign_tool/fileseek.exe
new file mode 100755
index 0000000..bb1590b
--- /dev/null
+++ b/allbins/tools/resign_tool/fileseek.exe
Binary files differ
diff --git a/allbins/tools/resign_tool/filewrite b/allbins/tools/resign_tool/filewrite
new file mode 100755
index 0000000..0edcc84
--- /dev/null
+++ b/allbins/tools/resign_tool/filewrite
Binary files differ
diff --git a/allbins/tools/resign_tool/filewrite.exe b/allbins/tools/resign_tool/filewrite.exe
new file mode 100755
index 0000000..ffd4129
--- /dev/null
+++ b/allbins/tools/resign_tool/filewrite.exe
Binary files differ
diff --git a/allbins/tools/resign_tool/resign.bat b/allbins/tools/resign_tool/resign.bat
new file mode 100755
index 0000000..fd4d94f
--- /dev/null
+++ b/allbins/tools/resign_tool/resign.bat
@@ -0,0 +1,119 @@
+@echo off
+
+if "%~1" equ "" (
+ echo "Usage: %0 private_key work_dir [device]"
+ exit /b -1
+)
+
+if "%~2" equ "" (
+ echo "Usage: %0 private_key work_dir [device]"
+ exit /b -1
+)
+
+set PRIVATE_KEY=%1
+set WORK_DIR=%2
+
+set DEVICE=%3
+set HASH_STR="sha256"
+
+echo Private Key: %PRIVATE_KEY%
+echo Work Dir: %WORK_DIR%
+if exist %WORK_DIR%\ap_cpucap.bin (
+ move %WORK_DIR%\ap_cpucap.bin %WORK_DIR%\inter_ap_cpucap.bin
+)
+:: vehicle device zloader.bin structure
+:: ---------------------------------------------------------------
+:: | 8 KB | 24 KB | 8KB |
+:: ---------------------------------------------------------------
+:: | bootrom1.bin | bootrom2.bin | zloader3.bin |
+:: ---------------------------------------------------------------
+for %%a in (%WORK_DIR%\zloader.bin) do set size=%%~za
+echo %WORK_DIR%\zloader.bin %size% Bytes
+if "%DEVICE%" equ "v3t" (
+ set HASH_STR="md5"
+ if %size% gtr 32768 (
+ fileread "%WORK_DIR%\zloader.bin" 0 8192 "%WORK_DIR%\bootrom1.bin" || EXIT /B 1
+ fileread "%WORK_DIR%\zloader.bin" 8192 24576 "%WORK_DIR%\bootrom2.bin" || EXIT /B 1
+ fileread "%WORK_DIR%\zloader.bin" 32768 0 "%WORK_DIR%\zloader3.bin" || EXIT /B 1
+ SignImage -z -i "%WORK_DIR%\bootrom1.bin" -k %PRIVATE_KEY% -t %HASH_STR% || EXIT /B 1
+ SignImage -z -i "%WORK_DIR%\bootrom2.bin" -k %PRIVATE_KEY% -t %HASH_STR% || EXIT /B 1
+ SignImage -z -i "%WORK_DIR%\zloader3.bin" -k %PRIVATE_KEY% -t %HASH_STR% || EXIT /B 1
+ copy /b "%WORK_DIR%\bootrom1.bin"+"%WORK_DIR%\bootrom2.bin"+"%WORK_DIR%\zloader3.bin" "%WORK_DIR%\zloader.bin" || EXIT /B 1
+ del /f /q "%WORK_DIR%\bootrom1.bin" "%WORK_DIR%\bootrom2.bin" "%WORK_DIR%\zloader3.bin"
+ ) else (
+ SignImage -z -i "%WORK_DIR%\zloader.bin" -k %PRIVATE_KEY% -t %HASH_STR% || EXIT /B 1
+ )
+)
+echo "HASH_STR:" %HASH_STR%
+SignImage -r -i "%WORK_DIR%\uboot.bin" -k %PRIVATE_KEY% -t %HASH_STR% || EXIT /B 1
+
+:: ap_rootfs.img ap_cpuap.bin
+:: ---------------------------------------------------------------------------------------------------------------
+:: | 640 Bytes | 640 Bytes | 64 Bytes | 64 Bytes |
+:: ---------------------------------------------------------------------------------------------------------------
+:: | ap_cpuap.bin signdata | ap_rootfs.img signdata | ap_rootfs.img mkimage header | ap_cpuap.bin mkimage header |
+:: ---------------------------------------------------------------------------------------------------------------
+fileread "%WORK_DIR%\ap_cpuap.bin" 1280 64 "%WORK_DIR%\rootfs_mkimage_header.img" || EXIT /B 1
+copy /b "%WORK_DIR%\rootfs_mkimage_header.img"+"%WORK_DIR%\ap_rootfs.img" "%WORK_DIR%\ap_rootfs.u" || EXIT /B 1
+SignImage -i "%WORK_DIR%\ap_rootfs.u" -o "%WORK_DIR%\ap_rootfs.signed" -k %PRIVATE_KEY% -t %HASH_STR% || EXIT /B 1
+fileread "%WORK_DIR%\ap_rootfs.signed" 0 704 "%WORK_DIR%\ap_rootfs.sign" || EXIT /B 1
+filewrite "%WORK_DIR%\ap_cpuap.bin" 640 "%WORK_DIR%\ap_rootfs.sign" "%WORK_DIR%\ap_cpuap.bin" || EXIT /B 1
+SignImage -r -i "%WORK_DIR%\ap_cpuap.bin" -k %PRIVATE_KEY% -t %HASH_STR% || EXIT /B 1
+
+SignImage -r -i "%WORK_DIR%\evb_cpurpm.img" -k %PRIVATE_KEY% -t %HASH_STR% || EXIT /B 1
+SignImage -r -i "%WORK_DIR%\evb_cpuphy.bin" -k %PRIVATE_KEY% -t %HASH_STR% || EXIT /B 1
+SignImage -r -i "%WORK_DIR%\inter_ap_cpucap.bin" -k %PRIVATE_KEY% -t %HASH_STR% || EXIT /B 1
+
+if exist "%WORK_DIR%\ap_caprootfs.img.dm" (
+ echo "ap_caprootfs.img resign start"
+ if exist "%WORK_DIR%\verity" rmdir /s /q "%WORK_DIR%\verity"
+ mkdir "%WORK_DIR%\verity"
+ zxic_parse_squashfs_verity "%WORK_DIR%\ap_caprootfs.img.dm" "%WORK_DIR%\verity\sign" "%WORK_DIR%\verity\raw_table" "%WORK_DIR%\verity\hash_tree_offset" || EXIT /B 1
+ SignImage -d -i "%WORK_DIR%\verity\raw_table" -o "%WORK_DIR%\verity\raw_table.signed" -k %PRIVATE_KEY% -t %HASH_STR% || EXIT /B 1
+ fileseek "%WORK_DIR%\ap_caprootfs.img" "%WORK_DIR%\verity\sign" > "%WORK_DIR%\verity\sign_offset"
+ if %ERRORLEVEL% NEQ 0 EXIT /B 1
+ set /p sign_offset=<"%WORK_DIR%\verity\sign_offset"
+ echo caprootfs sign_offset %sign_offset%
+ filewrite "%WORK_DIR%\ap_caprootfs.img" %sign_offset% %WORK_DIR%\verity\raw_table.signed "%WORK_DIR%\ap_caprootfs.img" || EXIT /B 1
+ del /f /q "%WORK_DIR%\verity\sign_offset"
+
+ ::fix ap_caprootfs.img.dm
+ fileseek "%WORK_DIR%\ap_caprootfs.img.dm" "%WORK_DIR%\verity\sign" > "%WORK_DIR%\verity\sign_offset2"
+ if %ERRORLEVEL% NEQ 0 EXIT /B 1
+ set /p sign_offset2=<"%WORK_DIR%\verity\sign_offset2"
+ echo caprootfs dm sign_offset %sign_offset2%
+ filewrite "%WORK_DIR%\ap_caprootfs.img.dm" %sign_offset2% %WORK_DIR%\verity\raw_table.signed "%WORK_DIR%\ap_caprootfs.img.dm" || EXIT /B 1
+ del /f /q "%WORK_DIR%\verity\sign_offset2"
+ echo "ap_caprootfs.img resign success"
+)
+
+if exist "%WORK_DIR%\cap_oem.img.dm" (
+ echo "cap_oem.img resign start"
+ if exist "%WORK_DIR%\verity" rmdir /s /q "%WORK_DIR%\verity"
+ mkdir "%WORK_DIR%\verity"
+ zxic_parse_squashfs_verity "%WORK_DIR%\cap_oem.img.dm" "%WORK_DIR%\verity\sign" "%WORK_DIR%\verity\raw_table" "%WORK_DIR%\verity\hash_tree_offset" || EXIT /B 1
+ SignImage -d -i "%WORK_DIR%\verity\raw_table" -o "%WORK_DIR%\verity\raw_table.signed" -k %PRIVATE_KEY% -t %HASH_STR% || EXIT /B 1
+ fileseek "%WORK_DIR%\cap_oem.img" "%WORK_DIR%\verity\sign" > "%WORK_DIR%\verity\sign_offset3"
+ if %ERRORLEVEL% NEQ 0 EXIT /B 1
+ set /p sign_offset3=<"%WORK_DIR%\verity\sign_offset3"
+ echo oem sign_offset %sign_offset3%
+ filewrite "%WORK_DIR%\cap_oem.img" %sign_offset3% %WORK_DIR%\verity\raw_table.signed "%WORK_DIR%\cap_oem.img" || EXIT /B 1
+ del /f /q "%WORK_DIR%\verity\sign_offset3"
+
+ ::fix cap_oem.img.dm
+ fileseek "%WORK_DIR%\cap_oem.img.dm" "%WORK_DIR%\verity\sign" > "%WORK_DIR%\verity\sign_offset4"
+ if %ERRORLEVEL% NEQ 0 EXIT /B 1
+ set /p sign_offset4=<"%WORK_DIR%\verity\sign_offset4"
+ echo oem dm sign_offset %sign_offset4%
+ filewrite "%WORK_DIR%\cap_oem.img.dm" %sign_offset4% %WORK_DIR%\verity\raw_table.signed "%WORK_DIR%\cap_oem.img.dm" || EXIT /B 1
+ del /f /q "%WORK_DIR%\verity\sign_offset4"
+ echo "cap_oem.img resign success"
+)
+
+move %WORK_DIR%\inter_ap_cpucap.bin %WORK_DIR%\ap_cpucap.bin
+
+del /f /q "%WORK_DIR%\ap_rootfs.u"
+del /f /q "%WORK_DIR%\ap_rootfs.sign"
+del /f /q "%WORK_DIR%\rootfs_mkimage_header.img"
+del /f /q "%WORK_DIR%\ap_rootfs.signed"
+rmdir /s /q "%WORK_DIR%\verity"
diff --git a/allbins/tools/resign_tool/resign.sh b/allbins/tools/resign_tool/resign.sh
new file mode 100755
index 0000000..8c64e9a
--- /dev/null
+++ b/allbins/tools/resign_tool/resign.sh
@@ -0,0 +1,109 @@
+#!/bin/bash
+
+set -e
+
+if [ $# -lt 2 ]; then
+ echo "$0 private_key work_dir"
+ exit -1
+fi
+
+PRIVATE_KEY=$1
+WORK_DIR=$2
+#v3t for old device, sha256 is not supported, only md5
+DEVICE=$3
+HASH_STR="sha256"
+
+echo "PRIVATE_KEY:" $PRIVATE_KEY
+echo "WORK_DIR:" $WORK_DIR
+
+#ap_cpucap name changed for checking errors
+if [ -f $WORK_DIR/ap_cpucap.bin ]; then
+ mv $WORK_DIR/ap_cpucap.bin $WORK_DIR/inter_ap_cpucap.bin
+fi
+# vehicle device zloader.bin structure
+# ---------------------------------------------------------------
+# | 8 KB | 24 KB | 8KB |
+# ---------------------------------------------------------------
+# | bootrom1.bin | bootrom2.bin | zloader3.bin |
+# ---------------------------------------------------------------
+if [ x"$DEVICE" = x"v3t" ]; then
+ HASH_STR="md5"
+ if [ `ls -s $WORK_DIR/zloader.bin | awk '{print $1}'` -gt 32 ]; then
+ #old v3t device for vehicle
+ fileread $WORK_DIR/zloader.bin 0 8192 $WORK_DIR/bootrom1.bin
+ fileread $WORK_DIR/zloader.bin 8192 24576 $WORK_DIR/bootrom2.bin
+ fileread $WORK_DIR/zloader.bin 32768 0 $WORK_DIR/zloader3.bin
+ SignImage -z -i $WORK_DIR/bootrom1.bin -k $PRIVATE_KEY -t $HASH_STR
+ SignImage -z -i $WORK_DIR/bootrom2.bin -k $PRIVATE_KEY -t $HASH_STR
+ SignImage -z -i $WORK_DIR/zloader3.bin -k $PRIVATE_KEY -t $HASH_STR
+ cat $WORK_DIR/bootrom1.bin $WORK_DIR/bootrom2.bin $WORK_DIR/zloader3.bin > $WORK_DIR/zloader.bin
+ rm -v $WORK_DIR/bootrom1.bin $WORK_DIR/bootrom2.bin $WORK_DIR/zloader3.bin
+ else
+ #old v3t device for mdl/mifi etc.
+ SignImage -z -i $WORK_DIR/zloader.bin -k $PRIVATE_KEY -t $HASH_STR
+ fi
+fi
+echo "HASH_STR:" $HASH_STR
+SignImage -r -i $WORK_DIR/uboot.bin -k $PRIVATE_KEY -t $HASH_STR
+
+# ap_rootfs.img ap_cpuap.bin
+# ---------------------------------------------------------------------------------------------------------------
+# | 640 Bytes | 640 Bytes | 64 Bytes | 64 Bytes |
+# ---------------------------------------------------------------------------------------------------------------
+# | ap_cpuap.bin signdata | ap_rootfs.img signdata | ap_rootfs.img mkimage header | ap_cpuap.bin mkimage header |
+# ---------------------------------------------------------------------------------------------------------------
+#mkimage -A arm -O linux -C none -T filesystem -a 0 -e 0 -n 'rootfs' -d $WORK_DIR/ap_rootfs.img $WORK_DIR/ap_rootfs_u.img
+fileread $WORK_DIR/ap_cpuap.bin 1280 64 $WORK_DIR/rootfs_mkimage_header.img
+cat $WORK_DIR/rootfs_mkimage_header.img $WORK_DIR/ap_rootfs.img > $WORK_DIR/ap_rootfs.u
+SignImage -i $WORK_DIR/ap_rootfs.u -o $WORK_DIR/ap_rootfs.signed -k $PRIVATE_KEY -t $HASH_STR
+fileread $WORK_DIR/ap_rootfs.signed 0 704 $WORK_DIR/ap_rootfs.sign
+filewrite $WORK_DIR/ap_cpuap.bin 640 $WORK_DIR/ap_rootfs.sign $WORK_DIR/ap_cpuap.bin
+SignImage -r -i $WORK_DIR/ap_cpuap.bin -k $PRIVATE_KEY -t $HASH_STR
+
+SignImage -r -i $WORK_DIR/evb_cpurpm.img -k $PRIVATE_KEY -t $HASH_STR
+SignImage -r -i $WORK_DIR/evb_cpuphy.bin -k $PRIVATE_KEY -t $HASH_STR
+SignImage -r -i $WORK_DIR/inter_ap_cpucap.bin -k $PRIVATE_KEY -t $HASH_STR
+
+if [ -f $WORK_DIR/ap_caprootfs.img.dm ]; then
+ echo "ap_caprootfs.img resign start"
+ rm -rf $WORK_DIR/verity && mkdir -p $WORK_DIR/verity
+ zxic_parse_squashfs_verity $WORK_DIR/ap_caprootfs.img.dm $WORK_DIR/verity/sign $WORK_DIR/verity/raw_table $WORK_DIR/verity/hash_tree_offset
+ SignImage -d -i $WORK_DIR/verity/raw_table -o $WORK_DIR/verity/raw_table.signed -k $PRIVATE_KEY -t $HASH_STR
+ fileseek $WORK_DIR/ap_caprootfs.img $WORK_DIR/verity/sign > $WORK_DIR/verity/sign_offset
+ sign_offset=` sed -n '/found/p' $WORK_DIR/verity/sign_offset | awk '{print $2}' `
+ echo caprootfs sign_offset $sign_offset
+ filewrite $WORK_DIR/ap_caprootfs.img $sign_offset $WORK_DIR/verity/raw_table.signed $WORK_DIR/ap_caprootfs.img
+
+ #fix ap_caprootfs.img.dm
+ fileseek $WORK_DIR/ap_caprootfs.img.dm $WORK_DIR/verity/sign > $WORK_DIR/verity/sign_offset
+ sign_offset=` sed -n '/found/p' $WORK_DIR/verity/sign_offset | awk '{print $2}' `
+ echo caprootfs dm sign_offset $sign_offset
+ filewrite $WORK_DIR/ap_caprootfs.img.dm $sign_offset $WORK_DIR/verity/raw_table.signed $WORK_DIR/ap_caprootfs.img.dm
+
+ echo "ap_caprootfs.img resign success"
+fi
+if [ -f $WORK_DIR/cap_oem.img.dm ]; then
+ echo "cap_oem.img resign start"
+ rm -rf $WORK_DIR/verity && mkdir -p $WORK_DIR/verity
+ zxic_parse_squashfs_verity $WORK_DIR/cap_oem.img.dm $WORK_DIR/verity/sign $WORK_DIR/verity/raw_table $WORK_DIR/verity/hash_tree_offset
+ SignImage -d -i $WORK_DIR/verity/raw_table -o $WORK_DIR/verity/raw_table.signed -k $PRIVATE_KEY -t $HASH_STR
+ fileseek $WORK_DIR/cap_oem.img $WORK_DIR/verity/sign > $WORK_DIR/verity/sign_offset
+ sign_offset=` sed -n '/found/p' $WORK_DIR/verity/sign_offset | awk '{print $2}' `
+ echo oem sign_offset $sign_offset
+ filewrite $WORK_DIR/cap_oem.img $sign_offset $WORK_DIR/verity/raw_table.signed $WORK_DIR/cap_oem.img
+
+ #fix cap_oem.img.dm
+ fileseek $WORK_DIR/cap_oem.img.dm $WORK_DIR/verity/sign > $WORK_DIR/verity/sign_offset
+ sign_offset=` sed -n '/found/p' $WORK_DIR/verity/sign_offset | awk '{print $2}' `
+ echo oem dm sign_offset $sign_offset
+ filewrite $WORK_DIR/cap_oem.img.dm $sign_offset $WORK_DIR/verity/raw_table.signed $WORK_DIR/cap_oem.img.dm
+ echo "cap_oem.img resign success"
+fi
+
+mv $WORK_DIR/inter_ap_cpucap.bin $WORK_DIR/ap_cpucap.bin
+
+rm -fv $WORK_DIR/ap_rootfs.u
+rm -fv $WORK_DIR/ap_rootfs.sign
+rm -fv $WORK_DIR/rootfs_mkimage_header.img
+rm -fv $WORK_DIR/ap_rootfs.signed
+rm -fr $WORK_DIR/verity
diff --git a/allbins/tools/squashfskit/squashfs_dm-verity.sh b/allbins/tools/squashfskit/squashfs_dm-verity.sh
new file mode 100755
index 0000000..86a898d
--- /dev/null
+++ b/allbins/tools/squashfskit/squashfs_dm-verity.sh
@@ -0,0 +1,41 @@
+#!/bin/bash
+
+IN_FILE=$1
+WORK_DIR=$2
+OUT_FILE=$3
+PRIV_KEY=$4
+SignImage=$5
+
+VERITY_DIR=$WORK_DIR/verity
+
+rm -rf $VERITY_DIR $OUT_FILE $OUT_FILE.pad
+mkdir -p $VERITY_DIR
+
+# 1.pad
+let size="$(stat -c%s $IN_FILE)" pad="128*1024" offset="0" pad="(pad - ((size + offset) % pad)) % pad" newsize='size + pad'
+echo $size $newsize
+dd if=$IN_FILE of=$OUT_FILE bs=$newsize count=1 conv=sync
+cp -v $OUT_FILE $OUT_FILE.pad
+
+# 2. gen raw_table and hash_tree
+veritysetup format $OUT_FILE $VERITY_DIR/hash_tree > $VERITY_DIR/raw_table
+if [ $? -ne 0 ]; then
+ echo "generate squashfs dm-verity veritysetup format error!"
+ exit 1
+fi
+
+# 3. gen signature of raw_table
+#openssl dgst -sha256 -binary -sign $PRIV_KEY $VERITY_DIR/raw_table > $VERITY_DIR/sign
+$SignImage -i $VERITY_DIR/raw_table -o $VERITY_DIR/raw_table.signed -k $PRIV_KEY
+if [ $? -ne 0 ]; then
+ echo "generate squashfs dm-verity sign error!"
+ exit 1
+fi
+dd if=$VERITY_DIR/raw_table.signed of=$VERITY_DIR/sign bs=640 count=1 status=none
+
+# 4. padding sign, raw_table and hash_tree to input file
+zxic_generate_squashfs_verity $OUT_FILE $VERITY_DIR/sign $VERITY_DIR/raw_table $VERITY_DIR/hash_tree
+if [ $? -ne 0 ]; then
+ echo "generate squashfs dm-verity error!"
+ exit 1
+fi
diff --git a/allbins/tools/squashfskit/zxic_generate_squashfs_verity b/allbins/tools/squashfskit/zxic_generate_squashfs_verity
new file mode 100755
index 0000000..8d2fbf7
--- /dev/null
+++ b/allbins/tools/squashfskit/zxic_generate_squashfs_verity
Binary files differ
diff --git a/allbins/tools/squashfskit/zxic_parse_squashfs_verity b/allbins/tools/squashfskit/zxic_parse_squashfs_verity
new file mode 100755
index 0000000..10fd2b2
--- /dev/null
+++ b/allbins/tools/squashfskit/zxic_parse_squashfs_verity
Binary files differ
diff --git a/allbins/tools/squashfskit/zxic_parse_squashfs_verity.exe b/allbins/tools/squashfskit/zxic_parse_squashfs_verity.exe
new file mode 100755
index 0000000..3f2b456
--- /dev/null
+++ b/allbins/tools/squashfskit/zxic_parse_squashfs_verity.exe
Binary files differ
diff --git "a/allbins/zx297520v3/prj_evb/nv/config/\345\236\213\345\217\267\346\234\272/ECALL\345\217\267\347\240\201.xml" "b/allbins/zx297520v3/prj_evb/nv/config/\345\236\213\345\217\267\346\234\272/ECALL\345\217\267\347\240\201.xml"
new file mode 100755
index 0000000..d0b35c1
--- /dev/null
+++ "b/allbins/zx297520v3/prj_evb/nv/config/\345\236\213\345\217\267\346\234\272/ECALL\345\217\267\347\240\201.xml"
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="GB2312" ?>
+<FUNCTION ui="html" bin="psPriData">
+ <NVPARAM name="ÓïÒôºÅÂë¸öÊý" UIType="text" type="number" value="3" minivalue="0" maxvalue="3" path="T_zDev_NV_PsData_Pri.tUserInfo.tBeepCall.bCallNum" ParamDetail="" />
+ <NVPARAM name="ÓïÒôºÅÂë1" UIType="text" type="Phonenumber" path="T_zDev_NV_PsData_Pri.tUserInfo.tBeepCall.atCallGroup[0].bNumLen;T_zDev_NV_PsData_Pri.tUserInfo.tBeepCall.atCallGroup[0].abCallNum" value="1385148054" />
+ <NVPARAM name="ÓïÒôºÅÂë2" UIType="text" type="Phonenumber" path="T_zDev_NV_PsData_Pri.tUserInfo.tBeepCall.atCallGroup[1].bNumLen;T_zDev_NV_PsData_Pri.tUserInfo.tBeepCall.atCallGroup[1].abCallNum" value="13851480547" />
+ <NVPARAM name="ÓïÒôºÅÂë3" UIType="text" type="Phonenumber" path="T_zDev_NV_PsData_Pri.tUserInfo.tBeepCall.atCallGroup[2].bNumLen;T_zDev_NV_PsData_Pri.tUserInfo.tBeepCall.atCallGroup[2].abCallNum" value="13851480548" />
+</FUNCTION>
diff --git "a/allbins/zx297520v3/prj_evb/nv/config/\351\251\261\345\212\250/\351\251\261\345\212\250.xml" "b/allbins/zx297520v3/prj_evb/nv/config/\351\251\261\345\212\250/\351\251\261\345\212\250.xml"
index 0639919..85b1c28 100755
--- "a/allbins/zx297520v3/prj_evb/nv/config/\351\251\261\345\212\250/\351\251\261\345\212\250.xml"
+++ "b/allbins/zx297520v3/prj_evb/nv/config/\351\251\261\345\212\250/\351\251\261\345\212\250.xml"
@@ -1,60 +1,49 @@
<?xml version="1.0" encoding="GB2312" ?>
<FUNCTION ui="html" bin="drv_">
- <NVPARAM name="ADC1-threshold0" UIType="text" type="number" value="87" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_0" ParamDetail="ADC1µÄÃÅÏÞ0£¬adc1ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC1-threshold1" UIType="text" type="number" value="93" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_1" ParamDetail="ADC1µÄÃÅÏÞ1£¬adc1ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC1-threshold2" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_2" ParamDetail="ADC1µÄÃÅÏÞ2£¬adc1ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC1-threshold3" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_3" ParamDetail="ADC1µÄÃÅÏÞ3£¬adc1ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC1-threshold4" UIType="text" type="number" value="109" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_4" ParamDetail="ADC1µÄÃÅÏÞ4£¬adc1ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC1-threshold5" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_5" ParamDetail="ADC1µÄÃÅÏÞ5£¬adc1ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC1-threshold6" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_6" ParamDetail="ADC1µÄÃÅÏÞ6£¬adc1ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC1-threshold7" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_7" ParamDetail="ADC1µÄÃÅÏÞ7£¬adc1ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC1-threshold8" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_8" ParamDetail="ADC1µÄÃÅÏÞ8£¬adc1ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC1-threshold9" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_9" ParamDetail="ADC1µÄÃÅÏÞ9£¬adc1ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC1-threshold10" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_10" ParamDetail="ADC1µÄÃÅÏÞ10£¬adc1ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC2-threshold0" UIType="text" type="number" value="87" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_0" ParamDetail="ADC2µÄÃÅÏÞ0£¬adc2ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC2-threshold1" UIType="text" type="number" value="93" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_1" ParamDetail="ADC2µÄÃÅÏÞ1£¬adc2ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC2-threshold2" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_2" ParamDetail="ADC2µÄÃÅÏÞ2£¬adc2ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC2-threshold3" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_3" ParamDetail="ADC2µÄÃÅÏÞ3£¬adc2ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC2-threshold4" UIType="text" type="number" value="109" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_4" ParamDetail="ADC2µÄÃÅÏÞ4£¬adc2ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC2-threshold5" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_5" ParamDetail="ADC2µÄÃÅÏÞ5£¬adc2ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC2-threshold6" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_6" ParamDetail="ADC2µÄÃÅÏÞ6£¬adc2ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC2-threshold7" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_7" ParamDetail="ADC2µÄÃÅÏÞ7£¬adc2ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC2-threshold8" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_8" ParamDetail="ADC2µÄÃÅÏÞ8£¬adc2ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC2-threshold9" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_9" ParamDetail="ADC2µÄÃÅÏÞ9£¬adc2ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADC2-threshold10" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_10" ParamDetail="ADC2µÄÃÅÏÞ10£¬adc2ÔÚÐͺŻúÖпÉÄÜÓÃÓÚ»ñÈ¡µç³ØÎ¶ȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="ADCRF-threshold0" UIType="text" type="number" value="87" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_0" ParamDetail="ADCRFµÄÃÅÏÞ0£¬DDB0̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="ADCRF-threshold1" UIType="text" type="number" value="93" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_1" ParamDetail="ADCRFµÄÃÅÏÞ1£¬DDB0̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="ADCRF-threshold2" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_2" ParamDetail="ADCRFµÄÃÅÏÞ2£¬DDB0̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="ADCRF-threshold3" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_3" ParamDetail="ADCRFµÄÃÅÏÞ3£¬DDB0̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="ADCRF-threshold4" UIType="text" type="number" value="109" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_4" ParamDetail="ADCRFµÄÃÅÏÞ4£¬DDB0̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="ADCRF-threshold5" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_5" ParamDetail="ADCRFµÄÃÅÏÞ5£¬DDB0̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="ADCRF-threshold6" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_6" ParamDetail="ADCRFµÄÃÅÏÞ6£¬DDB0̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="ADCRF-threshold7" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_7" ParamDetail="ADCRFµÄÃÅÏÞ7£¬DDB0̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="ADCRF-threshold8" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_8" ParamDetail="ADCRFµÄÃÅÏÞ8£¬DDB0̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="ADCRF-threshold9" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_9" ParamDetail="ADCRFµÄÃÅÏÞ9£¬DDB0̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="ADCRF-threshold10" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_10" ParamDetail="ADCRFµÄÃÅÏÞ10£¬DDB0̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="DBB1-threshold0" UIType="text" type="number" value="87" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_0" ParamDetail="DBB1µÄÃÅÏÞ0£¬ÓÃÓÚ»ñÈ¡DBBоƬÄÚCPUζȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="DBB1-threshold1" UIType="text" type="number" value="93" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_1" ParamDetail="DBB1µÄÃÅÏÞ1£¬ÓÃÓÚ»ñÈ¡DBBоƬÄÚCPUζȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="DBB1-threshold2" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_2" ParamDetail="DBB1µÄÃÅÏÞ2£¬ÓÃÓÚ»ñÈ¡DBBоƬÄÚCPUζȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="DBB1-threshold3" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_3" ParamDetail="DBB1µÄÃÅÏÞ3£¬ÓÃÓÚ»ñÈ¡DBBоƬÄÚCPUζȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="DBB1-threshold4" UIType="text" type="number" value="109" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_4" ParamDetail="DBB1µÄÃÅÏÞ4£¬ÓÃÓÚ»ñÈ¡DBBоƬÄÚCPUζȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="DBB1-threshold5" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_5" ParamDetail="DBB1µÄÃÅÏÞ5£¬ÓÃÓÚ»ñÈ¡DBBоƬÄÚCPUζȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="DBB1-threshold6" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_6" ParamDetail="DBB1µÄÃÅÏÞ6£¬ÓÃÓÚ»ñÈ¡DBBоƬÄÚCPUζȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="DBB1-threshold7" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_7" ParamDetail="DBB1µÄÃÅÏÞ7£¬ÓÃÓÚ»ñÈ¡DBBоƬÄÚCPUζȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="DBB1-threshold8" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_8" ParamDetail="DBB1µÄÃÅÏÞ8£¬ÓÃÓÚ»ñÈ¡DBBоƬÄÚCPUζȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="DBB1-threshold9" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_9" ParamDetail="DBB1µÄÃÅÏÞ9£¬ÓÃÓÚ»ñÈ¡DBBоƬÄÚCPUζȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="DBB1-threshold10" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_10" ParamDetail="DBB1µÄÃÅÏÞ10£¬ÓÃÓÚ»ñÈ¡DBBоƬÄÚCPUζȣ¬ÓÃÓÚοزßÂÔʵÏÖ" />
- <NVPARAM name="DBB2-threshold0" UIType="text" type="number" value="87" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[4].THROSHOLD_0" ParamDetail="DDB2µÄÃÅÏÞ0£¬DDB2̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="DBB2-threshold1" UIType="text" type="number" value="93" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[4].THROSHOLD_1" ParamDetail="DDB2µÄÃÅÏÞ1£¬DDB2̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="DBB2-threshold2" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[4].THROSHOLD_2" ParamDetail="DDB2µÄÃÅÏÞ2£¬DDB2̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="DBB2-threshold3" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[4].THROSHOLD_3" ParamDetail="DDB2µÄÃÅÏÞ3£¬DDB2̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="DBB2-threshold4" UIType="text" type="number" value="109" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[4].THROSHOLD_4" ParamDetail="DDB2µÄÃÅÏÞ4£¬DDB2̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="DBB2-threshold5" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[4].THROSHOLD_5" ParamDetail="DDB2µÄÃÅÏÞ5£¬DDB2̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="DBB2-threshold6" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[4].THROSHOLD_6" ParamDetail="DDB2µÄÃÅÏÞ6£¬DDB2̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="DBB2-threshold7" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[4].THROSHOLD_7" ParamDetail="DDB2µÄÃÅÏÞ7£¬DDB2̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="DBB2-threshold8" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[4].THROSHOLD_8" ParamDetail="DDB2µÄÃÅÏÞ8£¬DDB2̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="DBB2-threshold9" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[4].THROSHOLD_9" ParamDetail="DDB2µÄÃÅÏÞ9£¬DDB2̽ÕëĿǰ±£ÁôδʹÓÃ" />
- <NVPARAM name="DBB2-threshold10" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[4].THROSHOLD_10" ParamDetail="DDB2µÄÃÅÏÞ10£¬DDB2̽ÕëĿǰ±£ÁôδʹÓÃ" />
+ <NVPARAM name="ADC1-threshold0" UIType="text" type="number" value="87" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_0" ParamDetail="" />
+ <NVPARAM name="ADC1-threshold1" UIType="text" type="number" value="93" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_1" ParamDetail="" />
+ <NVPARAM name="ADC1-threshold2" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_2" ParamDetail="" />
+ <NVPARAM name="ADC1-threshold3" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_3" ParamDetail="" />
+ <NVPARAM name="ADC1-threshold4" UIType="text" type="number" value="109" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_4" ParamDetail="" />
+ <NVPARAM name="ADC1-threshold5" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_5" ParamDetail="" />
+ <NVPARAM name="ADC1-threshold6" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_6" ParamDetail="" />
+ <NVPARAM name="ADC1-threshold7" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_7" ParamDetail="" />
+ <NVPARAM name="ADC1-threshold8" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_8" ParamDetail="" />
+ <NVPARAM name="ADC1-threshold9" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_9" ParamDetail="" />
+ <NVPARAM name="ADC1-threshold10" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[0].THROSHOLD_10" ParamDetail="" />
+ <NVPARAM name="ADC2-threshold0" UIType="text" type="number" value="87" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_0" ParamDetail="" />
+ <NVPARAM name="ADC2-threshold1" UIType="text" type="number" value="93" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_1" ParamDetail="" />
+ <NVPARAM name="ADC2-threshold2" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_2" ParamDetail="" />
+ <NVPARAM name="ADC2-threshold3" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_3" ParamDetail="" />
+ <NVPARAM name="ADC2-threshold4" UIType="text" type="number" value="109" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_4" ParamDetail="" />
+ <NVPARAM name="ADC2-threshold5" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_5" ParamDetail="" />
+ <NVPARAM name="ADC2-threshold6" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_6" ParamDetail="" />
+ <NVPARAM name="ADC2-threshold7" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_7" ParamDetail="" />
+ <NVPARAM name="ADC2-threshold8" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_8" ParamDetail="" />
+ <NVPARAM name="ADC2-threshold9" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_9" ParamDetail="" />
+ <NVPARAM name="ADC2-threshold10" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[1].THROSHOLD_10" ParamDetail="" />
+ <NVPARAM name="ADCRF-threshold0" UIType="text" type="number" value="87" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_0" ParamDetail="" />
+ <NVPARAM name="ADCRF-threshold1" UIType="text" type="number" value="93" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_1" ParamDetail="" />
+ <NVPARAM name="ADCRF-threshold2" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_2" ParamDetail="" />
+ <NVPARAM name="ADCRF-threshold3" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_3" ParamDetail="" />
+ <NVPARAM name="ADCRF-threshold4" UIType="text" type="number" value="109" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_4" ParamDetail="" />
+ <NVPARAM name="ADCRF-threshold5" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_5" ParamDetail="" />
+ <NVPARAM name="ADCRF-threshold6" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_6" ParamDetail="" />
+ <NVPARAM name="ADCRF-threshold7" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_7" ParamDetail="" />
+ <NVPARAM name="ADCRF-threshold8" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_8" ParamDetail="" />
+ <NVPARAM name="ADCRF-threshold9" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_9" ParamDetail="" />
+ <NVPARAM name="ADCRF-threshold10" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[2].THROSHOLD_10" ParamDetail="" />
+ <NVPARAM name="adcRfd-threshold0" UIType="text" type="number" value="87" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_0" ParamDetail="" />
+ <NVPARAM name="adcRfd-threshold1" UIType="text" type="number" value="93" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_1" ParamDetail="" />
+ <NVPARAM name="adcRfd-threshold2" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_2" ParamDetail="" />
+ <NVPARAM name="adcRfd-threshold3" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_3" ParamDetail="" />
+ <NVPARAM name="adcRfd-threshold4" UIType="text" type="number" value="109" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_4" ParamDetail="" />
+ <NVPARAM name="adcRfd-threshold5" UIType="text" type="number" value="99" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_5" ParamDetail="" />
+ <NVPARAM name="adcRfd-threshold6" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_6" ParamDetail="" />
+ <NVPARAM name="adcRfd-threshold7" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_7" ParamDetail="" />
+ <NVPARAM name="adcRfd-threshold8" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_8" ParamDetail="" />
+ <NVPARAM name="adcRfd-threshold9" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_9" ParamDetail="" />
+ <NVPARAM name="adcRfd-threshold10" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Threshods[3].THROSHOLD_10" ParamDetail="" />
<NVPARAM name="DetectEn" UIType="text" type="number" value="109" path="T_ZDrv_NvData.sysData.tsc_config.DetectEn" ParamDetail="οØ×Ü¿ª¹Ø£¬DetectEn=0xB2ʱοشò¿ª£¬ÆäËûÖµ¹Ø±Õ" />
<NVPARAM name="Wifi_RateLmite_En" UIType="text" type="number" value="107" path="T_ZDrv_NvData.sysData.tsc_config.Wifi_RateLmite_En" ParamDetail="ÏÞÖÆWIFI¹¦ÂÊ¿ª¹Ø£¬±£ÁôδʹÓÃ" />
<NVPARAM name="Wifi_TxBackOff_En" UIType="text" type="number" value="109" path="T_ZDrv_NvData.sysData.tsc_config.Wifi_TxBackOff_En" ParamDetail="ÏÞÖÆWIFI×î´ó¹¦ÂÊ¿ª¹Ø£¬±£ÁôδʹÓÃ" />
@@ -71,4 +60,5 @@
<NVPARAM name="SIM0ÉÏ´Îģʽ" UIType="combobox" type="enum" select="SOFTSIM_CARD:5;CLOUD_CARD:4;UICC_ESIM_CARD:3;UICC_VSIM_AUTO:2;VSIM_CARD:1;UICC_CARD:0" value="" path="T_ZDrv_NvData.sysData.uiccPreSwitch" ParamDetail="" />
<NVPARAM name="SIM1Çл»µ½Ä£Ê½" UIType="combobox" type="enum" select="SOFTSIM_CARD:5;CLOUD_CARD:4;UICC_ESIM_CARD:3;UICC_VSIM_AUTO:2;VSIM_CARD:1;UICC_CARD:0" value="" path="T_ZDrv_NvData.sysData.uicc1modeSwitch" ParamDetail="" />
<NVPARAM name="SIM1ÉÏ´Îģʽ" UIType="combobox" type="enum" select="SOFTSIM_CARD:5;CLOUD_CARD:4;UICC_ESIM_CARD:3;UICC_VSIM_AUTO:2;VSIM_CARD:1;UICC_CARD:0" value="" path="T_ZDrv_NvData.sysData.uicc1PreSwitch" ParamDetail="" />
+ <NVPARAM name="AdcRFdÊÇ·ñÆôÓñêÖ¾" UIType="text" type="number" value="" minivalue="0" maxvalue="255" path="T_ZDrv_NvData.sysData.tsc_config.AdcRFd_En" ParamDetail="0~0xff" />
</FUNCTION>
diff --git a/allbins/zx297520v3/prj_evb/nv/nv.xml b/allbins/zx297520v3/prj_evb/nv/nv.xml
index 4a306ee..af49135 100755
--- a/allbins/zx297520v3/prj_evb/nv/nv.xml
+++ b/allbins/zx297520v3/prj_evb/nv/nv.xml
@@ -9875,9 +9875,7 @@
<child offset="5056" name="tLcCfg" kind="struct" type="T_zDev_NV_ZLcCfg" />
<child offset="5064" name="tMccCustomBand" kind="struct" type="T_zDev_NV_MccCustomBand" />
<child offset="5148" name="tCmgfMode" kind="struct" type="T_zDev_NV_CmgfMode" />
- <child offset="5152" name="abpaddingSetInfo" kind="array" num="1356">
- <child kind="BaseType" type="BYTE" />
- </child>
+ <child offset="5152" name="tBeepCall" kind="struct" type="T_zDev_NV_BeepCallNum" />
</TypeDefine>
<TypeDefine name="T_zAtiAs_MbmsServiceResumeInd" kind="struct" len="196">
<child offset="0" name="bSrcIndex" kind="BaseType" type="BYTE" />
@@ -10087,6 +10085,15 @@
<child kind="struct" type="T_zDev_NV_LteMccCustomBandInfo" />
</child>
</TypeDefine>
+ <TypeDefine name="T_zDev_NV_BeepCallNum" kind="struct" len="40">
+ <child offset="0" name="bCallNum" kind="BaseType" type="BYTE" />
+ <child offset="1" name="abPadding" kind="array" num="3">
+ <child kind="BaseType" type="BYTE" />
+ </child>
+ <child offset="4" name="atCallGroup" kind="array" num="3">
+ <child kind="struct" type="T_zDev_NV_BeepNumInfo" />
+ </child>
+ </TypeDefine>
<TypeDefine name="T_zApMmia_PbTpmrUpdate_Req" kind="struct" len="8">
<child offset="0" name="bSrcIndex" kind="BaseType" type="BYTE" />
<child offset="1" name="bDesIndex" kind="BaseType" type="BYTE" />
@@ -10172,6 +10179,12 @@
<child offset="26" name="wTimePollPrd" kind="BaseType" type="WORD" />
<child offset="28" name="dwHfn" kind="BaseType" type="DWORD" />
</TypeDefine>
+ <TypeDefine name="T_zDev_NV_BeepNumInfo" kind="struct" len="12">
+ <child offset="0" name="bNumLen" kind="BaseType" type="BYTE" />
+ <child offset="1" name="abCallNum" kind="array" num="11">
+ <child kind="BaseType" type="BYTE" />
+ </child>
+ </TypeDefine>
<TypeDefine name="T_zWRRC_LteCellRstInfo" kind="struct" len="196">
<child offset="0" name="bLteNum" kind="BaseType" type="BYTE" />
<child offset="1" name="abPadding" kind="array" num="3">
@@ -14146,7 +14159,7 @@
<child kind="BaseType" type="BYTE" />
</child>
</TypeDefine>
- <TypeDefine name="T_CommAtSetting" kind="struct" len="800">
+ <TypeDefine name="T_CommAtSetting" kind="struct" len="808">
<child offset="0" name="magic" kind="array" num="8">
<child kind="BaseType" type="char" />
</child>
@@ -14324,10 +14337,18 @@
<child offset="792" name="wFastScanTime" kind="BaseType" type="WORD" />
<child offset="794" name="bFastScanFreqFg" kind="BaseType" type="BYTE" />
<child offset="795" name="bMultiRfFlag" kind="BaseType" type="BYTE" />
- <child offset="796" name="bGpio0Val" kind="BaseType" type="BYTE" />
- <child offset="797" name="bGpio1Val" kind="BaseType" type="BYTE" />
- <child offset="798" name="bGpio2Val" kind="BaseType" type="BYTE" />
- <child offset="799" name="bSpare" kind="BaseType" type="BYTE" />
+ <child offset="796" name="bGpio0Val" kind="BaseType" type="BYTE" />
+ <child offset="797" name="bGpio1Val" kind="BaseType" type="BYTE" />
+ <child offset="798" name="bGpio2Val" kind="BaseType" type="BYTE" />
+ <child offset="799" name="bRrcRelFlag" kind="BaseType" type="BYTE" />
+ <child offset="800" name="bRrcRelTimer" kind="BaseType" type="BYTE" />
+ <child offset="801" name="bRrcRelCountN" kind="BaseType" type="BYTE" />
+ <child offset="802" name="bRrcRelCountM" kind="BaseType" type="BYTE" />
+ <child offset="803" name="bOosScanThreshFlg" kind="BaseType" type="BYTE" />
+ <child offset="804" name="bOosScanThresh" kind="BaseType" type="BYTE" />
+ <child offset="805" name="abSpare" kind="array" num="3">
+ <child kind="BaseType" type="BYTE" />
+ </child>
</TypeDefine>
<TypeDefine name="tagMCI_ANIM_WINDOW_PARMSA" kind="struct" len="16">
<child offset="0" name="dwCallback" kind="BaseType" type="DWORD" />
@@ -21079,6 +21100,21 @@
<child offset="0" name="emr" kind="struct" type="tagEMR" />
<child offset="8" name="xform" kind="struct" type="tagXFORM" />
</TypeDefine>
+ <TypeDefine name="T_zAti_NV_BeepCallNum" kind="struct" len="40">
+ <child offset="0" name="bCallNum" kind="BaseType" type="BYTE" />
+ <child offset="1" name="abPadding" kind="array" num="3">
+ <child kind="BaseType" type="BYTE" />
+ </child>
+ <child offset="4" name="atCallGroup" kind="array" num="3">
+ <child kind="struct" type="T_zAti_NV_BeepNumInfo" />
+ </child>
+ </TypeDefine>
+ <TypeDefine name="T_zAti_NV_BeepNumInfo" kind="struct" len="12">
+ <child offset="0" name="bNumLen" kind="BaseType" type="BYTE" />
+ <child offset="1" name="abCallNum" kind="array" num="11">
+ <child kind="BaseType" type="BYTE" />
+ </child>
+ </TypeDefine>
<TypeDefine name="tagRPC_CALL_ATTRIBUTES_V1_W" kind="struct" len="36">
<child offset="0" name="Version" kind="BaseType" type="DWORD" />
<child offset="4" name="Flags" kind="BaseType" type="DWORD" />
@@ -22405,7 +22441,8 @@
<child offset="94" name="Dfs_En" kind="BaseType" type="BYTE" />
<child offset="95" name="TansmitPower_En" kind="BaseType" type="BYTE" />
<child offset="96" name="User_En" kind="BaseType" type="BYTE" />
- <child offset="97" name="reserved2" kind="array" num="3">
+ <child offset="97" name="AdcRFd_En" kind="BaseType" type="BYTE" />
+ <child offset="98" name="reserved2" kind="array" num="2">
<child kind="BaseType" type="BYTE" />
</child>
</TypeDefine>
diff --git a/allbins/zx297520v3/prj_vehicle/key/RSA_1024/private.k b/allbins/zx297520v3/prj_vehicle/key/RSA_1024/private.k
new file mode 100755
index 0000000..a17a328
--- /dev/null
+++ b/allbins/zx297520v3/prj_vehicle/key/RSA_1024/private.k
Binary files differ
diff --git a/allbins/zx297520v3/prj_vehicle/key/RSA_1024/public.k b/allbins/zx297520v3/prj_vehicle/key/RSA_1024/public.k
new file mode 100755
index 0000000..aa91a84
--- /dev/null
+++ b/allbins/zx297520v3/prj_vehicle/key/RSA_1024/public.k
Binary files differ
diff --git a/allbins/zx297520v3/prj_vehicle/key/RSA_2048/private.k b/allbins/zx297520v3/prj_vehicle/key/RSA_2048/private.k
new file mode 100755
index 0000000..c879c3f
--- /dev/null
+++ b/allbins/zx297520v3/prj_vehicle/key/RSA_2048/private.k
Binary files differ
diff --git a/allbins/zx297520v3/prj_vehicle/key/RSA_2048/public.k b/allbins/zx297520v3/prj_vehicle/key/RSA_2048/public.k
new file mode 100755
index 0000000..88550f3
--- /dev/null
+++ b/allbins/zx297520v3/prj_vehicle/key/RSA_2048/public.k
Binary files differ
diff --git a/allbins/zx297520v3/prj_vehicle/scripts/product_resign.bat b/allbins/zx297520v3/prj_vehicle/scripts/product_resign.bat
new file mode 100755
index 0000000..1d63517
--- /dev/null
+++ b/allbins/zx297520v3/prj_vehicle/scripts/product_resign.bat
@@ -0,0 +1,14 @@
+@echo off
+set CURR_DIR=%cd%
+set TOP_DIR=%CURR_DIR%\..\..\..\..
+set PATH=%TOP_DIR%\tools\SignTool;%TOP_DIR%\allbins\tools\squashfskit;%TOP_DIR%\allbins\tools\resign_tool;%PATH%
+
+set PRIVATE_KEY=%1
+set WORK_DIR=%2
+set DEVICE=%3
+
+:: v3t for old device, sha256 is not supported, only md5
+:: resign.sh private_key work_dir
+:: call %TOP_DIR%\allbins\tools\resign_tool\resign.bat ..\key\RSA_1024\private.k ..\allbins_dc_ref v3t
+:: call %TOP_DIR%\allbins\tools\resign_tool\resign.bat ..\key\RSA_2048\private.k ..\allbins_dc_ref
+call %TOP_DIR%\allbins\tools\resign_tool\resign.bat %PRIVATE_KEY% %WORK_DIR% %DEVICE%
diff --git a/allbins/zx297520v3/prj_vehicle/scripts_linux/copybin_vehicle_dc_ref.sh b/allbins/zx297520v3/prj_vehicle/scripts_linux/copybin_vehicle_dc_ref.sh
index cb9574a..5fb66ce 100755
--- a/allbins/zx297520v3/prj_vehicle/scripts_linux/copybin_vehicle_dc_ref.sh
+++ b/allbins/zx297520v3/prj_vehicle/scripts_linux/copybin_vehicle_dc_ref.sh
@@ -36,17 +36,17 @@
rm $TOP_DIR/allbins/zx297520v3/prj_vehicle/allbins_dc_ref/phyLteaAmtCali_nvro_0x00078000.bin
#uboot
-mkdir -p $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_ref/boot/dl_off
+mkdir -p $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_ref/boot/dl_on
cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/tboot.bin $TOP_DIR/allbins/zx297520v3/prj_vehicle/allbins_dc_ref/tboot.bin
cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/tloader.bin $TOP_DIR/allbins/zx297520v3/prj_vehicle/allbins_dc_ref/tloader.bin
cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/uboot.bin $TOP_DIR/allbins/zx297520v3/prj_vehicle/allbins_dc_ref/uboot.bin
-cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_off/zloader.bin $TOP_DIR/allbins/zx297520v3/prj_vehicle/allbins_dc_ref/zloader.bin
+cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_on/zloader.bin $TOP_DIR/allbins/zx297520v3/prj_vehicle/allbins_dc_ref/zloader.bin
cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/u-boot $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_ref/boot/u-boot
cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/u-boot.map $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_ref/boot/u-boot.map
cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/z-load $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_ref/boot/z-load
cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/z-load.map $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_ref/boot/z-load.map
-cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_off/z-load $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_ref/boot/dl_off/z-load
-cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_off/z-load.map $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_ref/boot/dl_off/z-load.map
+cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_on/z-load $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_ref/boot/dl_on/z-load
+cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc_ref/bin/dl_on/z-load.map $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_ref/boot/dl_on/z-load.map
#ap
cp -rvf $TOP_DIR/ap/project/zx297520v3/prj_vehicle_dc_ref/bin/220A1/allbins/* $TOP_DIR/allbins/zx297520v3/prj_vehicle/allbins_dc_ref/
diff --git a/allbins/zx297520v3/prj_vehicle/scripts_linux/copybin_vehicle_dc_systemd.sh b/allbins/zx297520v3/prj_vehicle/scripts_linux/copybin_vehicle_dc_systemd.sh
index f59a9f2..57c78d7 100755
--- a/allbins/zx297520v3/prj_vehicle/scripts_linux/copybin_vehicle_dc_systemd.sh
+++ b/allbins/zx297520v3/prj_vehicle/scripts_linux/copybin_vehicle_dc_systemd.sh
@@ -49,8 +49,8 @@
cp -rvf $TOP_DIR/boot/prj/zx297520v3/vehicle_dc/bin/dl_on/z-load.map $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_systemd/boot/dl_on/z-load.map
#ap
-cp -rvf $TOP_DIR/ap/project/zx297520v3/prj_vehicle_dc/bin/220A1/allbins/* $TOP_DIR/allbins/zx297520v3/prj_vehicle/allbins_dc_systemd/
-cp -rvf $TOP_DIR/ap/project/zx297520v3/prj_vehicle_dc/bin/220A1/elf_dc_systemd/* $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_systemd/
+cp -rvf $TOP_DIR/ap/project/zx297520v3/prj_vehicle_dc_ref/bin/220A1/allbins/* $TOP_DIR/allbins/zx297520v3/prj_vehicle/allbins_dc_systemd/
+cp -rvf $TOP_DIR/ap/project/zx297520v3/prj_vehicle_dc_ref/bin/220A1/elf_dc_systemd/* $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_systemd/
#cap
mkdir -p $TOP_DIR/allbins/zx297520v3/prj_vehicle/elf_dc_systemd/cap
diff --git a/allbins/zx297520v3/prj_vehicle/scripts_linux/product_resign.sh b/allbins/zx297520v3/prj_vehicle/scripts_linux/product_resign.sh
new file mode 100755
index 0000000..5bb19f8
--- /dev/null
+++ b/allbins/zx297520v3/prj_vehicle/scripts_linux/product_resign.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+
+CURR_DIR=`pwd`
+TOP_DIR=$CURR_DIR/../../../..
+export PATH=$TOP_DIR/tools/SignTool:$TOP_DIR/allbins/tools/squashfskit:$TOP_DIR/allbins/tools/resign_tool:$PATH
+
+PRIVATE_KEY=$1
+WORK_DIR=$2
+#v3t for old device, sha256 is not supported, only md5
+DEVICE=$3
+
+# resign.sh private_key work_dir
+#bash $TOP_DIR/allbins/tools/resign_tool/resign.sh ../key/RSA_1024/private.k ../allbins_dc_ref v3t
+#bash $TOP_DIR/allbins/tools/resign_tool/resign.sh ../key/RSA_2048/private.k ../allbins_dc_ref
+bash $TOP_DIR/allbins/tools/resign_tool/resign.sh $PRIVATE_KEY $WORK_DIR $DEVICE
+