Unable to resolve error when attempting to use a custom device tree

"JoeB" <[email protected]> Tue, 16 Apr 2024 07:05:48 -0700
Newsgroups org.yoctoproject.lists.meta-freescale
Message-ID <[email protected]>
--c0A0TCY0qwoHPhnaCAmc
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Yocto Release: Mickledore

I am getting the following error when running "bitbake -c compile virtual/k=
ernel" when attempting to add a custom device tree.=C2=A0 I have not been a=
ble to figure out what is going on.,

| make[2]: *** No rule to make target 'arch/arm64/boot/dts/freescale/fsl-lx=
2160a-qds.dtbfreescale/lgs-scv4.dtb'.=C2=A0 Stop.
| make[1]: *** [/work/output/build/tmp/work-shared/lx2160ardb/kernel-source=
/scripts/Makefile.build:500: arch/arm64/boot/dts/freescale] Error 2
| make: *** [/work/output/build/tmp/work-shared/lx2160ardb/kernel-source/Ma=
kefile:1471: freescale/fsl-lx2160a-qds.dtbfreescale/lgs-scv4.dtb] Error 2
| ERROR: oe_runmake failed
| WARNING: /work/output/build/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1=
.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699:307 exit 1 from 'ex=
it 1'
| WARNING: Backtrace (BB generated script):
|=C2=A0 =C2=A0 =C2=A0 =C2=A0#1: bbfatal_log, /work/output/build/tmp/work/lx=
2160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_=
compile.515699, line 307
|=C2=A0 =C2=A0 =C2=A0 =C2=A0#2: die, /work/output/build/tmp/work/lx2160ardb=
-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.=
515699, line 291
|=C2=A0 =C2=A0 =C2=A0 =C2=A0#3: oe_runmake, /work/output/build/tmp/work/lx2=
160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_c=
ompile.515699, line 219
|=C2=A0 =C2=A0 =C2=A0 =C2=A0#4: do_compile, /work/output/build/tmp/work/lx2=
160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_c=
ompile.515699, line 156
|=C2=A0 =C2=A0 =C2=A0 =C2=A0#5: main, /work/output/build/tmp/work/lx2160ard=
b-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile=
.515699, line 311
ERROR: Task (/work/repository/mickledore/meta-qoriq/recipes-kernel/linux/li=
nux-qoriq_6.1.bb:do_compile) failed with exit code '1'

The dts that I am adding is installed at:

/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/=
arch/arm64/boot/dts/freescale/lgs-scv4.dts

In our customer layer I created the following file structure and associated=
 files:

recipes-kernel
|---=C2=A0 =C2=A0linux
|--=C2=A0 =C2=A0linux-qoriq_%.bbappend
|--=C2=A0 files
|--=C2=A0 =C2=A0lgs-scv4.dts (custom device tree)

My linux-qoriq_%.bbappend contains the following:

KERNEL_DEVICETREE:append =3D "freescale/lgs-scv4.dtb"
FILESEXTRAPATHS:append :=3D "${THISDIR}/files:"
SRC_URI:append:lx2160ardb =3D " \
file://lgs-scv4.dts;subdir=3Darch/${ARCH}/boot/dts/freescale \
"
So it appears that the dts file is getting installed by the above but it is=
 not getting compiled into the dtb.=C2=A0 I am not sure what step I am miss=
ing.

--c0A0TCY0qwoHPhnaCAmc
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Yocto Release: Mickledore<br /><br />I am getting the following error when =
running "bitbake -c compile virtual/kernel" when attempting to add a custom=
 device tree.&nbsp; I have not been able to figure out what is going on.,<b=
