All of lore.kernel.org
 help / color / mirror / Atom feed
* imx-boot do_compile failing with custom distro #yocto
@ 2020-04-08 14:41 stefan.wenninger
  2020-04-08 16:29 ` [yocto] " Rudolf J Streif
  0 siblings, 1 reply; 3+ messages in thread
From: stefan.wenninger @ 2020-04-08 14:41 UTC (permalink / raw)
  To: yocto

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

Hi,
I have encountered a curious problem when trying to create my own poky-based distribution.
My distribution poky-mydist.conf in conf/distro/ of my own layer:

> 
> require conf/distro/poky.conf
> DISTRO = "poky-mydist"
> DISTRO_NAME = "Poky my dist (Custom Project Distro)"
> DISTROOVERRIDES = "poky:poky-mydist"
> 
> DISTRO_FEATURES += "ppp"
> 

This distro is basically identical to the base poky from poky.conf. I just added a feature to be able to verify that my distro is being used.

When I build core-image-base however, I get the following error:

> 
> ERROR: imx-boot-0.2-r0 do_compile: Function failed: do_compile (log file
> is located at
> /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/temp/log.do_compile.14295)
> 
> ERROR: Logfile of failure stored in:
> /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/temp/log.do_compile.14295
> 
> Log data follows:
> | DEBUG: Executing shell function do_compile
> | Copying DTB
> | 8MQ/8MM boot binary build
> | Copy ddr_firmware: lpddr4_pmu_train_1d_imem.bin from
> /opt/yocto-dev/build_poky/tmp/deploy/images/imx8mq-var-dart ->
> /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/git/iMX8M
> 
> | Copy ddr_firmware: lpddr4_pmu_train_1d_dmem.bin from
> /opt/yocto-dev/build_poky/tmp/deploy/images/imx8mq-var-dart ->
> /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/git/iMX8M
> 
> | Copy ddr_firmware: lpddr4_pmu_train_2d_imem.bin from
> /opt/yocto-dev/build_poky/tmp/deploy/images/imx8mq-var-dart ->
> /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/git/iMX8M
> 
> | Copy ddr_firmware: lpddr4_pmu_train_2d_dmem.bin from
> /opt/yocto-dev/build_poky/tmp/deploy/images/imx8mq-var-dart ->
> /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/git/iMX8M
> 
> | cp: cannot stat
> '/opt/yocto-dev/build_poky/tmp/deploy/images/imx8mq-var-dart/imx-boot-tools/bl31-imx8mq.bin':
> No such file or directory
> | WARNING: exit code 1 from a shell command.
> | ERROR: Function failed: do_compile (log file is located at
> /opt/yocto-dev/build_poky/tmp/work/imx8mq_var_dart-poky-linux/imx-boot/0.2-r0/temp/log.do_compile.14295)
> 
> ERROR: Task
> (/opt/yocto-dev/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/imx-mkimage/imx-boot_0.2.bb:do_compile)
> failed with exit code '1'
> 

By just switching my DISTRO to 'poky' in local.conf, it builds without error.

There are several things that surprise me about this error:
1. I find it quite strange that these ddr_firmwares are copied from the deploy directory to the working directory of imx-boot. I would expect that to be the other way around.
2. The file bl31-imx8mq.bin is not in the imx-boot-tools folder, even after a successful build with DISTRO='poky'. (Maybe it was there during build and was just removed afterwards?)

From my point of view it looks like the set of files that get put into imx-boot-tools/ is dependant on the DISTRO value? When using DISTRO='poky' the correct set is placed and copied. When using DISTRO='poky-mydist' the files that are placed into the folder are not the files that are supposed to be copied from there, hence the error.

Am I interpreting this situation correctly?
Is there an error in my poky-mydist distribution?
Is that something that needs to be fixed in the recipe for imx-boot? Or can I somehow configure poky-mydist.conf to be treated exactly like poky.conf ?

Thanks in advance
Stefan

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

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

end of thread, other threads:[~2020-04-09 10:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-08 14:41 imx-boot do_compile failing with custom distro #yocto stefan.wenninger
2020-04-08 16:29 ` [yocto] " Rudolf J Streif
2020-04-09 10:58   ` stefan.wenninger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.