语言:简体中文 | L1-OTA-EN
kernel/ota/ota_ab.h
kernel/ota/ota_update.h
l1/l1_ext.h 为模块代码镜像了链式操作: l1_ext_check_update(_async)、l1_ext_update_check_pkg、 l1_ext_update_download、l1_ext_update_verify、 l1_ext_update_install、l1_ext_update_rollback、 l1_ext_update_set_boot、l1_ext_update_get_status。
l1/l1_ext.h
l1_ext_check_update(_async)
l1_ext_update_check_pkg
l1_ext_update_download
l1_ext_update_verify
l1_ext_update_install
l1_ext_update_rollback
l1_ext_update_set_boot
l1_ext_update_get_status
标准流程(update 命令所运行的):
update
l1_ext_check_update(&info); // manifest from /etc config l1_ext_update_download(url, path); l1_ext_update_verify(path, sha256); l1_ext_update_install(path, "B"); // inactive slot // next boot flips; l1_ext_update_rollback() flips back
l1_ext_update_info_t.version[64]/changes[256] 完全镜像了 ota_update_info_t(32 位到 64 位的扩展是一个真实 bug: 32 位截断了 44 字符的官方版本字符串)。
l1_ext_update_info_t.version[64]
changes[256]
ota_update_info_t
ab_partition_test、update_*_test 测试套件、checkupdate_test。
ab_partition_test
update_*_test
checkupdate_test
There was an error while loading. Please reload this page.