AnsweredAssumed Answered

How to port my imx6 customized device tree when yocto linux kernel version updates

Question asked by Edward Fu on Mar 13, 2020
Latest reply on Mar 17, 2020 by Kunal Kotecha

Hi all,

 

When updating yocto linux kernel version, usually the dts and dtsi(imx6qdl.dtsi  imx6qdl-sabresd.dtsi  imx6q.dtsi  imx6q-sabresd.dts) will be modified greately, but I still want to use my own dtb and dtsi. even though it builds wiought error. But the system crashed in kernel stage. I am sure it is because of dts and dtsi issue, but it is hard to figure out.

So usually how to port my imx6 customized device tree when yocto linux kernel version updates?

 

My customised dts and dtsi(imx6qdl.dtsi  imx6qdl-sabresd.dtsi  imx6q.dtsi  imx6q-sabresd.dts) are in:

meta-customised-layer/recipes-kernel/linux/files/dts/ directory.

And my linux

FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
SRC_URI += "file://dts/imx6qdl.dtsi \
file://dts/imx6qdl-sabresd.dtsi \
file://dts/imx6q.dtsi \
file://dts/imx6q-sabresd.dts \
"

inherit pkgconfig

do_apply_custom_dist_conf() {
# Adding device tree files to kernel sources
# Create directory first
install -d ${D}


cp -rf ${WORKDIR}/dts/* ${D}/../git/arch/arm/boot/dts
}

addtask apply_custom_dist_conf before do_patch after do_unpack

Outcomes