Commit Graph

4741 Commits

Author SHA1 Message Date
Arturo Buzarra 46f15efff2 meta-digi: update revisions for dey-4.0-r7.2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-10-08 12:00:57 +02:00
Hector Palacios d1105835e2 dey.conf: bump DEY_BUILD version
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-9291
2024-10-08 12:00:57 +02:00
Javier Viguera 548adca09b eiq-examples: use yocto provided native python
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-10-04 12:34:22 +02:00
Javier Viguera da37858d80 eiq-examples: fix dependence on vela native tool
The recipe level DEPENDS on ethos-u-vela-native is insufficient to ensure
the native vela tool population into the eiq-examples recipe sysroot
native directory before use. The new download_transform_models task uses
that tool, so add the dependence on the task to ensure it is available
before use.

While on it, configure the working directory of the new task using the
Yocto way (using task[dirs]).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-10-04 11:53:27 +02:00
Javier Viguera 674d012e36 ccimx93: add support for single core 512M variants
https://onedigi.atlassian.net/browse/DEL-9221

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-10-03 18:13:36 +02:00
Isaac Hermida 82851b0308 eiq-examples: improvements
* do not run the demos in background, if not they can not be ctrl+c.
* fix service dependencies: required camera and weston.
* patch the examples to:
** set camera resolution to 1280x720
** set default format to ov5640 camera (YUYV)
** detect the "x" event when the demo application is running in windowed mode (not fullscreen).

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-10-03 17:04:06 +02:00
Arturo Buzarra adb6a37e61 ccmp25-dvk: fix overlay name for Sony imx335 MIPI-CSI camera
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-10-03 10:04:56 +02:00
Hector Palacios 720d627bd3 cccs: add libubootenv as RDEPENDS of daemon
Some parameters of the CCCS configuration file need to be substituted
at run-time during a postinst script. Such script takes actions depending
on the value of U-Boot env variables.
The libubootenv recipe itself also has a postinst script that modifies
the U-Boot env configuration file (on NAND-based platforms).
If there are no dependencies between these two recipes, poky will decide
the order in which the postinst scripts are named (and thus executed)
during the first boot.
By creating the rdepends to libubootenv, we guarantee that its postinst
script is run before the cccs one, which depends on the environment being
accessible.

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

https://onedigi.atlassian.net/browse/DEL-9282
2024-10-02 18:12:59 +02:00
Hector Palacios 52287bf6be cccs: specify the runtime package (daemon) that requires the postinst
The postinst modifies the /etc/cccs.conf config file used by the daemon.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2024-10-02 18:12:59 +02:00
Hector Palacios 2880f7ea0f cccs: [cosmetic] group RDEPENDS in a single line
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2024-10-02 18:12:59 +02:00
Arturo Buzarra 81ab1ccfd9 ccmp25-dvk: add overlay to support Sony imx355 MIPI-CSI camera
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-10-02 17:03:09 +02:00
Javier Viguera 3e1f3cdf9e swupdate: clean warning on firmware update
The swupdate description file allows to configure the setting of u-boot
environment variables. For some platforms the "upgrade_available" variable
has an empty value, and swupdate parser warns when the description asks
to set a variable with an empty value.
    
Initialize the variable to 0, which is semantically the same for u-boot.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-10-02 11:17:35 +02:00
David Escalona 1de1fae447 stm32mpu-ai: add external delegate library to use NPU
Actually, the NPU demos were not making use of the NPU, just the CPU. To enable the NPU usage,
it is required to add the external delegate library 'tflite-vx-delegate'to the system. This is
done by forcing 'tensorflow-lite' to depend on it for the CCMP2 platform, which also requires
'tim-vx' library as a build dependency.

