Commit Graph

5384 Commits

Author SHA1 Message Date
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
Arturo Buzarra 9e6e94d844 ccmp15/ccmp13: fix BOOTABLE_ARTIFACTS for CCMP1 platforms
In Yocto 5.0, the boot artifacts for CCMP1 platforms are compiled using the
opteemin flavor. This commit updates the BOOTABLE_ARTIFACTS definition to
reflect that change and properly integrate the boot artifacts into the ZIP
installer.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-05-06 09:02:10 +02:00
Arturo Buzarra 185651e6f0 mkproject: re-insert ccmp1 platforms into build system
The CCMP1 platforms were integrated as part of DEY-5.0, and this commit
restores their support in the mkproject build system.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-05-05 15:51:22 +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 4fc71f42e6 uboot: install_uuu: adapt to install TrustFence images
- Add missing option '-t'
- Change variable for signed suffix

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:05:04 +02:00
Hector Palacios 9c3916da94 add INSANE_SKIP 32bit-time to avoid warnings on recipes using 32-bit APIs
The binaries of certain recipes use 32-bit APIs (ioctl, stat) that produce
build warnings. Add INSANE_SKIP to prevent the warnings.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:05:02 +02:00
Hector Palacios 3c6d3d356b ccmp1/ccmp2: clear ALSA_LIST with override and move it to include file
ALSA_LIST variable is weakly set through an override (stm32mp1common or
stm32mp2common). When the override is in place, the hard assignment of
the plain variable is not enough, and the value weakly set in
meta-st-stm32mp layer takes precedence over the plain variable hard
assignment.
Clear the variable with the override and move it from machine config files
to the include file.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:04:31 +02:00
Hector Palacios 51116d4065 ccmp1: use 'opteemin' BOOTSCHEME_LABELS for ccmp15 by default
Move BOOTSCHEME_LABELS from common include to platform config

Default to:
- 'opteemin' for ccmp15
- 'optee' for ccmp13

This doesn't change the behavior present in DEY-4.0, where OPTEE in ccmp15
was minimal and running on non-secure DDR.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:04:31 +02:00
Hector Palacios e644965b0d ccmp1x: add 'stm32mp15common'/'stm32mp13common' to MACHINEOVERRIDES
This override sets other variables, such as STM32MP_SOC_NAME which is used
on the build of the FIP image.
It also makes ST layer append a new UBOOT_CONFIG (default_stm32mp15/13)
that we must remove.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:04:27 +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
Hector Palacios 543cb5cedd u-boot-dey: install all variants of U-Boot binaries
The function had into account the memory variants when copying U-Boot
device trees, but not the U-Boot binaries themselves.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:03:40 +02:00
Hector Palacios 65a0954f07 u-boot-dey: make function to install artifacts in sysroot common to ccmp1/ccmp2
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:03:40 +02:00
Hector Palacios 2a547ac302 ccmp1: disable STM32MP_DEVICETREE_PROGRAMMER_ENABLE
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:03:40 +02:00
Hector Palacios 4d37569a52 ccmp1: move common ccmp15/ccmp13 defines to common include file
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:03:40 +02:00
Hector Palacios 7722e3a1d2 ccmp1: [cosmetic] re-order definitions to match the ccmp25 layout
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:03:40 +02:00
Hector Palacios 7ceebfbb1e ccmp1: adapt U-Boot and OPTEE variables to newest ST BSP
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:03:40 +02:00
Hector Palacios 4bdd4b0b56 ccmp1: define device trees per media STM32MP_DT_FILES_xxx
The variable STM32MP_DEVICETREE is later expanded with the list of values
in all media.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:03:40 +02:00
Hector Palacios d21c7b5fdd ccmp1: update BOOTDEVICE_LABELS string for nand to new BSP
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:03:40 +02:00
Hector Palacios b4c5345be8 ccmp1: remove 'kernel-headers' dependency
This commit removes kernel headers from the SDK package list to
prevent overwriting the default ones, as there are currently no
ST-specific headers required.

