I'm trying to build android source code (Version 7.1.1) after setting up the environment.
Every time I try to do a clean build, the persist image does not contain all the content present in the persist folder.
This is happening because the persist.img is being created before all files are copied to persist folder.
I have not observed this issue on other products using the same makefiles and configuration.
Any suggestions on what might be causing this? Below are the logs of the issue:
test=msm8953_64 (QC chipset)
[ 0% 4/52527] Target persist fs image: out/target/product/test/persist.img
make_ext4fs -s -T -1 -l 33554432 -a persist out/target/product/test/persist.img out/target/product/test/persist
Creating filesystem with parameters:
Size: 33554432
Block size: 4096
Blocks per group: 32768
Inodes per group: 2048
Inode size: 256
Journal blocks: 1024
Label:
Blocks: 8192
Block groups: 1
Reserved block group size: 7
Created filesystem with 11/2048 inodes and 1166/8192 blocks
out/target/product/test/persist.img maxsize=34197504 blocksize=135168 total=4776108 reserve=405504
[ 0% 5/52527] Install: out/target/product/test/persist/coresight/
qdss.agent.sh[ 0% 6/52527] Copy: out/target/product/test/persist/WCNSS_qcom_wlan_nv.bin
[ 0% 7/52527] Copy: out/target/product/test/persist/WCNSS_wlan_dictionary.dat
[ 0% 8/52527] Install: out/target/product/test/persist/coresight/
qdss.config.sh[ 0% 12/52527] Install: out/target/product/test/persist/sensors/aon_enable
[ 0% 13/52527] Install: out/target/product/test/persist/sensors/sensors_settings
After the incomplete persist.img build, if another incremental build is triggered, all contents of the persist folder are available in persist.img and the filesystem contains 23/2048 inodes.