From 17d3879b85d65c83b2b4241fedbfdd88f80aadcd Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 28 Nov 2022 10:17:06 +0100 Subject: firmware-sof-imx: upgrade from 1.9.0-1 to 2.2.0 Update to the version used in lf5.15.52_2.1.0. Signed-off-by: Max Krummenacher --- .../firmware-imx/firmware-sof-imx_1.9.0-1.bb | 24 ---------------------- recipes-bsp/firmware-imx/firmware-sof-imx_2.2.0.bb | 24 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 recipes-bsp/firmware-imx/firmware-sof-imx_1.9.0-1.bb create mode 100644 recipes-bsp/firmware-imx/firmware-sof-imx_2.2.0.bb diff --git a/recipes-bsp/firmware-imx/firmware-sof-imx_1.9.0-1.bb b/recipes-bsp/firmware-imx/firmware-sof-imx_1.9.0-1.bb deleted file mode 100644 index d0a497b8..00000000 --- a/recipes-bsp/firmware-imx/firmware-sof-imx_1.9.0-1.bb +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (C) 2020 Mihai Lindner -# Released under the MIT license (see COPYING.MIT for the terms) - -DESCRIPTION = "Sound Open Firmware" -HOMEPAGE = "https://www.sofproject.org" -SECTION = "base" -LICENSE = "BSD-3-Clause" -LIC_FILES_CHKSUM = "file://LICENCE;md5=0f00d99239d922ffd13cabef83b33444" - -SRC_URI = "${FSL_MIRROR}/sof-imx-${PV}.tar.gz" -SRC_URI[md5sum] = "7560d41c3be0a97c744874b531649326" -SRC_URI[sha256sum] = "106cfb3da27867520d86649cde98256217829c97f41984e10161c1e2707e2c4e" - -S = "${WORKDIR}/sof-imx-${PV}" - -inherit allarch - -do_install() { - # Install sof and sof-tplg folder - install -d ${D}${nonarch_base_libdir}/firmware/imx/ - cp -r sof* ${D}${nonarch_base_libdir}/firmware/imx/ -} - -FILES:${PN} = "${nonarch_base_libdir}/firmware/imx" diff --git a/recipes-bsp/firmware-imx/firmware-sof-imx_2.2.0.bb b/recipes-bsp/firmware-imx/firmware-sof-imx_2.2.0.bb new file mode 100644 index 00000000..13edc7a6 --- /dev/null +++ b/recipes-bsp/firmware-imx/firmware-sof-imx_2.2.0.bb @@ -0,0 +1,24 @@ +# Copyright (C) 2020 Mihai Lindner +# Released under the MIT license (see COPYING.MIT for the terms) + +DESCRIPTION = "Sound Open Firmware" +HOMEPAGE = "https://www.sofproject.org" +SECTION = "base" +LICENSE = "BSD-3-Clause" +LIC_FILES_CHKSUM = "file://LICENCE;md5=0f00d99239d922ffd13cabef83b33444" + +SRC_URI = "${FSL_MIRROR}/sof-imx-${PV}.tar.gz" +SRC_URI[md5sum] = "f0a86b07c83f7cd981068682c7e8593b" +SRC_URI[sha256sum] = "bdd004808c41690fac277f30e791fbd87e665e75f4c1b6af9c18e9df9fb6f503" + +S = "${WORKDIR}/sof-imx-${PV}" + +inherit allarch + +do_install() { + # Install sof and sof-tplg folder + install -d ${D}${nonarch_base_libdir}/firmware/imx/ + cp -r sof* ${D}${nonarch_base_libdir}/firmware/imx/ +} + +FILES:${PN} = "${nonarch_base_libdir}/firmware/imx" -- cgit v1.2.3-54-g00ecf From a009c0da2f2a22e99d3a81df6ac43d02cd748f8e Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 28 Nov 2022 13:14:41 +0100 Subject: imx-sc-firmware: upgrade from 1.13.0 to 1.14.0 Update to the version used in lf5.15.52_2.1.0. License was updated to NXP EULA v39 August 2022. Signed-off-by: Max Krummenacher --- .../imx-sc-firmware/imx-sc-firmware_1.13.0.bb | 41 ---------------------- .../imx-sc-firmware/imx-sc-firmware_1.14.0.bb | 41 ++++++++++++++++++++++ 2 files changed, 41 insertions(+), 41 deletions(-) delete mode 100644 recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.13.0.bb create mode 100644 recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.14.0.bb diff --git a/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.13.0.bb b/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.13.0.bb deleted file mode 100644 index 04d7a11b..00000000 --- a/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.13.0.bb +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright (C) 2016 Freescale Semiconductor -# Copyright (C) 2017-2021 NXP - -DESCRIPTION = "i.MX System Controller Firmware" -LICENSE = "Proprietary" -LIC_FILES_CHKSUM = "file://COPYING;md5=d3c315c6eaa43e07d8c130dc3a04a011" -SECTION = "BSP" - -inherit fsl-eula-unpack pkgconfig deploy - -SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" - -SRC_URI[md5sum] = "49fc847391edd9b7aef482fcab4f556f" -SRC_URI[sha256sum] = "98da4fa8e119553f5d5defaecbcd3ee026fe27656ce19a93f912132ab07205dc" - -BOARD_TYPE ?= "mek" -SC_FIRMWARE_NAME ?= "INVALID" -SC_FIRMWARE_NAME:mx8qm-nxp-bsp = "mx8qm-${BOARD_TYPE}-scfw-tcm.bin" -SC_FIRMWARE_NAME:mx8qxp-nxp-bsp = "mx8qx-${BOARD_TYPE}-scfw-tcm.bin" -SC_FIRMWARE_NAME:mx8dxl-nxp-bsp = "mx8dxl-${BOARD_TYPE}-scfw-tcm.bin" -SC_FIRMWARE_NAME:mx8dx-nxp-bsp = "mx8dx-${BOARD_TYPE}-scfw-tcm.bin" - -symlink_name = "scfw_tcm.bin" - -BOOT_TOOLS = "imx-boot-tools" - -do_compile[noexec] = "1" - -do_install[noexec] = "1" - -do_deploy() { - install -Dm 0644 ${S}/${SC_FIRMWARE_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}/${SC_FIRMWARE_NAME} - ln -sf ${SC_FIRMWARE_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}/${symlink_name} -} -addtask deploy after do_install - -INHIBIT_PACKAGE_STRIP = "1" -INHIBIT_PACKAGE_DEBUG_SPLIT = "1" -PACKAGE_ARCH = "${MACHINE_ARCH}" - -COMPATIBLE_MACHINE = "(mx8qm-nxp-bsp|mx8qxp-nxp-bsp|mx8dxl-nxp-bsp|mx8dx-nxp-bsp)" diff --git a/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.14.0.bb b/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.14.0.bb new file mode 100644 index 00000000..6f6c3409 --- /dev/null +++ b/recipes-bsp/imx-sc-firmware/imx-sc-firmware_1.14.0.bb @@ -0,0 +1,41 @@ +# Copyright (C) 2016 Freescale Semiconductor +# Copyright 2017-2022 NXP + +DESCRIPTION = "i.MX System Controller Firmware" +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://COPYING;md5=5a0bf11f745e68024f37b4724a5364fe" +SECTION = "BSP" + +inherit fsl-eula-unpack pkgconfig deploy + +SRC_URI = "${FSL_MIRROR}/${BPN}-${PV}.bin;fsl-eula=true" + +SRC_URI[md5sum] = "bc4a96de0e2ce0476a0727dd7e667bff" +SRC_URI[sha256sum] = "a1ea7a94b5d8dd50a8e82fd37d424facabdd0228dedd08cd3da2c43d61da6126" + +BOARD_TYPE ?= "mek" +SC_FIRMWARE_NAME ?= "INVALID" +SC_FIRMWARE_NAME:mx8qm-nxp-bsp = "mx8qm-${BOARD_TYPE}-scfw-tcm.bin" +SC_FIRMWARE_NAME:mx8qxp-nxp-bsp = "mx8qx-${BOARD_TYPE}-scfw-tcm.bin" +SC_FIRMWARE_NAME:mx8dxl-nxp-bsp = "mx8dxl-${BOARD_TYPE}-scfw-tcm.bin" +SC_FIRMWARE_NAME:mx8dx-nxp-bsp = "mx8dx-${BOARD_TYPE}-scfw-tcm.bin" + +symlink_name = "scfw_tcm.bin" + +BOOT_TOOLS = "imx-boot-tools" + +do_compile[noexec] = "1" + +do_install[noexec] = "1" + +do_deploy() { + install -Dm 0644 ${S}/${SC_FIRMWARE_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}/${SC_FIRMWARE_NAME} + ln -sf ${SC_FIRMWARE_NAME} ${DEPLOYDIR}/${BOOT_TOOLS}/${symlink_name} +} +addtask deploy after do_install + +INHIBIT_PACKAGE_STRIP = "1" +INHIBIT_PACKAGE_DEBUG_SPLIT = "1" +PACKAGE_ARCH = "${MACHINE_ARCH}" + +COMPATIBLE_MACHINE = "(mx8qm-nxp-bsp|mx8qxp-nxp-bsp|mx8dxl-nxp-bsp|mx8dx-nxp-bsp)" -- cgit v1.2.3-54-g00ecf From 2ebc966fca24cbecdb90bb8a09ee34910f800f22 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 28 Nov 2022 13:34:02 +0100 Subject: imx-seco: upgrade from 3.8.6 to 5.8.7.1 Update to the version used in lf5.15.52_2.1.0. License was updated to NXP EULA v35 May 2022. Note that the binary blobs are only updated for i.MX 8DXL SoC. Binary blobs for all other SoC have the same md5sum as in the 3.8.6 version. Signed-off-by: Max Krummenacher --- recipes-bsp/imx-seco/imx-seco_3.8.6.bb | 27 --------------------------- recipes-bsp/imx-seco/imx-seco_5.8.7.1.bb | 27 +++++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 recipes-bsp/imx-seco/imx-seco_3.8.6.bb create mode 100644 recipes-bsp/imx-seco/imx-seco_5.8.7.1.bb diff --git a/recipes-bsp/imx-seco/imx-seco_3.8.6.bb b/recipes-bsp/imx-seco/imx-seco_3.8.6.bb deleted file mode 100644 index bcc4dd3f..00000000 --- a/recipes-bsp/imx-seco/imx-seco_3.8.6.bb +++ /dev/null @@ -1,27 +0,0 @@ -# Copyright (C) 2019-2022 NXP - -SUMMARY = "NXP i.MX SECO firmware" -DESCRIPTION = "Firmware for i.MX Security Controller Subsystem" -SECTION = "base" -LICENSE = "Proprietary" -LIC_FILES_CHKSUM = "file://COPYING;md5=be5ff43682ed6c57dfcbeb97651c2829" - -inherit fsl-eula-unpack use-imx-security-controller-firmware deploy - -SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true" - -SRC_URI[md5sum] = "2427a45069a89bb9b9b470642ce17f18" -SRC_URI[sha256sum] = "3bf3f4ae69f77fd8fe28a216f3927fb84e75461364ad332dd9b4605beadae59a" - - -do_compile[noexec] = "1" - -do_install[noexec] = "1" - -addtask deploy after do_install -do_deploy () { - # Deploy i.MX8 SECO firmware files - install -m 0644 ${S}/firmware/seco/${SECO_FIRMWARE_NAME} ${DEPLOYDIR} -} - -COMPATIBLE_MACHINE = "(mx8qm-nxp-bsp|mx8qxp-nxp-bsp|mx8dxl-nxp-bsp|mx8dx-nxp-bsp)" diff --git a/recipes-bsp/imx-seco/imx-seco_5.8.7.1.bb b/recipes-bsp/imx-seco/imx-seco_5.8.7.1.bb new file mode 100644 index 00000000..d37c1c98 --- /dev/null +++ b/recipes-bsp/imx-seco/imx-seco_5.8.7.1.bb @@ -0,0 +1,27 @@ +# Copyright 2019-2022 NXP + +SUMMARY = "NXP i.MX SECO firmware" +DESCRIPTION = "Firmware for i.MX Security Controller Subsystem" +SECTION = "base" +LICENSE = "Proprietary" +LIC_FILES_CHKSUM = "file://COPYING;md5=d3c315c6eaa43e07d8c130dc3a04a011" + +inherit fsl-eula-unpack use-imx-security-controller-firmware deploy + +SRC_URI = "${FSL_MIRROR}/${BP}.bin;fsl-eula=true" + +SRC_URI[md5sum] = "f5c6737b42275e513d4e0cc2efa91d6a" +SRC_URI[sha256sum] = "03fa16ebc0633505bd02dae1c58602e278a8a28c8205c758fa3936477d51d0e0" + + +do_compile[noexec] = "1" + +do_install[noexec] = "1" + +addtask deploy after do_install +do_deploy () { + # Deploy i.MX8 SECO firmware files + install -m 0644 ${S}/firmware/seco/${SECO_FIRMWARE_NAME} ${DEPLOYDIR} +} + +COMPATIBLE_MACHINE = "(mx8qm-nxp-bsp|mx8qxp-nxp-bsp|mx8dxl-nxp-bsp|mx8dx-nxp-bsp)" -- cgit v1.2.3-54-g00ecf From 43deb1c0ec0dfbc32126cc3134704b48b30111be Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 28 Nov 2022 13:51:45 +0100 Subject: imx-seco-libs: upgrade from lf-5.15.5_1.0.0 to lf-5.15.52-2.1.0 Update to the version used in lf5.15.52_2.1.0. License was updated to NXP EULA v35 May 2022. The branch naming is a bit erratic but the commit history is linear, b255047 is a descendant of 06a9062. Commit history: b255047 (tag: lf-5.15.52-2.1.0, origin/imx_5.4.70_2.3.9) update EULA to v35 bbae88a AHAB-756: support secure ram for HSM mac one go with MMCAU c24e99b SCR.txt: Update Release Location aff59d9 LF-6126: Add support for AES ECB dcf0824 LF-6124: Reword to highlight difference between B0 Vs other devices b97dde8 Add support for FIPS self-test command (only supported on DXL B0) 6c41488 AHAB-716: update doc 1976d2e AHAB-716: cosmetic 1a7ca0e Static code analysis fixes. 4e96c37 V2XA-776: hsm manage key - update v2x test with OTP Root KEK flag c047645 AHAB-716: update doc da01a3b AHAB-716: Add the support of HMAC and TLS & Update the list of unsupported curves e4faff7 AHAB-716: Add the OTP Root KEK flag to the manage Key on DXL B0 152d02d AHAB-716: license update 675061e Add python script to derive OEM KEK for SECO and V2X 2a7d604 Add short doc to describe how to run she_test 6a340ad Zero initialize parameter structures in hsm_test main to avoid crash 45910c1 AHAB-683: Add AES CCM examples for new IV handling cde1670 AHAB-715: Updates from static code analysis 2bd67a5 Update supported key list for QXP C0 sig verif, correct hashing reference 1018333 AHAB-683: Modify comment for clarity 3592d0f AHAB-683: Update requirements for CCM IV to match FIPS Signed-off-by: Max Krummenacher --- recipes-bsp/imx-seco/imx-seco-libs_git.bb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/recipes-bsp/imx-seco/imx-seco-libs_git.bb b/recipes-bsp/imx-seco/imx-seco-libs_git.bb index 35b46ca3..625834b7 100644 --- a/recipes-bsp/imx-seco/imx-seco-libs_git.bb +++ b/recipes-bsp/imx-seco/imx-seco-libs_git.bb @@ -1,19 +1,19 @@ -# Copyright (C) 2019-2021 NXP +# Copyright 2019-22 NXP SUMMARY = "NXP i.MX SECO library" DESCRIPTION = "Library for NXP i.MX Security Controller Subsystem" SECTION = "base" LICENSE = "Proprietary" -LIC_FILES_CHKSUM = "file://EULA.txt;md5=76871788f27c28af824e2ec1ca187832" +LIC_FILES_CHKSUM = "file://EULA.txt;md5=d3c315c6eaa43e07d8c130dc3a04a011" DEPENDS = "zlib" -SRCBRANCH = "lf-5.15.5_1.0.0" +SRCBRANCH = "imx_5.4.70_2.3.9" SRC_URI = "git://github.com/NXP/imx-seco-libs.git;protocol=https;branch=${SRCBRANCH} \ file://0001-Makefile-Fix-LIBDIR-for-multilib.patch \ file://0002-Makefile-Fix-install-to-clear-host-user-contaminated.patch \ file://0001-add-v2x_test-to-the-installed-binaries.patch" -SRCREV = "06a9062cdf51aa29a1c872709e21f927ca00d0b6" +SRCREV = "b2550476388e1d1453bddbf356844301467c7bfa" S = "${WORKDIR}/git" -- cgit v1.2.3-54-g00ecf From 3eed5daa3fbde8c71b8bf59432416a21d5f3448c Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Mon, 28 Nov 2022 10:20:13 +0100 Subject: kernel-module-imx-gpu-viv: fix version in recipe file name Commit 40afcf9e ("kernel-module-imx-gpu-viv: upgrade from 6.4.3.p4.2 to 6.4.3.p4.4") did update the kernel module but kept PV in the recipe name at the old version. Rename the file to be consistent. Signed-off-by: Max Krummenacher --- .../kernel-module-imx-gpu-viv_6.4.3.p4.2.bb | 24 ---------------------- .../kernel-module-imx-gpu-viv_6.4.3.p4.4.bb | 24 ++++++++++++++++++++++ 2 files changed, 24 insertions(+), 24 deletions(-) delete mode 100644 recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.3.p4.2.bb create mode 100644 recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.3.p4.4.bb diff --git a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.3.p4.2.bb b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.3.p4.2.bb deleted file mode 100644 index 6c270dfb..00000000 --- a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.3.p4.2.bb +++ /dev/null @@ -1,24 +0,0 @@ -# Copyright (C) 2015-2016 Freescale Semiconductor -# Copyright (C) 2017-2021 NXP - -SUMMARY = "Kernel loadable module for Vivante GPU" -DESCRIPTION = "Builds the Vivante GPU kernel driver as a loadable kernel module, \ -allowing flexibility to use a newer graphics release with an older kernel." -LICENSE = "GPL-2.0-only" -LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" - -SRC_URI = "${KERNEL_SRC};subpath=drivers/mxc/gpu-viv;destsuffix=git/src \ - file://Add-makefile.patch" -KERNEL_SRC ?= "git://github.com/nxp-imx/linux-imx.git;protocol=https;branch=${SRCBRANCH}" -SRCBRANCH = "lf-5.15.y" -LOCALVERSION = "-5.15.52-2.1.0" -SRCREV = "36363d8623ba60858e2632b7d2b70dae932c9a8b" - -S = "${WORKDIR}/git" - -inherit module - -EXTRA_OEMAKE += "CONFIG_MXC_GPU_VIV=m" - -KERNEL_MODULE_AUTOLOAD = "galcore" -COMPATIBLE_MACHINE = "(imx-nxp-bsp)" diff --git a/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.3.p4.4.bb b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.3.p4.4.bb new file mode 100644 index 00000000..6c270dfb --- /dev/null +++ b/recipes-kernel/kernel-modules/kernel-module-imx-gpu-viv_6.4.3.p4.4.bb @@ -0,0 +1,24 @@ +# Copyright (C) 2015-2016 Freescale Semiconductor +# Copyright (C) 2017-2021 NXP + +SUMMARY = "Kernel loadable module for Vivante GPU" +DESCRIPTION = "Builds the Vivante GPU kernel driver as a loadable kernel module, \ +allowing flexibility to use a newer graphics release with an older kernel." +LICENSE = "GPL-2.0-only" +LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0-only;md5=801f80980d171dd6425610833a22dbe6" + +SRC_URI = "${KERNEL_SRC};subpath=drivers/mxc/gpu-viv;destsuffix=git/src \ + file://Add-makefile.patch" +KERNEL_SRC ?= "git://github.com/nxp-imx/linux-imx.git;protocol=https;branch=${SRCBRANCH}" +SRCBRANCH = "lf-5.15.y" +LOCALVERSION = "-5.15.52-2.1.0" +SRCREV = "36363d8623ba60858e2632b7d2b70dae932c9a8b" + +S = "${WORKDIR}/git" + +inherit module + +EXTRA_OEMAKE += "CONFIG_MXC_GPU_VIV=m" + +KERNEL_MODULE_AUTOLOAD = "galcore" +COMPATIBLE_MACHINE = "(imx-nxp-bsp)" -- cgit v1.2.3-54-g00ecf