[yocto] IMX-8MM bitbake image building failed

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[yocto] IMX-8MM bitbake image building failed

343 Views
Wajih403
Contributor I

Hi, whenever i try to build image for my IMX-8MM board it gives this error. Can anyone help me with this

rmt@rmt-desktop:~/build-xwayland$ bitbake core-image-minimal
Loading cache: 100% |####################################################################################################################################| Time: 0:00:00
Loaded 3073 entries from dependency cache.
ERROR: /home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv_6.4.11.p2.2-aarch64.bb: Unable to get checksum for imx-gpu-viv SRC_URI entry imx_icd.json: file could not be found
The following paths were searched:
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/fsl/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/fsl/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/fsl/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/imx8mm-ddr4-ab2/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imx8mm-ddr4-ab2/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/imx8mm-ddr4-ab2/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/mx8mm-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/mx8mm-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/mx8mm-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/mx8mm-generic-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/mx8mm-generic-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/mx8mm-generic-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/mx8m-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/mx8m-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/mx8m-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/mx8m-generic-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/mx8m-generic-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/mx8m-generic-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/mx8-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/mx8-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/mx8-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/mx8-generic-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/mx8-generic-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/mx8-generic-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/imxgpu3d/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imxgpu3d/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/imxgpu3d/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/imxgpu2d/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imxgpu2d/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/imxgpu2d/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/imxgpu/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imxgpu/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/imxgpu/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/imxvpu/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imxvpu/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/imxvpu/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/imxdrm/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imxdrm/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/imxdrm/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/imx-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imx-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/imx-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/imx-generic-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imx-generic-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/imx-generic-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/use-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/use-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/use-nxp-bsp/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/armv8a/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/armv8a/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/armv8a/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/aarch64/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/aarch64/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/aarch64/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/aarch64/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/aarch64/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/aarch64/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2-aarch64/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/imx-gpu-viv/imx_icd.json
/home/rmt/sources/meta-imx/meta-bsp/recipes-graphics/imx-gpu-viv/files/imx_icd.json
ERROR: Parsing halted due to errors, see error messages above


My local.conf file is:

MACHINE ??= 'imx8mm-ddr4-ab2'
DISTRO ?= 'fsl-imx-xwayland'
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
HALT,${TMPDIR},100M,1K \
HALT,${DL_DIR},100M,1K \
HALT,${SSTATE_DIR},100M,1K \
HALT,/tmp,10M,1K"
PACKAGECONFIG:append:pn-qemu-system-native = " sdl"
CONF_VERSION = "2"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

# Switch to Debian packaging and include package-management in the image
PACKAGE_CLASSES = "package_deb"
EXTRA_IMAGE_FEATURES += "package-management"


And bblayers.conf:

CONF_VERSION = "7"

BBPATH = "${TOPDIR}"
BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"

BBFILES ?= ""
BBLAYERS = " \
${BSPDIR}/sources/poky/meta \
${BSPDIR}/sources/poky/meta-poky \
\
${BSPDIR}/sources/meta-openembedded/meta-oe \
${BSPDIR}/sources/meta-openembedded/meta-multimedia \
${BSPDIR}/sources/meta-openembedded/meta-python \
\
${BSPDIR}/sources/meta-freescale \
${BSPDIR}/sources/meta-freescale-3rdparty \
${BSPDIR}/sources/meta-freescale-distro \
"

# i.MX Yocto Project Release layers
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-bsp"
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-sdk"
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-ml"
BBLAYERS += "${BSPDIR}/sources/meta-imx/meta-v2x"
BBLAYERS += "${BSPDIR}/sources/meta-nxp-demo-experience"

BBLAYERS += "${BSPDIR}/sources/meta-arm/meta-arm"
BBLAYERS += "${BSPDIR}/sources/meta-arm/meta-arm-toolchain"
BBLAYERS += "${BSPDIR}/sources/meta-browser/meta-chromium"
BBLAYERS += "${BSPDIR}/sources/meta-clang"
BBLAYERS += "${BSPDIR}/sources/meta-openembedded/meta-gnome"
BBLAYERS += "${BSPDIR}/sources/meta-openembedded/meta-networking"
BBLAYERS += "${BSPDIR}/sources/meta-openembedded/meta-filesystems"
BBLAYERS += "${BSPDIR}/sources/meta-qt6"
BBLAYERS += "${BSPDIR}/sources/meta-security/meta-parsec"
BBLAYERS += "${BSPDIR}/sources/meta-security/meta-tpm"
BBLAYERS += "${BSPDIR}/sources/meta-virtualization"

 




0 Kudos
Reply
2 Replies

312 Views
Harvey021
NXP TechSupport
NXP TechSupport

Hi,

Which yocto bsp are you building?

Have a try to change the MACHINE to evk, which should include ab2. 

 

Regards

Harvey

0 Kudos
Reply

305 Views
Wajih403
Contributor I

Im building yocto bsp for the NXP i.MX 8MM board, imx8mm-ddr4-ab2
The issue was with the URL from which it was trying to fetch the mx-gpu-viv-1_6.4.11.p2.2-aarch64-r0 and kept on failing due to the site not avaialble
https://www.nxp.com/lgfiles/NMG/MAD/YOCTO//imx-gpu-viv-6.4.11.p2.2-aarch64.bin

I fixed this by manually downloading the file and placing in the build/download directory from here https://repository.timesys.com/buildsources/i/imx-gpu-viv/imx-gpu-viv-6.4.11.p2.2/.

0 Kudos
Reply