treble: enable full treble mode [9/9]
authorYixun Lan <yixun.lan@amlogic.com>
Mon, 18 Sep 2017 02:27:46 +0000 (10:27 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 1 Nov 2017 03:15:03 +0000 (20:15 -0700)
PD#151674: treble: enable full treble mode [9/9]

dts: add android fstab info to support early mount

the android init(system/core/init) will try to parse dts to
find fstab information in order to support early mount

Change-Id: I6ddd463a8da4e05cef43ec334a6da8bf2094aff2
Signed-off-by: Yixun Lan <yixun.lan@amlogic.com>
arch/arm64/boot/dts/amlogic/partition_mbox_ab.dtsi
arch/arm64/boot/dts/amlogic/partition_mbox_normal.dtsi

index 56e6db9..cb2a413 100644 (file)
                        mask = <4>;
                };
        };
+
+       firmware {
+               android {
+                       compatible = "android,firmware";
+                       vbmeta {
+                               compatible = "android,vbmeta";
+                               parts = "boot,system,vendor";
+                               by_name_prefix="/dev/block";
+                       };
+               fstab {
+                       compatible = "android,fstab";
+                       system {
+                               compatible = "android,system";
+                               dev = "/dev/block/system_a";
+                               type = "ext4";
+                               mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
+                               fsmgr_flags = "wait";
+                               };
+
+                       system_b {
+                               compatible = "android,system";
+                               dev = "/dev/block/system_b";
+                               type = "ext4";
+                               mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
+                               fsmgr_flags = "wait";
+                               };
+
+                       vendor {
+                               compatible = "android,vendor";
+                               dev = "/dev/block/vendor_a";
+                               type = "ext4";
+                               mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
+                               fsmgr_flags = "wait";
+                               };
+
+                       vendor_b {
+                               compatible = "android,vendor";
+                               dev = "/dev/block/vendor_b";
+                               type = "ext4";
+                               mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
+                               fsmgr_flags = "wait";
+                               };
+
+                       odm {
+                               compatible = "android,odm";
+                               dev = "/dev/block/odm_a";
+                               type = "ext4";
+                               mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
+                               fsmgr_flags = "wait";
+                               };
+
+                       odm_b {
+                               compatible = "android,odm";
+                               dev = "/dev/block/odm_b";
+                               type = "ext4";
+                               mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
+                               fsmgr_flags = "wait";
+                               };
+                       };
+               };
+       };
+
 };/* end of / */
index d0d7d80..6a968f8 100644 (file)
                        mask = <4>;
                };
        };
+
+       firmware {
+               android {
+                       compatible = "android,firmware";
+                       vbmeta {
+                               compatible = "android,vbmeta";
+                               parts = "boot,system,vendor";
+                               by_name_prefix="/dev/block";
+                       };
+               fstab {
+                       compatible = "android,fstab";
+                       system {
+                               compatible = "android,system";
+                               dev = "/dev/block/system";
+                               type = "ext4";
+                               mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
+                               fsmgr_flags = "wait";
+                               };
+
+                       vendor {
+                               compatible = "android,vendor";
+                               dev = "/dev/block/vendor";
+                               type = "ext4";
+                               mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
+                               fsmgr_flags = "wait";
+                               };
+                       odm {
+                               compatible = "android,odm";
+                               dev = "/dev/block/odm";
+                               type = "ext4";
+                               mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
+                               fsmgr_flags = "wait";
+                               };
+                       };
+               };
+       };
 };/* end of / */