Commit Graph

3921 Commits

Author SHA1 Message Date
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 6a53da20ca ccimx8x: move SECO_FIRMWARE_NAME definition to machine config
This is a machine specific setting, and moving it to the machine config
allows to get rid of the recipe bbappends.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-06 17:36:57 +01:00
Javier Viguera cec7cd98a5 meta-digi-arm: update mcore-demos to NXP's release 5.15.71_2.2.0
This is a verbatim copy of the recipes in meta-imx

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-06 17:36:26 +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 007833fb2e meta-digi: use QT6 for ccimx8m and ccimx93
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 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
Javier Viguera 21ab3b1a8b ccimx93-dvk: add missing bootable artifact name
Otherwise the file is not included in the installer ZIP.

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
Hector Palacios 4e361ff449 trustfence-cst: fix issue with binutils 2.38 objcopy
There is an issue in binutils 2.38 objcopy when called
with '--weaken' flag:

  https://sourceware.org/bugzilla/show_bug.cgi?id=27493

To circumvent it, patch the trustfence-cst config.mk to
call specifically with 'weaken-symbol err_msg' which is
apparently the only symbol that's overriden by the code.

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

https://onedigi.atlassian.net/browse/DEL-8033
https://onedigi.atlassian.net/browse/DEL-8332
2023-01-30 12:20:12 +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 27eb14c65f ccmp1: remove MCA from MACHINE_FEATURES
No SOM variant has MCA chip for the moment.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-01-25 12:32:09 +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 753424ae91 ccimx93: add support for MCA dtb overlay
On boot, it is enabled dynamically depending on MCA setting in HWID.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-23 17:33:31 +01:00
Javier Viguera aab5eda5c2 meta-digi-arm: add kernel parameter for single boot logo
Number of bootup logos is now configured using fbcon=logo-count parameter,
so use it instead of our deprecated custom code in the kernel.

For backwards compatibility, we add this parameter in the u-boot boot
script for all platforms but the ccimx93, where this is directly handled
by u-boot (v2022.04).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-23 17:33:31 +01:00
Javier Viguera 38ff495f5b ccimx8mm: update imx-vpu-hantro-daemon recipe
Verbatim copy of the one in meta-imx.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-23 15:07:59 +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 d3a8d312fd digi: machines: remove unused UBOOT_DEV_NAME variable
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-01-18 11:08:25 +01:00
Hector Palacios 87ef63f7c3 Revert "u-boot-dey: remove fip 'optee' suffix from install scripts"
This reverts commit 2bdfdc92e1.

This suffix was removed on error. The artifact does have the suffix.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-01-18 10:55:47 +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
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
Mike Engel 6c06b77a04 gcnano-userland: add additional library links needed for weston
This commit adds additional library links that are require to
make weston working with the new kernel version of the STM
BSP 22_11_23.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2023-01-16 10:29:30 +01:00
Mike Engel bc34bb68e8 wayland: change wayland user from weston to root
This commit changes the wayland user from weston to root. That
makes video and audio playback possible for the root user.

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

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2023-01-16 10:29:30 +01:00
Mike Engel a0fa0d3812 install: add option to install system B for dual boot
https://onedigi.atlassian.net/browse/DEL-8232

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2023-01-16 09:59:22 +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