Error Compilation Yocto - firmware-imx_5.4.bb and firmware-imx.inc - #yocto #devtool #compiler #library #firmware


kar_947@...
 

Hi everyone,

I have a big problem during the compilation of the Yocto project. I have an error with the file firmware-imx_5.4.bb and the file firmware-imx.inc. I have tried everything. Please, some can help me? 

This is my terminal : 


ERROR: firmware-imx-1_5.4-r0 do_install: Function failed: do_install (log file is located at /home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/temp/log.do_install.23348)
ERROR: Logfile of failure stored in: /home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/temp/log.do_install.23348
Log data follows:
| DEBUG: Executing shell function do_install
| 'firmware/Android.mk' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/Android.mk'
| 'firmware/epdc' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/epdc'
| 'firmware/epdc/epdc_E97_V110.fw' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/epdc/epdc_E97_V110.fw'
| 'firmware/epdc/epdc_E60_V220.fw' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/epdc/epdc_E60_V220.fw'
| 'firmware/epdc/epdc_E60_V110.fw' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/epdc/epdc_E60_V110.fw'
| 'firmware/epdc/epdc_E060SCM.fw' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/epdc/epdc_E060SCM.fw'
| 'firmware/epdc/fsl-epdc.mk' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/epdc/fsl-epdc.mk'
| 'firmware/epdc/epdc_ED060XH2C1.fw.nonrestricted' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/epdc/epdc_ED060XH2C1.fw.nonrestricted'
| 'firmware/sdma' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/sdma'
| 'firmware/sdma/sdma-imx35-to1.bin' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/sdma/sdma-imx35-to1.bin'
| 'firmware/sdma/sdma-imx51-to3.bin' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/sdma/sdma-imx51-to3.bin'
| 'firmware/sdma/sdma-imx25-to1.bin' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/sdma/sdma-imx25-to1.bin'
| 'firmware/sdma/sdma-imx53-to1.bin' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/sdma/sdma-imx53-to1.bin'
| 'firmware/sdma/sdma-imx35-to2.bin' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/sdma/sdma-imx35-to2.bin'
| 'firmware/sdma/sdma-imx31-to1.bin' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/sdma/sdma-imx31-to1.bin'
| 'firmware/sdma/sdma-imx31-to2.bin' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/sdma/sdma-imx31-to2.bin'
| 'firmware/vpu' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/vpu'
| 'firmware/vpu/vpu_fw_imx27_TO1.bin' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/vpu/vpu_fw_imx27_TO1.bin'
| 'firmware/vpu/vpu_fw_imx27_TO2.bin' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/vpu/vpu_fw_imx27_TO2.bin'
| 'firmware/vpu/vpu_fw_imx6d.bin' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/vpu/vpu_fw_imx6d.bin'
| 'firmware/vpu/vpu_fw_imx53.bin' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/vpu/vpu_fw_imx53.bin'
| 'firmware/vpu/vpu_fw_imx51.bin' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/vpu/vpu_fw_imx51.bin'
| 'firmware/vpu/vpu_fw_imx6q.bin' -> '/home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/image/lib/firmware/vpu/vpu_fw_imx6q.bin'
| cp: cannot stat 'git/brcm/1BW_BCM43340/*.bin': No such file or directory
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_install (log file is located at /home/karim/Bureau/f6du1_yocto_211/build_directory/tmp/work/cortexa9hf-neon-mx6qdl-poky-linux-gnueabi/firmware-imx/1_5.4-r0/temp/log.do_install.23348)
ERROR: Task 1802 (/home/karim/Bureau/f6du1_yocto_211/sources/meta-fsl-bsp-release/imx/meta-bsp/recipes-bsp/firmware-imx/firmware-imx_5.4.bb, do_install) failed with exit code '1'



firmware-imx.inc :

SUMMARY = "Freescale IMX firmware"
DESCRIPTION = "Freescale IMX firmware such as for the VPU"
SECTION = "base"
LICENSE = "Proprietary"
LIC_FILES_CHKSUM = "file://COPYING;md5=8cf95184c220e247b9917e7244124c5a"
 
PE = "1"
 
#BRCM firmware git
SRCBRANCH ?= "master"
 
SRC_URI = "http://www.nxp.com/lgfiles/NMG/MAD/YOCTO/firmware-imx-5.4.bin;fsl-eula=true"
 
inherit fsl-eula-unpack
 