Both the 'tflite-vx-delegate' and 'tim-vx' recipes have been verbatim copied from the ST Beta
branch, using commit with SHA256: 68686850c75061f1c7c4e756a313a41ca810f6ae

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-10-01 11:09:11 +02:00
Francisco Gil d9ef21b3d0 meta-digi: revert revisions to AUTOREV
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2024-09-30 16:39:57 +02:00
Francisco Gil c179cd862c meta-digi: update revisions for dey-4.0-r7.1
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2024-09-30 16:38:44 +02:00
Hector Palacios 1624ec2bc2 optee-os-stm32: reduce verbosity of SCP firmware
The SCP firmware introduces too much verbosity (with
timestamp included) in the middle of the boot log
between the TF-A and U-Boot.
Reduce the log and remove compiler flags for errors
on unused variables (banner strings).

This removes the following messages from SCP firmware:

  [    0.000000] SCP-firmware v2.12.0-dev
  [    0.000000]
  [    0.000000] [FWK] Module initialization complete!

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-09-30 10:55:03 +02:00
Hector Palacios 33ca8bc914 optee-os-stm32mp: reduce verbosity
ST_OPTEE_DEBUG_TRACE is set to 0 if ST_DEBUG_TRACE is set to 0.
However, on the optee source code, if ST_OPTEE_DEBUG_TRACE=0 the
log level is automatically set to 3 (INFO) resulting in a very
verbose optee log.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2024-09-30 10:55:03 +02:00
Javier Viguera 7b50fb3a06 bluetooth-init: ensure the interface is up before unloading the module
This is a workaround for a driver failure when unloading the module. The
"btnxpuart" driver crashes with a null pointer dereference if the bluetooth
interface is down when the module is unloaded.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-09-27 14:09:23 +02:00
Javier Viguera 55f8ccadec bluetooth-init: start driver load service before bluetooth daemon
Revert to the previous used order for the bluetooth related
services. First, load the driver and then execute the bluetooth
daemon. This is needed for two reasons:

  * The bluetooth daemon caches the MAC address. Loading the module before
    ensures the daemon caches the correct MAC.
  * The connectcore-demo server stops working if the bluetooth interface
    is unavailable when the server launches. This order ensures the demo
    works as expected.

This change also brings back the problem of the btnxpuart module unload
failure on reboot/suspend. The following commit adds a workaround for
the driver issue.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-09-27 14:02:34 +02:00
Javier Viguera 570c057a59 ccimx91: disable graphical distro features
The ccimx91 is a headless platform. Disabling those distro features
prevents building/installing packages that are useless (e.g. gstreamer)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-09-27 10:00:44 +02:00
Arturo Buzarra 5fabf75615 switch to building from maintenance branches
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-09-25 16:36:48 +02:00
Arturo Buzarra 53b9fd076d Merge branch 'dey-4.0/master' into dey-4.0/maint
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-09-25 15:53:50 +02:00
Arturo Buzarra d46b202277 linux-dey-6.1: add different SRCREV for NXP and STM platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-09-25 14:34:21 +02:00
David Escalona 7d4a490a44 dey-image-webkit: include st npu samples in the image for the ccmp25 platform
https://onedigi.atlassian.net/browse/CCS-12

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-09-25 14:02:41 +02:00
David Escalona 4bc892961d stm32mpu-ai: recipes-samples: customize st npu samples
Customize the NPU samples provided by ST so they can be executed in our DEY images:
- Add a generic launch script to pre-configure environment variables before launching demos.
- Remove 'weston' user check from demos launch scripts.
- Reduce font size for big screens.
- Set camera resolution to 640x480px and center the image.
- Adapt home folder to 'root' user instead of 'weston'.
- Adapt package group to include the new samples and remove the old ones.
- Fix a couple of errors with models download and include them manually.
- Add a runtime dependency with 'libdrm-tests' as the 'modetest' binary is required.

https://onedigi.atlassian.net/browse/CCS-12

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-09-25 14:02:34 +02:00
David Escalona 1f678d39a3 stm32mpu-ai: recipes-samples: verbatim copy of npu samples from st beta branch
Current samples were not working properly due to problems with libraries and
the runtime frameworks.

This commit brings the updated samples recipes with the new folder structure
that have been proved to work as they were in the st beta branch, using commit
with SHA256: 68686850c75061f1c7c4e756a313a41ca810f6ae

