Commit Graph

2113 Commits

Author SHA1 Message Date
Javier Viguera 167678edac python3-pyelftools: allow to build for nativesdk
This is a requirement to build optee-os with a Yocto generated SDK.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-04-17 12:30:26 +02:00
Javier Viguera 951789093f meta-digi-dey: remove dead code (udev-cache)
This was removed from Poky long ago:

https://git.yoctoproject.org/poky/commit/?id=44f550f392e231b7fbd1e29da3f59d6c9dd7f472

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-04-03 18:39:35 +02:00
Javier Viguera 1d793ac4aa dey-image-installer: add USB driver installation script for ccimx93
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-04-03 18:39:35 +02:00
Tatiana Leon 3912f76f59 ccimx8m: ccmp1: cc6ul: cloudconnector: update store certificates in '/etc/ssl/certs'
Cloud Connector configuration file sets:
  * 'edp12.devicecloud.com' as the URL to connect to (this end point uses client
    certificates)
  * '/mnt/data' as the directory to store downloaded certificates, now that
    this is also available in emmc platforms (see
    62d937df42)

This commit:

  * reverts a0842cbcfd to keep
    'edp12.devicecloud.com' URL that uses certificates for ccimx8m platforms.

  * reverts fd94f10c0b since now the cloud connector
    configuration file sets '/mnt/data' as the place to store downloaded
    certificates, so no need to modify it for ccmp1 platforms.

  * It also configures '/etc/ssl/certs' as the certificates directory for cc6ul
    devices. Although by default, these devices are connecting to
    'remotemanager.digi.com' that not uses certificates, we prefer to use an
    existing directory in that setting. See commit
    063a946e7c.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-04-03 14:44:35 +02:00
Tatiana Leon dba8dbdab4 dualboot: change the way to determine if device is using nand or emmc
'environment' partition is not available in the ccmp15.

The solution suggested is read the "/proc/mounts" and check if the 'rootfs' is
'ubifs' mounted.

Related to commits 7c07b15370 and
678eaaf0fc4ce74e67682387e3465eb29659bd47

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-04-03 14:44:35 +02:00
Tatiana Leon eca521f505 dualboot: update-firmware: get current active system not using U-Boot variable
This commit adds a new function to get the active system in a dualboot device
without using 'active_system' U-Boot variable.
This way the script always knows the real active system even when the variable
'active_system' has the value of the next boot active system, for example, after
performing a 'update-firmware --swap-active-system'.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-04-03 14:44:35 +02:00
Tatiana Leon ccc4680924 dualboot: update-firmware: new option to swap active system ('--swap-active-system')
This allows to remove the script 'on-the-fly-swap-partition.sh'.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-04-03 14:44:35 +02:00
Tatiana Leon 1b17e8f657 dualboot: update-firmware: new script option ('-s')
This option combined with '-a' ('--active') only prints the active block: a or b

The purpose an output to be consumed by other scripts or programs.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-04-03 14:44:35 +02:00
Tatiana Leon 556bda6d57 dualboot: update-firmware: update the check of nand or emmc system
Check the second ('/') and third ('ubifs') field of 'rootfs' entry in
'/proc/mounts' as the first one ('rootfs_a' or 'rootfs_b') may be changed by
custormers:

    root@ccmp15-dvk:~# cat /proc/mounts
    ubi0:rootfs_b / ubifs rw,relatime,assert=read-only,ubi=0,vol=5 0 0
    [...]

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-04-03 14:44:35 +02:00
Tatiana Leon 006138e134 dualboot: update-firmware: rework the script to use functions and avoid repetitions
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-04-03 14:44:35 +02:00
Tatiana Leon e37d52ebd7 dualboot: update-firmware: add '--no-reboot' option to avoid the reboot of the system
This is required for the firmware update using Digi Remote Manager. The reboot
is commanded by the server, it that does not happen the update process is not
ended for DRM.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-04-03 14:44:35 +02:00
Tatiana Leon d7f9cfb718 dualboot: update-firmware: add long options to the tool usage
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-04-03 14:44:35 +02:00
Hector Palacios 40d5207400 update URL of NXP recipes from codeaurora to Github
Codeaurora was retired on April 2023.
Fix bbappends to point to their new location on Github.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-04-03 11:53:49 +02:00
Arturo Buzarra b00bddb73f meta-digi-dey: bump distro version to 4.0-r3
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-31 11:15:31 +02:00
David Escalona 62d937df42 e2fsprogs: extend recipe to format data partition on first boot for block based devices
Signed-off-by: David Escalona <david.escalona@digi.com>
2023-03-27 17:36:32 +02:00
Isaac Hermida 66fb6e55c1 ccimx93: iw612: add bluetooth support
The bluetooth FW for the IW612 is loaded together with WiFi FW, so there
is not BT FW file as in our other products.
In order to use the BT, it is a requirement to load the WiFi FW, so
ensure that the service is started after the load of the system
modules.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-03-27 16:34:06 +02:00
Francisco Gil 800e875397 pulseaudio: keep the PID file in headless system
Without the PIDfile pulseaudio is not reliable.

https://onedigi.atlassian.net/browse/DEL-8429
https://onedigi.atlassian.net/browse/DEL-6795

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-03-23 07:58:18 +01:00
Javier Viguera c01c394806 meta-digi: rework distro features configuration
Instead of changing POKY_DEFAULT_DISTRO_FEATURES, do the distro features
configuration directly in the DISTRO_FEATURES variable. Also, add a couple
of variables (MACHINE_DISTRO_FEATURES_ADD/REMOVE) that allow machines
for extra tweaking the distro features.

While on it, clean up some distro features:

  - pulseaudio: already added by DISTRO_FEATURES_BACKFILL
  - bluez5, splashscreen, initrd, gplv3: not used (dead code)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-03-22 11:46:53 +01:00
Francisco Gil 1560472f66 pulseaudio: keep the PID file in headless system
Without the PIDfile pulseaudio is not reliable.

https://onedigi.atlassian.net/browse/DEL-8429
https://onedigi.atlassian.net/browse/DEL-6795

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-03-21 15:14:53 +01:00
Hector Palacios 661f59967c trustfence: add function to generate a PKI tree if it doesn't exist
The stand-alone signing script 'trustfence-sign-artifact.sh' checks
if a valid PKI tree exists (by checking the existance of four SRK
files) and if they don't, it calls trustfence-gen-pki.sh (which is
a wrapper over different generators (for HAB or AHAB) to create one.

Recipes such as 'dualboot' or 'recovery-initramfs' may need to call
openssl functions over the PKI tree. These recipes do not currently
generate the PKI tree; they expect it to be already in place.
This might not be the case if the trustfence-sign-artifact.sh script
has not been called yet.

Originally, a fake dependency on virtual/kernel recipe was made to
force it, but it doesn't quite work since the calling only happens
on deploy() while regular DEPENDS doesn't wait for this task.
If the PKI does not exist, a recipe that requires the PKI tree will
fail.

The solution is to create a function on the trustfence.bbclass that
allows any recipe to check for the existance of a PKI tree and
generate it if it doesn't exist. This is repeated inside the
trustfence-sign-artifact.sh, but it needs to be in both places
because this script must work stand-alone.

The generation of the PKI tree takes some seconds so this commit
adds a lock dir to prevent race conditions when called from
different recipes.

It also removes the fake dependency on virtual/kernel and adds a
dependency on trustfence-cst-native (which is the recipe that
provides the PKI generation tool).

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

https://onedigi.atlassian.net/browse/DEL-8430
(cherry picked from commit 6a8bf7afff)
2023-03-21 13:36:58 +01:00
Hector Palacios 6a8bf7afff trustfence: add function to generate a PKI tree if it doesn't exist
The stand-alone signing script 'trustfence-sign-artifact.sh' checks
if a valid PKI tree exists (by checking the existance of four SRK
files) and if they don't, it calls trustfence-gen-pki.sh (which is
a wrapper over different generators (for HAB or AHAB) to create one.

Recipes such as 'dualboot' or 'recovery-initramfs' may need to call
openssl functions over the PKI tree. These recipes do not currently
generate the PKI tree; they expect it to be already in place.
This might not be the case if the trustfence-sign-artifact.sh script
has not been called yet.

Originally, a fake dependency on virtual/kernel recipe was made to
force it, but it doesn't quite work since the calling only happens
on deploy() while regular DEPENDS doesn't wait for this task.
If the PKI does not exist, a recipe that requires the PKI tree will
fail.

The solution is to create a function on the trustfence.bbclass that
allows any recipe to check for the existance of a PKI tree and
generate it if it doesn't exist. This is repeated inside the
trustfence-sign-artifact.sh, but it needs to be in both places
because this script must work stand-alone.

The generation of the PKI tree takes some seconds so this commit
adds a lock dir to prevent race conditions when called from
different recipes.

It also removes the fake dependency on virtual/kernel and adds a
dependency on trustfence-cst-native (which is the recipe that
provides the PKI generation tool).

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

