oem:add oem partition into avb auth chain
authorwangwang <wangwang1@lenovo.com>
Thu, 22 Aug 2019 05:42:30 +0000 (13:42 +0800)
committerlingsen1 <lingsen1@lenovo.com>
Sun, 7 Feb 2021 09:37:04 +0000 (17:37 +0800)
create a node at device tree, the system can auto-mount the oem
partition according to the info in the tree node

Change-Id: I944804b129df5a68d8618cae898363229dfa0620
Reviewed-on: https://gerrit.mot.com/1407728
SLTApproved: Slta Waiver
SME-Granted: SME Approvals Granted
Tested-by: Jira Key
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key

arch/arm64/boot/dts/exynos/exynos9609-robusta2_common.dtsi

index 172733a940253a40f849b77c02108e3f8c7cebbb..e72096c6559b48de8ec01d5060834fe40c7cae3b 100755 (executable)
@@ -39,7 +39,7 @@
                                        compatible = "android,firmware";
                                        vbmeta {
                                                compatible = "android,vbmeta";
-                                               parts = "vbmeta,boot,system,vendor,dtbo";
+                                               parts = "vbmeta,boot,system,vendor,dtbo,oem";
                                        };
                                        fstab {
                                                compatible = "android,fstab";
                                                        mnt_flags = "ro";
                                                        fsmgr_flags = "wait,avb,slotselect";
                                                };
+                                               oem {
+                                                       compatible = "android,oem";
+                                                       dev = "/dev/block/platform/13520000.ufs/by-name/oem";
+                                                       type = "ext4";
+                                                       mnt_flags = "ro,barrier=1,discard";
+                                                       fsmgr_flags = "wait,avb,slotselect";
+                                               };
                                        };
                                };
                        };