同步操作将从 OpenHarmony/update_sys_installer_lite 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
Over the Air (OTA) provides the remote device update capability. Your devices will be able to support OTA update after secondary development based on the provided APIs. By providing unified update APIs externally, the update subsystem shields the differences of underlying chips.
/base/update/ota_lite
├── frameworks # OTA update implementation, including update package parsing, verification, writing, and updating
│ └── test # Self-test code
│ └── unittest # Unit test code
│ └── source # updater module source code
│ └── updater # updater module code
│ └── verify # Verification algorithm code
├── interfaces
│ └── kits # External APIs for OTA update
├── hals # Chip adaptation code, for example, HiSilicon chip adaptation code is located at device\hisilicon\hardware\update
The update subsystem is compiled using the C language. Currently, only the Hi3518EV300, Hi3516DV300, and Hi3861 development boards are supported. If you want to support devices that use other chips, you can implement the OpenHarmony integration APIs in the vendor directory. Currently, only the full-package update is supported.
Add the dependency on the update subsystem. The following uses the Hi3516D V300 development board as an example.
Add update to the subsystem_list field in the vendor\hisilicon\ipcamera_hi3516dv300_liteos\config.json file, and add the following code under subsystem_list:
{
"subsystem": "update",
"components": [
{ "component": "hota", "features": [] }
]
},
Add the update.json file to the build\lite\components directory.
"components": [
{
"component": "hota",
"description": "",
"optional": "false",
"dirs": [
"base/update/ota_lite/frameworks",
"base/update/ota_lite/interfaces/kits"
],
"targets": [
"//base/update/ota_lite/frameworks:ota_lite"
],
...
Add test code. For example, add subsystem_test to the base\update\ota_lite\frameworks\BUILD.gn file.
Run the following commands to compile the system. You can experience the OTA update function after flashing the system to the Hi3516 chip.
hb set
hb build
update_ota_lite
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。