https://onedigi.atlassian.net/browse/DEL-8430
2023-03-21 09:41:36 +01:00
Arturo Buzarra 0a80edeb28 dey-image-installer: remove path from binaries stored inside a folder in the deploy dir
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
(cherry picked from commit 88251adc0d)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-03-20 17:07:32 +01:00
Arturo Buzarra a53eaa5b49 systemd-conf: use custom journald conf file
The Poky layer defines a default journald conf file that allows log files on
the file system to grow to a maximum of 64 MiB. However, this size on some
platforms is impossible to address, so this commit reduces the maximum size for
runtime logs to 4 MiB.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
(cherry picked from commit bdece7102b)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-03-20 17:07:25 +01:00
Arturo Buzarra abf9dc46bd dey-image-installer: remove path from README file for USB driver installation script
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
(cherry picked from commit 7ea467dba7)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-03-20 17:07:19 +01:00
Javier Viguera 4ef4794f20 Merge tag 'dey-4.0-r2.2' into dey-4.0/master
Digi Embedded Yocto 4.0-r2.2

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-03-20 11:05:11 +01:00
Arturo Buzarra 88251adc0d dey-image-installer: remove path from binaries stored inside a folder in the deploy dir
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-14 09:37:00 +01:00
Arturo Buzarra bdece7102b systemd-conf: use custom journald conf file
The Poky layer defines a default journald conf file that allows log files on
the file system to grow to a maximum of 64 MiB. However, this size on some
platforms is impossible to address, so this commit reduces the maximum size for
runtime logs to 4 MiB.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-13 16:36:06 +01:00
Arturo Buzarra 7ea467dba7 dey-image-installer: remove path from README file for USB driver installation script
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-13 13:11:27 +01:00
Francisco Gil 27414d3420 meta-digi: revert revisions to AUTOREV
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-03-10 15:48:01 +01:00
Francisco Gil b59f31c114 meta-digi: update revisions for dey-4.0-r2.2
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-03-10 15:46:34 +01:00
Arturo Buzarra 358a7cc414 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-08 18:59:27 +01:00
Arturo Buzarra de3ba53ef3 meta-digi: update revisions for dey-4.0-r2.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-08 18:58:58 +01:00
Tatiana Leon a0842cbcfd ccimx8m: cloudconnector: connect to 'remotemanager.digi.com' not to use certificates
This commit modifies the cloud connector configuration to use
'remotemanager.digi.com' URL since it does not use certificates for the
connection.
'edp12.devicecloud.com' only allows connections with certificates.
The certificate is downloaded during the first device connection to DRM and
stored in '/etc/ssl/certs' directory inside the 'rootfs' partition.
Following connections must use this certificate.

After a firmware update 'rootfs' partition is re-programmed (standard boot)
or changed to use the corresponding partition of the other block (dual boot). In
any case the certificate downloaded is not available anymore, so the device is
not able to reconnect.

Currently there is no a 'immutable' partition to store the certificate, that is,
a place where the certificate is not removed during a firmware update and can
be used by the cloud connector (similar to the 'data' partition on a ccmp1)

Related to commit 063a946e7c.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-03-08 12:05:52 +01:00
Tatiana Leon ef9e14ab5b pulseaudio: launch pulseaudio in system mode
By launching in system mode it is possible to play music from a shell using
pulseaudio. With change all platforms and images (with or without graphical
support) have pulseaudio working.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-03-08 12:05:52 +01:00
Arturo Buzarra 29c9973d17 meta-digi-dey: bump distro version to 4.0-r2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-01 16:38:29 +01:00
Javier Viguera c3c5a17a96 dey-image-qt: fix adding new functions to ROOTFS_POSTPROCESS_COMMAND
With platform overrides we need to use ':append' operand. Otherwise, we
are overriding the previous content of the variable and not adding to it.

In this case, for example, we removed some postprocessing functions that
allow SSH into the device with an empty password.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-03-01 15:01:40 +01:00
Arturo Buzarra 2bf4aa098f wpa_supplicant/hostapd: update Murata wireless support to version imx-kirkstone-fafnir_r1.0
This commit updates the patch series for wpa-supplicant and hostapd v2.10,
based on the Murata release imx-kirkstone-fafnir_r1.0 that matches with the
Cypress Linux WiFi Driver (FMAC) release v5.15.58-2023_0222

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-01 11:12:36 +01:00
Arturo Buzarra aae03774ab Merge branch 'dey-4.0/master' into dey-4.0/maint 2023-02-27 16:34:53 +01:00
Tatiana Leon e1fa904b38 qt5: qt6: cinematicexperience: add shortcut to the demo in the desktop toolbar
This commit creates a new launcher group in the '/etc/xdg/weston/weston.ini' to
have access to the QT cinematicexperience.

This is done for QT5 (ccmp15, ccimx8mm, ccim8mn) and QT6 (ccimx93).

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-27 14:57:46 +01:00
Tatiana Leon 21e31425ad ccimx93: enable qt6 cinematicexperience demo
This commits includes 'cinematicexperience' to 'dey-image-qt' by default.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-27 14:57:46 +01:00
Tatiana Leon 286080e84a qt6: add cinematicexperience-rhi-tools to RDEPENDS qt6 packagegroup
This package installs in  '/usr/bin' a script to launch the cinematicexperience
QT demo.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-27 14:57:46 +01:00
Tatiana Leon 42687b87f5 qt5: add cinematicexperience-rhi-tools to RDEPENDS qt5 packagegroup
This package installs in  '/usr/bin' a script to launch the cinematicexperience
QT demo.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-27 14:57:46 +01:00
Tatiana Leon ec1ad99f45 ccimx93: add xbee support
ConnectCore 93 DVK only connects the XBee reset line (XBEE_RESET_N_GPIO) but not
the sleep request (XBEE_SLEEP_RQ_GPIO)

It also reworks the 'xbee-init' script to support empty reset
(XBEE_RESET_N_GPIO) or sleep request (XBEE_SLEEP_RQ_GPIO) values.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-27 14:57:35 +01:00
Javier Viguera adbb511484 meta-digi: remove True option to getVar
True is the default since long time ago, and thus not necessary. This
follows similar changes done in other layers.

Command used:

sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' | cut -d':' -f1 | sort -u)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-24 16:24:47 +01:00
Tatiana Leon ef84752539 sdk: dey-image-webkit: fix creation of dey-image-webkit toolchain
'do_populate_sdk' for dey-image-webkit was not working because of package
nghttp2:

   DNF version: 4.11.1
   --> Starting dependency resolution
   --> Finished dependency resolution
   Error:
    Problem: package nghttp2-dev-1.47.0-r0.1.cortexa53_crypto requires nghttp2 = 1.47.0-r0.1, but none of the providers can be installed

   conflicting requests

   nothing provides nghttp2-client >= 1.47.0 needed by nghttp2-1.47.0-r0.1.cortexa53_crypto

   nothing provides nghttp2-server >= 1.47.0 needed by nghttp2-1.47.0-r0.1.cortexa53_crypto(try to add '--skip-broken' to skip uninstallable packages)

   ERROR: Logfile of failure stored in: proj/ccimx8mm-dvk/tmp/work/ccimx8mm_dvk-dey-linux/dey-image-webkit/1.0-r0/temp/log.do_populate_sdk.2923894
   ERROR: Task (dey/4.0/sources/meta-digi/meta-digi-dey/dynamic-layers/webkit/recipes-core/images/dey-image-webkit.bb:do_populate_sdk) failed with exit code '1'

This commit creates a bbapend to allow empty 'nghttp2-client' and
'nghttp2-server' packages because 'nghttp2-dev' depends on 'nghttp2' that
depends on
'${PN}-client (>= ${PV}) ${PN}-proxy (>= ${PV}) ${PN}-server (>= ${PV})' per
the recipe at poky.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-24 15:11:40 +01:00
Isaac Hermida 03eb84c61e remove cryptodev support
The SW encryption is much faster than decicated HW in our platforms.
The HW encryption is limited to the use of CAAM which is used through
blob calls, therefore the cryptodev module is not required.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-02-24 14:29:48 +01:00
Javier Viguera 711d9b5883 meta-digi-dey: add missing runtime dependence for some packages
Packages bluez5-init, cloudconnector, and connectcore-demo-example-webkit
provide a launcher script that is used regardless of the init system being
systemd or sysvinit. Those launcher scripts use the '/etc/init.d/functions'
file, which is provided by the 'initscripts-functions' runtime package,
so add that runtime dependence.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-24 12:16:02 +01:00
Javier Viguera 80578a2bd0 meta-digi: use INIT_MANAGER to configure init system manager
This variable introduced in Yocto 3.0 is the recommended way to configure
the init manager.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-24 12:16:02 +01:00
Javier Viguera d27202ac5b dey.conf: include poky.conf to remove duplicated code
No functional change, just include poky.conf (which is the base for our
distro) and then remove all the code that is duplicated.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-24 12:16:02 +01:00
Javier Viguera 82dc50b6ef meta-digi: update layer to follow changes in meta-freescale
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-22 11:05:08 +01:00
Arturo Buzarra 0c214a3980 systemd-conf: set actions to trigger on KEY_POWER events
This commit adds a custom config file to handle the KEY_POWER events on systemd.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-02-21 13:47:23 +01:00
Arturo Buzarra 199ab73078 systemd-conf: rename Digi custom config file
This custom config file applies not only the NXP platforms so this commit
renames it.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-02-21 13:47:23 +01:00
Mike Engel 925d96155b ccmp1: add mtd-utils for CCMP1 platform
This commit adds the mdt-utils to the CCMP1 platform and
builds the tools with cyptographic support.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2023-02-16 10:06:29 +01:00
Tatiana Leon 5eb0f07906 networkmanager: ifupdown: add a setting to disable this feature
The 'ifupdown' script does not allow to disconnect a network interface on
purpose. Once it is down, the script will reconnect it again.

