Commit Graph

131 Commits

Author SHA1 Message Date
Isaac Hermida 6ad1a57317 cc-containerd: use "/root/container" as default containers path
Currently only the CCMP25 and CC95 will officially support containers.
For these platforms, "/root" is a common path with enough free space.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2026-04-23 10:22:05 +02:00
Hector Palacios 6b9d2e4114 systemd-conf: machine-configurable power key behavior
Use placeholders and machine-configurable variables to determine systemd
behavior when receiving power key events.
By default, these are:
- short press: suspend
- long press: graceful poweroff

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2026-03-17 12:00:47 +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
Javier Viguera a5d5cf86f1 meta-digi-arm: add ConnectCore 95 DVK platform
https://onedigi.atlassian.net/browse/DEL-9781

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2025-09-29 12:52:13 +02:00
Arturo Buzarra 07c4369637 u-boot-dey: switch ccimx6sbc/ccimx6qpsbc platforms to U-Boot v2024.04
This commit updates the CC6 and CC6QP platform configurations to use the latest
NXP BSP based on U-Boot v2024.04, unifying support across all NXP-based
platforms.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-09-03 09:03:19 +02:00
Arturo Buzarra a04846f107 meta-digi-arm: switch ccimx6sbc/ccimx6qpsbc platforms to Linux kernel v6.6
This commit updates the CC6 and CC6QP platform configurations to use the latest
NXP BSP based on Linux kernel v6.6, unifying support across all NXP-based
platforms.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2025-09-03 09:03:19 +02:00
Hector Palacios 0aed6a9c73 move IMAGE_FSTYPES to digi-defaults.inc
IMAGE_FSTYPES was declared on each platform config file, but it has the
same values for all platforms depending on the storage media (mmc or mtd)
and whether read-only is enabled.

Move the conditional weak assignment to digi-default.inc and remove it from
each platform config.
In the case of STM platforms, since IMAGE_FSTYPES is weak-assigned by STM
layer, we still need to append/remove from it inside the platform config,
but move it to the family includes, rather than declaring it on each
specific platform.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2025-06-16 08:35:19 +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 710e655054 u-boot-dey: use version v2024.04 for ccimx8m
https://onedigi.atlassian.net/browse/DUB-1095
https://onedigi.atlassian.net/browse/DUB-1096
https://onedigi.atlassian.net/browse/DEL-9537

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-03-19 10:26:06 +01:00
Isaac Hermida c1a4de8bc6 meta-digi: move ccimx8m platforms support to kernel 6.6
update the ccimx8m platforms support to kernel 6.6

https://onedigi.atlassian.net/browse/DEL-9536
https://onedigi.atlassian.net/browse/DEL-9537

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2025-03-19 10:26:06 +01:00
Hector Palacios 293f0c5ab7 dey: remove support for dey-image-crank
We're dropping support for dey-image-crank images.

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

https://onedigi.atlassian.net/browse/DEL-9508
https://onedigi.atlassian.net/browse/DEL-9509
2025-02-26 11:37:37 +01:00
Francisco Gil 839e0d4ebb meta-digi: update home path to "/root" in our recipes
Due to a change in systemd the default home directory is now "/root".

Modify our recipes to match with this change.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2025-02-14 13:30:10 +01:00
Gabriel Valcazar be5466cc51 linux-dey: move LINUX_GIT_URI definition to digi-defaults.inc
This doesn't change the behavior of the linux-dey recipe, all it does is make
the LINUX_GIT_URI variable accessible to any meta-digi recipe.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2025-02-06 16:07:52 +01:00
Gonzalo Ruiz b9fb425472 u-boot-dey: ccimx6ul: upgrade to v2024.04
https://onedigi.atlassian.net/browse/DEL-9399

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2024-12-12 16:03:41 +01:00
Gabriel Valcazar c7b2c5e94c Generalize WAYLAND_DISPLAY variable at a platform level and set a default value
The value of this variable is always the same within a platform, so it doesn't
make sense to have different variables for it in each recipe that requires it.
While at it, it seems like all currently supported platforms in DEY 5.0 use the
same value of "wayland-1", presumably because they all use similar versions of
wayland/weston. Set this as the default value for all platforms for now. As we
support more platforms, we can adjust this value if needed, but if it ends up
being the same for all platforms, we can just hardcode it.

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

