Commit Graph

357 Commits

Author SHA1 Message Date
Javier Viguera 32996b0885 tf-a-tools: fix FIP encryption key conversion
create_st_fip_binary.sh converts binary encryption keys to hex before
passing them to encrypt_fw. hexdump may collapse repeated binary data
into '*', corrupting the key and causing encrypt_fw to reject it with an
invalid key size.

Add a bbappend to patch the helper from meta-digi and use hexdump -v so
the full key is emitted.

https://onedigi.atlassian.net/browse/DEL-10115

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-05-13 12:12:34 +02:00
Javier Viguera 8293eddb57 tf-a-stm32mp: force verbose hexdump for FIP encryption key
When TrustFence encryption is enabled, the TF-A recipe converts the
binary FIP encryption key to a hexadecimal string and passes it to the
TF-A build as ENC_KEY.

hexdump suppresses repeated output by default and emits '*' when it folds
duplicate data. If that happens while converting the key, the generated
ENC_KEY contains the '*' marker instead of the full hex string. The
malformed value then breaks the make command line, and make can interpret
the remaining key fragment as a target, failing for example with:

make ... ENC_KEY=13eb911dfcc316b1b99bbbbf10a7000c3055e863* 166d3c8c9cd6f888b720a9 all
make: *** No rule to make target '166d3c8c9cd6f888b720a9'.  Stop.

Use hexdump -v so every byte of the binary key is emitted and ENC_KEY is
always a complete, contiguous hex string.

https://onedigi.atlassian.net/browse/DEL-10115

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-05-13 12:12:34 +02:00
Javier Viguera e60ec31593 imx-oei: update source revision
* Add support for 4GiB LPDDR5.
* Make default the 2GiB configuration.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-05-08 15:24:07 +02:00
Javier Viguera d96004a043 imx-boot: stop bundling ccimx95 Cortex-M7 demo firmware
Drop the imx-m7-demos dependency and build only the A55 boot target,
since Cortex-M firmware is board-specific and should not be selected as
a default SoC artifact. This follows the same cleanup done upstream in
meta-freescale commit 598f047ef112a0c88f699714cd10dc87c8460c5a.

https://onedigi.atlassian.net/browse/DEL-9882

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 81cf596834382f87701d701277e13c97316de978)
2026-05-08 15:22:02 +02:00
Mike Engel e913427295 Merge branch 'dey-5.0/master' into dey-5.0/maint
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2026-04-30 11:51:33 +02:00
Javier Viguera 2a121a371d imx-system-manager: update source revision
This brings latest changes related with SMARC modules.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-04-09 15:06:37 +02:00
Francisco Gil 9834232a8c weston: allow overriding the weston background from Yocto
https://onedigi.atlassian.net/browse/DEL-9816

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2026-03-25 16:19:01 +01:00
Arturo Buzarra ab5f937cb6 stm-st-stm32mp: tf-m-stm32mp-scripts: fix SDK build issue due to wrong UID ownership
The original do_install() preserves file ownership, which can contaminate the
SDK build and cause "getpwuid(): uid not found: 1000". Adjust the copy command
to not preserve owner/group.

https://onedigi.atlassian.net/browse/DEL-10022

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2026-03-23 21:45:00 +01:00
Arturo Buzarra b0a140a35c stm-st-stm32mp: tf-m-stm32mp/m33fw-stm32mp2: Add custom sign-stm32mp bbclass to fix build issue
This commit imports the Digi custom version of sign-stm32mp bbclass to ensure
that the search_path() function does not raise a build exception if the signing
tool or keys are not present in the PATH before starting the build process.

In our case, we do not need to manually install the tools or generate the keys
beforehand, as this is automatically handled by Yocto in our DEY distribution.

