aboutsummaryrefslogtreecommitdiff
path: root/zh-cn/devices/architecture/dto/partitions.html
diff options
context:
space:
mode:
authorMark Hecomovich <mheco@google.com>2018-11-12 19:18:54 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-11-12 19:18:54 +0000
commitef9d83d7f86c7f2bf6c4cf2967abb3dfea7e8636 (patch)
treebe8019bc8baef8b03fdaf36bdb5fc2e2d4788ffc /zh-cn/devices/architecture/dto/partitions.html
parentc1e42576367b058286943f85117e2cf1caccdd59 (diff)
parentc331c4c429cc28bfe87f1e7fe8c954ba2f7509fc (diff)
downloadsource.android.com-ef9d83d7f86c7f2bf6c4cf2967abb3dfea7e8636.tar.gz
Diffstat (limited to 'zh-cn/devices/architecture/dto/partitions.html')
-rw-r--r--zh-cn/devices/architecture/dto/partitions.html12
1 files changed, 7 insertions, 5 deletions
diff --git a/zh-cn/devices/architecture/dto/partitions.html b/zh-cn/devices/architecture/dto/partitions.html
index 9814501a..49cc820d 100644
--- a/zh-cn/devices/architecture/dto/partitions.html
+++ b/zh-cn/devices/architecture/dto/partitions.html
@@ -5,7 +5,7 @@
</head>
<body>
<!--
- Copyright 2017 The Android Open Source Project
+ Copyright 2018 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@
<p>如果您的 DTB/DTBO 位于专属的分区(例如 <code>dtb</code> 和 <code>dtbo</code> 分区)中,请使用以下表格结构和头文件格式:</p>
<p><img src="../images/treble_dto_partition_layout.png"/></p>
-<figcaption><strong>图 1</strong> 分区布局示例 <code>dtb</code>/<code>dtbo</code>(要了解 AVB 签名相关信息,请参阅<a href="/devices/architecture/dto/implement.html#security">安全性</a>)。
+<figcaption><strong>图 1.</strong> <code>dtb</code>/<code>dtbo</code> 分区布局示例(要了解 AVB 签名相关信息,请参阅<a href="/devices/architecture/dto/implement.html#security">安全性</a>)。
</figcaption>
<h2 id="structures">数据结构</h2>
@@ -44,7 +44,9 @@ struct dt_table_header {
// from head of dt_table_header
uint32_t page_size; // flash page size we assume
- uint32_t reserved[1]; // must be zero
+ uint32_t version; // DTBO image version, the current version is 0.
+ // The version will be incremented when the
+ // dt_table_header struct is updated.
};
struct dt_table_entry {
@@ -120,7 +122,7 @@ int check_dtbo(const dt_table_entry *entry, uint32_t header_addr) {
</pre></li></ul>
<h2 id="mkdtimg">mkdtimg</h2>
-<p><code>mkdtimg</code> 是用于创建 <code>dtb</code>/<code>dtbo</code> 映像(AOSP 中 <code>system/libufdt</code> 下的<a href="https://android-review.googlesource.com/#/q/topic:mkdtimg+(status:open+OR+status:merged+OR+status:pending)" class="external">源代码</a>的工具。<code>mkdtimg</code> 支持多个命令,包括 <code>create</code>、<code>cfg_create</code> 和 <code>dump</code>。</p>
+<p><code>mkdtimg</code> 是用于创建 <code>dtb</code>/<code>dtbo</code> 映像的工具(<a href="https://android-review.googlesource.com/#/q/topic:mkdtimg+(status:open+OR+status:merged+OR+status:pending)" class="external">源代码</a>位于 AOSP 中的 <code>system/libufdt</code> 下)。<code>mkdtimg</code> 支持多个命令,包括 <code>create</code>、<code>cfg_create</code> 和 <code>dump</code>。</p>
<h3 id="create">create</h3>
<p>使用 <code>create</code> 命令创建 <code>dtb</code>/<code>dtbo</code> 映像:</p>
@@ -234,7 +236,7 @@ dt_table_header:
dt_entry_count = 3
dt_entries_offset = 32
page_size = 2048
- reserved[0] = 00000000
+ version = 0
dt_table_entry[0]:
dt_size = 380
dt_offset = 128