Where this is defined? /proc/device-tree/firmware/android/

855 views
Skip to first unread message

Mohd Yusuf Abdul Hamid

unread,
Jun 23, 2022, 3:49:50 PM6/23/22
to Android-rpi
Hi,
I am a little bit baffled as to where is this part defined in the DTS?

[    3.225513] init: Using Android DT directory /proc/device-tree/firmware/android/

I am using RPi4 and I looked thru all bcm2711*.dts* and grep the entire arm/arm64 from "kernel_arpi" (branch 5.10) and can't find the tree structure as Google suggested here:

This is the part where first state Ramdisk about to switch over to second stage in sdcard /system

[    3.216838] init: [libfs_mgr]ReadFstabFromDt(): failed to read fstab from dt
[    3.225513] init: Using Android DT directory /proc/device-tree/firmware/android/
[    3.327193] init: DSU not detected, proceeding with normal boot
[    3.336445] init: [libfs_mgr]superblock s_max_mnt_count:65535,/dev/block/mmcblk0p2

Thanks in advance,
Yusuf

Mohd Yusuf Abdul Hamid

unread,
Jun 23, 2022, 8:28:26 PM6/23/22
to Android-rpi
After experimenting, I figured out these changes in the device tree worked. Putting it here, in case people in future come and find this.

For whatever reasons, I could not figure out how to get the Google's suggested format dev = "/dev/block/platform/soc.0/f9824900.sdhci/by-name/system"; to work.
I tried dev="/dev/block/mmcblkXpY" and that worked.

firmware {
        android {
        compatible = "android,firmware";
            fstab {
                compatible = "android,fstab";
                system {
                    compatible = "android,system";
                    dev = "/dev/block/mmcblk0p2";
                    type = "ext4";
                    mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
                    fsmgr_flags = "wait,first_stage_mount";
                };
                vendor {
                    compatible = "android,vendor";
                    dev = "/dev/block/mmcblk0p3";
                    type = "ext4";
                    mnt_flags = "ro,barrier=1,inode_readahead_blks=8";
                    fsmgr_flags = "wait,first_stage_mount";
                };
            };
        };
    };


Reply all
Reply to author
Forward
0 new messages