diff options
Diffstat (limited to 'zh-cn/devices/tech/ota/ab/ab_implement.html')
-rw-r--r-- | zh-cn/devices/tech/ota/ab/ab_implement.html | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/zh-cn/devices/tech/ota/ab/ab_implement.html b/zh-cn/devices/tech/ota/ab/ab_implement.html index 988f072d..9dd428d4 100644 --- a/zh-cn/devices/tech/ota/ab/ab_implement.html +++ b/zh-cn/devices/tech/ota/ab/ab_implement.html @@ -23,7 +23,7 @@ <p>想要实现 A/B 系统更新的原始设备制造商 (OEM) 和 SoC 供应商必须确保其引导加载程序实现 boot_control HAL,并将<a href="#kernel">正确的参数</a>传递到内核。</p> <h2 id="bootcontrol">实现启动控件 HAL</h2> -<p>支持 A/B 更新的引导加载程序必须在 <code><a href="https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/boot_control.h" class="external">hardware/libhardware/include/hardware/boot_control.h</a></code> 中实现 <code>boot_control</code> HAL。您可以使用 <code><a href="https://android.googlesource.com/platform/system/extras/+/master/bootctl/" class="external">system/extras/bootctl</a></code> 实用工具和 <code><a href="https://android.googlesource.com/platform/system/extras/+/refs/heads/master/tests/bootloader/" class="external">system/extras/tests/bootloader/</a></code> 来测试此类实现。 +<p>支持 A/B 更新的引导加载程序必须在 <code><a href="https://android.googlesource.com/platform/hardware/libhardware/+/master/include/hardware/boot_control.h" class="external">hardware/libhardware/include/hardware/boot_control.h</a></code> 中实现 <code>boot_control</code> HAL。您可以使用 <code><a href="https://android.googlesource.com/platform/system/extras/+/master/bootctl/" class="external">system/extras/bootctl</a></code> 实用工具和 <code><a href="https://android.googlesource.com/platform/system/extras/+/refs/heads/master/tests/bootloader/" class="external">system/extras/tests/bootloader/</a></code> 测试实现代码。 </p> <p>您还必须实现状态机,如下所示:</p> @@ -41,8 +41,7 @@ </li> <li>确保内核命令行参数包含中以下额外参数: <pre class="devsite-click-to-copy"> -<code class="devsite-terminal">skip_initramfs rootwait ro init=/init root="/dev/dm-0 dm=system none ro,0 1 android-verity <public-key-id> <path-to-system-partition>"</code></pre> -... 其中 <code><public-key-id></code> 值是验证 verity 表签名时使用的公钥的 ID(有关详情,请参阅 <a href="/security/verifiedboot/dm-verity.html">dm-verity</a>)。</li> +<code class="devsite-terminal">skip_initramfs rootwait ro init=/init root="/dev/dm-0 dm=system none ro,0 1 android-verity <public-key-id> <path-to-system-partition>"</code></pre>其中 <code><public-key-id></code> 值是验证 verity 表签名时所使用的公钥的 ID(有关详情,请参阅 <a href="/security/verifiedboot/dm-verity.html">dm-verity</a>)。</li> <li>将包含公钥的 .X509 证书添加到系统密钥环: <ol> <li>将设置为 <code>.der</code> 格式的 .X509 证书复制到 <code>kernel</code> 的根目录。如果 .X509 证书的格式为 <code>.pem</code> 文件,请使用以下 <code>openssl</code> 命令将证书格式从 <code>.pem</code> 转换为 <code>.der</code>: @@ -150,7 +149,7 @@ wait,verify=<path-to-block-device>/metadata,slotselect <li><code>current-slot</code>:返回接下来将从中启动的插槽后缀。</li> <li><code>slot-count</code>:返回一个表示可用插槽数量的整数。目前支持两个插槽,因此该值为 <code>2</code>。</li> <li><code>slot-successful:<slot-suffix></code>:如果指定插槽已标记为成功启动,则返回“yes”,否则返回“no”。</li> -<li><code>slot-unbootable:<slot-suffix></code>:如果指定插槽已标记为不可启动,则返回“yes”,否则返回“no”。</li> +<li><code>slot-unbootable:<slot-suffix></code>:如果指定插槽被标记为不可启动,则返回“yes”,否则返回“no”。</li> <li><code>slot-retry-count<slot suffix></slot></code>:启动指定插槽的剩余重试次数。</li> </ul> @@ -229,6 +228,6 @@ AB_OTA_POSTINSTALL_CONFIG += \ </li> </ol> -<p>要获取有关将预先优化的文件安装到未使用的第二个系统分区的帮助,请参阅 <a href="/devices/tech/dalvik/configure.html#other_odex">DEX_PREOPT 文件的首次启动安装</a>。</p> +<p>要了解如何将预先优化的文件安装到未使用的第二个系统分区,请参阅 <a href="/devices/tech/dalvik/configure.html#other_odex">DEX_PREOPT 文件的首次启动安装</a>。</p> </body></html>
\ No newline at end of file |