This commit adds a configuration section inside 'NetworkManager.conf' to be able
to manage this behavior. By default, it is disabled.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-15 09:36:42 +01:00
Javier Viguera 0f1dfc3823 meta-digi: recipe updates following changes in meta-freescale
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-14 16:43:00 +01:00
Tatiana Leon be17cb5bc2 ccimx6ul: pulseaudio: fix error during boot
On boot, ConnectCore 6UL was failing to start pulse audio since it was trying
to use journalctl as log target when systemd is not included.

Boot error:

   Starting Dropbear SSH server: dropbear.
   W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
   E: [pulseaudio] log.c: Invalid log target.
   E: [pulseaudio] cmdline.c: Invalid log target: use either 'syslog', 'stderr' or 'auto' or a valid file name 'file:<path>', 'newfile:<path>'.
   E: [pulseaudio] main.c: Failed to parse command line.
   Starting bluetooth: bluetoothd.

While on it change the 'connectcore-demo-server' priority to be launched after
pulseaudio when not using systemd.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-14 12:05:50 +01:00
Tatiana Leon 3f9c93ecdf connectcore-demo: move video and webgl example recipes
Move 'video-examples' and 'webglsamples' recipes outside dynamic-layers/webkit
so platforms without 'webkit' support (such as ConnectCore 6UL) are able to
include and build successfully the complete 'connectcore-demo-example'

Related to 0b9b73afc8

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-10 11:41:30 +01:00
Arturo Buzarra 4dbbdcafb1 qt5: include Qt sample apps for ccmp15 platform
This commit includes by default several Qt applications to show the graphical
capabilities of the CCMP15 platform.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-02-10 11:04:41 +01:00
Javier Viguera a90a3b9898 dey-image-webkit: add compatibility with ccimx93
While on it, sort compatible machines alphabetically.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-08 14:14:39 +01:00
Javier Viguera 8a576abfea packagegroup-dey-gstreamer: rework MACHINE_GSTREAMER_1_0_EXTRA_INSTALL
We need some of the extra gstreamer packages added via
MACHINE_GSTREAMER_1_0_EXTRA_INSTALL for the ccimx93, but as the ccimx93
does not have an 'imxgpu' override, they don't get added. Instead, add
the packages for all the NXP platforms by removing the override and then
empty the variable for the 'ccimx6ul' for space-saving purposes.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-08 12:05:17 +01:00
Javier Viguera 0da87c3740 meta-digi: get rid of accel-video machine feature
accel-video was being used only for including or not gstreamer in the
different DEY images. But then we had exceptions to include gstreamer for
machines that do not define accel-video, so just follow what the ccmp15
does, and use a generic 'gstreamer' distro feature to add 'dey-gstreamer'
support to the images.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-08 12:05:15 +01:00
Javier Viguera cdda928edb meta-digi: clean up MACHINE_GSTREAMER_1_0_PLUGIN
MACHINE_GSTREAMER_1_0_PLUGIN should contain the machine-specific gstreamer
plugin to use, but not the rest of the packages to be included in the
rootfs. So clean that variable up, and add the dependent packages in the
dey-gstreamer package group.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-08 12:04:06 +01:00
Tatiana Leon 2130f04f21 ccmp15: webkit: image: reduce webkit image size
Generated webkit rootfs image for the ConnectCore MP15 is too big to fit in a
dual boot system.

This commit redefines 'dey-webkit' packagegroup not to include connectcore
demo multimedia feature in ccmp1 platforms.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-07 14:00:52 +01:00
Tatiana Leon 454200633f images: remove package-management for all digi images
'package-management' allows to install packages in runtime. This feature is not
usually utilize by customers so we are removing this support from all images.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-07 14:00:52 +01:00
Tatiana Leon 0b9b73afc8 connectcore-demo: separate in several packages
This commit separates the original 'connectcore-demo-example' package in 3
packages:

  1. 'server' package. It contains the 'demoserver.py' script and its
     corresponding systemd service and init script.
     This script is required for the local demo and to be used with the
     Bluetooth application (during the get started process)

  2. 'example' package. It contains the html and required resources (images,
     javascript, etc.) to use the demo locally, except for the multimedia
     resources.
     This package depends (in runtime) on the 'server' package.

  3. 'multimedia' package. It contains the multimedia html and required
     resources (images, javascript, videos, etc.) to use the multimedia demo
     features locally.
     This package depends (in runtime) on the 'example' package and also on
     'video-examples' and 'webglsamples' packages.

This split allows to select the required demo packages per platform and image
type.

By default, the 'multimedia' package is the one included in the webkit images,
but the 'example' package is the one included in the rest of images.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-07 14:00:52 +01:00
Tatiana Leon bb12e4b7c8 cog: do not manually append 'wl' to PACKAGECONFIG
Partially reverts commit 668b4e8138.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-07 14:00:52 +01:00
Tatiana Leon feea2179ad ccmp15: connectcore demo: fix autostart of demo application on top of weston
This commit is similar to those required to launch crank applications on top of
weston in ConnectCore MP 15 platform, it must wait for the socket
'/run/user/0/wayland-1' after weston is initialized.

See commits 7de8270beda64236cdd1c46857906315a37dc4fe and
1ec5cc172c.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-07 14:00:52 +01:00
Tatiana Leon b305808539 ccmp15: cog: fix cog build
Do not build 'drm' platform for ccmp1 platforms. The code for 'drm' does not
properly build out of the box in cog version 0.14.1 and some patches are
required.

Since 'drm' platform is not being used, remove it for ccmp1 instead of fixing
the build process.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-07 14:00:52 +01:00
Tatiana Leon 1214a094b6 ccmp15: crank-demo: fix autostart of crank app on top of weston
NXP and ST platforms launches weston in a different way. In ccmp15 we must wait
for the socket at '/run/user/0/wayland-1' after weston is initialized, while
that is not required on NXP platforms.

This commit reverts part of the changes in commit
31d9863fea.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-07 14:00:52 +01:00
Javier Viguera 747dbddf3b meta-digi: more updates and cleanups for NXP's 5.15.71_2.2.0 release
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-06 17:37:27 +01:00
Javier Viguera 9739af6bbc meta-digi-dey: delete tcf-agent bbappend and patches
So we use the more up-to-date recipe in poky.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-06 17:35:56 +01:00
Arturo Buzarra 87d05a08a0 core-image-base: remove package-management for core-image-base images
In order to reduce the final size in the rootfs, this commit removes the
package manager for the core-image-base images.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-02-06 11:13:38 +01:00
David Escalona d2ac6f7093 bluez5: v5.65: update Digi customizations patch to remove battery plugin
Starting at Bluez 5.48, the battery characteristic was moved to the
DBUS org.bluez.Battery1 interface. This causes the device to try to
read information from iOS devices after establishing a connection,
triggering a reverse pairing request. This scenario causes random
disconnects in iOS devices unless a trust agent is registered in the
host to take care of the pairing. Removing the battery plugin at
startup fixes the issue.

Signed-off-by: David Escalona <david.escalona@digi.com>
2023-02-06 10:41:08 +01:00
Isaac Hermida 98511f5a60 connectcore-demo-example: set environment variables
To avoid bad image escalation, export COG environment variables.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-02-03 08:27:21 +01:00
Isaac Hermida b2b76fd823 recipes-browser: cog: revert fullscreen patch
There is an environment option "COG_PLATFORM_WL_VIEW_FULLSCREEN" for
that purpose, so do not patch the code.
Set that variable to true if you want "cog" to be started in
fullscreen mode.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-02-03 08:27:21 +01:00
Javier Viguera 0368bb6b4e meta-digi-dey: add QT6 support
https://onedigi.atlassian.net/browse/DEL-8347

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-02 18:03:38 +01:00
Javier Viguera d8817e9f46 meta-digi-dey: copy QT6 recipes into dynamic layers
Mostly a verbatim copy of the recipes in 'meta-imx' as of release
rel_imx_5.15.71_2.2.0, with a couple of changes:

* packagegroup-qt6-imx.bb renamed to packagegroup-qt6-dey.bb
* removed 'nxp-demo-experience' from packagegroup-qt6-dey.bb as the recipe
  lives in a different layer 'meta-nxp-demo-experience' which we currently
  don't clone under DEY.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-02 18:03:38 +01:00
Javier Viguera 14e504344f meta-digi-dey: make QT5 optional
Remove the 'qt5-layer' hardcoded dependence for 'digi-dey' and
dynamically get whether QT5 is being used in the project. This is done
with a new class _qt-version.bbclass_ that is able to get that
information from the project.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-02 18:03:38 +01:00
Javier Viguera ae55a43695 meta-digi-dey: create QT5 dynamic layer support and move recipes
This is in preparation of dual QT5/QT6 support in DEY.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-02 18:03:38 +01:00
Javier Viguera 20eb907de0 dualboot: fix runtime dependences
Several fixes to the runtime dependences:

* Use new override syntax with ':'
* There is not "dualboot-init" package only "dualboot"
* Delete dependence on trustfence-tool