https://onedigi.atlassian.net/browse/CCS-12

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-09-25 13:47:47 +02:00
David Escalona 983df1b9cb stm32mpu-ai: tensorflow-lite: backport recipe from github st main
Current recipe build was failing due to dependencies with cpuinfo header files and
libraries. This commit backports the recipe that is currently being built in the
ST main branch in GitHub which clears these dependencies.

The recipe was backported as it was in commit with SHA256:
fc56201c67adf899080cff5b45ed33824e427609

https://onedigi.atlassian.net/browse/CCS-12

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-09-25 13:47:47 +02:00
David Escalona 5bf2f9b99c stm32mpu-ai: onnxruntime: backport recipe from github st main
Current recipe build was failing due to dependencies with cpuinfo header files and
libraries. This commit backports the recipe that is currently being built in the
ST main branch in GitHub which clears these dependencies.

The recipe was backported as it was in commit with SHA256:
fc56201c67adf899080cff5b45ed33824e427609

https://onedigi.atlassian.net/browse/CCS-12

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-09-25 13:47:47 +02:00
David Escalona b461dd18ce stm32mpu-ai: update cmake-native to version 3.25
Backport a new version of cmake-native from Poky's mickledore release. This
is required by the new version of the onnxruntime package (backported in
the following commit).

https://onedigi.atlassian.net/browse/CCS-12

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-09-25 13:47:47 +02:00
David Escalona c8d5dd29dd conf: allow one additional recipe nesting level to stm32mpu-ai layer
https://onedigi.atlassian.net/browse/CCS-12

Signed-off-by: David Escalona <david.escalona@digi.com>
2024-09-25 13:47:47 +02:00
David Escalona f04581b9a6 eiq-examples: extend recipe to download and transform models in the host
Until now, the recipe only installed the binaries and some scripts in the target device. Then,
user had to execute an script in the running system to download and transform the models for
the demo, a process that could take up to 30 minutes. Also, a custom script was required to
acomodate the environment settings before executing any demo. All of this was preventing us from
creating out-of-the-box images including NPU demos for exhibitions and clients.

With the new changes, the recipe now downloads and transforms all the models in the host machine,
saving around 27 minutes and leaving the demos in the target ready to be executed. To ease the
process, a launch script is included for all the demos to configure the environment as well as an
auto-start service.

https://onedigi.atlassian.net/browse/CCS-10

Co-authored-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: David Escalona <david.escalona@digi.com>
2024-09-25 13:47:36 +02:00
Javier Viguera bee97587cb orc: fix native build on ubuntu 18
Ubuntu 18 is still a supported distro for Kirkstone, but a recent update
of orc is failing the native build, because it requires a GCC version
newer than the default included in ubuntu 18.

This commit backports a fix which is part of upstream orc 0.4.40.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-09-24 12:34:14 +02:00
Mike Engel fe9e0d701a boot: change linux and recovery partition UUID for single mode
This commit changes the linux and recovery UUID when booting
the system in single mode.

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

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2024-09-23 17:55:48 +02:00
Isaac Hermida 9f7a8e64ce conf: distro: remove Y2038 compilation flag from alsa-lib
Despite the recipe builds for arm, it crashes at runtime.
While on it, alphabetically sort the list of excluded packages.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-09-23 15:52:32 +02:00
Arturo Buzarra f08b22020c README: dey-4.0-r7 release notes
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-09-23 10:57:10 +02:00
Isaac Hermida 44f9fa0616 alsa-state: ccmp1: fix control settings
Fix the control settings as set by alsactl. There was a missmatch
and therefore the configuration applied was incorrect.

