diff --git a/OAT.xml b/OAT.xml
index f4b8a12ad82d55469ba3722df76a6b73c569cb58..bccc112eb67cc5e1e33c60ed5e4858faf81cdd1b 100644
--- a/OAT.xml
+++ b/OAT.xml
@@ -38,6 +38,7 @@
+
diff --git a/rk3568/BUILD.gn b/rk3568/BUILD.gn
index 7d96b65e202d4c2dd48cc1b00738c1620bf048f8..14dbd111399c8b83c6495e590b1ba034ddd2e93d 100755
--- a/rk3568/BUILD.gn
+++ b/rk3568/BUILD.gn
@@ -20,6 +20,7 @@ group("rk3568_group") {
"cfg:init_configs",
"distributedhardware:distributedhardware",
"kernel:kernel",
+ "updater:updater_files",
"//device/soc/rockchip/hardware:hardware_group",
]
}
diff --git a/rk3568/updater/BUILD.gn b/rk3568/updater/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..93ad0c744d17e5f4b74f479c68f9b3ae6b60a9a6
--- /dev/null
+++ b/rk3568/updater/BUILD.gn
@@ -0,0 +1,44 @@
+# Copyright (c) 2021 Huawei Device Co., Ltd.
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import("//build/ohos.gni")
+
+ohos_prebuilt_etc("signing_cert.crt") {
+ source = "config/signing_cert.crt"
+ module_install_dir = "certificate"
+ install_images = [ "updater" ]
+ part_name = "rockchip_products"
+}
+
+ohos_prebuilt_etc("fstab.updater") {
+ source = "config/fstab.updater"
+ install_images = [ "updater" ]
+ part_name = "rockchip_products"
+}
+
+if (enable_ramdisk) {
+ ohos_copy("updater_ramdisk_resource_config.ini") {
+ sources = [ "updater_ramdisk_resource_config.ini" ]
+ outputs = [ "$root_build_dir/../../build/ohos/images/mkimage/updater_ramdisk_resource_config.ini" ]
+ }
+}
+
+group("updater_files") {
+ deps = [
+ ":fstab.updater",
+ ":signing_cert.crt",
+ ]
+ if (enable_ramdisk) {
+ deps += [ ":updater_ramdisk_resource_config.ini" ]
+ }
+}
diff --git a/rk3568/updater/config/fstab.updater b/rk3568/updater/config/fstab.updater
new file mode 100644
index 0000000000000000000000000000000000000000..24386a19fb2953b3c27c2077d5dcee7c49f92374
--- /dev/null
+++ b/rk3568/updater/config/fstab.updater
@@ -0,0 +1,6 @@
+#
+/dev/block/platform/soc/10100000.himci.eMMC/by-name/system /system ext4 ro,barrier=1 wait
+/dev/block/platform/soc/10100000.himci.eMMC/by-name/vendor /vendor ext4 ro,barrier=1 wait
+/dev/block/platform/soc/10100000.himci.eMMC/by-name/userdata /data ext4 nosuid,nodev,noatime,barrier=1,data=ordered,noauto_da_alloc wait,reservedsize=104857600
+/dev/block/platform/soc/10100000.himci.eMMC/by-name/misc /misc none none wait
+/dev/block/platform/soc/100f0000.himci.SD/mmcblk1p1 /sdcard ext4 rw wait
diff --git a/rk3568/updater/config/signing_cert.crt b/rk3568/updater/config/signing_cert.crt
new file mode 100644
index 0000000000000000000000000000000000000000..eca5d72cea8e87bc4b41f4e85570e32fbc23f69e
--- /dev/null
+++ b/rk3568/updater/config/signing_cert.crt
@@ -0,0 +1,21 @@
+-----BEGIN CERTIFICATE-----
+MIIDazCCAlOgAwIBAgIUDbbfN0ry6xlKrFyylM9asKzjANYwDQYJKoZIhvcNAQEL
+BQAwRTELMAkGA1UEBhMCQVUxEzARBgNVBAgMClNvbWUtU3RhdGUxITAfBgNVBAoM
+GEludGVybmV0IFdpZGdpdHMgUHR5IEx0ZDAeFw0yMTAyMjUxMjA2MTNaFw0yMjAy
+MjUxMjA2MTNaMEUxCzAJBgNVBAYTAkFVMRMwEQYDVQQIDApTb21lLVN0YXRlMSEw
+HwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwggEiMA0GCSqGSIb3DQEB
+AQUAA4IBDwAwggEKAoIBAQDj1JSf1YKWT/CEZtUtVzyiXgWJK3+PDkRnxP09UWJi
+KsB/gKZHT9sFmGUaIe18VI54fB52caF1sNU9v11mX9r1LCG4I+GFBUgKd7xG+rOA
+kWyCk7kIHFbXGykz8cO7P1zmA4ue7X51/cQBKy/nrGHqEfUs57lCQYQDlA9n1ahG
+U4lo/lOd1n4ESKHgg+BCzBGUJEWnH8h2K/yCLhuD1nGYnwJUy6xI8cabrh2+WSf4
+tJn0oyG+FYVJkAW1wcr2HPnnBDAyuE34sKNVkD4w9S9pTUv5xPRkOH6rEfQxC4vX
+BuCR3Vsd9gJS77wParQ8t+Th3qdxlG+OIKFqVfmDaZUtAgMBAAGjUzBRMB0GA1Ud
+DgQWBBQR55YSUMEzkyqHQKGQ51bBcqbvazAfBgNVHSMEGDAWgBQR55YSUMEzkyqH
+QKGQ51bBcqbvazAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBy
+30XquNfGVCOlXBaJJ/gyl5TP0nFZ9iQ9P0Tk6Ya6tN+Nh4lqA4uG1rUqPrQCd0+N
+DUnJlwdto8E2fznfJQ0ojkQdlPv3zkqW25QSYTb9wegQ6CnWq2ANnvoXPcSebHXE
+yXcEXybgaWkBg3h8VHcwVns5psXSDsprisFGyETBwMIqM15Z81bEpejKz2viW5ow
++c3ToGs8VhymfG3Pbls3nFeFYSD/A4sOOzM+O/ioG4YI6cGfSBztrAShtdvadHL6
+Cbp6X36ZSveGOkfS/Yrq4z/yE2V0kCJXBMo+9SrhxUrwACjMDIdE5YLlw9qpkLQV
+t5MJhDWJe6tCRSBSmoA4
+-----END CERTIFICATE-----
diff --git a/rk3568/updater/updater_ramdisk_resource_config.ini b/rk3568/updater/updater_ramdisk_resource_config.ini
new file mode 100644
index 0000000000000000000000000000000000000000..c7b06fef36385ada92e98ef26383e9ff8ff87d80
--- /dev/null
+++ b/rk3568/updater/updater_ramdisk_resource_config.ini
@@ -0,0 +1,7 @@
+# current path: "out/ohos-arm-release/"
+# Modification and deletion of section name is not allowed
+
+[board]
+boot_type = two_stages
+source_path = ../../out/kernel/src_tmp/linux-5.10/make-boot.sh
+target_path = ./packages/phone/make-boot.sh