Commit Graph

5320 Commits

Author SHA1 Message Date
Javier Viguera 0fa18775ad dey-toolchain: fix including machine-specific SDK tools
Fixes commit b143804dbb, since in nativesdk
context MACHINE_FEATURES is reset to SDK_MACHINE_FEATURES, causing OP-TEE
building tools to be missing from the generated SDK.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-06-06 12:30:33 +02:00
Hector Palacios a2153e44ef init-ifupdown: use dhcp for bridge connection
When you create a bridge between Wi-Fi hostap and Ethernet, it's more
convenient to let the bridge take an appropriate dynamic IP from the
DHCP server, than needing to configure a manual one.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-06-04 14:09:13 +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 d0dc8282f6 u-boot-dey: safeguard rm operation in adapt_uboot_filenames to prevent build issues
This commit fixes the rm command in the adapt_uboot_filenames function to
prevent build failures when the target artifact does not exist, ensuring the
operation is safe in all cases.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-05-26 10:36:33 +02:00
Arturo Buzarra 11c34bcbdb u-boot-dey: ccmp1/ccmp2: fix support for inserting signed keys into U-Boot DTB for FIT images
Since commit 29d32063ac0abb1017756f62f94aec22ce305b60 ("u-boot: kernel-fitimage:
Fix dependency loop if UBOOT_SIGN_ENABLE and UBOOT_ENV enabled") in Poky layer,
the `kernel-fitimage` and `uboot-sign` classes are no longer explicitly
dependent. This change introduced a race condition when inserting the signed
RSA keys into the U-Boot DTB for FIT image verification.

This commit introduces a new step for `do_uboot_assemble_fitimage`, which is
now responsible for injecting the keys into the U-Boot DTB. This logic was
previously handled in the Linux kernel recipe via the `do_assemble_fitimage`
function in previous Yocto versions.

Additionally, a build-time dependency is added between the `do_uboot_assemble_fitimage()`
function and the kernel's `do_kernel_generate_rsa_keys()` task, which is
responsible for generating the RSA keys used to sign the FIT image.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-05-26 09:48:00 +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
Arturo Buzarra 09714323a6 ccmp1: adjust memory layout for FIT image support
This commit updates the memory layout to properly allocate space for the
different FIT image components, while ensuring total memory usage stays below
128 MiB. This avoids overlaps and ensures correct loading on memory-constrained
variants.

Final memory map:

  Start of memory:        #  0xC0000000
                          #   |
                          #   | 32 MiB reserved
                          #   v
  FIT image load address: #  0xC2000000
                          #   |
                          #   | 32 MiB for FIT image
                          #   v
  Kernel load address:    #  0xC4000000
                          #   |
                          #   | 32 MiB for Kernel
                          #   v
  DTB/DTBO load address:  #  0xC6000000
                          #   |
                          #   | Size for DTB/DTBO
                          #   v

Total memory mapped: 96 MiB

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-05-26 09:48:00 +02:00
Arturo Buzarra 0335333727 trustfence-fscrypt: add support to STM32MP1x platforms based on libteec v1.0.0
This commit includes a new tarball based on trustfence-fscrypt v0.2,
cross-compiled against libteec v1.0.0, to enable support for STM32MP1x platforms.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-05-26 09:48:00 +02:00
Isaac Hermida fdadc10e30 recipes-digi: nxp-wlan-utils: add nxp wlan tools
add a new recipe to include nxp prebuilt binaries for:
 * mlanutl: WoWLAN support
 * nanapp:  NAN support
 * nmlawls: monitor Wi-Fi events

Included prebuilt version obtained from next release:
SD-WLAN-UART-BT-SPI-OT-Zigbee-DualPAN-IW612-LNX_6_12_3-IMX8-18.99.3.p23.20-18.99.3.p23.20-MM6X18505.p23-GPL.zip

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-05-21 12:51:41 +02:00
Tatiana Leon b154154a7e cccs: switch daemon init method to inittab for sysvinit-based systems
This commit updates the CCCS recipe to support `inittab`-based daemon
initialization for platforms using `sysvinit`, such as ConnectCore 6UL.

By switching to `inittab` for daemon control in these systems, we guarantee
automatic relaunch of `cccsd` if it exits unexpectedly (this functionality was
previously only available with `systemd`)

This improves reliability and aligns behavior across `systemd` and non-`systemd`
platforms.

See Confluence question
"Why won't CC6-UL rejoin DRM after a planned DRM outage?"
(https://onedigi.atlassian.net/wiki/plugins/servlet/ac/com.atlassian.confluence.plugins.confluence-questions/globalQuestionsViewer?ac.com.atlassian.confluence.plugins.confluence-questions.path=/questions/236710985798)

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
(cherry picked from commit 5c667641a88437795fea3097ca5cf76c22de47c1)
2025-05-21 09:49:56 +02:00
Gabriel Valcazar 6345d46ce1 bluez5: remove btconfig binary in ccimx6 platforms
poky commit 3c9b461dd0d26a5f6941000d839636ad32cd6f29 added this binary to the
bluez5-noinst-tools package, and it has the same exact path as the one from our
dey-examples-btconfig package. This causes a conflict when both packages are
installed in the same image.

Judging by bluez5's btconfig sources, it's merely a skeleton without any real
functionality, so simply remove it to avoid the conflict.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-20 14:36:38 +02:00
Gabriel Valcazar 0d9762442e dey-examples: set correct COMPATIBLE_MACHINE where applicable
Some of our example recipes that are meant to be used on specific platform
subsets are available to be built/installed for all platforms. Even though it's
possible to build/install these recipes for platforms they aren't meant for,
we should restrict them to their intended platforms:

    * dey-examples-btconfig: this is only meant for ccimx6 platforms that use
      the Atheros wifi/bt chip, so reflect this in the recipe and in the
      examples packagegroup.
    * dey-examples-tamper: this is only meant for platforms with MCA (ccimx6ul,
      ccimx8x and ccimx8m). This requirement was already set in the examples
      packagegroup, but the recipe was available to any platform.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-20 14:36:38 +02:00
Gabriel Valcazar 3eb66c25cb packagegroup-dey-examples: remove outdated dependency with dey-examples-v4l2
Commit 15f9aeba0e removed the dey-examples-v4l2
recipe, yet we still kept it as a dependency for ccimx6 platforms. Remove this
impossible dependency to be able to build the examples packagegroup for ccimx6
platforms.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-20 14:36:31 +02:00
Gabriel Valcazar 7614d4ab39 swupdate: fix regression in 2024.12.1
This version of swupdate has a bug that happens if the root of sw-description
is redirected via a link, which is the case is some of our sw-description
templates (such as the one we use for file updates). Backport a fix from
v2025.05.

https://onedigi.atlassian.net/browse/ADK4A-1957

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
(cherry picked from commit 5bdd59a647)
2025-05-19 15:42:42 +02:00
Gabriel Valcazar 5bdd59a647 swupdate: fix regression in 2024.12.1
This version of swupdate has a bug that happens if the root of sw-description
is redirected via a link, which is the case is some of our sw-description
templates (such as the one we use for file updates). Backport a fix from
v2025.05.

https://onedigi.atlassian.net/browse/ADK4A-1957

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-19 10:42:18 +02:00
Gabriel Valcazar 119292e68c dey-image-flutter: add recipe for dey-image-flutter-swu
Like we do for our other supported images, provide a recipe to generate a SWU
package based on dey-image-flutter

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-19 10:25:01 +02:00
Gabriel Valcazar e03ef8941c ccmp1: remove spurious UBI/UBIFS images
In theory, we already had the necessary changes to remove these images, but
two things needed tweaking:

    * MULTIUBI_BUILD values use underscores instead of hyphens, so use
      underscores to properly remove the default value inherited from
      BOOTDEVICE_LABELS.
    * STM used to incorporate a custom "stmultiubi" image type in the stm32mp
      builds, but they've replaced this with the upstream "multiubi" type.
      Reflect this change to avoid generating additional UBI/UBIFS images in
      our builds.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-19 10:25:01 +02:00
Gabriel Valcazar e60dbe03cb ccmp15-dvk: bblayers: replace meta-qt5 with meta-qt6
Use Qt6 by default in ccmp15-dvk builds

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-16 12:20:40 +02:00
Gabriel Valcazar b9bf87d8f1 packagegroup-qt6-dey: don't install examples in ccmp15-dvk images
When building DEY 5.0 ccmp15-dvk images with Qt6 instead of Qt5, the rootfs
image is too big for the default settings (512 MiB, dualboot enabled). Make
room by removing the *-examples Qt6 packages, which are over 30 MiB in total.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-16 10:49:05 +02:00
Gabriel Valcazar d4e1917f1c global: remove recipes related to outdated features
There are several recipes in meta-digi related to features that we haven't
tested in a long time and don't appear in the DEY 5.0 documentation. Remove
them to avoid unexpected behavior.

Said features are:
    * Coral TPU support (only supported in DEY 3.2)
    * AWS support (removed from default images and docs in DEY 4.0)
    * dey-image-tiny (hasn't been maintained since DEY 2.0)

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-15 15:58:06 +02:00
Gonzalo Ruiz 94c6e338f5 firmware-murata-infineon: ccmp1: update World CLM blob file
Add the following countries to the CLM Blob file:
- Brazil
- Mexico
- Saudi Arabia
- Hong Kong
- Singapore
- Malaysia
- Taiwan
- Korea

This is the new World CLM Blob file:
  - cyfmac4373-sdio_World.clm_blob (11d5fab6659eff491aca1a219ad33b00)

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2025-05-15 08:29:08 +02:00
Hector Palacios 165b1ac4ce ccmp13: add device tree overlay for DVKv3
This overlay contains a workaround to make the USB-OTG
work as USB device when connected to a host.

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

https://onedigi.atlassian.net/browse/DEL-9610
(cherry picked from commit ec92f5fdd10a61e37ac3778d0d3aa1816bc6b0aa)
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-13 12:56:20 +02:00
Gabriel Valcazar 30990b4c2e ccmp15: manually add "optee" to MACHINE_FEATURES
STM's st-machine-common-stm32mp.inc file automatically incorporates "optee" to
MACHINE_FEATURES as long as BOOTSCHEME_LABELS contains "optee". Since we
recently modified the ccmp15's labels to only contain "opteemin", this is no
longer the case, which leads to:

  * optee packages (optee-client, optee-os) not getting installed in images and
    SDKs
  * optee patches for environment encryption not being applied to libubootenv

Add the feature manually to fix these two issues

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-05-13 09:59:31 +02:00
Javier Viguera 4f09a9f546 wpewebkit: restrict VPU patch to 8M Mini
The 8M Nano does not have a VPU.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-05-13 09:44:02 +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
Javier Viguera 7d076d76a5 wpewebkit: fix using VPU also for ccimx8mm
The patch we applied for the ccimx8x to enable VPU usage when playing
videos under WebKit is also necessary for the ccimx8mm.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-05-12 13:00:37 +02:00
Hector Palacios ec52e7a19f mtd-utils: add a UBI health monitor service
The ubihealthd daemon, present in mtd-utils does random
scans of the UBI devices on a given interval. This helps
to deal with 'read disturb' problem on NAND flashes.

The service runs a ubihealthd thread for every UBI device
with a read interval of 1 hour by default.

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

https://onedigi.atlassian.net/browse/DEL-9571
2025-05-12 10:59:29 +02:00
Hector Palacios 63e7031614 add missing `pn-` prefix to INSANE_SKIP appends
Commit 9c3916da94 added INSANE_SKIP
"32bit-time" to certain recipes that use 32bit APIs on the ccmp1
SOMs, but forgot to include the `pn-` prefix to really apply to
those recipes.

While on it, add two additional ones on recipes used by NXP 32-bit
platforms.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-05-09 12:40:51 +02:00
Javier Viguera c2632d1b00 meta-digi-dey: update GPU-related packages to rel_imx_6.6.52_2.2.0
* Add imx-gpu-sdk 6.4.2 recipe
* Update GPU tools package groups to match NXP release

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-05-09 09:54:44 +02:00
Javier Viguera 1ae68ffa59 meta-digi-dey: update wayland for release rel_imx_6.6.52_2.2.0
* Remove wayland_1.22.0.bbappend, with changes originally added for Crank
  UI (commit 25c699e05b), which we no longer support.
* Update wayland_%.bbappend to align with NXP’s rel_imx_6.6.52_2.2.0
  release.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-05-09 09:54:44 +02:00
Arturo Buzarra a8c3bba9a8 firmware-murata: update firmware binaries to version imx-scarthgap-jaculus_r1.1
This commit updates the firmware binaries for Bluetooth and Wireless interfaces,
aligned with the Cypress Linux WiFi Driver (FMAC) release v6.1.97-2025_0219.
The updated wireless firmware versions are as follows:
 - 2FY Wireless chip: v28.10.387.16
 - 2AE Wireless chip: v13.10.246.356

These updates are included as part of the imx-scarthgap-jaculus_r1.1 Murata release.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-05-08 11:53:44 +02:00
Javier Viguera 554ab9a536 firmware-ele-imx: update firmware to match NXP rel_imx_6.6.52_2.2.0
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-05-06 15:27:04 +02:00
Javier Viguera fb655dd021 meta-digi: xwayland: use poky's xwayland 23.2.5 recipe
That includes several CVE patches not present of meta-freescale's
23.2.5.imx recipe (which is based in exactly the same revision).

Similar change was done in NXP's meta-imx (see commit
99ceb057fcfdc8151c1488089d5f22363dfdb6d7).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-05-06 15:27:04 +02:00
Javier Viguera 1032a127e2 meta-digi: update i.MX GStreamer stack to 1.24.7.imx
NXP uses this version for its 6.6.52-2.2.0 release.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-05-06 15:26:59 +02:00
Javier Viguera 63034bf86e imx-vpu-hantro: delete overlayed recipes
meta-freescale provides newer versions of those recipes.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-05-06 15:26:51 +02:00
Arturo Buzarra e87f7d0a5b u-boot-dey: ccmp1: refresh installer scripts for Yocto 5.0 support
This commit updates the installer scripts to support CCMP1 platforms under
Yocto 5.0, aligning them with the current behavior used for CCMP2.
Changes include:

- Adding support for the metadata partition, which is now required
- Including the optee/opteemin flavors in boot artifact filenames
- Ensuring the script structure and logic remain consistent with CCMP2 install scripts

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-05-06 09:02:10 +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
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