Reference: ebadb27d60
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-02 11:03:02 +02:00
Hector Palacios 5d640e5c2a README: add ccmp1 to the list of supported platforms
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-9045
2025-04-30 12:49:06 +02:00
Hector Palacios 9b3117aa34 ccmp1: move ccmp1 platform support to kernel 6.6 and U-Boot v2023.10
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-9045
2025-04-30 12:49:06 +02:00
Isaac Hermida 4da4eb7bdd udev-extraconf: skip actions for additional wifi interfaces
When a WiFi card adds additional interfaces (for AP or WiFi direct),
it generates udev triggers that lead the wifi card to fail.
Ignore those events.
The reason of this new behavior is due to poky commit 1e8b49999ad8.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-04-29 16:40:05 +02:00
Javier Viguera 6a1c8c27a9 machine: ccimx8/9, ccmp1/2: configure default DTB in FIT image
Configure the FIT_CONF_DEFAULT_DTB in the machine settings to define the
default configuration for the generated FIT image.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-04-28 11:00:21 +02:00
Arturo Buzarra 3cf120227f README: include ConnectCore 8M platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-04-24 17:32:00 +02:00
Arturo Buzarra 3b6e17274a trustfence-fscrypt: update tarball based on libteec v1.0.0
This commit updates the tarball to be based on libteec v1.0.0, as the previous
version was generated without the correct Trusted Application (TA) and did not
work properly.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-04-24 17:32:00 +02:00
Arturo Buzarra 499ce2e97b flutter-apps-layer: add init service to automatically launch Flutter demo
This commit introduces a dynamic layer that extends the flutter-apps layer by
adding an init service to automatically launch the Flutter demo on boot.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-04-24 17:29:01 +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
Arturo Buzarra 1dd83ed165 x-linux-ai: update support for new X-LINUX-AI v6.0.1 release
This commit introduces the necessary changes in the Digi Embedded Yocto layer
to support the X-LINUX-AI v6.0.1 software package from the meta-st-x-linux-ai
layer.

The update removes support that is now provided directly by the ST layer in
this new version and adapts existing recipes to align with the updated
mechanisms for AI application integration. These changes ensure compatibility
with platforms that feature hardware acceleration (NPU), as well as those that
rely solely on CPU-based inference.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-04-24 09:37:23 +02:00
Gabriel Valcazar 8b8788d68e qt6: qttools: remove spurious clang dependency in dey-toolchain SDK
Typically, recipes that support clang builds only pull in the required clang
dependencies when the TOOLCHAIN variable is expliciltly set to "clang". The
qttools recipe in meta-qt6 differs from this by adding the dependency as soon
as meta-clang is present in the bblayers, regardless of the selected toolchain.

This causes all of the nativesdk clang packages to get included in our SDK
(along with the gcc ones), causing SDK bloat and spurious build errors on build
machines with limited resources.

Make sure that the dependency is only added when the clang TOOLCHAIN is
explicitly selected.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-04-23 18:05:19 +02:00
Isaac Hermida 15ef826cb2 linux-virtualization: add more defconfig options for docker
Enable CONFIG_BPF_SYSCALL and CONFIG_CGROUP_BPF when using docker, as it
is needed for a correct network interoperability.
Some kernels may have it enabled by default, but others not, so just enable
it for any platform.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-04-23 16:37:36 +02:00
Isaac Hermida ed1013e87a linux-virtualization: expand lxc config support
enable the kernel BTRFS filesystem support for better support with LXC
incremental snapshots.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-04-23 16:37:36 +02:00
Isaac Hermida 31b7c5e051 linux-virtualization: add more defconfig options for docker
Enable CONFIG_BPF_SYSCALL and CONFIG_CGROUP_BPF when using docker, as it
is needed for a correct network interoperability.
Some kernels may have it enabled by default, but others not, so just enable
it for any platform.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-04-23 09:22:16 +02:00
Arturo Buzarra 8f1413f5cc x-linux-ai: update support for new X-LINUX-AI v6.0.1 release
This commit introduces the necessary changes in the Digi Embedded Yocto layer
to support the X-LINUX-AI v6.0.1 software package from the meta-st-x-linux-ai
layer.

The update removes support that is now provided directly by the ST layer in
this new version and adapts existing recipes to align with the updated
mechanisms for AI application integration. These changes ensure compatibility
with platforms that feature hardware acceleration (NPU), as well as those that
rely solely on CPU-based inference.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-04-22 16:34:20 +02:00
Arturo Buzarra 724c9492ec build: Start a build release environment from scratch
The release build should ensure it starts from a fresh environment to avoid
potential mismatches with old code.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-04-22 12:53:37 +02:00
Arturo Buzarra e61eaf172c nativesdk-packagegroup-sdk-host: remove Flutter support by default
This commit removes the default integration of the Flutter framework from the
SDK due to its significant impact on toolchain size, build time, and reliability.

