应用程序/软件映像管理组
应用程序/软件映像管理管理组定义了以下命令:
Command ID | Command description |
---|---|
0 | State of images |
1 | Image upload |
2 | File (reserved but not supported by Zephyr) |
3 | Corelist (reserved but not supported by Zephyr) |
4 | Coreload (reserved but not supported by Zephyr) |
5 | Image erase |
在Zephyr中,“插槽”和“映像”的概念
“插槽”和“映像”定义来自mcuboot,其中“映像”将包括两个“插槽”,进一步命名为“主要”和“次要”;应用程序应该从“主槽”运行,更新应该上传到“次要槽”;mcuboot负责在引导时交换插槽。这意味着有一对插槽专用于单个可升级的应用程序。对于Zephyr,这有点混乱,因为DTS将使用“slot0_partition”和“slot1_partition”作为单个应用程序的固定分区标签,但将它们分别命名为“image-0”和“image-1”。
目前,Zephyr最多支持两个映像,在这种情况下,映射如下:
Image | Slot labels | Slot |
---|