While on it, define do_configure and do_compile as noexec, because those
tasks do not need to execute, and remove the wrong PACKAGE_ARCH entry
(as this package is arch/machine agnostic)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-02 10:21:21 +01:00
Javier Viguera 9f7ed3e2b1 dey-image-graphical: add 'weston' image feature
For 'wayland' enabled distro features, 'weston' is added as image
feature. This is later used in poky to change the SYSTEMD_DEFAULT_TARGET
to 'graphical.target' which is the correct systemd default target for
graphical images.

This allows to delete the workaround we have in 'weston-init'
recipe to start weston automatically on boot.

Also delete some packages from CORE_IMAGE_EXTRA_INSTALL:

- weston-init and weston-examples are included as part of the 'weston'
  image feature.
- gtk+3-demo: removed from the default images, as it is a graphic framework
  we are not promoting.
- xterm: removed as weston does already provide a terminal (weston-terminal).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-02 10:21:21 +01:00
Hector Palacios ab4ab168aa libsoc: remove dependency of Digi clone repo
The commits in Digi clone have been merged to the public
libsoc repo.
Adjust the SRCREV to the latest available commit at the moment
(545b354968a9d03008e1e86e14c58e3f8423a20c) and remove the
dependency with Digi clone.

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

https://onedigi.atlassian.net/browse/DEL-8218
2023-02-02 09:29:02 +01:00
Arturo Buzarra c4f2fce4d3 dey-examples: connectcore-demo: remove unused images to reduce package size
This commit removes unused platform images to reduce the final size in the
rootfs.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-01-30 17:02:46 +01:00
Isaac Hermida 1467244b04 cog: fix mouse pointer
Apply patch to show mouse pointer, see commit
fe83f9b721

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-01-27 11:31:10 +01:00
Isaac Hermida e68316d382 connectcore-demo-example: webglsamples: set aquarium options
Set the options to false, so user can enable it and see the effect and how
it loads the performance.
Just starting with those options ON leads to a loaded system and the first
impression is too bad.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-01-26 11:42:17 +01:00
Hector Palacios 3a1a7dd47c aws: remove aws from dey-core and dey-examples packagegroups
AWS has been removed from the documentation for having little use.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-01-24 09:27:39 +01:00
Hector Palacios 162231f87d libical: remove icu package from ccmp1 where storage is scarce
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-01-24 09:27:39 +01:00
Javier Viguera a9c06bc432 weston-init: add customizations for ccimx93
Update the recipe (using meta-imx's reference) to add support for the
ccimx93 and delete obsolete code.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-19 17:24:41 +01:00
Javier Viguera 31d9863fea crank-demo: fix autostarting app on top of weston
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-18 14:50:39 +01:00
Hector Palacios b4c65056fa dey-image-installer: remove boot-artifacts.bbclass
The class 'boot-artifacts.bbclass' was created to generate a
list of the bootable artifacts that must be copied from the
deploy dir to the installer ZIP file, so that the installer
has all the possible bootloader files to update any variant
of the hardware.
The class was somewhat over-engineered to produce the list,
specially for the cc8x, with the variants of SoC revision,
RAM size and width. With the arrival of ST family, it got
more complex, as the artifacts don't even come from U-Boot
recipe.

To remove complexity, this commit removes the bbclass and
moves the list to the platform config file.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-01-18 10:55:47 +01:00
Francisco Gil f50b9b7fc6 meta-digi: ccmp15: add v4l-utils to default images
v4l-utils contains tools to manage the camera.
We have also documented all these commands in our
documentation

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-01-18 10:51:26 +01:00
Javier Viguera 872cd2b68b swupdate: rename bbappend so it applies to new version
meta-swupdate updated swupdate to version v2022.12, so we need to update
our bbappend to apply to that version. Otherwise firmware update is
failing due to some missing swupdate handlers.

As our bbappend is generic enough, use a wildcard bbappend so it applies
to all swupdate versions.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-17 17:29:24 +01:00
Hector Palacios 90867ccc82 recovery-initramfs: add script and mdev rule for UBI volumes
On systems with a single MTD system partition and multiple UBI
volumes, the initramdisk doesn't mount the 'update' partition
because mdev rules only trigger events for MTD partitions.

This commit adds a rule to trigger an event for every /dev/ubi0_x
(every UBI volume on ubi0 device) and call the new automount_ubi.sh
script. The script checks if the volume is called 'update' and if
so, it creates /mnt/update mountpoint and mounts the volume.

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

https://onedigi.atlassian.net/browse/DEL-8297
(cherry picked from commit df9c622b1bf0a7307c61deda12cf1f67d4f630f0)
(cherry picked from commit 8b8f9560af)
2023-01-17 16:50:11 +01:00
Hector Palacios 8b8f9560af recovery-initramfs: add script and mdev rule for UBI volumes
On systems with a single MTD system partition and multiple UBI
volumes, the initramdisk doesn't mount the 'update' partition
because mdev rules only trigger events for MTD partitions.

This commit adds a rule to trigger an event for every /dev/ubi0_x
(every UBI volume on ubi0 device) and call the new automount_ubi.sh
script. The script checks if the volume is called 'update' and if
so, it creates /mnt/update mountpoint and mounts the volume.

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

https://onedigi.atlassian.net/browse/DEL-8297
(cherry picked from commit df9c622b1bf0a7307c61deda12cf1f67d4f630f0)
2023-01-17 13:53:21 +01:00
Mike Engel aedd41e822 crank: remove user from sbengine execution command
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2023-01-16 10:52:06 +01:00
Mike Engel f20e127a82 crank: remove weston user from demo configuration
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2023-01-16 10:52:06 +01:00
Mike Engel afc0bc6ef5 swupdate: remove post installation scripts when building squashfs
This commit removes the on-target post installation function for read-only rootfs,
as it will fail trying to edit files.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2023-01-16 10:29:30 +01:00
Mike Engel 35b56653cd cloudconnector: remove post installation scripts when building squashfs
This commit removes the on-target post installation function for read-only rootfs,
as it will fail trying to edit files.

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

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2023-01-16 10:29:30 +01:00
Isaac Hermida b90fcda302 connectcore-demo-example: fix start of service
Change the condition to start after the weston service.
While on it, add a "requires" option given that weston is mandatory to have
the "cog" tool running.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-01-12 17:21:28 +01:00
Francisco Gil f6eeb0fdfb meta-digi: ccmp15: add v4l-utils to default images
v4l-utils contains tools to manage the camera.
We have also documented all these commands in our
documentation

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-01-12 08:42:54 +01:00
Tatiana Leon 5a3376af21 libconfuse: use recipe in meta-openembedded
Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-01-11 19:04:48 +01:00
Javier Viguera c2a333de76 meta-digi: another round of updates following meta-freescale
meta-freescale did another merge of recipe updates that we need to follow
to prevent build failures.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-11 17:22:52 +01:00
Javier Viguera 54c71f587a qtwayland: disable vulkan pkgconfig for mx8mm
This was incorrectly removed in last commit affecting this recipe. Removing
vulkan config option is needed to prevent a build failure.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-10 15:48:39 +01:00
Javier Viguera c2c527cf8d crank-demos: fix failing sed command
The WESTON_SERVICE variable may contain the '@' character. In that case
the sed command fails due to using the same character as separator. To
prevent this problem use a different separator for the sed command.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-10 12:04:40 +01:00
Javier Viguera 7f6bbf14e1 meta-digi-dey: enable wayland-protocols and weston for ccimx93
meta-freescale does not provide the proper overrides for imx93, so add
them here.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-09 16:29:21 +01:00
Javier Viguera 3e0d3bd18d qtwayland: update to support ccimx93
Native X11 is not supported for ccimx93 (dropped by NXP), so remove
xcomposite-egl and xcomposite-glx packageconfig options.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-09 16:29:09 +01:00
Javier Viguera 2a97d8886b xbee: allow creating xbee runtime empty package
All files go to xbee-init package, so by default xbee package is not
created. This leads to a failure when building the SDK:

Error:
 Problem: conflicting requests
  - nothing provides xbee = 1.0-r0.0 needed by xbee-dev-1.0-r0.0.ccimx8mm_dvk

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-04 13:46:08 +01:00
Javier Viguera b72a3425b1 wayland: clean up recipe and remove not needed patch files
Cleaned code comes from older yocto versions (not needed anymore), and is
causing a build failure when building the nativesdk package.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-04 10:53:45 +01:00
Isaac Hermida 22ccaeaa76 swupdate: change logic for service
The variable dualboot might not be defined or well have an invalid
value. Just keep the service running if it is a dualboot model.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-01-03 13:10:56 +01:00
Isaac Hermida 164a5ffc1a pulseaudio: use custom conf file
https://onedigi.atlassian.net/browse/DEL-8264

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-01-03 12:59:03 +01:00
Isaac Hermida 7fa82c528b bluez5-init: fix start on systemd
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-01-03 12:59:03 +01:00
Hector Palacios 7c580a3896 busybox: send resume actions to the background
Make the script send the resume actions to the background
so that console returns to the user without having to wait
for the Wi-Fi module to load and the Bluetooth to attach.

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

https://onedigi.atlassian.net/browse/DEL-8262
2023-01-03 08:33:45 +01:00
Hector Palacios 1417728098 busybox: merge standby related files
The following files were duplicated across platforms but were
identical or almost identical.

Only used on SysVinit (currently only by default on the CC6UL).
- standby
- acpid.map

Only used on SystemD
- standby-actions

Notes:
- The triggering of udev actions are harmless if the interfaces
  don't exist.
- The value of KEY_POWER on acpid.map for CC6/CC6Plus was originally
  0 instead of 1, but this file is not currently used in systemd.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-01-03 08:33:33 +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
Francisco Gil 54f3aebd2c ccmp13: dey-examples: update the configuration file for ccmp13
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-12-21 11:01:08 +01:00
Javier Viguera cfa581c958 meta-digi: add override files for ccimx93
These are just a verbatim copy of the ccimx8mm ones, so the project is
buildable. This file list should be revisited and adapted for the
ccimx93.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-12-20 14:50:54 +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
Javier Viguera 2e9528df40 meta-digi: remove outdated overlayed recipes
A new set of meta-freescale updates made these recipes outdated.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-30 15:07:52 +01:00
Javier Viguera 83a3aa22e4 Merge tag 'dey-4.0-r1.2' into dey-4.0/master
Digi Embedded Yocto 4.0-r1.2

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-30 15:01:06 +01:00
Arturo Buzarra 93a4dd2db5 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-29 16:35:27 +01:00
Arturo Buzarra 2ca5dfe31e meta-digi: update revisions for dey-4.0-r1.2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-29 16:34:56 +01:00
Javier Viguera 7acf3a58e0 meta-digi: remove some more overlayed recipes
There are new versions of these recipes in meta-freescale.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-28 10:40:06 +01:00
Javier Viguera 99a61e12a1 meta-digi: delete outdated opencv bbappend
A new set of meta-freescale updates broke our layer, because they
updated opencv package and our bbappend does not apply anymore.

The build fails at parsing:

ERROR: No recipes in default available for:
  meta-digi/meta-digi-dey/dynamic-layers/freescale-layer/recipes-support/opencv/opencv_4.5.2.imx.bbappend

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-28 10:32:53 +01:00
Tatiana Leon f4ded09351 meta-digi-dey: python3-xbee: add required asyncio python package
This package includes the concurrent module required by the XBee library
(to use ThreadPoolExecutor)

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-11-25 16:59:45 +01:00
Tatiana Leon 0792b45a80 recovery: add support to update a specific image set
Add a new parameter '-i' to update-firmware to let the user
select a specific image_set of the sw-description file to
use during the swu update.

This allows adding different image_sets on the sw-description
and reduce the number of images to build. It also adds more
future-proof flexibility.

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

https://onedigi.atlassian.net/browse/DEL-8199
2022-11-23 17:19:05 +01:00
Javier Viguera deed93cfb3 recovery-initramfs-init: delete mdev's cold scan
In previous line we are launching the mdev in daemon mode. One of the
first tasks the daemon mode performs is a cold scan, so there is no need
to repeat it afterwards.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-23 10:26:00 +01:00
Javier Viguera 8df1b0c246 swupdate: do not run swupdate daemon on non-dualboot devices
On recovery based devices, the swupdate process is executed in the
recovery, so there is no need to have the swupdate daemon running on the
rootfs.

Add a on-target post installation script to disable the swupdate
bootscript on the normal rootfs. This has the side effect of failing in
the recovery initramfs because the initramfs does not have a complete
SysV init system. For that case add a rootfs postprocess function to
delete the postinst script.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-23 10:23:25 +01:00
Francisco Gil f308ccfa66 update-firmware: rename the firmware-update from recovery-utils
There is a problem when building the SDK because two binaries
have the same name (update-firmware) and makes the compilation
to fail.

Change the name to update-firmware.recovery and create a wrapper
over the update-firmware to check if the system is not dual boot
to call it.

Rework the code to make it more reliable.

Remove the umount of the alternative linux partition, now it is
not needed because only the active linux partition is mounted now.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-22 11:42:39 +01:00
Francisco Gil cae4c1f1dc recovery: change the name of the file descriptor to check
Now in the file descriptor we have three different names:
platform, primary and secondary.
Also a link from 'platform' to 'single' to keep backward
compatibility.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-22 11:42:39 +01:00
Francisco Gil 0328295ea8 dualboot: run the script only in dualboot systems
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-22 11:42:39 +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
Arturo Buzarra 0efbb07107 meta-digi: branch to dey-4.0/maint
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-21 17:44:48 +01:00
Tatiana Leon 063a946e7c cc6ul: cloudconnector: use 'remotemanager.digi.com' not to use certificates
This commit modifies the cloud connector configuration to use
'remotemanager.digi.com' URL since it does not use certificates for the
connection.
'edp12.devicecloud.com' only allows connections with certificates.
The certificate is downloaded during the first device connection to DRM and
stored in '/etc/ssl/certs' directory inside the 'rootfs' partition.
Following connections must use this certificate.

After a firmware update 'rootfs' partition is re-programmed (standard boot)
or changed to use the corresponding partition of the other block (dual boot). In
any case the certificate downloaded is not available anymore, so the device is
not able to reconnect.

Currently there is no a 'immutable' partition to store the certificate, that is,
a place where the certificate is not removed during a firmware update and can
be used by the cloud connector (similar to the 'data' partition on a ccmp1)

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-11-21 12:39:05 +01:00
Tatiana Leon fd94f10c0b ccmp1: cloudconnector: use '/mnt/data' as the place to store the certificate
The directory '/etc/ssl/certs' is in the 'rootfs_x' partition for dual boot or
'rootfs' for standard boot. In any case this certificate cannot be used after
updating because it is stored in the other block partition (for dual boot) or
because the whole partition has be re-programmed (for standard boot).
So, after a firmware update the device will not be able to reconnect to DRM
unless the user revokes the certificate.

This commit changes the certificate directory to be '/mnt/data' where 'data'
partition is mounted. This is not erased during a firmware update, so cloud
connector can use the already downloaded certificate and the device is able to
reconnect to DRM.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-11-21 12:38:59 +01:00
Javier Viguera bbd58825c4 recovery-utils: relax command mode check
As a result of the dualboot support we may end up with two
'update-firmware' commands in the rootfs. To prevent file name clashing,
we may need to install the recovery-utils update-firmware as
update-firmware.recovery, and then the current command mode check would
fail.

Relax the check, by just looking at the first character.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-17 16:24:52 +01:00
Tatiana Leon 8f92f634c3 meta-digi-dey: crank: crank-demos: add variables to set the tarballs SHA256
As we are going to document how to build Crank images using our own recipes, we
need a way for customers to provide the sha256 of the engine and demos tarballs:

  * Storyboard Engines are not available as a compressed file, it is a directory
    available after the installation of the whole Storyboard software, next to
    Storyboard Designer, samples, and other resources. The installer is only
    available after filling a form and receiving an email with the link and a
    license key valid for 1 month.

    To use our 'crank-sbengine_7.2.bb' recipe, users must create the tarball
    from this directory and provide its path in the 'CRANK_ENGINE_TARBALL_PATH'
    and its sha256 in 'CRANK_ENGINE_TARBALL_SHA256'.

  * Regarding Storyboard applications, the included demo in the prebuilt image
    is not publicly available, but customers can use the same recipe to install
    their own applications.

    To use our 'crank-demos_7.2.bb' recipe, users must create a tarball with
    the exported application from Storyboard Designer and provide its path in
    the 'CRANK_DEMOS_TARBALL_PATH' and its sha256 in
    'CRANK_DEMOS_TARBALL_SHA256'.
    There are also other configurable parameters such as 'CRANK_DEMO_PATH' or
    'CRANK_DEMO_OPTIONS'.

The process of adding support to Crank Storyboard applications will be fully
documented as new topics.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-11-17 10:09:02 +01:00
Mike Engel 501a0dbd21 swupdate: add CONFIG_MTD only when platform supports NAND device
https://onedigi.atlassian.net/browse/DEL-7280

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-11-16 13:46:35 +01:00
Arturo Buzarra 7d9f278c41 swupdate: add config fragment to fix systemd initialization
Since commit 554b97a ("swupdate: Set service type to notify") in meta-swupdate
layer, the swupdate service fails on boot due to the following timeout error:

    swupdate.sh[2708]: [TRACE] : SWUPDATE running :  [listener_create] : creating socket at /tmp/swupdateprog
    swupdate.sh[2708]: [TRACE] : SWUPDATE running :  [listener_create] : creating socket at /tmp/sockinstctrl
    systemd[1]: swupdate.service: start operation timed out. Terminating.
    systemd[1]: swupdate.service: Failed with result 'timeout'.
    systemd[1]: Failed to start SWUpdate daemon.

This commit adds a config fragment to enable systemd support to swupdate daemon.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-15 13:34:48 +01:00
Francisco Gil 7c07b15370 update-firmware: change the way to determine nand device
The partition "environment" is not available in the ccmp15.

The solution suggested is read the "/proc/mounts" and check if
the "rootfs" is "ubifs" mounted.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-15 07:54:26 +01:00
Francisco Gil 116cb2ac26 swu-images: fix sha256 entry from sw-description file in dualboot
This commit fixes the following build warning with the swupdate v2022.05:

WARNING: dey-image-qt-swu-1.0-r0 do_swuimage: Syntax for sha256 changed,
please use $swupdate_get_sha256(dey-image-qt-wayland-ccmp15-dvk.boot.ubifs)
WARNING: dey-image-qt-swu-1.0-r0 do_swuimage: Syntax for sha256 changed,
please use $swupdate_get_sha256(dey-image-qt-wayland-ccmp15-dvk.ubifs)
WARNING: dey-image-qt-swu-1.0-r0 do_swuimage: Syntax for sha256 changed,
please use $swupdate_get_sha256(dey-image-qt-wayland-ccmp15-dvk.boot.ubifs)
WARNING: dey-image-qt-swu-1.0-r0 do_swuimage: Syntax for sha256 changed,
please use $swupdate_get_sha256(dey-image-qt-wayland-ccmp15-dvk.ubifs)
WARNING: dey-image-qt-swu-1.0-r0 do_swuimage: Syntax for sha256 changed,
please use $swupdate_get_sha256(dey-image-qt-wayland-ccmp15-dvk.boot.ubifs)
WARNING: dey-image-qt-swu-1.0-r0 do_swuimage: Syntax for sha256 changed,
please use $swupdate_get_sha256(dey-image-qt-wayland-ccmp15-dvk.ubifs)
WARNING: dey-image-qt-swu-1.0-r0 do_swuimage: Syntax for sha256 changed,
please use $swupdate_get_sha256(dey-image-qt-wayland-ccmp15-dvk.boot.ubifs)
WARNING: dey-image-qt-swu-1.0-r0 do_swuimage: Syntax for sha256 changed,
please use $swupdate_get_sha256(dey-image-qt-wayland-ccmp15-dvk.ubifs)


Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-15 07:51:05 +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 272edd8af7 meta-digi: remove obsolete overlayed recipes
Code clean up, remove recipes that have been updated in meta-freescale.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-14 11:09:43 +01:00
Arturo Buzarra 9936c192d2 dualboot: fix initialization systemd service
According to the Yocto reference manual, we need to specify the package name
override to indicate the package to which the value applies.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-14 10:20:02 +01:00
Tatiana Leon 13f2924399 ccmp15: crank: remove some features from crank image to reduce its size
Generated Crank rootfs image for the ConnectCore MP15 is too big to fit in a
dual boot system. This commit removes gstreamer and package-management features.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-11-11 10:08:34 +01:00
Tatiana Leon e951c89073 meta-digi-dey: crank: update to Crank engine 7.2 and demo
This commit updates:

   * Crank engine version to the latest one (7.2)
   * Crank demo to the provided one instead of the Thermostat example.
     New demo is a launcher that includes 3 applications:
        * Electrical vehicle charger demo
        * Robot arm demo
        * Medical demo

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-11-11 10:05:43 +01:00
Arturo Buzarra 49dbae051e dey-image-installer: fix recipe to add USB driver installation script
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-10 10:57:16 +01:00
Arturo Buzarra feab76d675 dey-image-installer: fix ZIP installer generation for ccmp1 platforms
The ccmp1 build generates ubifs images for the NAND on the device and vfat and
ext4 images for the SD card. This commit reuses the already implemented
mechanism to match only ubifs images for the ccmp1 platforms.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-10 10:57:16 +01:00
Francisco Gil 19bf22059f ccmp15: dey-examples: update the configuration file for ccmp15
https://onedigi.atlassian.net/browse/DEL-8151

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-09 08:13:51 +01:00
Javier Viguera df572d0ef3 meta-digi: delete linux 5.4 recipe
No supported platform is using kernel version 5.4.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-08 14:20:51 +01:00
Tatiana Leon 9b1008c7fd libdigiapix: ccimx6ulsbc: update user button GPIO
Cloud Connector opens USER_BUTTON GPIO as an interrupt to listen for rising and
falling edge events and upload them to Remote Manager as data point values.
Having MCA_IO1 as user button and opened by the Cloud Connector (or any other
software) prevents the device to go to sleep when it is not connected (all
MCA GPIOs are wake-up sources when configured as interrupt)

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-11-07 18:43:44 +01:00
Isaac Hermida c7f2960b4e meta-digi: revert revisions to AUTOREV
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-11-04 12:38:21 +01:00
Isaac Hermida dad34f1006 meta-digi: update revisions for dey-4.0-r1.1
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-11-03 18:21:46 +01:00
Arturo Buzarra 0001e6608d modemmanager: fix blacklist rules for Ethernet interfaces on ccmp13 platform
This commit fixes the Ethernet entries to prevent ModemManager from trying to
manage it:
    ModemManager[177]: <info>  [base-manager] couldn't check support for device
     '/sys/devices/platform/soc/5800a000.eth1': not supported by any plugin

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-31 07:52:09 +01:00
Arturo Buzarra 0eb0f15e7b pulseaudio: add support to pulseaudio-server initscript for sysvinit system
This commit fixes the pulseaudio recipe to launch the pulseaudio-server
service at boot time for sysvinit systems.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-31 07:51:22 +01:00
Arturo Buzarra 3b99bf3821 pulseaudio: define runtime user-specific directory XDG_RUNTIME_DIR
This commit exports the environment variable XDG_RUNTIME_DIR if does not exists
for services that require sharing a pulseaudio instance.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-31 07:50:33 +01:00
Francisco Gil 9cd5ae591d usb_driver: add a script to install Cypress usb driver
The new DVKs of the cc8mn, cc8mm and ccmp1 have a new ftdi
usb to serial chip that is recognized as a thermal device by default.

With the install_usb_driver.sh script this driver is replaced
to a USB to serial driver.

This script is included for the needed platforms in the zip
installer provided in the getting started.

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

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-10-26 11:30:46 +02:00
Francisco Gil 8c1b0f8f9e dualboot: get rid of configuration file for dualboot
Now the cloud connector has all the logic to detect if its
running in a dual_boot system, so it is not needed this anymore.

We need to modify on the fly the path to save the image in a
dualboot system.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-10-26 11:29:23 +02:00
Francisco Gil 378135b9c6 dualboot: rename firmware-update-dual.sh to update-firmware
Use the same name for both firmware update mechanism.

Add a dependency to only add recovery-utils used by the
non dual-boot firmware update system.

Adding this only one binary/script called update-firmware will
be added.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-10-26 11:29:23 +02:00
Hector Palacios 1105a8fecd dualboot: move contents of meta-digi-dualboot layer into meta-digi as a class
- create dualboot.bbclass that
  - sets DUALBOOT_ENABLED variable
  - defines partition names and function for changing the sw-description
    for swupdate
- move files from layer into meta-digi

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

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

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-10-26 11:29:23 +02:00
David Escalona 1ec5cc172c meta-digi-dey: crank-demos: fix crank demo for CCMP15
Crank demo was not working on CCMP15 devices due to several changes on weston
service and the user launching it. This commit makes several fixes to make
the demo to work again:

- Add 'DEMO_USER' parameter to determine which user will launch the demo. Update
  recipe and start script accordingly.
- Add 'DEMO_DISPLAY' parameter to determine the display that will be used to
  launch the demo. Update recipe and start script accordingly.
- Parameterize the name of the Weston service after which the demo must be started.
  Update recipe and service file accordingly.
- Give Crank engine read and execution permissions so the engine can be started
  by any user.
- Add new method to the demo start script to wait until Wayland is fully setup
  before actually starting the demo.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-25 18:09:27 +02:00
David Escalona 64cea0e066 meta-digi-dey: dey-examples: add required packages to 'connectcore-demo'
The new ConnectCore demo functionality makes use of some new Python libraries. Add these libraries
as a dependency in the demo recipe.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-25 18:09:27 +02:00
Arturo Buzarra 30022f556b run-postinsts: Set dependency for ldconfig to avoid boot issues
If a package with a postsints script requires ldconfig, the package class adds
a ldconfig postinst fragment to initialize it before. Systemd has its own
ldconfig.service to initialize it and sometimes if both services are running
at the same time in the first boot, the first one will work, but the second
one will fail with the following error:

    ldconfig[141]: /sbin/ldconfig: Renaming of /etc/ld.so.cache~ to /etc/ld.so.cache failed: No such file or directory

This commit adds an ordering dependency between them to make sure that only one
service is running at the same time

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-21 17:48:20 +02:00
Arturo Buzarra 3e0d713837 sysinfo: improve script to avoid errors on platforms without some variables
This commit improves the sysinfo script to skip error on platforms that don't
provide some variables.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-20 09:32:35 +02:00
Javier Viguera cd9e12da32 meta-digi-dey: on CC6UL add connectcore demo only for core-image-base
If we add the demo to the graphical images (dey-image-qt) the resulting
image does not fit on the rootfs partition for the smallest variant.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-10-18 11:30:26 +02:00
Tatiana Leon 23fe285d62 meta-digi-dey: libdigiapix: add 'bluez5' dependency required by new features
https://onedigi.atlassian.net/browse/DEL-8065
https://onedigi.atlassian.net/browse/DEL-7964

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-10-13 15:07:35 +02:00
Arturo Buzarra 269b148c60 libdigiapix: ccmp15: fix user LED for DVK v2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-10 14:40:39 +02:00
David Escalona b0db58fe53 meta-digi-dey: cloudconnector: add 'json-c' dependency required by new features
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-07 16:49:12 +02:00
David Escalona 44a3c1a123 meta-digi-dey: dey-examples: start pulseaudio with 'connectcore-demo' example
The demo now has a "Play music" feature, which requires pulseaudio to be running in the device.
This commit checks if pulseaudio is running before starting the demo, and starts the service in
the case it is not.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-10-07 16:49:12 +02:00
Arturo Buzarra 443b5dbc1d pulseaudio: add support to ccmp1 platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-05 13:05:21 +02:00
Arturo Buzarra 6efe239a23 packagegroup-dey-audio: add pulseaudio packages for non-graphical images
These packages were added only for graphical images, however it could be used
also in non-graphical environments. This commit removes this restriction.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-05 09:17:56 +02:00
Arturo Buzarra 9db258786e dey-examples: connectcore-demo: add mpg123 dependency
The latest ConnectCore demo updates introduced support for audio controls that
use the mpg123 library to manage audio on the device. This commit adds a
runtime dependency for that package.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-05 09:05:34 +02:00
Isaac Hermida 877e501076 meta-digi: revert revisions to AUTOREV
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-10-04 17:03:57 +02:00
Isaac Hermida 5209a3db06 meta-digi: update revisions for dey-4.0-r1.beta2
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-10-04 14:26:53 +02: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
David Escalona bd0eadc16e meta-digi-dey: dey-examples: fix start/stop script of "connectcore-demo-example" service
The start/stop script of the service was using "killproc" and "pidofproc" functions from
"/etc/init.d/functions" to find the process PID. These functions rely on "pidof", which does
not work very well with Python scripts. Instead, use "pkill" and "pgrep" which allow to
search the executable in the full command line to retrieve the correct PID with the -f modifier.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-09-28 13:07:11 +02:00
Arturo Buzarra dda302ef77 core-image-base: remove splash package for CCMP13 platform
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-09-27 13:51:35 +02:00
David Escalona 065f610952 libdigiapix: add support to build Python bindings
The library recently added support for Python bindings. This commit
adds support to compile and install these Python bindings using a
new package: 'libdigiapix-python3'.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-09-20 11:29:09 +02:00
Arturo Buzarra 0380161f02 meta-digi: generalize recipes to support 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
Arturo Buzarra 6d8b43bbe2 libdigiapix: add support to 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
Arturo Buzarra 609b97328e modemmanager: add support to 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 85f84f6438 swupdate: move sw-description configuration into each platform.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-09-12 14:26:13 +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 3f6d5fc218 pulseaudio: remove duplicated patch integrated in meta-freescale
This patch has been integrated in meta-freescale's bbappend for
pulseaudio, so having it also in our bbappend results in Yocto trying to
apply it twice, which obviously fails and breaks the build.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-06 18:24:44 +02:00
Javier Viguera ecb0823615 crank images: fix build on ccmp15
The crank storyboard engine is provided in binary format. The RPM
package manager that creates the rootfs needs and explicit runtime
provider for 'libEGL.so', which in the ccmp15 is provided by the
'libegl-gcnano' runtime package.

Fix build failure:

--> Finished dependency resolution
Error:
 Problem: package packagegroup-dey-crank-1.0-r0.0.ccmp15_dvk requires crank-sbengine, but none of the providers can be installed
  - conflicting requests
  - nothing provides libEGL.so needed by crank-sbengine-7.1-r0.3.ccmp15_dvk

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-06 12:48:42 +02:00
Javier Viguera f5964b0f97 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-02 17:37:46 +02:00
Javier Viguera 33c7d69b3e meta-digi: update revisions for dey-4.0-r1.beta1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-02 17:34:14 +02:00
Javier Viguera 526cb3cae0 weston: remove deprecated recipe
meta-freescale updated to version '10.0.0.imx', so our bbappend fails
with:

ERROR: No recipes in default available for:
  ... meta-digi-dey/dynamic-layers/freescale-layer/recipes-graphics/wayland/weston_9.0.0.imx.bbappend

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-31 11:58:36 +02:00
David Escalona a6f56bad1a meta-digi-dey: python3-connectcore-ble: add recipe to compile Python ConnectCore BLE library
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-08-29 17:49:42 +02:00
David Escalona 02a8f24a60 meta-digi-dey: python3-bluezero: add recipe to compile Python Bluezero module
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-08-29 17:49:42 +02:00
David Escalona e80289cd77 meta-digi-dey: python3-srp: add recipe to compile Python SRP module
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-08-29 17:49:42 +02:00
David Escalona 76e6436ddf meta-digi-dey: python3-xbee: update XBee Python library recipe to version 1.4.1
While on it, merge the 'inc' file into the recipe as it was only used there.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-08-29 17:49:42 +02:00
Javier Viguera 8fd10837e6 bluez: update bbappend and patches to version 5.65
Poky just updated to that version, so we need to do the same. Otherwise
the build fails.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-29 15:23:35 +02:00
Tatiana Leon 8a81dd87f8 crank: add new crank image
https://onedigi.atlassian.net/browse/DEL-7969

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-08-26 13:34:59 +02:00
Tatiana Leon 93e69dfb3e crank: recipe for crank demos
This recipe downloads a tarball with Crank demos
(http://log-sln-jenkins.digi.com/yocto/downloads/crank-demos-7.1.tar.gz)

NOTE: Currently it will only includes the 'Thermostat' sample.

It installs these demos inside '/usr/share/crank/apps' and configures one of
them (Thermostat application) to be launched on boot.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-08-26 13:34:59 +02:00
Tatiana Leon 37f67132bd crank: recipe for crank storyboard engine
This recipe downloads a tarball with the pre-built Crank engines for DEY
devices (http://log-sln-jenkins.digi.com/yocto/downloads/crank-sbengine-7.1.tar.gz):
  * ConnectCore 8M Mini
  * ConnectCore 8M Nano
  * ConnectCore 8X
  * ConnectCore 6UL
  * ConnectCore 6
  * ConnectCore MP1x

It installs the corresponding engine inside '/usr/share/crank/sbengine' and the
launcher script '/usr/bin/sb-launcher'.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-08-26 13:34:59 +02:00
Tatiana Leon 7a06747017 tslib: crank: add 'libts-1.0.so.0' link to the tslib package
Required for some Crank engine libraries. They are linked against
'libts-1.0.so.0' instead of 'libts.so.0'.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-08-25 18:30:13 +02:00
Tatiana Leon 25c699e05b wayland: crank: add 'libwayland-egl.so' link to the wayland package
Required for some Crank engine libraries. They are linked against libwayland-egl
library without version, 'libwayland-egl.so'.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-08-25 18:19:27 +02:00
Javier Viguera bb82f40238 imx-alsa-plugins: convert to bbappend
The base recipe is in meta-freescale

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-10 13:43:48 +02:00
Javier Viguera 90a664b4ad meta-digi-dey: delete obsolete wayland-protocols recipe
Version 1.25 is available in meta-freescale

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-10 13:42:36 +02:00
Arturo Buzarra a8d7b3c623 wpewebkit: limit number of parallel threads to fix a build issue
Building the wpewebkit recipe with more than 16 threads throws an unexpected
error "ninja: build stopped: subcommand failed.", so this commit limits it
to a safe value.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-26 12:08:04 +02:00
Arturo Buzarra 5fa91adcd6 webkit: add support for dey-image-webkit for ccmp15 platform
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-26 12:08:04 +02:00
Arturo Buzarra e6ab5ffd70 stm-st-stm32mp: add cairo bbappend to support EGL
This commit adds a cairo bbappend from meta-st-openstlinux layer to add support
to EGL and libgles2 graphical libaries.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-26 12:04:39 +02:00
Javier Viguera 3c554bbbc2 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-21 15:49:22 +02:00
Javier Viguera 29124cd33f meta-digi: update revisions for dey-4.0-r1.alpha1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-21 15:49:22 +02:00
David Escalona 4b8eec17c2 images: include 'connectcore-demo-example-webkit' in webkit images
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-18 16:32:25 +02:00
David Escalona a84f588cd1 meta-digi-dey: webkit: add recipe to install webkit version of 'connectcore-demo'
The Webkit version of the ConnectCore demo implements some new functionality:
- The COG browser is automatically started when the device boots loading the demo in the
  primary display.
- A new Multimedia section is available to reproduce some demo videos and WebGL examples
  in the device's browser.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-18 16:32:25 +02:00
David Escalona d695a78524 images: include 'connectcore-demo-example' by default in all images
Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-18 16:32:25 +02:00
David Escalona 39e41c1d7f meta-digi-dey: dey-examples: add recipe to install 'connectcore-demo' example
The ConnectCore Demo is launched on startup and starts the web server. Demo can be accessed
by any computer in the LAN by just typing the IP address of the device in the web browser.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-18 16:32:25 +02:00
David Escalona dc84be34bf meta-digi-dey: busybox: remove default landing web page for ccimx6ulsbc
The ConnectCore Demo web page will be the new default landing page for all products,
so remove the default landing page that was created for the ccimx6ulsbc platform.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-18 16:32:25 +02:00
David Escalona cce6b23957 meta-digi-dey: webkit: remove 'digi-webkit-examples' recipe
The ConnectCore Demo will be installed by default in all the platforms, so this recipe
is no longer required.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-18 16:32:25 +02:00
David Escalona f229fc7171 meta-digi-dey: webkit: move 'video-examples' and 'webglsamples' recipes to 'recipes-digi'
The video examples and WebGL samples will be part of the new ConnectCore Demo, so move these
recipes to a more appropriate folder. While on it, remove dependencies with 'digi-webkit-examples'
recipe as it will be obsoleted.

Signed-off-by: David Escalona <david.escalona@digi.com>
2022-07-18 16:32:25 +02:00
Arturo Buzarra 7c245cbd68 wpa_supplicant: update Murata wireless support to release v5.10.9-2022_0511
https://onedigi.atlassian.net/browse/DEL-8025

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-18 15:37:04 +02:00
Isaac Hermida d7f3991209 cloudconnector: add init service
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: David Escalona <david.escalona@digi.com>
(cherry picked from commit ccc9211d00dad7be6cb2c2d0cf179a62563e26c6)
2022-07-15 09:25:25 +02:00
Javier Viguera f9a4103459 stm-st-stm32mp: configure properly qtbase compilation
Otherwise it fails with: ERROR: The OpenGL functionality tests failed!

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-14 15:44:41 +02:00
Javier Viguera 0c7b49c3ab meta-digi-dey: add STM dynamic layer support
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-14 15:44:33 +02:00
Arturo Buzarra 64b965637c libdigiapix: ccmp15: fix user LED and buttons
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-13 12:47:12 +02:00
Javier Viguera efb2ec4b7b networkmanager: clean up bbappend
NetworkManager package moved from autotools to meson build system, so
some of the configs we added in the bbappend do not apply anymore.
Remove dead code and clean up the bbappend.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-12 18:03:23 +02:00
Isaac Hermida a2ed98ef58 greengrass: update packet dependencies
https://onedigi.atlassian.net/browse/DEL-8013

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-07-12 15:48:20 +02:00
Isaac Hermida 8071290c75 networkmanager: enable option for compiling with connectivity check
concheck is now activated as PACKAGECONFIG, so adapt the recipe.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-07-11 11:14:25 +02:00
Javier Viguera 6a364ab3d2 Revert "openssh: do not create an empty openssh-dev package"
An equivalent fix has been committed in Poky, so this is no longer
needed in our layer.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-08 18:41:25 +02:00
Javier Viguera 90b3c244da meta-digi: do not install kernel image in rootfs
It's just a waste of space as we already have the kernel image in the
'linux' partition and that gets mounted under /mnt/linux.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-08 13:23:58 +02:00
Isaac Hermida d0ec5c7aab lib/openssl: relax ciphers allowed with openssl-3.0
We need to relax what ciphers are allowed with openssl-3.0 so that we do
not break Digi/RM. See DAL commit ec586a621c24f840ac7cc4f91241c55581698ba3

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-07-07 12:08:42 +02:00
Javier Viguera d671fe15a0 meta-digi-dey: remove obsolete python2 based recipe
This is the only python2-based recipe in our layer, so remove it to be
able to remove the 'meta-python2' layer from DEY as well.

Apparently it was introduced for some Optee dependence and it was used
in previous versions of 'meta-imx', but 'meta-imx' removed it as well
for Kirkstone, so we do the same here.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-06 14:49:01 +02:00
Arturo Buzarra 9248204aa6 dey.conf: fix graphical backend for images with wayland without x11
https://onedigi.atlassian.net/browse/DEL-7981

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-04 16:56:41 +02:00
Arturo Buzarra d261ba301b stm-st-stm32mp: add packagegroup-dey-gstreamer to support STM platforms
https://onedigi.atlassian.net/browse/DEL-7981

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-04 16:56:41 +02:00
Arturo Buzarra 0aca74ab23 kirkstone migration: remove legacy clutter-1.0-examples package
Since Yocto 3.4 the package "clutter-1.0" was considered a legacy component,
and moved to meta-gnome.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-06-29 12:31:11 +02:00
Javier Viguera 34625f886f openssh: do not create an empty openssh-dev package
When building an SDK (with populate_sdk), all '-dev' packages are
installed. And empty 'openssh-dev' package would pull in 'openssh-sshd'
package even if our image is only depending on 'openssh-sftp'.

This causes a conflict with 'dropbear' server, which is only using
openssh-sftp.

Fix:

Problem: package dropbear-dev-2020.81-r0.4.cortexa7t2hf_neon requires dropbear = 2020.81-r0.4, but none of the providers can be installed
 - package dropbear-2020.81-r0.4.cortexa7t2hf_neon conflicts with openssh provided by openssh-8.9p1-r0.7.cortexa7t2hf_neon
 - package openssh-8.9p1-r0.7.cortexa7t2hf_neon conflicts with dropbear provided by dropbear-2020.81-r0.4.cortexa7t2hf_neon
 - package openssh-dev-8.9p1-r0.7.cortexa7t2hf_neon requires openssh = 8.9p1-r0.7, but none of the providers can be installed
 - conflicting requests

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-28 17:16:09 +02:00
Arturo Buzarra 814cc5043e wpa-supplicant: enable support for WPA3-Enterprise
This commit integrates by default support to WPA3-Enterprise modes
128-bits (WPA-EAP-SUITE-B) and 192-bits (WPA-EAP-SUITE-B-192)

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-06-28 15:04:06 +02:00
Javier Viguera 7dae6a5c4e wpa-supplicant: refresh build defconfig for version 2.10
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-28 14:58:35 +02:00
Javier Viguera 91e6b56735 bluez: fix type of pcm_value and ibs_value variables
Those variables are used to hold integer data parsed from bluetooth
config file. The parsing function "get_value_from_config" returns an INT,
so the variables cannot be unsigned.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-23 11:12:54 +02:00
Javier Viguera 8d123d7451 kirkstone migration: delete deprecated or duplicated recipes
Remove deprecated versions of recipes updated in other general layers
(poky, meta-openembedded). Also remove duplicated IMX specific recipes that
are available in other BSP layers (meta-freescale, meta-fsl-demos, etc).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 2452e85a6b kirkstone migration: cosmetic, clean build warnings
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 348da0bc12 kirkstone migration: fix packagegroup-qt5-demos build
Packagegroup cannot be 'allarch' as it depends on other packages that
are not allarch.

See Poky commit:
https://git.yoctoproject.org/poky/commit/?id=0562ab65936a11217cad570d4d633a246e20d3c6

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 74247d4cab kirkstone migration: update swupdate package
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 19a13b751e kirkstone migration: update freerdp package
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 1195046abd kirkstone migration: update sysvinit package
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 831e6dbc5f kirkstone migration: update networkmanager package
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 16550c1952 kirkstone migration: update pulseaudio package
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 11b802ddb6 kirkstone migration: update wpa-supplicant package
Mainly, refresh patches so they apply on top of wpa-supplicant 2.10

Murata patches from release: cypress-fmac-v5.10.9-2022_0331

NOTE: the wpa-supplicant patches in the cypress release apply on top of
1759a8e3f36a commit of the hostapd.git repository. That repository
includes both the wpa-supplicant and the hostapd packages code. In Yocto
the wpa-supplicant recipe uses the release tarball, so there is no
'hostapd' folder included. Thus, the cypress patches that changed code
in 'hostapd' and 'wpa_supplicant' folders, have been splitted in two
(the hostapd changes and the rest). In the recipe the patches that
changed 'hostapd' code have been marked as 'apply=no' because they won't
apply to the tarball, but they have not been deleted for traceability.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 674af78711 kirkstone migration: update bluez5 package
* Refresh the 5.56 patches on top of new version 5.64
* Separate the patches for 5.41 and 5.64. The code base has changed a
lot between those two releases, so having common patch files under
'bluez5' directory makes maintenance more cumbersome.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 1f6ece730d kirkstone migration: update busybox package
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-20 11:39:57 +02:00
Javier Viguera b68ddc2357 kirkstone migration: update SRC_URI URLs
In 4.0 the branch is mandatory when using git as fetcher in the SRC_URI.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-20 11:39:57 +02:00
Javier Viguera b96a5a0f4f kirkstone migration: update DEY distro config file
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-20 11:39:57 +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
Javier Viguera e30d6931fd kirkstone migration: make layers compatible
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-13 13:30:08 +02:00
Arturo Buzarra be061507f9 swupdate: integrate support from meta-digi-dual boot layer
One patch adds support for building the library statically and the other is a
fix for performing firmware update on the fly. These patches have been moved
from the meta-digi-dualboot layer

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
(cherry picked from commit 94018f7402586b916c5c7836eb355a19a78a9c51)
2022-06-03 09:48:22 +02:00
Arturo Buzarra 9458c4a25b cloudconnector: add swupdate dependency
Recent improvements in the cloudconnector core added a dependency with the
swupdate library, so this commit adds a build dependency with the
swupdate package.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
(cherry picked from commit 654ef8686fd3916ae5ad257f72bd41ed2198d958)
2022-06-03 09:47:37 +02:00
Arturo Buzarra 4518d265e4 meta-digi-arm: fix typo in dynamic-layers for NXP platform
Commit 8c396281 ("layer: add dynamic-layers for NXP platform") introduced a
typo in the dynamic layer name.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-12 17:34:07 +02:00
Arturo Buzarra cf43c47278 swu-images: fix sha256 entry from sw-description file
This commit fixes the following build warning with the swupdate v2021.11:

    WARNING: dey-image-qt-swu-1.0-r0 do_swuimage: Syntax for sha256 changed,
             please use $swupdate_get_sha256(dey-image-qt-xxxxxx.boot.ubifs)
    WARNING: dey-image-qt-swu-1.0-r0 do_swuimage: Syntax for sha256 changed,
             please use $swupdate_get_sha256(dey-image-qt-xxxxxx.ubifs)

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-11 17:34:44 +02:00
Arturo Buzarra cbea119d3d swu-images: add support for ccmp1 platform
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-11 17:28:27 +02:00