Commit Graph

4138 Commits

Author SHA1 Message Date
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
Arturo Buzarra a389791bd0 meta-digi: prepare for dey-4.0-r2.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-08 15:45:35 +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 e7b0a7affc cmp15: apply DT overlay for the DVK v1 on boards without board_version defined
This commit modifies the boot script condition to apply the overlay for DVK v1
on boards without the board_version variable defined.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-08 10:57:05 +01:00
Hector Palacios ea9a34f205 ccmp15/ccmp13: remove rs232 device tree overlays
These overlays have been removed from the kernel.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-03-07 18:14:20 +01:00
Arturo Buzarra 0773e31fd4 ccmp15: add DT overlay for the DVK v1
This commit adds an overlay for DVK v1 and modifies the boot script to apply it
based on the board_version variable.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-07 13:59:29 +01:00
Gonzalo Ruiz 5c5fb956f2 meta-digi: ccmp13: add 'core-image-base' as DEFAULT_IMAGE_NAME
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2023-03-07 12:02:28 +01:00
Gonzalo Ruiz 732f8cb0cf u-boot-dey: install fip-b unconditionally in install scripts
Partitions 'fip-a' and 'fip-b' are redundant at the moment. They are
not currently part of the dualboot system. In consequence, program
both partitons unconditionally during the install process.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2023-03-07 12:02:28 +01:00
Arturo Buzarra 739f1b6ab0 build.sh: add dey-image-webkit for ccimx8 platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-06 16:03:38 +01:00
Javier Viguera 14da5bce49 mkproject: disable ccimx93-dvk for this release
Not yet officially supported.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-03-06 14:04:12 +01:00
Hector Palacios 6477070dfe ccmp15.conf: remove unused ccmp151-dvk device tree
This was thought for a variant that doesn't exist.
The device tree is also obsolete.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-03-06 13:58:41 +01:00
Isaac Hermida 484214dc71 udev: mount.sh: force to find files in /tmp
Our /tmp file is a symbolic link to /var/tmp, therefore a "find /tmp" returns
nothing. Force to search files inside tmp folder by using "find /tmp/".

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-03-03 12:06:33 +01:00
Javier Viguera e76027fd85 meta-digi-arm: rework machine firmware configuration for NXP platforms
Move generic IMX machine firmware to imx-digi-base.inc file. This eases
maintenance, as this file follows imx-base.inc in meta-freescale.

Still, configure platform's Digi specific firmware in each machine's
config file.

As a positive side effect, this removes the "firmware-imx-easrc-imx8mn"
firmware file from the 8M Mini, as it's only used in the 8M Nano. This
saves about 263KB.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-03-02 12:06:08 +01:00
Javier Viguera 077f4dddee ccimx8m: add overlay for Fusion 10 display
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-03-01 18:20:18 +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 430955a584 firmware-murata: update firmware binaries to version imx-kirkstone-fafnir_r1.0
This commit updates the required firmware binaries for Bluetooth and Wireless
interfaces, 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 (Wireless
firmware v13.10.246.300)

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 e598915b34 switch to building from maintenance branches for dey-4.0
https://onedigi.atlassian.net/browse/DEL-8388

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-01 11:12:36 +01:00
Javier Viguera ce061aea67 ccimx93: fix ext4 filesystems resizing on first boot
Add the missing tools to automatically do the EXT4 filesystem resizing
on first boot.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-28 13:20:57 +01:00
Arturo Buzarra f64adbbe25 ccmp15: add DT overlay for the UART7 for the CCMP15-DVK
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-02-27 17:15:40 +01:00
Arturo Buzarra 184659e42a ccmp13: fix DT overlay name for USART3
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-02-27 17:09:12 +01:00
Arturo Buzarra aae03774ab Merge branch 'dey-4.0/master' into dey-4.0/maint 2023-02-27 16:34:53 +01:00
Gabriel Valcazar 13dafe10bd meta-digi-arm: disable Vigiles CVE report generation by default
For now, we're only interested in generating the SBOM, which we can upload and
have Vigiles scan later on if needed. The report generation process adds some
overhead and can cause unwanted errors if the Vigiles server takes too long.

Enable report generation for our automated builds.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-02-27 15:51:36 +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
Javier Viguera ad788b1d32 linux-dey: do not generate symbols on ccimx6ul dtbs
Symbols are needed for DTB overlays. In the CC6UL we are not using
overlays, so disable symbols generation.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-24 15:50:08 +01:00
Tatiana Leon 4e22f037f7 ccmp15: set 'dey-image-webkit' as default image instead of 'dey-image-qt'
This commit also replaces 'dey-image-qt' with 'dey-image-webkit' on build
scripts.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-02-24 15:11:40 +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
Gonzalo Ruiz 93f90d63e7 firmware_qualcomm: ccimx6ul: fix MCS7 drop and adjust 5GHz TxPower
Set parameter 'greentxConfig__0_0=0x2' to use the optimal TxPower
in MCS7 data rates, improving performance.

Also, adjust maximum TxPower in the 5GHz band to account for
output power tolerances.

The new BDF is:

- bdwlan30_US.bin (53072f8af541a49e4ed9c22698b1912f)

https://onedigi.atlassian.net/browse/CC6UL-1302
https://onedigi.atlassian.net/browse/DEL-8364

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2023-02-24 12:51:04 +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
Mike Engel 219d19b91a ccmp13: add DT overlays for the PWM8 and USART3 for the CCMP13-DVK
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2023-02-24 09:46:06 +01:00
Gabriel Valcazar 08abcb542d build.sh: remove spurious "if"
This was left by accident and causes the script to fail

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-02-22 17:34:14 +01:00
Gabriel Valcazar 93ea42e229 build.sh: add support to generate Vigiles reports in automated builds
This adds two new options:

    * One to generate a Vigiles CVE report along with a build
    * One to include the meta-digi-security layer in a build

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-02-22 15:10:17 +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
Javier Viguera 5ba05c91e0 alsa-state: add configuration for ccimx93
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-21 12:23:28 +01:00
Javier Viguera 2dd829fb1d build-github.sh: fix cloning DEY from GitHub
Seems that 'meta-openembedded' repo does not allow shallow clones. It
fails when '--depth' option is passed:

$ git clone --depth 1 https://git.openembedded.org/meta-openembedded
Cloning into 'meta-openembedded'...
fatal: dumb http transport does not support shallow capabilities

Remove that option to allow building DEY-4.0 from GitHub repos in the
buildserver.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-17 13:28:13 +01:00