Commit Graph

2748 Commits

Author SHA1 Message Date
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
Gonzalo Ruiz f82ea20153 installer: ccimx95: install dey-image-chromium by default
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2025-12-11 13:14:54 +01:00
Arturo Buzarra 13556606e0 swupdate: stm: fix TF-A/FIP artifact names in .swu when TrustFence is enabled
Correct the bootloader artifact names (TF-A and FIP) for CCMP1/CCMP2 during
.swu generation with TrustFence enabled.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-12-10 11:16:38 +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
Gonzalo Ruiz 08637debae meta-digi-arm: ccmp25: add USB recovery artifacts to the ZIP installer
Distribute all the required bootloader artifacts required for USB recovery
as part of the ZIP installer. That way, every pre-compiled set of images
is enough for starting development.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2025-12-09 17:51:54 +01:00
Isaac Hermida 8f7ece342d linux-dey: ccimx95: add temporary patch to support early prototypes
As the HWID support is not implemented yet, is needed to fill
the wireless information in the DT structure to have Wi-Fi and
Bluetooth working.
This is just a temporal patch for initial prototypes.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-12-05 16:42:06 +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
Javier Viguera 532939fa9f digi-defaults: add dey-image-chromium to graphical images
https://onedigi.atlassian.net/browse/DEL-9838

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-11-24 18:33:43 +01:00
Gabriel Valcazar 0eaf1038d3 ccmp15: add meta-clang to default bblayers
Other platforms that have flutter support use clang to build the flutter-engine
recipe, so do the same with the ccmp15. meta-flutter uses clang for a set of
its recipes (mainly flutter-engine) as long as meta-clang is in the bblayers,
so all we need to do is add said layer.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-11-24 18:28:48 +01:00
Francisco Gil 055378aee3 installer: replace setenv instructions with direct install_linux_fw_uuu.sh usage
Updated error guidance to use `./install_linux_fw_uuu.sh -u <uboot_file>`
instead of setting INSTALL_UBOOT_FILENAME manually.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2025-11-24 18:13:08 +01:00
Gabriel Valcazar af3ebf910c ccimx91: remove webkit and selinux layers
We originally removed GUI-related layers from headless platforms in commit
ef26e935d0, but we left meta-webkit in the ccimx91's bblayers due to a
spurious selinux dependency. Since we recently removed both the webkit and
selinux layers from the ccimx95's bblayers in commit 2aaa76c963, do the same
for the ccimx91.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-11-24 14:04:36 +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
Javier Viguera 59377e5748 meta-digi-dey: add dey-image-chromium for ConnectCore 95
The new image runs the local ConnectCore demo application using chromium
on the ccimx95.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-11-21 14:41:54 +01:00
Javier Viguera 2aaa76c963 ccimx95: remove webkit and selinux layers
At the moment, webkit does not work well on the ccimx95. Running cog on
wayland crashes with:

  eglCreateWaylandBufferFromImageWL not found
  cog-platform-wl.c:1731:on_export_wl_egl_image: assertion failed: (wpe_view_data.buffer)

So just delete the layer from the project's config file. Selinux layer
depends on meta-webkit, so we need to remove it as well.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-11-21 14:41:54 +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
Francisco Gil 1674f6462c linux-dey-6.6: update RT patches to v6.6-stm32mp-r2 Linux release
Sync STM32MP-specific RT kernel patches, aligned with the latest
ST release openstlinux-6.6-yocto-scarthgap-mpu-v25.06.11 from
meta-st-x-linux-rt layer.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2025-11-18 08:23:58 +01:00
Hector Palacios e2fb5c3dd7 ccimx95-dvk: add MikroE gyro/accel device tree overlays
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-11-14 12:20:49 +01:00
Hector Palacios b6b6419067 ccimx95-dvk: add Pcam 5C camera overlay
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-9810
2025-11-14 11:59:11 +01:00
Gabriel Valcazar 55e0961c85 ccimx6: set WAYLAND_DISPLAY to wayland-0
i.MX6 platforms use an older version of weston, 10.0.5.imx, which sets the
wayland socket to wayland-0 by default. Without this change, our demo launcher
scripts/services will fail on ccimx6/6qp platforms.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-11-07 14:50:20 +01:00
Hector Palacios 0eb9d5a506 cc95: add support for dey-image-flutter
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-11-06 17:18:40 +01:00
Hector Palacios 924ccbadc2 cc95: conf-notes: add missing lines for dey-image-lvgl
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-11-06 17:17:58 +01:00
Isaac Hermida dcdb6dead6 linux-virtualization: add CONFIG_CFS_BANDWIDTH
That option is needed to limit the number of CPU cores for a container.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-11-05 15:24:39 +01:00
Isaac Hermida 14357f53e4 nxp-wlan-sdk: iw612-sdk: add any mx9 as compatible machine
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-11-05 15:23:28 +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 567a367fcc ccimx95-dvk: delete IMX_SOC_REV machine override
We support only B0 silicon revision and that is already set on
"imx-digi-base.inc" for all mx95 based machines.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-29 18:32:04 +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 8ee168de0a ccmp1/ccmp2: adapt virtual optee syntax
This commit updates the virtual OP-TEE syntax for the CCMP1 and CCMP2 platforms
to align with the changes introduced in the meta-st-stm32mp layer. Specifically,
it mirrors the update made in commit ded46c7d24addf91ec81c9f64309e6376689977a
("Adapt to virtual optee changes").

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-10-28 12:39:51 +01:00
Arturo Buzarra 15c5adfbb4 ccmp25-dvk: remove unsupported usbg0 machine feature
The ConnectCore MP2 DVK does not include an external STM32G0 component.
This commit removes the 'usbg0' entry from MACHINE_FEATURES to prevent
the installation of the unnecessary stm32mp-g0 firmware.

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
Arturo Buzarra f1307670df trustfence-stm-signtools: update recipe and package to binaries v2.20.0
This commit updates the trustfence-stm-signtools package with the latest
versions from the STM32 MPU ecosystem v6.1.0:
- STM32MP_KeyGen_CLI           v2.20.0
- STM32MP_SigningTool_CLI      v2.20.0