Including Flutter increases the build complexity exponentially, often resulting
in timeouts or failures caused by the large number of recipes involved.

Customers who require Flutter can still enable it manually if needed.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-04-22 10:53:31 +02:00
Arturo Buzarra 758cae2e19 build.sh: add dey-image-flutter image
https://onedigi.atlassian.net/browse/DEL-9380

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-04-15 15:35:13 +02:00
Javier Viguera 759598fdc0 ccimx8mm: add OP-TEE support for all memory variants
* Set the OP-TEE base address to 0x7e000000 (32MiB below the first gigabyte
  of DDR).
* Update the ATF and OP-TEE memory maps to support up to 4GiB DDR.

This ensures OP-TEE runs reliably across all ccimx8mm memory configurations.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-04-14 14:38:22 +02:00
Arturo Buzarra 698b32ed31 templates: add support to Flutter framework
https://onedigi.atlassian.net/browse/DEL-9380

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-04-10 10:42:10 +02:00
Arturo Buzarra ccb98366ea dey-image-flutter: add new recipe based on graphical Flutter framework
Flutter is an open source framework for building multi-platform applications
without a graphical backend running. This commit adds support to create a new
DEY image type based on Flutter ready to use for the users.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-04-10 10:42:10 +02:00
Gabriel Valcazar 8ec2635654 wpewebkit: add workaround to improve memory usage in ConnectCore Demo app
Even though we launch said demo with WebKit's page cache disabled, WebKit still
caches most of the demo's contents for two reasons:

    * The demo is browsed using a non-HTTP(S) protocol (file://)
    * The demo is contained within the same domain (same-site browsing)

This can lead to unexpected behavior on platforms with small RAM size. Add
a workaround to force WebKit to create a new web process everytime we open
a page on the demo, deleting the previous process and freeing its memory.

An alternative solution would be to alter our demo to make sure a page's
resources are correctly freed when exiting said page, but this provides a
general solution that ensures memory cleanup in all cases, albeit with slightly
longer loading times.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-04-08 12:13:32 +02:00
Javier Viguera ee8075bfa7 build-github.sh: remove not supported platforms
These platforms are not officially supported in the first DEY-5.0 release.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-04-07 11:39:47 +02:00
Isaac Hermida 1a08f346cc linux-dey-6.6: add RT functionality to NXP platforms
Add a unique patch with the RT functionality between NXP tags (sha1)
  'lf-6.6.36-2.1.0' (d23d64eea5111e1607efcce1d601834fceec92cb)
  'Real-Time-Edge-v3.1-202503' (f03af81d60b7ae14e03fafa8f4c4289c30a73f93)

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-04-07 11:03:50 +02:00
Isaac Hermida 83eb180adb linux-dey: btnxpuart: include it for specific machine
The btnxpuart is the driver used to manage the bluetooth for our i.mx9
modules, so only specify it for the affected platforms.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-04-07 11:03:50 +02:00
Javier Viguera 47dbfee270 trustfence-sign-artifact: fix kernel load address for u-boot v2024
U-boot v2024 changed the default load address (SYS_LOAD_ADDR) for CC8M
platforms to:
* Ensure the kernel load address is 2MB-aligned (avoiding extra memory
  copy)
* Prevent overlap with the fixed DEK blob address at 0x40400000
    
Update the boot artifacts signing script accordingly.

https://onedigi.atlassian.net/browse/DEL-9537
https://onedigi.atlassian.net/browse/DEL-9541
https://onedigi.atlassian.net/browse/DUB-1099

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-04-04 11:15:29 +02:00
Gabriel Valcazar 084f45ad0c kernel-module-nxp-wlan: remove wlan_src_driver_patch_release_lf-6.6.52-2.2.0
The patch was recently added to meta-freescale, remove it from our layer to
avoid build errors.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
(cherry picked from commit 907531b55c)
2025-04-04 11:08:32 +02:00
Gabriel Valcazar 907531b55c kernel-module-nxp-wlan: remove wlan_src_driver_patch_release_lf-6.6.52-2.2.0
The patch was recently added to meta-freescale, remove it from our layer to
avoid build errors.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-04-04 10:13:42 +02:00
Javier Viguera c2c933a93a imx-atf,imx-boot: refresh ccimx8m patches for release lf-6.6.52-2.2.0
https://onedigi.atlassian.net/browse/DEL-9537
https://onedigi.atlassian.net/browse/DEL-9541

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-03-27 17:02:54 +01: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