secu:kernel:add OEM partition into avb mount fstab
authorwangwang <wangwang1@lenovo.com>
Fri, 4 Jan 2019 05:14:05 +0000 (13:14 +0800)
committerxiest1 <xiest1@lenovo.com>
Tue, 5 Nov 2019 09:30:31 +0000 (17:30 +0800)
oem is added into vbmeta as part of avb2.0 secure boot chain
kernel fstab must add oem node as the mount point

Change-Id: I290651f4b0527261dcf15d1910339105a0003220
Reviewed-on: https://gerrit.mot.com/1289718
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Dingwei Luo <luodw1@motorola.com>
Reviewed-by: Hua Tan <tanhua1@motorola.com>
Submit-Approved: Jira Key

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

index 919be5e963bc4e51b768c73cc5245a59f3c3f6da..0905ce0e40c5eca7dee7ca70aea62cb2136063b5 100755 (executable)
@@ -38,7 +38,7 @@
                                        compatible = "android,firmware";
                                        vbmeta {
                                                compatible = "android,vbmeta";
-                                               parts = "vbmeta,boot,system,vendor";
+                                               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";
+                                               };
                                        };
                                };
                        };