These tools are deployed as part of STM32CubeProgrammer v2.20.0, adding support
for STM32MP21x processors and bug fixing.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-10-28 12:39:51 +01:00
Javier Viguera 13f8046d31 meta-digi: clean vfat images dependencies
vfat images need U-Boot scripts, which are always provided by the U-Boot
recipe, even for imx-boot-based machines. Replace the machine-dependent
BOOTLOADER_IMAGE_RECIPE with virtual/bootloader (which is provided by
u-boot recipes).

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 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 a02d48dc78 libubootenv: adjust postinstall script and fix inherit usage
* Replace the hard-coded '/etc' with ${sysconfdir}
* Extend the mmcblk check to prevent updating the environment configuration
  when booting from the EMMC (even though the kernel command line root
  passed is in the form of /dev/mmcblk).
* Switch the conditional inherit to inherit_defer as it depends on
  IMAGE_FEATURES to avoid parse-time ordering issues.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-22 12:03:08 +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
Javier Viguera 0e338f4b8f ccimx9{3,5}-dvk: remove IMAGE_BOOT_FILES
Remove IMAGE_BOOT_FILES and related WKS dependencies from ccimx93-dvk and
ccimx95-dvk machine configs. IMAGE_BOOT_FILES defines the files included
in the boot partition when creating WIC images. The removed files are
the Cortex-M demo firmware that we don't want on the boot partition of
our WIC image.

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
Francisco Gil b3a84b1d4e linux-dey:RT: fix virtio_trans build on Cortex-A9 and enable mailbox support
This patch fixes build failures of the virtio_trans driver (Cortex-A9, 32-bit ARM)
when building a PREEMPT_RT-enabled kernel. The errors were caused by
unresolved 64-bit division symbols (__aeabi_uldivmod / __aeabi_ldivmod)
generated when the driver was compiled as a module.

Changes included:

* virtio_trans.c:
  - Replace 64-bit modulus operations (`idx % vt->{tx,rx}_vring_size`) with
    kernel-safe 64-bit division macros using `div_u64_rem()`.
    This prevents implicit calls to non-exported ARM EABI helpers that are not
    available to kernel modules on 32-bit ARM.

* fragment-nxp-rt.config:
  - Enable the mailbox framework (`CONFIG_MAILBOX=y`) required by virtio
    mailbox-based transports.
  - Build the virtio transport driver into the kernel (`CONFIG_VIRTIO_TRANS=y`)
    instead of as a module, ensuring proper symbol resolution
    during link time. Without this a license error is shown when building
    the kernel in yocto.

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

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2025-10-13 10:27:01 +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 34b1de1e90 meta-digi-arm: drop obsolete perf bbappend
It was added following same change in meta-imx, but meta-imx deleted it
in commit 02a40222adc7.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-10 10:41:30 +02:00
Javier Viguera 51e87008f3 meta-digi-arm: delete obsolete dtc recipe
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-10 10:12:02 +02:00
Javier Viguera 34b7945ccb ccimx95-dvk: add enet2 and lvds overlays
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-10 10:12:02 +02:00
Javier Viguera 4786ff1c7f meta-digi-dey: add libgpuperfcnt version r50.4
This is the version supporting the i.MX95. This library is a dependence
of the gputop package.

As a requirement to allow building this library for the ccimx95-dvk,
update the fsl-eula-graphics bbclass with the latest changes in meta-imx.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-10-09 17:44:04 +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 aabffdd138 ccmp2: disable signing and encryption for co-processor firmware
This commit disables the signing and encryption mechanism for the ConnectCore
MP2 platform's co-processor firmware. Currently, this functionality is not yet
supported in DEY, and enabling it causes build failures when TrustFence support
is active. Disabling it ensures successful builds until full support is
implemented.

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