meta-freescale.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
* Unable to resolve error when attempting to use a custom device tree
@ 2024-04-16 14:05 JoeB
  2024-04-17  6:42 ` Marco Cavallini
  2024-04-17  7:52 ` [meta-freescale] " Andrey Zhizhikin
  0 siblings, 2 replies; 3+ messages in thread
From: JoeB @ 2024-04-16 14:05 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 2554 bytes --]

Yocto Release: Mickledore

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

| make[2]: *** No rule to make target 'arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dtbfreescale/lgs-scv4.dtb'.  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/Makefile: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 'exit 1'
| WARNING: Backtrace (BB generated script):
|       #1: bbfatal_log, /work/output/build/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, line 307
|       #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
|       #3: oe_runmake, /work/output/build/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, line 219
|       #4: do_compile, /work/output/build/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, line 156
|       #5: main, /work/output/build/tmp/work/lx2160ardb-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/linux-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
|---   linux
|--   linux-qoriq_%.bbappend
|--  files
|--   lgs-scv4.dts (custom device tree)

My linux-qoriq_%.bbappend contains the following:

KERNEL_DEVICETREE:append = "freescale/lgs-scv4.dtb"
FILESEXTRAPATHS:append := "${THISDIR}/files:"
SRC_URI:append:lx2160ardb = " \
file://lgs-scv4.dts;subdir=arch/${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.  I am not sure what step I am missing.

[-- Attachment #2: Type: text/html, Size: 4167 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unable to resolve error when attempting to use a custom device tree
  2024-04-16 14:05 Unable to resolve error when attempting to use a custom device tree JoeB
@ 2024-04-17  6:42 ` Marco Cavallini
  2024-04-17  7:52 ` [meta-freescale] " Andrey Zhizhikin
  1 sibling, 0 replies; 3+ messages in thread
From: Marco Cavallini @ 2024-04-17  6:42 UTC (permalink / raw)
  To: meta-freescale

[-- Attachment #1: Type: text/plain, Size: 211 bytes --]

On Tue, Apr 16, 2024 at 04:05 PM, JoeB wrote:

> 
> No rule to make target 'arch/arm64/boot/dts/freescale

Try verifying you have the dts in the sources directory

*bitbake -e virtual/kernel | grep ^S=*

[-- Attachment #2: Type: text/html, Size: 368 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [meta-freescale] Unable to resolve error when attempting to use a custom device tree
  2024-04-16 14:05 Unable to resolve error when attempting to use a custom device tree JoeB
  2024-04-17  6:42 ` Marco Cavallini
@ 2024-04-17  7:52 ` Andrey Zhizhikin
  1 sibling, 0 replies; 3+ messages in thread
From: Andrey Zhizhikin @ 2024-04-17  7:52 UTC (permalink / raw)
  To: joseph.beissel; +Cc: meta-freescale

Hello Joe,

On Tue, Apr 16, 2024 at 4:05 PM JoeB via lists.yoctoproject.org
<joseph.beissel=caci.com@lists.yoctoproject.org> wrote:
>
> Yocto Release: Mickledore
>
> I am getting the following error when running "bitbake -c compile virtual/kernel" when attempting to add a custom device tree.  I have not been able to figure out what is going on.,
>
> | make[2]: *** No rule to make target 'arch/arm64/boot/dts/freescale/fsl-lx2160a-qds.dtbfreescale/lgs-scv4.dtb'.  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/Makefile: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 'exit 1'
> | WARNING: Backtrace (BB generated script):
> |       #1: bbfatal_log, /work/output/build/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, line 307
> |       #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
> |       #3: oe_runmake, /work/output/build/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, line 219
> |       #4: do_compile, /work/output/build/tmp/work/lx2160ardb-fsl-linux/linux-qoriq/6.1.55+gitAUTOINC+770c5fe2c1-r0/temp/run.do_compile.515699, line 156
> |       #5: main, /work/output/build/tmp/work/lx2160ardb-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/linux-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
>       |---   linux
>                 |--   linux-qoriq_%.bbappend
>                 |--  files
>                         |--   lgs-scv4.dts (custom device tree)
>
> My linux-qoriq_%.bbappend contains the following:
>
> KERNEL_DEVICETREE:append = "freescale/lgs-scv4.dtb"

The actual mistake is here. `:append` does not add a space, so your
DTB list contains a file that cannot be found. If you change the code
to:
KERNEL_DEVICETREE += "freescale/lgs-scv4.dtb"

then it shall work for you.

See [1] for description of variable expansion.

> FILESEXTRAPATHS:append := "${THISDIR}/files:"
> SRC_URI:append:lx2160ardb = " \
>     file://lgs-scv4.dts;subdir=arch/${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.  I am not sure what step I am missing.
>
>
>
>
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#24938): https://lists.yoctoproject.org/g/meta-freescale/message/24938
> Mute This Topic: https://lists.yoctoproject.org/mt/105556991/3617192
> Group Owner: meta-freescale+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/meta-freescale/unsub [andrey.z@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>


-- 
Regards,
Andrey.

Link: [1]: https://docs.yoctoproject.org/bitbake/2.6/bitbake-user-manual/bitbake-user-manual-metadata.html#appending-and-prepending-with-spaces


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-17  7:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-16 14:05 Unable to resolve error when attempting to use a custom device tree JoeB
2024-04-17  6:42 ` Marco Cavallini
2024-04-17  7:52 ` [meta-freescale] " Andrey Zhizhikin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).