Commit Graph

541 Commits

Author SHA1 Message Date
Mike Engel c515187ed4 ccmp1: add secure console support
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2023-05-11 12:42:49 +02:00
Javier Viguera e7004dcaa8 ccimx93: add MIPI display overlay
Support for DLC0200CC904DF-2 panel has been added in the kernel.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-11 11:37:30 +02:00
Hector Palacios 9b165196bb global: create DIGI_SOM variable and reformulate DIGI_FAMILY variable
Certain platforms share a processor family but need to be differentiated
between them. DEY was using the variable DIGI_FAMILY as the SOM name
rather than the family. It becomes useful to have both (DIGI_SOM as the
more specific, and DIGI_FAMILY as the more generic).

This is the case, for example, of:

- ccmp1 (family)
  - ccmp15 (SOM)
  - ccmp13 (SOM)
- ccimx8m (family)
  - ccimx8mm (SOM)
  - ccimx8mn (SOM)

Both variables are used on the machine overrides.
Where DIGI_FAMILY was used, use now DIGI_SOM.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-05-10 17:33:23 +02:00
Hector Palacios 56f323044c global: rename DEY_BUILD_PLATFORM to DEY_SOC_VENDOR
The name of the variable was not very intuitive of what
it contains. This variable expands to the SoC vendor
(NXP or STM).

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-05-10 17:33:23 +02:00
Tatiana Leon 70b0a17b0e cloudconnector: new variable to allow custom cloudconnector package definition
By default, our 'cloudconnector' package is installed.
This can be overriden by defining 'CLOUDCONNECTOR_PKG' in the 'local.conf'
with the custom package that includes this application.

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-05-09 11:47:25 +02:00
Gabriel Valcazar faa2ce67d4 Remove meta-st-stm32mpu-ai dependency with st-openstlinux layer
This dependency is only required if you wish to build ST's reference images,
which isn't our case. Add said reference images' recipes to the BBMASK to
avoid build errors.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-05-08 13:00:59 +02:00
Javier Viguera 9141451583 meta-digi: cosmetic, delete machine variants dead code
We removed machine variants support years ago.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-05 14:39:34 +02:00
Javier Viguera d193b5e3a7 ccimx93: add NPU overlay
Support for Ethos NPU has been enabled in the kernel.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-04 18:25:28 +02:00
Javier Viguera eb1bc0eeb3 meta-digi-arm: fix regression in optee userspace support
OPTEE_PKGS variable must have a default (empty) value to prevent bitbake
parsing errors.

This fixes a build failure for MP1 platforms where the variable was
undefined in the commit that added the support.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-04 18:24:36 +02:00
Javier Viguera beb9fd02e6 meta-digi-arm: add optee userspace for IMX platforms that support it
NXP platforms that have 'optee' in the MACHINE_FEATURES, will install
optee userspace packages (ccimx8m and ccimx93 at the moment).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-03 18:32:21 +02:00
Isaac Hermida 5f5855744d init-ifupdown: ccimx93: add p2p and AP support
https://onedigi.atlassian.net/browse/DEL-8346

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-04-20 17:05:00 +02:00
Gonzalo Ruiz 7b2339869a ccmp1: add BT Test overlay to the default images
Add the overlay required to perform the BLE HCI Raw test to the
linux default images. That way, default images can be used to certify
the product.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2023-04-20 13:54:54 +02:00
Gabriel Valcazar 0fcd8906d4 Revert "imx-digi-base: add dummy MULTIUBI_BUILD value to fix Vigiles builds"
An official fix was added to meta-timesys in commit
ae4f6e9854361d4a6d71b6f8b87130268d990b32, so our workaround is no longer needed

This reverts commit 7a77130550.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-04-19 11:19:55 +02:00
Gabriel Valcazar 7a77130550 imx-digi-base: add dummy MULTIUBI_BUILD value to fix Vigiles builds
Commit 32dd3d59c250f916115b339c29aa4dbfe50a3235 in poky breaks i.MX platform
builds when "vigiles" is inherited. While we wait for a fix in the community,
work around this issue by setting a dummy default value in the MULTIUBI_BUILD
variable.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-04-11 17:25:00 +02:00
Javier Viguera 0f2f513f8b ccimx93: add more device tree overlays
Second ethernet and MikroE click board overlays.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-04-03 18:39:35 +02:00
Isaac Hermida 060e2f4fe1 ccimx93-dvk.conf: include WiFi and BT features support
https://onedigi.atlassian.net/browse/DEL-8346
2023-03-27 16:34:06 +02: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
Javier Viguera d76bb3ac2c machine: restrict udev extra rules to systemd or udevd device managers
There are other device managers (e.g. mdev) that do not understand those
udev rules, so do not install them unconditionally.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-03-21 17:05:15 +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
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
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
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
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 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 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
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
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
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
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
Javier Viguera 60df16d022 meta-digi: use NXP's imx gstreamer plugin for ccimx93
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
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 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 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
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
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 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
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 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 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 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