https://onedigi.atlassian.net/browse/DEL-10022

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2026-03-23 21:45:00 +01:00
Arturo Buzarra 287a42403f stm-st-stm32mp: optee-os: remove CFG_REMOTEPROC_PUB_KEY_VERIFY for ccmp15
Commit 52a1111da6d72446530da26e135b65a34b48e279 ("OPTEE: MANAGE signature,
M33TD") in the ST layer incorrectly enables CFG_REMOTEPROC_PUB_KEY_VERIFY=y for
all platforms when SIGN_ENABLE is set.

However, co-processor public key verification against OTP fuses is not
supported on stm32mp1x platforms and causes the build to fail.

Remove CFG_REMOTEPROC_PUB_KEY_VERIFY for ccmp15.

https://onedigi.atlassian.net/browse/DEL-10022

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2026-03-23 21:45:00 +01:00
Arturo Buzarra ab4a2d558b ccmp15/ccmp25: update Cortex-M signed firmware support
Update secure boot support for Cortex-M processors by refreshing the patch set
and dropping patches already integrated, aligning the implementation with ST
release openstlinux-6.6-yocto-scarthgap-mpu-v26.02.18.

https://onedigi.atlassian.net/browse/DEL-10022

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2026-03-23 11:59:23 +01:00
Gabriel Valcazar ec2d13053e Partially revert "wayland: remove wl_shell and libweston patch"
We only want to recover the libinput patch that fixes the cursor issue in the
LVGL demo, don't recover the wl_shell patch.

This partially reverts commit 7afc4a67de.

https://onedigi.atlassian.net/browse/DEL-9925

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2026-03-19 15:57:18 +01:00
Arturo Buzarra a5eb54435e stm-st-stm32mp: evision: add evision libraries
These libraries are required by libcamera when IPA support is enabled.
Import them from the meta-OpenSTLinux layer at the
openstlinux-6.6-yocto-scarthgap-mpu-v26.02.18 tag.

https://onedigi.atlassian.net/browse/DEL-10021

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2026-03-18 08:48:27 +01:00
Arturo Buzarra 17d1f19a48 stm-st-stm32mp: libcamera-stm32mp: add v0.3.0 with ST IPA
Synchronize the libcamera recipe with the meta-OpenSTLinux layer from the
openstlinux-6.6-yocto-scarthgap-mpu-v26.02.18 tag.

https://onedigi.atlassian.net/browse/DEL-10021

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2026-03-18 08:48:27 +01:00
Javier Viguera cf8d771390 imx-system-manager: use git repository and drop local patches
Remove the local ccimx95 patch series from imx-system-manager bbappend
and fetch the DEY-specific changes directly from the Digi fork.

https://onedigi.atlassian.net/browse/DEL-10009

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-03-13 14:56:11 +01:00
Javier Viguera fe54927861 imx-oei: use git repository and drop local patches
Remove the local ccimx95 patch series from imx-oei bbappend and fetch
the DEY-specific changes directly from the Digi fork.

https://onedigi.atlassian.net/browse/DEL-10009

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-03-13 14:55:56 +01:00
Javier Viguera 35dd3ec6c9 imx-oei: add patch with support for 2GiB ram
https://onedigi.atlassian.net/browse/DUB-1117

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-03-06 14:49:00 +01:00
Javier Viguera d5fe033b46 imx-system-manager: add patch with SM fix for 2GiB DDR
The system manager was not reporting (via SCMI) the size for the 2GiB
ram. This patch is a backport of a newer version of the SM.

https://onedigi.atlassian.net/browse/DUB-1117

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-03-06 14:49:00 +01:00
Mike Engel 3de8b47535 optee-client: add default tee-supplicant configuration file
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2026-02-04 12:46:03 +01:00
Gonzalo Ruiz b665651330 imx-oei: set OEI_DEBUG="1" to get DDR training console logs
Enable OEI logging to get a feeling of the device booting correctly when
it first powers up.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2026-01-29 10:52:04 +01:00
Gonzalo Ruiz 0b2e6edea8 ccimx95: add ATF, OEI, OPTEE, SM patches for SOM v2
https://onedigi.atlassian.net/browse/DEL-9915

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2026-01-29 10:49:22 +01:00
Javier Viguera 7ff33776bd meta-digi-arm: switch SDMA firmware to linux-firmware packages
Use the SDMA firmware provided by linux-firmware for i.MX6 and i.MX8
platforms. The SDMA blobs shipped in linux-firmware and firmware-imx are
identical, so just use the upstream ones as meta-freescale does.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-01-28 10:34:22 +01:00
Arturo Buzarra f99278db33 ccmp15: add Cortex-M4 signed firmware support
Enable signed firmware to prevent unauthenticated code on the Cortex-M4
co-processor by verifying images against custom public key from OP-TEE.

https://onedigi.atlassian.net/browse/DEL-9920

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2026-01-28 10:30:51 +01:00
Javier Viguera 4f9f4b113e openssl: integrate support for pkcs11-provider NXP fork
This is the version used in NXP's lf-6.6.52-2.2.2 release.

https://onedigi.atlassian.net/browse/DEL-9905

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-01-21 12:19:25 +01:00
Javier Viguera 618d842d75 weston: update to NXP's lf-6.6.52-2.2.2 release
https://onedigi.atlassian.net/browse/DEL-9905

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-01-21 12:19:25 +01:00
Javier Viguera c9e2da3214 imx-secure-enclave: update to NXP's release lf-6.6.52-2.2.2
https://onedigi.atlassian.net/browse/DEL-9905

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-01-21 12:19:25 +01:00
Javier Viguera 2dfe30fb54 imx-boot: update boot artifacts for NXP's lf-6.6.52-2.2.2 release
Also, refresh patches on top of new release.

https://onedigi.atlassian.net/browse/DEL-9905

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2026-01-21 12:19:25 +01:00
Javier Viguera e2ed58b70b Merge tag 'dey-5.0-r3.1' into dey-5.0/master
Digi Embedded Yocto 5.0-r3.1

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-12-19 14:00:21 +01:00
Arturo Buzarra 4e19acb893 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-12-16 18:02:34 +01:00
Arturo Buzarra 19a2ad15a8 meta-digi: update revisions for dey-5.0-r3.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-12-16 18:01:33 +01:00
Arturo Buzarra 98c3e6427b trustfence: make co-processor secure firmware optional
Introduce a configurable variable to enable/disable secure co-processor
firmware when TrustFence is enabled.

https://onedigi.atlassian.net/browse/DEL-9813

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-12-10 11:16:38 +01:00
Javier Viguera 052cd63529 Merge branch 'dey-5.0/master' into dey-5.0/maint
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-11-28 17:58:45 +01:00
Hector Palacios db74634234 imx-atf: enable access to GPIO1 port on i.MX95
GPIO1 port access was not enabled on ATF because NXP
reserved it to have exclusive access from the secure
world on their EVK.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-9839
2025-11-24 09:33:39 +01:00
Arturo Buzarra 03c7c9ca43 stm-st-stm32mp: libcamera-stm32mp: guard configureAwbAlgo() under EVISION_ALGO_ENABLED
Fix runtime undefined symbol by wrapping Awb::queueRequest() call to
configureAwbAlgo() with EVISION_ALGO_ENABLED.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-11-20 15:45:49 +01:00
Arturo Buzarra 3e8042f8d8 stm-st-stm32mp: add libcamera-stm32mp recipe
Integrate ST libcamera recipe from meta-st-openstlinux layer at
openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11 tag. This recipe is required by
the NPU demos in meta-st-x-linux-ai.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-11-18 21:50:23 +01:00
Arturo Buzarra 7692d0ed4a ccmp25: add Cortex-M33 signed firmware support
Enable signed firmware to prevent unauthenticated code on the Cortex-M33
co-processor by verifying images against OTP-stored keys.

https://onedigi.atlassian.net/browse/DEL-9813

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-11-03 17:06:30 +01:00
Hector Palacios 9fa33d1675 imx-system-manager: remove access to 3V3/1V8 regulators
Exposing these regulators makes the SM disable them during
a reboot process, which leaves the SoC without power, preventing
it from resetting.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-9804
2025-11-03 08:23:17 +01:00
Javier Viguera 1d50ed4bc3 imx-oei: support building for i.mx95 B0 silicon revision
Add a patch with the DDR calibration for B0 generated with NXP's config
tool version 2025.09.

https://onedigi.atlassian.net/browse/DEL-9811

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-29 18:31:34 +01:00
Arturo Buzarra fc1d3c5f75 trustfence: add TRUSTFENCE_ENCRYPT variable
Add a variable analogous to TRUSTFENCE_SIGN to enable/disable artifact
encryption. Deprecate TRUSTFENCE_DEK_PATH in favor of TRUSTFENCE_KEYS_PATH to
use a more generic name and avoid overloading it as an on/off flag. Add per-key
variables for encryption key filenames to avoid hardcoded names and allow
platform overrides.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-10-28 12:39:51 +01:00
Arturo Buzarra 3e5cf0c6e6 trustfence: add signed and encrypted firmware support for Cortex-M on STM platforms
Adds support for signing and encrypting Cortex-M firmware on STM platforms,
following the STM32 MPU Ecosystem v6.1.0. This update enables secure boot of
co-processor binaries on ConnectCore MP2, enhancing firmware protection.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-10-28 12:39:51 +01:00
Javier Viguera 3dfd6b77ef meta-digi: drop legacy SD card image support
Remove obsolete SD card image creation logic and related variables. We
will use WIC images for bootable SD cards.

https://onedigi.atlassian.net/browse/DEL-9768

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-23 11:31:15 +02:00
Javier Viguera d98b875ea5 meta-digi: support WIC images for NXP-based modules
Notice that we need to create u-boot and imx-boot symlinks in the deploy
directory, as they are required for the bootloader of the wic images.

https://onedigi.atlassian.net/browse/DEL-9768

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-23 11:31:15 +02:00
Javier Viguera da00e61f80 imx-boot: generalize Cortex-M default image handling
Different platforms use different Cortex-M processors, so instead of
using the M4_DEFAULT_IMAGE_MX95 (as meta-imx does) for an M7 processor,
generalize to the CORTEXM_DEFAULT_IMAGE variable name. Also, move it
to the imx-boot recipe (where it is used) and deploy that image to
the imx-boot-tools directory, so the imx-boot image can be regenerated
externally (without yocto).

https://onedigi.atlassian.net/browse/DEL-9768

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-22 12:03:08 +02:00
Hector Palacios bf87d0df25 imx-system-manager: add patches to expose regulators to Linux
This series of patches expose a number of regulators of
the PMIC to the non-secure world, so that they can be
referenced and used by Linux drivers.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-10-13 18:05:43 +02:00
Javier Viguera 985e973d6e imx-system-manager: disable debug monitor by default
Disable the imx-system-manager debug monitor by default, as NXP's
documentation indicates that the debug monitor is not intended for use
in production images.

https://github.com/nxp-imx/imx-sm/blob/lf-6.6.52-2.2.1/sm/doc/dev.md#compiling-the-sm-guide_compile

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-10 11:26:36 +02:00
Javier Viguera ef6769b876 firmware-imx: remove 8.26.1 version recipes
They have been added to meta-freescale.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-09 17:42:34 +02:00
Arturo Buzarra c8757b7bf3 trustfence: add encrypted boot artifact support for STM platforms
This commit updates the secure boot support for STM platforms based on the
STM32 MPU Ecosystem v6.1.0. It introduces support for encrypted boot artifacts,
including TF-A and FIP, and enables this functionality for the ConnectCore MP2
platform.

This enhancement allows secure boot deployments with both authentication and
encryption for improved protection of critical boot components.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-10-06 17:15:17 +02:00
Arturo Buzarra d57fd84182 stm-st-stm32mp: m33projects-stm32mp2: Add custom sign-stm32mp bbclass to fix build issue
This commit imports the Digi custom version of sign-stm32mp bbclass to ensure
that the search_path() function does not raise a build exception if the signing
tool or keys are not present in the PATH before starting the build process.

In our case, we do not need to manually install the tools or generate the keys
beforehand, as this is automatically handled by Yocto in our DEY distribution.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-10-06 13:36:32 +02:00
Javier Viguera 87673b6299 imx-boot: add ccimx95 support and rework patch handling
Add support for the ccimx95 and reorganize the recipe so that all machine
patches are applied for the DEY distribution, regardless of the build
target.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-01 11:55:15 +02:00
Javier Viguera 1e225bb3f9 imx-atf: add missing upstream-status tag to one patch
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-01 11:55:15 +02:00