Commit Graph

164 Commits

Author SHA1 Message Date
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
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 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 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
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
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
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
Mike Engel 7afc4a67de wayland: remove wl_shell and libweston patch
This commit removes the wl_shell and libweston patche, which
are now not necessary anymore. Becasue we have removed the
wayland backend for the LVGL image.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2025-09-18 12:44:35 +02:00
Gabriel Valcazar 0ceb58fc57 stm: gstreamer1.0-plugins-bad: use strict assignment for default PACKAGECONFIG
A recent change in meta-st-x-linux-ai was completely overwriting our default
PACKAGECONFIG values, causing several plugins to be omitted (for example, the
wayland plugin). In turn, this was causing several build errors in many
packages that depend on said plugins.

Use a strict PACKAGECONFIG assignment to prevent this. As a side effect, this
removes the new "uvcsink" PACKAGECONFIG introduced by the recent change in
meta-st-x-linux-ai, so make sure to re-add it to avoid unexpected behavior when
building the brand new people-tracking-heatmap AI example.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-08-22 13:30:00 +02:00
Arturo Buzarra d86857e804 stm-st-stm32mp: tf-a-stm32mp: Add custom export_binaries() to fix TF-A artifact deployment
This commit introduces a custom export_binaries() function to resolve a
deployment issue affecting the final TF-A artifact path. The issue occurs when
the SoC name does not match the TF-A device tree name.

