Closed maximdeclercq closed 3 years ago
You're using Community distro fslc-framebuffer
, which is not compatible with u-boot-imx-mfgtool
.
What you can try to do is to switch on using NXP-based distro fsl-framebuffer
instead (note the c
is dropped inside the name). That should effectively set a compatibility for your machine to be able to pull u-boot-imx-mfgtool
and build fsl-image-mfgtool-initramfs image.
But beware: in this case you're opting-in to use NXP version of BSP, and not Community one.
-- andrey
Thanks a lot. Are there any downsides/differences to using the NXP distro and is this documented somewhere?
Changing the distro to fsl-framebuffer
still does not work, unfortunately.
Something along the dependency tree still requires u-boot-fslc
.
Your build environment has been configured with:
MACHINE = 'imx7d-pico'
DISTRO = 'fsl-framebuffer'
BASEBOARD = 'my-custom-board'
Building target 'my-custom-image'
Loading cache: 100% |###########################################################################################################################################################################################################################################################################################| Time: 0:00:00
Loaded 842 entries from dependency cache.
Parsing recipes: 100% |#########################################################################################################################################################################################################################################################################################| Time: 0:00:09
Parsing of 2175 .bb files complete (530 cached, 1645 parsed). 3271 targets, 457 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'u-boot-fslc' (but /work/sources/meta-freescale/recipes-fsl/packagegroups/packagegroup-fsl-mfgtool.bb RDEPENDS on or otherwise requires it)
u-boot-fslc was skipped: PREFERRED_PROVIDER_virtual/bootloader set to u-boot-imx, not u-boot-fslc
NOTE: Runtime target 'u-boot-fslc' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['u-boot-fslc']
NOTE: Runtime target 'packagegroup-fsl-mfgtool-extfs' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['packagegroup-fsl-mfgtool-extfs', 'u-boot-fslc']
ERROR: Required build target 'my-custom-image' has no buildable providers.
Missing or unbuildable dependency chain was: ['my-custom-image', 'packagegroup-fsl-mfgtool-extfs', 'u-boot-fslc']
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
error: Command 'bitbake my-custom-image' failed.
I tried overriding IMX_DEFAULT_BOOTLOADER
and MACHINE_ESSENTIAL_EXTRA_RDEPENDS
, but meta-freescale-3rdparty/conf/machine/imx7d-pico.conf
seems to be included after my custom conf.
#layer.conf
...
BBFILE_PRIORITY_custom = "1"
...
include ${LAYERDIR}/conf/machine/${MACHINE}-extra.conf
machine/imx7d-pico-extra.conf
#machine/imx7d-pico-extra.conf
...
# Use NXP based u-boot
IMX_DEFAULT_BOOTLOADER = "u-boot-imx"
MACHINE_ESSENTIAL_EXTRA_RDEPENDS = "\
kernel-image \
kernel-devicetree \
u-boot-imx \
"
This is the output of bitbake -e
...
# $IMX_DEFAULT_BOOTLOADER [3 operations]
# set /work/sources/meta-custom/conf/machine/imx7d-pico-extra.conf:13
# "u-boot-imx"
# set /work/sources/meta-freescale/conf/machine/include/imx-base.inc:9
# "u-boot-fslc"
# override[mx8]:set /work/sources/meta-freescale/conf/machine/include/imx-base.inc:10
# "u-boot-imx"
# pre-expansion value:
# "u-boot-fslc"
IMX_DEFAULT_BOOTLOADER="u-boot-fslc"
...
# $MACHINE_ESSENTIAL_EXTRA_RDEPENDS [4 operations]
# set /work/sources/meta-custom/conf/machine/imx7d-pico-extra.conf:18
# " kernel-image kernel-devicetree u-boot-imx "
# append /work/sources/meta-freescale-3rdparty/conf/machine/imx7d-pico.conf:41
# " kernel-image kernel-devicetree u-boot-fslc "
# set /work/sources/core/meta/conf/documentation.conf:277
# [doc] "A list of required machine-specific packages to install as part of the image being built. Because this is a 'machine essential' variable, the list of packages are essential for the machine to boot."
# set? /work/sources/core/meta/conf/bitbake.conf:823
# ""
# pre-expansion value:
# " kernel-image kernel-devicetree u-boot-imx kernel-image kernel-devicetree u-boot-fslc "
MACHINE_ESSENTIAL_EXTRA_RDEPENDS=" kernel-image kernel-devicetree u-boot-imx kernel-image kernel-devicetree u-boot-fslc "
...
#
# $PREFERRED_PROVIDER_nativesdk-u-boot-mkimage
# set /work/sources/meta-freescale/conf/machine/include/imx-base.inc:29
# [_defaultval] "nativesdk-${IMX_DEFAULT_BOOTLOADER}-tools"
PREFERRED_PROVIDER_nativesdk-u-boot-mkimage="nativesdk-u-boot-fslc-tools"
#
# $PREFERRED_PROVIDER_nativesdk-u-boot-tools
# set /work/sources/meta-freescale/conf/machine/include/imx-base.inc:27
# [_defaultval] "nativesdk-${IMX_DEFAULT_BOOTLOADER}-tools"
PREFERRED_PROVIDER_nativesdk-u-boot-tools="nativesdk-u-boot-fslc-tools"
...
#
# $PREFERRED_PROVIDER_u-boot-mkimage-native
# set /work/sources/meta-freescale/conf/machine/include/imx-base.inc:28
# [_defaultval] "${IMX_DEFAULT_BOOTLOADER}-tools-native"
PREFERRED_PROVIDER_u-boot-mkimage-native="u-boot-fslc-tools-native"
#
# $PREFERRED_PROVIDER_u-boot-mxsboot-native
# set /work/sources/meta-freescale/conf/machine/include/imx-base.inc:32
# [_defaultval] "u-boot-fslc-mxsboot-native"
PREFERRED_PROVIDER_u-boot-mxsboot-native="u-boot-fslc-mxsboot-native"
#
# $PREFERRED_PROVIDER_u-boot-tools-native
# set /work/sources/meta-freescale/conf/machine/include/imx-base.inc:26
# [_defaultval] "${IMX_DEFAULT_BOOTLOADER}-tools-native"
PREFERRED_PROVIDER_u-boot-tools-native="u-boot-fslc-tools-native"
...
I'd rather fix the U-Boot FSLC to support the mfgtool. The use-nxp-bsp is not necessarily referring to all NXP GA specific components but the Vivante GPU drivers and Linux fork.
Thanks for the clarification, I'll see if I'm able to fix the u-boot-fslc
to support the mfgtool.
https://github.com/Freescale/meta-freescale/pull/627 allows the mfgtool
to build with the fslc
distros. I'll check if this produces a flashable image.
Fixed ... closing.
I'm not able to build the "fsl-image-mfgtool-initramfs" image for an "imx7d-pico" machine due to compatibility issues with "u-boot-imx-mfgtool". The MACHINEOVERRIDES variable does not seem to have to correct values (
"armv7ve:use-mainline-bsp:armv7ve:use-mainline-bsp:imx7d-pico"
).My manifest file can be found here.
The error occurs when I execute the following commands:
This is the value of the MACHINEOVERRIDES variables.