Error Compilation Yocto - firmware-imx_5.4.bb and firmware-imx.inc #define #yocto #compilation #meta-freescale


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-31 10:58, 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?
Your problem is that you are using an old version of Yocto (most likely an early Krogoth version) and things have moved on. Including file locations and possibly contents, as you had before with the git.freescale.com site being no longer there (but that is not the issue here).

However, here is something strange going on. The SRC_URI points to a firmware .bin file (in reality being a bzip2 compresses tar file) that does not contain the path "git". So it looks like the downloaded file and the recipe to extract and package are not matching. It might be that NXP has updated the file contents at some point or something completely else has happended. You might try updating the recipe with the actual location of the files (just search for them) to at least get the build done.

You might also look at http://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/tree/recipes-bsp/firmware-imx/firmware-imx_5.4.bb?h=morty and get a recipe that downloads the files from https://github.com/NXP/imx-firmware.

Your best bet with Yocto is to start with something that is actually (still) supported. The current Dunfell release is not only the latest, but also an LTS. So that is a very good starting point.

Regards,

Bas.

To get this build completed,
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,


kar_947@...
 

Hi Bas,

Thank you for your answer. I dont know how to upgrade the yocto by the way. I am using the BSP of my IMX6 Board, given by the constructor. 
Anyway.

I tought that the purpose of the files firmware-imx.inc and the firmware-imx_5.4.bb is to download the file  firmware-im-5.4.bin and firmware-im-5.4.bin.done.  So i just put the target link to dowload the file .bin. 

So i need to change the url ? 
What is the exactly link Url for this files ?
Is it https://github.com/NXP/imx-firmware ?

Best regards


Brian Hutchinson
 

On Sun, Aug 2, 2020 at 11:53 PM, <kar_947@...> wrote:
Hi Bas,

Thank you for your answer. I dont know how to upgrade the yocto by the way. I am using the BSP of my IMX6 Board, given by the constructor. 
Anyway.

Which imx6 board are you using specifically?

Regards,

Brian


kar_947@...
 

Hi Brian,

I fixed my problem yesterday, thank you for your answer.

The problem was the URL on the file firmware-imx.inc, i took this new file : http://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/tree/recipes-bsp/firmware-imx/firmware-imx.inc?h=pyro

Also, there was an other problem with the file "firmware-imx_5.4.bb" . I took the new file : http://git.yoctoproject.org/cgit/cgit.cgi/meta-freescale/tree/recipes-bsp/firmware-imx/firmware-imx_5.4.bb?h=morty
And i removed the line 3. 
Before it was : require recipes-bsp/firmware-imx/firmware-imx.inc
And now, i put : require firmware-imx.inc

Finally it works!

Thank you for your help, all of you.

See you soon, i hope.

Best regards