I’ve been struggling for days to make am /e/ custom build that boots, but it keeps re-booting to twrp. I see the following warnings in my build output, but I don’t know whether they might be causing the problem
make: Leaving directory ‘/home/pete/srv/custom/out/target/product/lilac/obj/KERNEL_OBJ’
make: Leaving directory ‘/home/pete/srv/custom/kernel/sony/msm8998’
depmod: WARNING: could not open modules.order at /home/pete/srv/custom/out/target/product/lilac/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0: No such file or directory
depmod: WARNING: could not open modules.builtin at /home/pete/srv/custom/out/target/product/lilac/obj/PACKAGING/depmod_vendor_intermediates/lib/modules/0.0: No such file or directory
In the past, this error has been a problem with the vendor blobs, but nothing has changed there since my most recent custom build.
I have tried formatting data before installation. Always wiping cache and dalvik before booting.
Any other ideas?
[EDIT] Problem found and solved
The problem came about because I made a local change to my
device.mk which I did not commit to git. All was OK until I did a
repo sync --force-sync which lost the local change and made some other changes which ended in a mismatch between what fles should be present in the ROM and what files were actually present
Moral: don’t ignore
repo sync failure messages and don’t use
--force-sync unless you really don’t want whatever local changes you have made