Prepare
Fix firmware path
edit ~/data/github/lineage-rpi/android_kernel_brcm_rpi/arch/arm64/configs/lineageos_rpi4_defconfig line 1537
to be
CONFIG_EXTRA_FIRMWARE_DIR="/home/cpi/data/github/lineage-rpi/proprietary_vendor_brcm/rpi4/proprietary/vendor/firmware"
Compile
create m.sh with content like:
Replace files
copy
- bcm2711-rpi-400.dtb
- bcm2711-rpi-4-b.dtb
- bcm2711-rpi-cm4.dtb
- bcm2711-rpi-cm4s.dtb
from ~/data/github/lineage-rpi/android_kernel_brcm_rpi/arch/arm64/boot/dts/broadcom/ to lineage os image boot partition
copy ~/data/github/lineage-rpi/android_kernel_brcm_rpi/arch/arm64/boot/Image to to lineage os image boot partition
copy ~/data/github/lineage-rpi/android_kernel_brcm_rpi/arch/arm64/boot/dts/overlays/vc4-kms-v3d.dtbo to to lineage os image boot partition/overlays
Kernel config
https://gist.github.com/cuu/92bfa28a9b6de421834e5f9f408a12a4