This fix is required due to changes introduced in commit f0b4d0d02a
("ccmp15: enable secure_system_service for CCMP15"), which modified the TF-A
artifact generation process.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-29 14:12:36 +02:00
Arturo Buzarra ea5027e623 stm-st-stm32mp: fip/tf-a: sync .bbappend recipes with ST BSP v25.06.11 release
This commit updates the Digi custom .bbappend recipes for FIP and TF-A to align
with the latest ST BSP release, based on the openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11
tag for Yocto 5.0 (scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-29 11:33:15 +02:00
Mike Engel 8d26062700 optee-client: fix default secure storage path
This commit fixes the default secure storage path
to /mnt/data/tee instead of /var/lib/tee. This will
store all secure storage keys in that path and will
keep them even during rootfs updates.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2025-07-29 11:16:39 +02:00
Mike Engel f0b4d0d02a ccmp15: enable secure_system_service for CCMP15
This commit enables the full OP-TEE support using the
secure_system_service profile.

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

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2025-07-29 11:16:39 +02:00
Arturo Buzarra 9ef471c833 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-15 22:10:12 +02:00
Arturo Buzarra b2eb7a5825 meta-digi: update revisions for dey-5.0-r2.2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-15 22:10:11 +02:00
Arturo Buzarra 6858f8aa25 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-04 11:15:42 +02:00
Arturo Buzarra 15dee0005e meta-digi: update revisions for dey-5.0-r2.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-04 11:15:37 +02:00
Arturo Buzarra b460485771 Merge branch 'dey-5.0/master' into dey-5.0/maint
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-07-02 12:53:57 +02:00
Hector Palacios 5d11be4d2b optee-client: change secure storage and TEE log paths
The default secure storage (/var/lib/tee) is a tmpfs and not persistent
across reboots. Change it to the data partition (/mnt/data/tee) when
TrustFence file system encryption enabled

For the log file, do use the /var/log/ directory instead of default
/data

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

https://onedigi.atlassian.net/browse/DEL-9683
2025-06-27 08:32:18 +02:00
Javier Viguera 2cbfe2ae0d tf-a-stm32mp: move TF-A symlink creation to do_deploy
Moved deploy_symlinks_atf from SYSROOT_PREPROCESS_FUNCS to do_deploy task
to ensure symlinks are created correctly even when rebuilding from the
shared state after a "bitbake -c clean tf-a-stm32mp".

Override do_deploy[sstate-outputdirs] from the original recipe to allow
installing both the deploy artifacts (binaries and symlinks) to the
package deploy directory.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-06-23 17:05:31 +02:00
Gonzalo Ruiz f3c9b3c57a weston-init: wait for a wayland socket before logging in
The login prompt appears before Wayland is fully initialized and
has created a wayland socket.

Logging in too early as root in this scenario caused the
WAYLAND_DISPLAY environment variable to be left empty. As a
consequence, gstreamer failed to use waylandsink to print contents
in the display.

Introduce a 10-seconds polling loop to wait for the wayland socket to
be available before proceeding with the login.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2025-06-20 10:19:17 +02:00
Hector Palacios 5271924af7 Revert "tf-a-stm32mp: remove STM32MP_USB_PROGRAMMER support from NAND images"
We reverted the stub that didn't allow PM when serial boot
was enabled  on TF-A. Restore the part of the recipe that
includes USB boot support on NAND boot images.

This reverts commit 24aef482ef.

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

https://onedigi.atlassian.net/browse/DEL-9629
2025-06-10 16:17:45 +02:00
Hector Palacios 24aef482ef tf-a-stm32mp: remove STM32MP_USB_PROGRAMMER support from NAND images
Adding STM32MP_USB_PROGRAMMER=1 to TF-A NAND build allows the images to
boot from either NAND or USB (recovery) however, the source code of TF-A
disallows correct resuming from suspend when either STM32MP_USB_PROGRAMMER
or STM32MP_UART_PROGRAMMER are defined.

Remove this support so that the system can correctly resume from suspend.

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

https://onedigi.atlassian.net/browse/DEL-9629
2025-06-04 09:54:56 +02:00
Arturo Buzarra 8644348fed stm-st-stm32mp: optee-os: remove CFG_OTP_HUK for Trustfence
Starting with OP-TEE v4.0.0, the use of a test key is no longer supported.
The Hardware Unique Key (HUK) is now always derived from the programmed OTP bits.
As a result, the Digi custom `CFG_OTP_HUK` flag is obsolete and has been removed.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-05-26 09:48:00 +02:00
Hector Palacios fdec14adc9 tf-a-stm32mp: add USB boot support to 'opteemin' flavor of nand
OP-TEE comes in two flavors: optee and opteemin
For NAND-boot images, add support for USB boot as well,
so that the default tf-a image is valid for booting from
either NAND or USB.
We had this for 'optee' flavor but not for 'opteemin'.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-13 08:38:50 +02:00
Arturo Buzarra 87aa304a2c tf-a-stm32mp: use MACHINE variable for final metadata binary symlink
Currently, the final metadata symlink is composed using the TF-A Device Tree
configuration, which includes memory variant details. However, these variants
are not relevant for the metadata binary.

To avoid generating multiple redundant metadata files or using confusing names,
this commit updates the symlink to be composed using the MACHINE variable
instead.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-05-06 09:02:10 +02:00
Gabriel Valcazar c728854f5c Revert "stm32mp: gstreamer1.0-plugins-bad: revert STM patch to fix .flv video playback"
After more in-depth testing, we discovered that the flv/ogv video issues on the
ccmp25-dvk don't happen when playing videos with standard resolutions. Since
the workaround consisted of reverting a patch backported from upstream
gstreamer, and it only fixed flv video playback anyway, revert said workaround
and test using videos with standard formats.

This reverts commit e09eff7e1a.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-05 12:47:31 +02:00
Hector Palacios e2f1b3cb64 tf-a-stm32mp: fix TF_A_CONFIG for nand
On the new BSP the configuration is called 'optee-nand' and the build
parameters have changed.
We do this override in meta-digi only to incorporate
 `STM32MP_USB_PROGRAMMER=1`
parameter, which allows to boot the nand image from USB, too.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:03:40 +02:00
Gabriel Valcazar e09eff7e1a stm32mp: gstreamer1.0-plugins-bad: revert STM patch to fix .flv video playback
STM patch nº8 was causing memory mapping errors when playing .flv videos on the
ccmp25-dvk, so revert it.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-04-24 10:05:35 +02:00
Christophe Priouzeau a4d8a1a985 stm-st-stm32mp: gstreamer-plugins-bad: v4l2codecs: add support of encoding from UYVY
Add UYVY support in order to be aligned with stateful v4l2 codecs
such as v4l2jpegenc.

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

Change-Id: I8c8e0b328aa3ea2325085d26cad0c14549b25f5a
Reviewed-on: https://gerrit.st.com/c/oeivi/oe/st/meta-opensdk/+/436381
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
Tested-by: Christophe PRIOUZEAU <christophe.priouzeau@st.com>
Reviewed-by: Christophe PRIOUZEAU <christophe.priouzeau@st.com>
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-26 08:57:56 +01:00
Christophe Priouzeau 0d10d91ed2 stm-st-stm32mp: gstreamer-plugins-bad: v4l2codecs: support H264 encode high profile DCT 8x8
Support H264 encode high profile DCT 8x8.

gst-launch-1.0 videotestsrc num-buffers=100 ! videoconvert ! v4l2slh264enc dct8x8=true ! "video/x-h264, profile=(string)high" ! h264parse ! qtmux ! filesink location=qvga_high_dct8x8.mp4
gst-play-1.0 qvga_high_dct8x8.mp4

gst-launch-1.0 videotestsrc num-buffers=100 ! videoconvert ! v4l2slh264enc dct8x8=true ! "video/x-h264, profile=(string)high" ! filesink location=qvga_high_dct8x8.bits
gst-play-1.0 qvga_high_dct8x8.bits

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

Change-Id: I63287f10b252d0f82b94a7c48807b5ba4a25e359
Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/oeivi/oe/st/meta-opensdk/+/436380
Reviewed-by: Christophe PRIOUZEAU <christophe.priouzeau@st.com>
Tested-by: Christophe PRIOUZEAU <christophe.priouzeau@st.com>
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-26 08:57:56 +01:00
Christophe Priouzeau 1d58c7138e stm-st-stm32mp: gstreamer-plugins-bad: revert part of (gtk)waylandsink: fix QVGA YUV420 planar
This cause issue with
gst-launch-1.0 libcamerasrc  ! video/x-raw, format=RGB16, width=800, height=600 ! queue ! waylandsink
zwp_linux_buffer_params_v1@14: error 6: invalid buffer stride or height for plane 0
ERROR: from element /GstPipeline:pipeline0/GstWaylandSink:waylandsink0: Video memory can not be read from userspace.

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

Change-Id: Ic82e3787dd74642426baea3d35c2d778f4b1da14
Signed-off-by: Hugues Fruchet <hugues.fruchet@foss.st.com>
Reviewed-on: https://gerrit.st.com/c/oeivi/oe/st/meta-opensdk/+/435172
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
Tested-by: Christophe PRIOUZEAU <christophe.priouzeau@st.com>
Reviewed-by: Christophe PRIOUZEAU <christophe.priouzeau@st.com>
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-26 08:57:56 +01:00
Christophe Priouzeau 6d01ab78f9 stm-st-stm32mp: gstreamer-plugins-bad: v4l2codecs: add support of encoding from RGBA
Add also BGRA, ARGB, ABGR formats in order to be aligned with stateful
v4l2 codecs such as v4l2jpegenc.

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

Change-Id: Ia51f7a93b0a6fbccb3222230e9f0936d2293cbbb
Reviewed-on: https://gerrit.st.com/c/oeivi/oe/st/meta-opensdk/+/436379
Reviewed-by: Christophe PRIOUZEAU <christophe.priouzeau@st.com>
ACI: CITOOLS <MDG-smet-aci-reviews@list.st.com>
Tested-by: Christophe PRIOUZEAU <christophe.priouzeau@st.com>
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-26 08:57:56 +01:00
Arturo Buzarra 30751b0eef stm-st-stm32mp: add optee-client recipe based on v4.0.0
This commit integrates optee-client support from the meta-st-openstlinux layer,
based on the openstlinux-6.6-yocto-scarthgap-mpu-v25.03.19 tag.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-26 08:53:12 +01:00
Arturo Buzarra 250acb9041 stm-st-stm32mp: fip-stm32mp: Integrate do_deploy:append into main do_deploy() function
This commit simplifies the recipe by integrating the symlink generation
directly into the main do_deploy() function, removing the need to maintain
both a do_deploy() and a do_deploy:append().

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-26 08:53:12 +01:00
Arturo Buzarra f0c4cdc5bb stm-st-stm32mp: fip-stm32mp: fix symlinks in DEPLOYDIR
This commit addresses two issues in the symlink deployment function:

- do_deploy() should not write directly to DEPLOY_DIR_IMAGE. Instead,
  it now uses DEPLOYDIR.
- Expands do_deploy() instead of using SYSROOT_PREPROCESS_FUNCS to ensure that
  the original FIP artifacts are created and properly regenerated on each build.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-26 08:53:12 +01:00
Arturo Buzarra f8c0274076 stm-st-stm32mp: fip/tf-a: fix symlink generation
This commit generalizes the symlink generation to allow creating a final
symlink in the deploy directory, supporting different artifact flavors:
regular, signed or encrypted.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-26 08:53:12 +01:00
Arturo Buzarra f27c3364cb meta-digi-arm: Add custom sign-stm32mp bbclass to fix build issue
This commit imports the sign-stm32mp bbclass from the meta-st-stm32mp layer to
allow customization. The main customization ensures 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-9442

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-26 08:53:12 +01:00
Arturo Buzarra b5e94fc1ae stm-st-stm32mp: tf-a-stm32mp: Add custom do_compile() to fix TF-A artifact signing
This commit introduces a custom do_compile() function to resolve a signing
issue affecting the final TF-A artifact, where the SoC name does not match the
TF-A device tree name.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-26 08:53:12 +01:00
Arturo Buzarra dc19078620 stm-st-stm32mp: fip-stm32mp: Fix sign key processing
This commit corrects an issue in the sign key processing when the SoC name does
not match the FIP device tree name.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-26 08:53:12 +01:00
Arturo Buzarra b1800736af trustfence: update support to STM platforms and integrate CCMP2
This commit updates secure boot support based on the STM32 MPU Ecosystem v6.0
and integrates support for the ConnectCore MP2 platform.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-26 08:53:12 +01:00
Arturo Buzarra 76a4f781e3 stm-st-stm32mp: fip-stm32mp: add OP-TEE USB FIP configuration
The FIP flavor for OP-TEE + USB is managed in the meta-st-stm32mp layer through
the "optee-programmer-usb". However, since we do not require the additional
overhead introduced by the STM32CubeProgrammer tool, this commit introduces a
new FIP configuration based on OP-TEE for booting from USB.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-21 08:55:07 +01:00
Isaac Hermida 738588064e Revert "gcnano-userland: fixes for Crank SB engine"
This reverts commit c2da31e0b1.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-03-11 10:25:18 +01:00
Isaac Hermida 02cf30583b Revert "gcnano-userland: fixes for Crank SB engine"
This reverts commit c2da31e0b1.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-03-10 12:51:55 +01:00
Arturo Buzarra 37517dcbe0 Merge tag 'dey-5.0-r1.3' into dey-5.0/master
Digi Embedded Yocto 5.0-r1.3

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-03-10 11:26:31 +01:00