https://onedigi.atlassian.net/browse/DEL-8703
https://onedigi.atlassian.net/browse/DEL-9246

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-09-20 16:52:55 +02:00
Isaac Hermida 23ff040fc1 alsa-state: ccmp25: configure settings
Some settings were incorrectly set. Align the card settings with the
same values used in our other platforms.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-09-20 16:52:55 +02:00
Arturo Buzarra 909427ed4a init-ifupdown: virtwlans: add support to ConnectCore MP2 platform
https://onedigi.atlassian.net/browse/DEL-9237

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-09-19 13:37:01 +02:00
Arturo Buzarra 19be4782ee wpa_supplicant/hostapd: update support to include ConnectCore MP2 platform
This commit updates the wpa-supplicant and hostapd recipes to apply the Murata
release patch series for ConnectCore MP2 platform.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-09-19 13:37:01 +02:00
Arturo Buzarra 0d685efc41 ccmp25-dvk: add flag to support virtual wireless interfaces
CYW55512 Wireless chip supports concurrent modes and virtual wireless
interfaces like SotfAP and P2P.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-09-19 13:37:01 +02:00
Gabriel Valcazar 6a6e2577f1 ccmp2: don't execute task that generates flashlayout files
These are files for programming images with STM32CubeProgrammer tool. We don't
use the tool or the files. Disable the task to avoid build warnings, just like
we do for the ccmp1 platforms.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-09-19 09:56:05 +02:00
Gabriel Valcazar a481d7225d ccmp1: change the way we disable the generation of flashlayout files
Instead of manually disabling the task, use the ENABLE_FLASHLAYOUT_CONFIG
variable which is meant for that exact purpose.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-09-18 18:15:35 +02:00
Hector Palacios 52eda79fb7 trustfence-stm-signtools: update recipe and package to latest versions
Updated package with latest versions from ST Ecosystem 5.1:
 - STM32MP_KeyGen_CLI		v2.17.0
 - STM32MP_SigningTool_CLI	v2.17.0

Changed dependency libraries in the package:
 - libcrypto.so.1.0.0 -> libcrypto.so.1.1
 - libQt5Core.so.6    -> libQt6Core.so.6

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2024-09-18 18:12:52 +02:00
Hector Palacios fa4d07713e psplash: use a PNG logo for psplash instead of *.h file
A preprocessed *.h Digi logo file was used for the psplash.
The psplash recipe from Poky admits a PNG file as input and
does the conversion automatically.

Use a Digi PNG logo and set it using SPLASH_IMAGES variable.
This way, it is easier for users to substitute with their own
logos.

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

https://onedigi.atlassian.net/browse/DEL-9239
2024-09-18 17:43:32 +02:00
Isaac Hermida 97dc7ddd36 pulseaudio: ccmp25: avoid speaker mute
based on commit 951f20d36b, this fix
avoids muting the speaker control.
Despite the original commit is for Headphone, it also applies, for the
ccmp25, to the Speaker control.
While on it, reword the files so the change applies to all stm platforms
by using the common machine.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2024-09-18 16:44:07 +02:00
Gabriel Valcazar ef26e935d0 sdk: bblayers.conf.sample: remove GUI-related layers from headless devices
Qt5/Qt6 and Webkit layers are specifically for functionality related with GUIs,
which aren't available for these platforms. For the moment, leave meta-webkit
in the ccimx91's bblayers, since our dynamic selinux layer has a spurious
dependency with our dey-image-webkit recipe.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2024-09-18 12:44:27 +02:00
Javier Viguera 5adb109b62 ccimx91: configure platform as headless
This removes the psplash package from "core-image" images, which
prevents this failure onn boot:

[FAILED] Failed to start Start psplash boot splash screen.
psplash[454]: Error opening /dev/fb0

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2024-09-17 18:24:36 +02:00
Hector Palacios d545fe0a14 ccmp25-dvk: default to use dey-image-webkit on installers
This image is the one that contains the Get Started demo.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2024-09-17 16:27:29 +02:00
Francisco Gil e183f47816 ccimx9: bootscript: add logic to emulate a ccimx91 on a ccimx93
Based on the environment variable emulate-cc91:

* Limit the ram memory to 512MB
* Enable the overlay _ov_som_emulate-ccimx91_ccimx93.dtbo
* Disable the npu node

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2024-09-17 08:29:41 +02:00
Arturo Buzarra a5df257864 connectcore-demo-server: ccmp25: start service after bluetooth init script
ConnectCore MP25 initializes the Bluetooth interface with a init script, so
this commit adds a runtime dependency between the connectcore-demo-server and
the cyw55512-bluetooth service.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2024-09-16 22:30:01 +02:00