Co-authored-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-12-11 13:18:03 +01:00
Arturo Buzarra 1c26e84dd1 u-boot-dey: use version v2023.10 for ccmp2
Update ccmp2 platform to use the latest U-Boot v2023.10 based on the
openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 tag for Yocto 5.0 (scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Arturo Buzarra 52cbd8eb17 linux-dey: use kernel version v6.6 for ccmp2
Update ccmp2 platform to use the latest Linux kernel v6.6.48 based on the
openstlinux-6.6-yocto-scarthgap-mpu-v24.11.06 tag for Yocto 5.0 (scarthgap).

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-12-10 10:19:50 +01:00
Javier Viguera 7228eb4738 u-boot-dey: use version v2024.04 for ccimx93
It also includes U-Boot-related recipes.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-11-05 18:16:59 +01:00
Javier Viguera 1290bb044b linux-dey: use kernel version v6.6 for ccimx93
https://onedigi.atlassian.net/browse/DEL-9257

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-11-05 18:15:50 +01:00
Arturo Buzarra f1ab3bcc69 u-boot-dey: use version v2024.04 for ccimx8x
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-11-05 17:18:29 +01:00
Arturo Buzarra 1a357517fa linux-dey-6.6: add support to ccimx6ul and ccimx8x platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-10-24 11:52:43 +02:00
Gabriel Valcazar 8d7680d1d6 global: remove IMAGE_NAME_SUFFIX from IMAGE_LINK_NAME
poky has reworked the format of image names, hardcoding the IMAGE_NAME_SUFFIX
(.rootfs) into IMAGE_LINK_NAME, the name used for image symlinks. This would
only be considered a cosmetic change if it weren't for the fact that we have
scripts and test infrastructure that relies on the old image name format, and
this change would force us to rework it all.

Remove the suffix from the link name to maintain our image name format, and
reflect this name in our custom image type scripts. Note that this removes
".rootfs" from several files, for example:

    * .rootfs.ext4.gz is now .ext4.gz
    * .rootfs.cpio.gz.u-boot.tf is now .cpio.gz.u-boot.tf
    * .rootfs.ubifs is now .ubifs
    * .rootfs.sdcard is now .sdcard

However, symlink names and non-rootfs files (.boot.vfat, .recovery.vfat...)
are unchanged.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-10-17 13:03:37 +02:00
Javier Viguera 9c6ac2e7b8 linux-dey: add recipe for version 6.6 restricted to ccimx91
While on it, restrict recipe version 6.1 to ccimx93 so it does not get
used by ccimx91.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-08-30 16:47:33 +02:00
Arturo Buzarra 9d5ce6c707 meta-digi-arm: add support for ConnectCore MP25 DVK platform
https://onedigi.atlassian.net/browse/DEL-8995

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-07-22 17:12:33 +02:00
Mike Engel d11b291f9a meta-digi: add new CCMX91 platform into DEY
This commits adds the CCMX91 platform to the DEY
build system. Furthermore, it creates generic ccimx9
support to be used for the CCiMX91 and CCiMX93
platform.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2024-07-19 07:32:00 +02:00
Arturo Buzarra a4042f56bd cosmetic: digi-defaults.inc: update Linux/U-Boot version table
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-01-23 17:53:02 +01:00
David Escalona 2ecaf1ca55 swupdate: add support to update U-Boot in the redundant partition
The support to update U-Boot in the redundant partition must be enabled in the project
configuration file by setting the variable "SWUPDATE_UBOOTIMG_REDUNDANT" to "true":

SWUPDATE_UBOOTIMG_REDUNDANT = "true"

This feature is only available for the newer platforms: ccmp13, ccmp15 and ccimx93. Trying to
enable it in older platforms will display a warning and fallback to non-redundant update.

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-01-19 10:33:44 +01:00
David Escalona a0bc831353 meta-digi-arm: machine: add new 'BOOTLOADER_SEEK_BOOTPART' variable to platform configurations
This new variable establishes the number of 1Kb blocks to skip before writing U-Boot in the
bootloader partition.

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-01-16 17:55:17 +01:00
Gabriel Valcazar 2a015f3f87 Add support for dey-image-lvgl images
LVGL is a free and open-source embedded graphics library that is able to run
in environments with limited resources.

This image includes a desktop environment and an LVGL widget demo (lvgl_demo)

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-11-16 11:39:03 +01:00
Tatiana Leon 2f2f68dc34 dey-examples: cccs: move cccs examples to dey-examples repository
ConnectCore Cloud Services examples are included in 'dey-examples' repository
so they can be built from here and also imported in Eclipse/Digi Application
Development Environment for Linux with the samples wizard.

The example 'upload_file' has been removed since currently there is no support
for binary data points in the CCCS daemon/client model.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-09-06 13:02:01 +02:00
Tatiana Leon f13c0e60cf cc: cccs: replace cloudconnector recipe with new ConnectCore Cloud Services
This recipe generates several packages:

   * 'cccs' includes the CCCS shared library
   * 'cccs-daemon' includes the binary and resources to execute the CCCS daemon
     (daemon, service and init scripts, configuration file)
   * 'cccs-cert' includes the required certificate to use CCCS daemon
   * 'cccs-gs-demo' includes the binary and resources to execute the CCCS get
     started demo (binary, service and init scripts)
   * 'cccs-legacy' includes the binary (all-in-one) application to execute
     the legacy CCCS application (aka cloud-connector) and the configuration
     file
   * 'cccs-legacy-dev' includes resources to develop legacy CCCS applications
     (all-in-one) (header files inside 'cloud-connector' and 'cloudconnector.pc'
     pkg config file)
   * 'cccs-legacy-staticdev' includes static resources to develop legacy CCCS
     applications (all-in-one) (static library)

This commit also renames:
   * 'CLOUDCONNECTOR_PKGS' variable to 'CCCS_PKGS'.
   * 'CC_DEVICE_TYPE' variable to 'CCCS_DEVICE_TYPE'.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-09-06 13:01:50 +02:00
David Escalona 3c9384a99c u-boot-dey: altboot: remove the 'altboot' script for all platforms
All the 'altboot' script functionality has been moved directly to the 'altbootcmd' command
in U-Boot, so this script is no longer necessary. Remove it for all platforms.

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

Signed-off-by: David Escalona <david.escalona@digi.com>
2023-09-04 14:17:16 +02:00
Hector Palacios 9b165196bb global: create DIGI_SOM variable and reformulate DIGI_FAMILY variable
Certain platforms share a processor family but need to be differentiated
between them. DEY was using the variable DIGI_FAMILY as the SOM name
rather than the family. It becomes useful to have both (DIGI_SOM as the
more specific, and DIGI_FAMILY as the more generic).

This is the case, for example, of:

- ccmp1 (family)
  - ccmp15 (SOM)
  - ccmp13 (SOM)
- ccimx8m (family)
  - ccimx8mm (SOM)
  - ccimx8mn (SOM)

Both variables are used on the machine overrides.
Where DIGI_FAMILY was used, use now DIGI_SOM.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-05-10 17:33:23 +02:00
Tatiana Leon 70b0a17b0e cloudconnector: new variable to allow custom cloudconnector package definition
By default, our 'cloudconnector' package is installed.
This can be overriden by defining 'CLOUDCONNECTOR_PKG' in the 'local.conf'
with the custom package that includes this application.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-05-09 11:47:25 +02:00
Javier Viguera 9141451583 meta-digi: cosmetic, delete machine variants dead code
We removed machine variants support years ago.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-05 14:39:34 +02:00
Javier Viguera eb1bc0eeb3 meta-digi-arm: fix regression in optee userspace support
OPTEE_PKGS variable must have a default (empty) value to prevent bitbake
parsing errors.

This fixes a build failure for MP1 platforms where the variable was
undefined in the commit that added the support.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-04 18:24:36 +02:00
Javier Viguera beb9fd02e6 meta-digi-arm: add optee userspace for IMX platforms that support it
NXP platforms that have 'optee' in the MACHINE_FEATURES, will install
optee userspace packages (ccimx8m and ccimx93 at the moment).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-03 18:32:21 +02:00
Javier Viguera d76bb3ac2c machine: restrict udev extra rules to systemd or udevd device managers
There are other device managers (e.g. mdev) that do not understand those
udev rules, so do not install them unconditionally.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-03-21 17:05:15 +01:00
Javier Viguera 9d40092ce5 meta-digi: rework u-boot support
Instead of overriding the whole do_compile function, just to reconfigure
u-boot for Trustfence, create a do_configure pre-function that takes care
of that. This allows the removal of duplicated code.

Also, disable the generation of u-boot environment artifacts. We are
not using them and so many u-boot artifacts in the deploy directory
are confusing.

Finally, adjust the names of the TF u-boot artifacts in the do_deploy
append function.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-12-22 12:37:46 +01:00
Javier Viguera ab52d0ec12 meta-digi: add new ccimx93-dvk platform
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-12-20 14:50:54 +01:00
Javier Viguera 7d90e6276b digi-defaults: add default value for HAS_WIFI_VIRTWLANS
This is later overridden in the machine config files, but a default
(not empty) value is needed, to prevent a syntactic error in
init-ifupdown recipe (where it is used).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-12-19 18:19:21 +01:00
Javier Viguera db5067371e meta-digi: get rid of ccimx8mp-dvk
Platform not supported.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-30 18:06:57 +01:00
Francisco Gil 6ffbbb390a dualboot: get rid of DUALBOOT_ENABLED configuration
All the dualboot logic will be checked in run time.
To do this:
* Include the altboot.src by default in all the images
* Create a post installation script to change the
firmware_download_path in the cloud connector
* Unify the swupdate file descriptor for dual and single boot

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-22 11:42:39 +01:00
Francisco Gil b52339d591 dualboot: move the things to the corresponding class
we can get rid of dualboot.bbclass moving things to different
layers.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-15 07:49:17 +01:00
Javier Viguera bc38448aae dey: update dey.conf with latest changes in poky.conf
Also clean some dead code: libjpeg-turbo is the only jpeg implementation
in poky since long ago. Also "remove-libtool" is enabled by default in
bitbake so there is no need to do it in our distro configuration.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-10-03 14:31:00 +02:00
Arturo Buzarra 0ed6c4d66b meta-digi-arm: add support for ConnectCore MP13 DVK platform
https://onedigi.atlassian.net/browse/DEL-8078

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-09-15 16:14:30 +02:00
Mike Engel c3b4cfa5d1 swupdate: add u-boot image into SWU update image
Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://onedigi.atlassian.net/browse/DEL-7853
2022-09-12 14:26:13 +02:00
Javier Viguera caacf056ab digi-defaults: add crank image to the list of graphical images
This fixes a failure in the firmware installation script when trying to
program crank images:

./install_linux_fw_uuu.sh -i dey-image-crank

[ERROR] Could not find file 'dey-image-crank-ccimx6ulsbc.boot.ubifs'
[ERROR] Could not find file 'dey-image-crank-ccimx6ulsbc.recovery.ubifs'
[ERROR] Could not find file 'dey-image-crank-ccimx6ulsbc.ubifs'

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-05 18:22:40 +02:00
Javier Viguera c6b55f492f linux-libc-headers: use Poky's default version 5.16
Also, fix the sequence number of the GPIO_SET_DEBOUNCE_IOCTL ioctl. Same
fix has been done in Linux.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-22 15:44:49 +02:00
Javier Viguera 065cf3e9c4 kirkstone migration: general update to the new override syntax
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-20 11:39:57 +02:00