Building Poky core-image-minimal on Apalis iMX8

I’m having trouble building the Poky core-image-minimal recipe on iMX8.
Following the instructions on Build Apalis iMX8/Colibri iMX8X OpenEmbedded/Yocto Project Bring-up Image, I substitute these two commands for the commands in the “Build Image” section:

MACHINE=apalis-imx8 DISTRO=poky source fsl-setup-release.sh -b build-poky
bitbake -k core-image-minimal

Output from the two commands follows:

$ MACHINE=apalis-imx8 DISTRO=poky source fsl-setup-release.sh -b build-poky

 Build directory is  build-poky

[Licensing agreeement deleted]

Do you accept the EULA you just read? (y/n) y
EULA has been accepted.

Welcome to Freescale Community BSP

The Yocto Project has extensive documentation about OE including a
reference manual which can be found at:
    http://yoctoproject.org/documentation

For more information about OpenEmbedded see their website:
    http://www.openembedded.org/

You can now run 'bitbake <target>'

Common targets are:
    core-image-minimal
    meta-toolchain
    meta-toolchain-sdk
    adt-installer
    meta-ide-support

Your build environment has been configured with:

    MACHINE=apalis-imx8
    SDKMACHINE=i686
    DISTRO=poky
    EULA=
BSPDIR=
BUILD_DIR=.
meta-freescale directory found

$ bitbake -k core-image-minimal
NOTE: Your conf/bblayers.conf has been automatically updated.
NOTE: Your conf/bblayers.conf has been automatically updated.
Parsing recipes: 100%
|#######################################################| Time: 0:00:49
Parsing of 2338 .bb files complete (0 cached, 2338 parsed). 3068 targets, 304 skipped, 6 masked, 0 errors.
ERROR: No recipes available for:
  /home/rdepew/workspace/imx8_clean1/sources/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bbappend
  /home/rdepew/workspace/imx8_clean1/sources/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium_52.0.2743.76.bbappend

Summary: There was 1 ERROR message shown, returning a non-zero exit code.
rdepew@rsmt5:build-poky$

Looking for the missing recipes, I find that the recipes are there, but the revision numbers are wrong:

$ cd ../sources

sources$ find . -name chromium*bb
./meta-browser/recipes-browser/chromium/chromium-wayland_53.0.2785.143.bb
./meta-browser/recipes-browser/chromium/chromium_54.0.2810.2.bb

Since this is a ‘core-image-minimal’ build, I do not expect to have (or need) recipes for chromium or chromium-wayland. How do I get around this error message?

Hi

Note that you do NOT follow the referenced article when you use ‘DISTRO=poky’. Whether or not that may work I do not know.

You will miss at least some settings which set i.MX 8 GPU/Multimedia related stuff.

Strangly enough with the document way of setting up the system those errors are not generated. Whatever, you can demote the error you have to a warning. So to get around your current problem you can set the following in local.conf:
BB_DANGLINGAPPENDS_WARNONLY = “true”

Max

Interesting. I’ll give this a try today.

Setting BB_DANGLINGAPPENDS_WARNONLY = “true” in local.conf does indeed fix the problem. BitBake creates a rootfs.sdcard.gz file instead of a rootfs.sdcard.bz2 file.

However, as @max.tx warned, it doesn’t work. When I load the SD card using the command

gunzip -c core-image-minimal-apalis-imx8.sdcard.gz | dd of=/dev/sdc bs=4M

and try to boot from the SD card, I encounter a Kernel Panic. We’ll stick with the fsl-imx-x11 distro for now.