Freescale / meta-freescale

Layer containing NXP hardware support metadata
Other
175 stars 258 forks source link

Errors when building Yocto SDKs for imx8mq-evk and imx8mm-lpddr4-evk (Kirkstone) #1590

Open dv1 opened 1 year ago

dv1 commented 1 year ago

I tried to build a Yocto SDK for imx8mq-evk and current Yocto Kirkstone, but I get:

Downloading file:/home/build/BuildSetups * check_data_file_clashes: Package linux-firmware-nxp89xx wants to install file /home/build/BuildSetups2/yocto-bsp-kirkstone/build/tmp/work/imx8mq_evk-custom-linux/custom-devel-image/1.0-r0/sdk/image/usr/local/oe-sdk-hardcoded-buildpath/sysroots/cortexa53-crypto-custom-linux/lib/firmware/nxp/ed_mac_ctrl_V3_8997.conf
        But that file is already provided by package  * firmware-nxp-wifi-nxp8997-common
 * check_data_file_clashes: Package linux-firmware-nxp89xx wants to install file /home/build/BuildSetups2/yocto-bsp-kirkstone/build/tmp/work/imx8mq_evk-custom-linux/custom-devel-image/1.0-r0/sdk/image/usr/local/oe-sdk-hardcoded-buildpath/sysroots/cortexa53-crypto-custom-linux/lib/firmware/nxp/sdiouart8997_combo_v4.bin
        But that file is already provided by package  * firmware-nxp-wifi-nxp8997-sdio
 * check_data_file_clashes: Package linux-firmware-nxp89xx wants to install file /home/build/BuildSetups2/yocto-bsp-kirkstone/build/tmp/work/imx8mq_evk-custom-linux/custom-devel-image/1.0-r0/sdk/image/usr/local/oe-sdk-hardcoded-buildpath/sysroots/cortexa53-crypto-custom-linux/lib/firmware/nxp/txpwrlimit_cfg_8997.conf
        But that file is already provided by package  * firmware-nxp-wifi-nxp8997-common
 * check_data_file_clashes: Package linux-firmware-nxp89xx wants to install file /home/build/BuildSetups2/yocto-bsp-kirkstone/build/tmp/work/imx8mq_evk-custom-linux/custom-devel-image/1.0-r0/sdk/image/usr/local/oe-sdk-hardcoded-buildpath/sysroots/cortexa53-crypto-custom-linux/lib/firmware/nxp/wifi_mod_para.conf
        But that file is already provided by package  * firmware-nxp-wifi-nxp-common

I fixed this by adding this to my local.conf file:

MACHINE_FEATURES:remove = " nxp8997-sdio nxp8997-pcie nxp9098-pcie nxp9098-sdio "

I had a similar issue when building an SDK for the imx8mm-lpddr4-evk machine:

Installing linux-firmware * check_data_file_clashes: Package linux-firmware-nxp89xx wants to install file /home/build/BuildSetups2/yocto-bsp-kirkstone/build/tmp/work/imx8mm_lpddr4_evk-custom-linux/custom-devel-image/1.0-r0/sdk/image/usr/local/oe-sdk-hardcoded-buildpath/sysroots/cortexa53-crypto-custom-linux/lib/firmware/nxp/wifi_mod_para.conf
        But that file is already provided by package  * firmware-nxp-wifi-nxp-common

There, the workaround was to add this to local.conf:

MACHINE_FEATURES:remove = " nxp8987-sdio "
morten-bruun-zoetis commented 6 months ago

I had the same error and fixed it with:

MACHINE_FEATURES:remove = "nxp8987"