We cloned this 5.4 kernel, put it inside the BSP folder, changed some device tree nodes in
arch/arm64/boot/dts/qcom/apq8096-db820c-pmic-pins.dtsi
arch/arm64/boot/dts/qcom/apq8096-db820c.dtsi
arch/arm64/boot/dts/qcom/msm8996-pins.dtsi
arch/arm64/boot/dts/qcom/msm8996.dtsi
arch/arm64/boot/dts/qcom/pmi8994.dtsi
and it builds without errors. However, when we flash the boot image and rootfs, we get this error on boot:
[830] ERROR: Unable to find suitable device tree for device (291/0x00030001/0x1c01000a/28)␍␊
[840] ERROR: Getting device tree address failed␍␊
[840] ERROR: Could not do normal boot. Reverting to fastboot mode.␍␊
Any idea how to solve this? Did we skip some steps?