update bin;add ota from feier git

This commit is contained in:
Yunlong Xiao 2022-06-24 22:52:25 +08:00
parent 086acd270a
commit 4696041eec
5 changed files with 13 additions and 4 deletions

View File

@ -17,12 +17,13 @@ do_compile() {
echo ${COMBO_CHIP_ID} echo ${COMBO_CHIP_ID}
echo ${MTK_PROJECT} echo ${MTK_PROJECT}
#cd ${S}/nvram_helper && make ${MULTI_CPU} #cd ${S}/nvram_helper && make ${MULTI_CPU}
sh ${S}/copy_include.sh ${TOPDIR} ${COMBO_CHIP_ID} ${MTK_PROJECT} #sh ${S}/copy_include.sh ${TOPDIR} ${COMBO_CHIP_ID} ${MTK_PROJECT}
echo ${S} echo ${S}
cd ${S}/AssistantCenter && make #cd ${S}/AssistantCenter && make
cd ${S}/daemon_light && make ${MULTI_CPU} #cd ${S}/daemon_light && make ${MULTI_CPU}
#cd ${S}/udp_server_test && make ${MULTI_CPU}
echo "fffffff" echo "fffffff"
cd ${S} && make #cd ${S} && make
#cd ${S}/nvram_helper && make ${MULTI_CPU} #cd ${S}/nvram_helper && make ${MULTI_CPU}
} }
@ -40,6 +41,7 @@ do_install() {
install -m 755 ${S}/config_app ${D}${bindir} install -m 755 ${S}/config_app ${D}${bindir}
install -m 755 ${S}/config_app.service ${D}${systemd_unitdir}/system install -m 755 ${S}/config_app.service ${D}${systemd_unitdir}/system
install -m 755 ${S}/daemon_light/daemon.bin ${D}${bindir} install -m 755 ${S}/daemon_light/daemon.bin ${D}${bindir}
#install -m 755 ${S}/udp_server_test/udp_server ${D}${bindir}
} }
FILES_${PN} += "/etc /data/dingdong" FILES_${PN} += "/etc /data/dingdong"

Binary file not shown.

Binary file not shown.

View File

@ -29,3 +29,10 @@ getcurrentvboxstate
config_app启动后的log实时保存在/tmp/config.log可实时查看 config_app启动后的log实时保存在/tmp/config.log可实时查看
配网成功后信息会写入/data/dingdong/etc/appconfig.json 配网成功后信息会写入/data/dingdong/etc/appconfig.json
若想清除配网信息重新配网,删掉/data/dingdong/etc/appconfig*即可 若想清除配网信息重新配网,删掉/data/dingdong/etc/appconfig*即可
###OTA
需要写入key数据后重启才可验证
adb push nvram_helper.bin /tmp/
adb shell /tmp/nvram_helper.bin -w robosen RBS1234567890123,C8:63:14:20:00:02,C8:63:14:20:00:03,17ffe8eb-1a09-44da-81f5-78f8b6ed1054,52849cce-d932-4179-86ed-3d1ca58426fbfc589f22-8b60-42a5-b673-a4ed2f2c4d09