do_install() {
    install -d ${D}${base_libdir}/firmware/imx
    install -d ${D}${base_libdir}/firmware/bcm
    install -d ${D}${sysconfdir}/firmware
 
    cp -rfv firmware/* ${D}${base_libdir}/firmware/
 
    #1BW_BCM43340
    install -d ${D}${base_libdir}/firmware/bcm/1BW_BCM43340
    cp -rfv git/brcm/1BW_BCM43340/*.bin ${D}${base_libdir}/firmware/bcm/1BW_BCM43340
    cp -rfv git/brcm/1BW_BCM43340/*.cal ${D}${base_libdir}/firmware/bcm/1BW_BCM43340
    cp -rfv git/brcm/1BW_BCM43340/*.hcd ${D}${sysconfdir}/firmware/
 
    #1DX_BCM4343W
    install -d ${D}${base_libdir}/firmware/bcm/1DX_BCM4343W
    cp -rfv git/brcm/1DX_BCM4343W/*.bin ${D}${base_libdir}/firmware/bcm/1DX_BCM4343W
    cp -rfv git/brcm/1DX_BCM4343W/*.cal ${D}${base_libdir}/firmware/bcm/1DX_BCM4343W
    cp -rfv git/brcm/1DX_BCM4343W/*.hcd ${D}${sysconfdir}/firmware/
 
    #SN8000_BCM43362
    install -d ${D}${base_libdir}/firmware/bcm/SN8000_BCM43362
    cp -rfv git/brcm/SN8000_BCM43362/*.bin ${D}${base_libdir}/firmware/bcm/SN8000_BCM43362
    cp -rfv git/brcm/SN8000_BCM43362/*.cal ${D}${base_libdir}/firmware/bcm/SN8000_BCM43362
    cp -rfv git/brcm/1DX_BCM4343W/*.hcd ${D}${sysconfdir}/firmware/
 
    #ZP_BCM4339
    install -d ${D}${base_libdir}/firmware/bcm/ZP_BCM4339
    cp -rfv git/brcm/ZP_BCM4339/*.bin ${D}${base_libdir}/firmware/bcm/ZP_BCM4339
    cp -rfv git/brcm/ZP_BCM4339/*.cal ${D}${base_libdir}/firmware/bcm/ZP_BCM4339
    cp -rfv git/brcm/ZP_BCM4339/*.hcd ${D}${sysconfdir}/firmware/
 
    mv ${D}${base_libdir}/firmware/epdc/ ${D}${base_libdir}/firmware/imx/epdc/
    mv ${D}${base_libdir}/firmware/imx/epdc/epdc_ED060XH2C1.fw.nonrestricted ${D}${base_libdir}/firmware/imx/epdc/epdc_ED060XH2C1.fw
 
    find ${D}${base_libdir}/firmware -type f -exec chmod 644 '{}' ';'
    find ${D}${base_libdir}/firmware -type f -exec chown root:root '{}' ';'
 
    # Remove files not going to be installed
    find ${D}${base_libdir}/firmware/ -name '*.mk' -exec rm '{}' ';'
}
 
python populate_packages_prepend() {
    vpudir = bb.data.expand('${base_libdir}/firmware/vpu', d)
    do_split_packages(d, vpudir, '^vpu_fw_([^_]*).*\.bin',
                      output_pattern='firmware-imx-vpu-%s',
                      description='Freescale IMX Firmware %s',
                      extra_depends='',
                      prepend=True)
 
    sdmadir = bb.data.expand('${base_libdir}/firmware/sdma', d)
    do_split_packages(d, sdmadir, '^sdma-([^-]*).*\.bin',
                      output_pattern='firmware-imx-sdma-%s',
                      description='Freescale IMX Firmware %s',
                      extra_depends='',
                      prepend=True)
}
 
ALLOW_EMPTY_${PN} = "1"
 
PACKAGES_DYNAMIC = "${PN}-vpu-* ${PN}-sdma-*"
 
PACKAGES =+ "${PN}-epdc ${PN}-brcm"
 
FILES_${PN}-epdc = "${base_libdir}/firmware/imx/epdc/"
FILES_${PN}-brcm = "${base_libdir}/firmware/bcm/*/*.bin ${base_libdir}/firmware/bcm/*/*.cal ${sysconfdir}/firmware/"
 
PACKAGE_ARCH = "${MACHINE_SOCARCH}"



firmware-imx_5.4.bb :

# Copyright (C) 2012-2016 Freescale Semiconductor
 
require firmware-imx.inc
LIC_FILES_CHKSUM = "file://COPYING;md5=8cf95184c220e247b9917e7244124c5a"
 
SRC_URI[md5sum] = "dae846ca2fc4504067f725f501491adf"
SRC_URI[sha256sum] = "c5bd4bff48cce9715a5d6d2c190ff3cd2262c7196f7facb9b0eda231c92cc223"
 
#BRCM firmware git
SRCREV = "951c1363abe95dd75ab3e9447f640d7807240236"
 
COMPATIBLE_MACHINE = "(mx5|mx6|mx6ul|mx7)"



I really hope, someone can help me. 

Best regards, 


Bas Mevissen
 

On 2020-07-30 20:31, kar_947@hotmail.fr wrote:

Hi everyone,
I have a big problem during the compilation of the Yocto project. I have an error with the file firmware-imx_5.4.bb and the file firmware-imx.inc. I have tried everything. Please, some can help me?
You best ask that at the meta-freescale mailing list. That is because this bb recipe belongs to that Yocto layer and the most knowledgeable people about I.MX and Yocto are there (including NXP staff).

Regards,

Bas.


kar_947@...
 

Hi again Bas :)

I did a new topic in meta-freescale mailing list, thank you for your answer. 

Have a good day

Best regards