I found a fork based on openwrt21.02 that provides support for msm8916 for several similar devices. The compilation can be used, but the internal code is a bit messy, so I extracted the targets/linux/msm89xx directory, made a feed of targets, and tried to compile.
cat: /home/jack/openwrt/build_dir/target-aarch64_cortex-a53+neon_musl/linux-msm89xx_msm8916/linux-6.1.52/arch/arm64/boot/dts/qcom/msm8916-handsome-openstick-ufi001c.dtb: No such file or directory
It seems that dts did not compile dtb. I tried to modify it.
msm89xx/image/msm8916.mk
follow:How OpenWrt compiles DTS files? - #2 by johnth
define Device/msm8916
$(Device/Qcom)
SOC := msm8916
QCOM_CMDLINE := "earlycon console=tty0 console=ttyMSM0,115200 root=/dev/mmcblk0p14 rw rootwait"
KERNEL := append-dtb (add this line)
KERNEL_INITRAMFS := $(KERNEL_DTB) (add this line)
QCOM_BOOTIMG_FLASH_OFFSET_BASE := 0x80000000
QCOM_BOOTIMG_FLASH_OFFSET_KERNEL := 0x00080000
QCOM_BOOTIMG_FLASH_OFFSET_RAMDISK := 0x02000000
QCOM_BOOTIMG_FLASH_OFFSET_SECOND := 0x00f00000
QCOM_BOOTIMG_FLASH_OFFSET_TAGS := 0x01e00000
QCOM_BOOTIMG_FLASH_OFFSET_PAGESIZE := 2048
endef
the new error:
cat: /home/jack/openwrt/build_dir/target-aarch64_cortex-a53+neon_musl/linux-msm89xx_msm8916/image-.dtb: No such file or directory
I found append-dtb in \include\image-commands.mk
define Build/append-dtb
cat $(KDIR)/image-$(firstword $(DEVICE_DTS)).dtb >> $@
endef
It seems that firstword DEVICE_DTS is not defined
Where should it be defined?
the base code: https://github.com/HandsomeMod/HandsomeMod.git
the targets code: https://github.com/jackadam1981/target_410_for_openwrt.git
feed.config add
src-git targets https://github.com/jackadam1981/target_410_for_openwrt.git
Sorry, my English is not good, I used machine translation.