r /><br />
<div style=3D"padding-left: 30px;">| make[2]: *** <span style=3D"color: #ff=
0000;">No rule to make target 'arch/arm64/boot/dts/freescale/fsl-lx2160a-qd=
s.dtbfreescale/lgs-scv4.dtb'.&nbsp; Stop.</span></div>
<div style=3D"padding-left: 30px;">| make[1]: *** [/work/output/build/tmp/w=
ork-shared/lx2160ardb/kernel-source/scripts/Makefile.build:500: arch/arm64/=
boot/dts/freescale] Error 2</div>
<div style=3D"padding-left: 30px;">| make: *** [/work/output/build/tmp/work=
-shared/lx2160ardb/kernel-source/Makefile:1471: freescale/fsl-lx2160a-qds.d=
tbfreescale/lgs-scv4.dtb] Error 2</div>
<div style=3D"padding-left: 30px;">| ERROR: oe_runmake failed</div>
<div style=3D"padding-left: 30px;">| WARNING: /work/output/build/tmp/work/l=
x2160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do=
_compile.515699:307 exit 1 from 'exit 1'</div>
<div style=3D"padding-left: 30px;">| WARNING: Backtrace (BB generated scrip=
t):</div>
<div style=3D"padding-left: 30px;">|&nbsp; &nbsp; &nbsp; &nbsp;#1: bbfatal_=
log, /work/output/build/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1.55+gi=
tAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, line 307</div>
<div style=3D"padding-left: 30px;">|&nbsp; &nbsp; &nbsp; &nbsp;#2: die, /wo=
rk/output/build/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC=
+770c5fe2c1-r0/temp/run.do_compile.515699, line 291</div>
<div style=3D"padding-left: 30px;">|&nbsp; &nbsp; &nbsp; &nbsp;#3: oe_runma=
ke, /work/output/build/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1.55+git=
AUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, line 219</div>
<div style=3D"padding-left: 30px;">|&nbsp; &nbsp; &nbsp; &nbsp;#4: do_compi=
le, /work/output/build/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1.55+git=
AUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, line 156</div>
<div style=3D"padding-left: 30px;">|&nbsp; &nbsp; &nbsp; &nbsp;#5: main, /w=
ork/output/build/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOIN=
C+770c5fe2c1-r0/temp/run.do_compile.515699, line 311</div>
<div style=3D"padding-left: 30px;">ERROR: Task (/work/repository/mickledore=
/meta-qoriq/recipes-kernel/linux/linux-qoriq_6.1.bb:do_compile) failed with=
 exit code '1'</div>
<div style=3D"text-align: left;"><br />The dts that I am adding is installe=
d at:<br /><br />&nbsp; &nbsp; /tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6=
.1.55+gitAUTOINC+770c5fe2c1-r0/arch/arm64/boot/dts/freescale/lgs-scv4.dts<b=
r /><br />In our customer layer I created the following file structure and =
associated files:<br /><br />&nbsp; &nbsp; &nbsp;recipes-kernel<br />&nbsp;=
 &nbsp; &nbsp; |---&nbsp; &nbsp;linux<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbs=
p; &nbsp; &nbsp; &nbsp; |--&nbsp; &nbsp;linux-qoriq_%.bbappend<br />&nbsp; =
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; |--&nbsp; files<br />&nbsp=
; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nb=
sp; |--&nbsp; &nbsp;lgs-scv4.dts (custom device tree)<br /><br />My linux-q=
oriq_%.bbappend contains the following:<br /><br />
<div style=3D"padding-left: 30px;">KERNEL_DEVICETREE:append<span style=3D"w=
hite-space: pre;"> </span>=3D<span style=3D"white-space: pre;"> </span>"fre=
escale/lgs-scv4.dtb"</div>
<div style=3D"padding-left: 30px;">FILESEXTRAPATHS:append<span style=3D"whi=
te-space: pre;"> </span>:=3D<span style=3D"white-space: pre;"> </span>"${TH=
ISDIR}/files:"</div>
<div style=3D"padding-left: 30px;">SRC_URI:append:lx2160ardb<span style=3D"=
white-space: pre;"> </span>=3D<span style=3D"white-space: pre;"> </span>" \=
</div>
<div style=3D"padding-left: 30px;">&nbsp; &nbsp; <a href=3D"file://lgs-scv4=
.dts;subdir=3Darch/${ARCH}/boot/dts/freescale" target=3D"_blank" rel=3D"noo=
pener">file://lgs-scv4.dts;subdir=3Darch/${ARCH}/boot/dts/freescale</a>&nbs=
p;\&nbsp;</div>
<div>&nbsp; &nbsp; &nbsp; &nbsp; "<br />So it appears that the dts file is =
getting installed by the above but it is not getting compiled into the dtb.=
&nbsp; I am not sure what step I am missing.</div>
&nbsp; &nbsp; &nbsp;&nbsp;<br /><br /><br /><br /><br /></div>

--c0A0TCY0qwoHPhnaCAmc--