Commit Graph

4089 Commits

Author SHA1 Message Date
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
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
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
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 de0e08a7c0 machine:ccimx8m: remove Fusion dtbo
For the momment, Fusion support is not ready in the 5.15 kernel, so do
not add the dtb overlay.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-11 13:40:54 +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 0fbed2bfb6 meta-digi-arm: remove overlayed recipes
meta-freescale started updating the recipes to NXP's
rel_imx_5.15.71_2.2.0 release, so now we have a bunch of overlayed
recipes we can clean up.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-10 14:29:48 +01:00
Gonzalo Ruiz 2bdfdc92e1 u-boot-dey: remove fip 'optee' suffix from install scripts
https://onedigi.atlassian.net/browse/DEL-8268

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2023-01-10 13:26: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 19d940965d boot-artifacts: fix BOOTABLE_ARTIFACTS for NXP platforms
For platforms that do not define FIP_UBOOT_DTB, the
'd.getVar('FIP_UBOOT_DTB') gets evaluated to None, which is not equal to
"", and thus the code continues in the wrong "if" branch.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-10 10:31:14 +01:00
Javier Viguera 9dc6a491ba build.sh: change image to build for ccimx93
Support to build wayland-based graphical images has been added for ccimx93,
so build that image.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-09 16:55:37 +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 f13ccfac75 imx-pxp-g2d: new recipe that proves virtual/libg2d for mx93
This is a verbatim copy of the recipe in meta-imx. It is required to
build Wayland based graphical images for ccimx93.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-09 16:28:56 +01:00
Javier Viguera b7e651c521 ccimx93: update configuration for graphical images
Enable missing configuration parameters to build Wayland/Weston based
graphical images.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-09 16:28:44 +01:00
Javier Viguera eb420a72f9 ccimx8m: fix building sdcard image
The sdcard image generation code expects a boot artifact named after
machine's name. On the other hand, u-boot recipe creates symlinks with
the build config's name. So couple machine with build config label to
prevent a failure when building the SD card image.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-09 12:18:15 +01:00
Javier Viguera c2da31e0b1 gcnano-userland: fixes for Crank SB engine
Crank storyboard engine has runtime dependencies on libELG.so and
libGLESv2.so, which usually are just symlinks that go to the "-dev"
package. As they are needed at runtime, move the files to the normal
(not -dev) package.

Also add explicit RPROVIDES for those libraries, as otherwise the build
fails with:

QA Issue:
/usr/share/crank/sbengine/plugins/librender-plugin-opengles_2.0.so
contained in package crank-sbengine requires libEGL.so, but no providers
found in RDEPENDS:crank-sbengine? [file-rdeps]

QA Issue:
/usr/share/crank/sbengine/plugins/librender-plugin-opengles_2.0.so
contained in package crank-sbengine requires libGLESv2.so, but no providers
found in RDEPENDS:crank-sbengine? [file-rdeps]

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-04 14:45:32 +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
Javier Viguera 60e499f423 u-boot-dey: customize boot script for ccimx93
This was a verbatim copy of the one for the ccimx8mm.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-03 18:54:47 +01:00
Javier Viguera d2693a3cfe u-boot-dey: recover git sha1 revision on u-boot banner
This is provided by a class in "meta-freescale" so inherit it only for
NXP based platforms.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-03 17:57:24 +01:00
Javier Viguera e5bbc04341 u-boot-dey: define build path for external build
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-03 17:53:40 +01:00
Javier Viguera 763ddf471b ccimx93: imx-boot: generate properly named boot artifacts
Although in theory, you can use any label to name the different u-boot
build configurations, we have them coupled to machine names in the
boot-artifacts bbclass, and also in the default boot artifact filename
in the firmware installation scripts.

So fix that up for the ccimx93 in the machine config, and create the
proper symlinks in the do_deploy imx-boot recipe.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-03 17:53:40 +01:00
Javier Viguera 5b92d3fcc3 mkproject: add ccimx8mm-dvk and ccimx8mn-dvk as supported platforms
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-03 16:59:56 +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
Javier Viguera ae792c4a0e meta-digi-arm: delete obsolete BBMASK
imx-atf version 2.4 is no longer available in meta-freescale

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-03 11:00:22 +01:00
Javier Viguera a471b71f67 meta-digi-arm: update ccimx8m config to allow building
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-03 10:45:53 +01:00
Javier Viguera f8d5d63fcd linux-dey: add ccimx8m compatibility with kernel version 5.15
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-03 10:45:53 +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
Hector Palacios 856a4a3c70 ccmp1: remove existing common settings and move others to include file
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-01-02 17:24:59 +01:00
Hector Palacios c21dac88a6 uboot: ccmp1: remove deprecated FIP_UBOOT_CONFIG
This variable was removed from meta-st-stm32mp so we need to get rid of it
in meta-digi, too.

Reported-by: Javier Viguera <javier.viguera@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-8268
2023-01-02 17:24:59 +01:00
Javier Viguera 99cdcae9bb ccimx93: add TRUSTFENCE_SIGN_MODE to machine configuration
This is needed to build the "nativesdk-trustfence-cst" package.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-12-23 15:05:11 +01:00
Javier Viguera 345306b94c imx-boot, imx-mkimage: update to version lf-5.15.71-2.2.0
Both recipes (imx-boot and imx-mkimage) use the same source code
repository, so update both of them to the new NXP release, by copying
with minimal changes the recipes in meta-imx.

Also convert the original 'imx-mkimage' recipe, which was only for
native class, to a full target, native, nativesdk recipe. We need this
to be able to include the nativesdk one in our toolchain.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-12-23 15:02:53 +01:00