Commit Graph

2050 Commits

Author SHA1 Message Date
Javier Viguera 1565cacc10 meta-digi-arm: support wolfssl dynamic layer
https://onedigi.atlassian.net/browse/DEL-8036

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-31 17:30:36 +02:00
Javier Viguera a60ea88441 stm-st-stm32mp: update weston bbappend and patches to version 10.0.2
Base recipe in Poky has been updated to that version, so we need to
update the bbappend to prevent a bitbake parsing failure.

NOTE: to review the patches once they are updated in
'meta-st-openstlinux'.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-31 12:48:11 +02:00
Javier Viguera 526cb3cae0 weston: remove deprecated recipe
meta-freescale updated to version '10.0.0.imx', so our bbappend fails
with:

ERROR: No recipes in default available for:
  ... meta-digi-dey/dynamic-layers/freescale-layer/recipes-graphics/wayland/weston_9.0.0.imx.bbappend

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-31 11:58:36 +02:00
Tatiana Leon 93e69dfb3e crank: recipe for crank demos
This recipe downloads a tarball with Crank demos
(http://log-sln-jenkins.digi.com/yocto/downloads/crank-demos-7.1.tar.gz)

NOTE: Currently it will only includes the 'Thermostat' sample.

It installs these demos inside '/usr/share/crank/apps' and configures one of
them (Thermostat application) to be launched on boot.

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

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2022-08-26 13:34:59 +02:00
Isaac Hermida 548efe4f6f kernel-module-qualcomm: use siocdevprivate for privates ioctls
Fix the way to register custom ioctls for kernel 5.15+.

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-08-18 11:43:42 +02:00
Javier Viguera d4f4b40abd kernel-module-qualcomm: remove wlan kernel module load script
The qualcomm.sh script has been losing functionality over time, to the
point that now is just loading the kernel module using 'modprobe'.

Instead, run modprobe directly from the udev rule and get rid of the
qualcomm script.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-12 11:45:02 +02:00
Javier Viguera fecc12fa0b meta-digi: get rid of LOG git mirror
As that's an old VM with limited specs, there is no much gain on using
it over the canonical Stash repositories that justifies the code
overhead and the possible errors due to synchronization problems.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-11 12:23:17 +02:00
Javier Viguera cea7ab0501 linux-dey: move SRCREV to actual versioned recipes
The SRCREV may change depending on the version of the kernel, so it
cannot be a common variable for all kernel versions.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-10 18:04:52 +02:00
Javier Viguera 34e90d6d72 linux-dey: remove 5.10 recipe
No platform is using this version of the kernel.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-10 18:04:22 +02:00
Javier Viguera b00450d8dd linux-dey: get rid of LOG kernel mirror
Use the canonical Stash repository to avoid synchronization problems
between the repo and the mirror.

Moreover the LOG mirror is hosted in an old VM machine with limited
specs, and although the transfer of the objects is faster, the counting
of the objects to transfer (which is done in the server) takes ages to
complete, so at the end, there is no time gain using the mirror.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-10 18:03:52 +02:00
Javier Viguera e21c78dd88 Revert "kirkstone migration: fix mesa build on ccmp15-dvk"
Not needed anymore in our layer, as this has been fixed in meta-st-stm32mp.

This reverts commit 786e5c9e56.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-10 11:15:49 +02:00
Javier Viguera 9e06877cc6 ccmp15-dvk: update kernel defconfig file
It has been renamed in the kernel tree.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-10 09:53:39 +02:00
Javier Viguera 29e2f56cc5 meta-digi: remove NXP's EULA v35 configuration
This has been recently added to meta-freescale, so it's duplicated here.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-09 18:11:39 +02:00
Javier Viguera 482339617b linux-dey: fix kernel build configuration
Commit 8cba3aaefb in 'meta-freescale' changed the kernel_localversion
function we are using in our kernel recipe. This leads to a not-properly
configured kernel build, where CONFIG_MODULES is disabled. That
config option is needed to build external kernel modules in other
recipes, so those recipes (kernel-module-qualcomm, cryptodev-module,
etc) fail to build.

The commit makes sure the kernel is properly configured for building by
extending the do_configure function in a "prepend".

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-08-08 15:36:25 +02:00
Arturo Buzarra 56bdbaded9 ccmp15-dvk: disable use of extra partition vendorfs
By default STM layer creates extra partitions, the vendorfs partition is
reserved to save custom STM libraries and binaries, however the ccmp15 platform
does not have this additional partition, and stores all the libraries in the
rootfs.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-26 08:05:27 +02:00
Javier Viguera 3c554bbbc2 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-21 15:49:22 +02:00
Javier Viguera 29124cd33f meta-digi: update revisions for dey-4.0-r1.alpha1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-21 15:49:22 +02:00
Javier Viguera 53b0e2d963 u-boot-dey: remove ccimx6ul from compatible list
The CC6UL is supported in version 2020.04

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-21 15:49:22 +02:00
Arturo Buzarra d09896bb67 stm-st-stm32mp: update gstreamer recipes for STM32 paltforms
gstreamer recipes was updated to v1.20.3 in poky layer, so this commit updates
the recipe version for custom bbappends.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-19 14:52:45 +02:00
Arturo Buzarra 2ec23b4128 stm-st-stm32mp: update weston recipe for STM32 paltforms
weston recipe was updated to v10.0.1 in poky layer, so this commit updates the
recipe version and refresh a custom STM patch.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-19 14:49:08 +02:00
Isaac Hermida 4c2a524d6e kernel-module-qualcomm: fix sdio unload error
https://onedigi.atlassian.net/browse/DEL-7986

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-07-18 16:57:55 +02:00
Arturo Buzarra 91c9c06cd0 firmware-murata: update firmware binaries to version imx-hardknott-drogon_r1.0
This commit updates the required firmware binaries for bluetooth and wireless
interfaces, based on the release imx-hardknott-drogon_r1.0 (Wireless firmware
v13.10.246.265)

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-15 07:57:02 +02:00
Javier Viguera 17e12fe926 nativesdk-packagegroup-sdk-host: fix SDK build for ccmp15
Building a toolchain/SDK fails for ccmp15-dvk, because the NXP-based
trustfence tools (for example the cst) are not available. Fix the build
by filtering out those tools when the build platform is not NXP based.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-14 15:44:41 +02:00
Javier Viguera 69e961b857 meta-digi-arm: use latest version of IMX firmware
Copied from meta-imx

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-12 18:03:53 +02:00
Javier Viguera 5c0a8c0040 meta-digi-arm: update/refresh fsl-eula classes from meta-imx
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-12 18:03:43 +02:00
Javier Viguera 83e845c10f meta-digi: use last version of NXP's EULA
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-12 18:03:33 +02:00
Javier Viguera 90b3c244da meta-digi: do not install kernel image in rootfs
It's just a waste of space as we already have the kernel image in the
'linux' partition and that gets mounted under /mnt/linux.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-08 13:23:58 +02:00
Javier Viguera 153048c2a7 trustfence-cst: restrict package to native/nativesdk
The recipe fails to build for the target, but that is expected, as this
is a tool you need to run in the host or from the toolchain/SDK, so
rework the recipes to restrict only for native and nativesdk.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-06 11:58:57 +02:00
Javier Viguera 47215862cf trustfence-cst: fix build in DEY 4.0
Yocto 4.0 only supports OpenSSL 3.0.x while NXP's CST (code signing
tool) is still using OpenSSL 1.1.x. So the build fails when using the
Yocto-build OpenSSL. Instead, build OpenSSL 1.1.1 as part of the build of
the CST and link statically against libcrypto, so the resulting binaries
(cst, srktool) do not depend on any specific OpenSSL version installed
on the development computer.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-06 11:58:21 +02:00
Gonzalo Ruiz ba035acb22 trustfence: add Trustfence tools in default toolchain
In order to perform the standalone signature process, it was required
to rebuild the Toolchain with Trustfence support enabled.

CST source code is now available for downloading in the Digi FTP, so add
Trustfence sign scripts and cst/srktool to the default toolchain for it
to be used for standalone signature without rebuilding.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
(cherry picked from commit 2c9b721fb9ce38dcd0034e22d95db6e0ee068955)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-07-05 17:36:12 +02:00
Arturo Buzarra 3c47480f49 ccmp15-dvk: add graphical support with wayland/weston
https://onedigi.atlassian.net/browse/DEL-7981

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-04 16:56:41 +02:00
Arturo Buzarra d261ba301b stm-st-stm32mp: add packagegroup-dey-gstreamer to support STM platforms
https://onedigi.atlassian.net/browse/DEL-7981

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-04 16:56:41 +02:00
Arturo Buzarra ee2a28f3cc stm-st-stm32mp: add support to gstreamer1.0 recipes for STM32 paltforms
https://onedigi.atlassian.net/browse/DEL-7981

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-04 16:56:41 +02:00
Arturo Buzarra bdb42db0f1 stm-st-stm32mp: add support to wayland/weston recipes for STM32 paltforms
https://onedigi.atlassian.net/browse/DEL-7981

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-04 16:56:41 +02:00
Arturo Buzarra 9a2eb7ea5f linux-dey: add ConnectCore MP15 support to kernel v5.15
https://onedigi.atlassian.net/browse/DEL-7981

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-07-04 16:56:41 +02:00
Isaac Hermida b54922a9b9 kernel-module-qualcomm: p2p and netdev patches
The enable p2p patch add support for enabling p2p as module parameter setting
it by default to false.
The cfg80211 netdevice fixes the registration of virtual interfaces for kernels
v5.12+.

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

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-06-27 09:44:41 +02:00
Javier Viguera c6b55f492f linux-libc-headers: use Poky's default version 5.16
Also, fix the sequence number of the GPIO_SET_DEBOUNCE_IOCTL ioctl. Same
fix has been done in Linux.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-22 15:44:49 +02:00
Javier Viguera 33f881806a uboot: install scripts: fix u-boot image for variants 0x09 and 0x0a
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
(cherry picked from commit 16eded4f0edcc603de83be7155f7c09718ba5ddd)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:56:27 +02:00
Javier Viguera 8fbb4d576a kernel-module-qualcomm: fix build with kernel 5.15
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:52:48 +02:00
Javier Viguera f0b72732fe linux-dey: add recipe for kernel 5.15 (at the moment only for ccimx6ul)
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:52:48 +02:00
Javier Viguera 8d123d7451 kirkstone migration: delete deprecated or duplicated recipes
Remove deprecated versions of recipes updated in other general layers
(poky, meta-openembedded). Also remove duplicated IMX specific recipes that
are available in other BSP layers (meta-freescale, meta-fsl-demos, etc).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 2452e85a6b kirkstone migration: cosmetic, clean build warnings
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 786e5c9e56 kirkstone migration: fix mesa build on ccmp15-dvk
An outdated 'mesa' bbappend on meta-st-stm32mp is making mesa package
fail to build, due to incorrect configure options.

mesa-22.0.0/meson.build:614:2: ERROR: Problem encountered: kmsro requires dri3 for X11 support

Override the build configuration in our layer until the bbappend gets
fixed in ST layer.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 8a34234f61 kirkstone migration: meta-digi-arm: add ST dynamic layer support
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 18a2a93b02 kirkstone migration: fix kernel-module-qualcomm build
Yocto is becoming more strict on not using tags in the SRCREV, as that
may lead to problems in the different tasks of a bitbake recipe.

As of Yocto 4.0, bitbake errors when such condition happens, with:

"Recipe uses a floating tag/branch without a fixed SRCREV"

So convert the SRCREV of all tags to the proper SHA1 revision.

Also, extend the 'fix-build-issues' to delete '-Werror' from the
compilation flags. Newer versions of GCC (as the one used in Yocto 4.0)
throw more (new) warnings, and the '-Werror' flag was making the build
to fail.

cc1: all warnings being treated as errors
lim_api.c:1057:17: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
lim_admit_control.c:169:17: error: this 'if' clause does not guard... [-Werror=misleading-indentation]

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-21 16:49:56 +02:00
Javier Viguera 9a596836c9 kirkstone migration: update libubootenv package
Refresh patches so they apply on top of new version 0.3.2

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-20 11:39:57 +02:00
Javier Viguera b68ddc2357 kirkstone migration: update SRC_URI URLs
In 4.0 the branch is mandatory when using git as fetcher in the SRC_URI.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-20 11:39:57 +02:00
Javier Viguera 4a0db0c8a7 kirkstone migration: update machine's config files
* fix arch tune files path in machine config
* update imx-digi-base config file (using as a base the imx-base.inc
  config file in 'meta-freescale')

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-20 11:39:57 +02:00
Javier Viguera 065cf3e9c4 kirkstone migration: general update to the new override syntax
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-20 11:39:57 +02:00
Javier Viguera e30d6931fd kirkstone migration: make layers compatible
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-06-13 13:30:08 +02:00
Arturo Buzarra 1192a62d93 ccmp15-dvk: fix SDK build for ConnectCore MP15 platform
By default, the STM layer includes several tools in the SDK, one of which is
the gcc-arm-none-eabi toolchain. However, in the build process it throws the
following unexpected error about an unsatisfied runtime dependency:
    Error:
     Problem: conflicting requests
      - nothing provides libpython2.7.so.1.0()(64bit) needed by
        nativesdk-gcc-arm-none-eabi-9-r0.1.x86_64_nativesdk

Since this package works with python3, python2 was deprecated and this tool is
only needed to build Cortex-M4 applications, this commit removes this package
from the default SDK.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-25 11:47:52 +02:00
Arturo Buzarra 52fece587f kernel-module-qualcomm: add support to read the MAC addresses from device tree
This commit adds a patch for the qcacld-3.0 wireless driver to read the
wireless MAC addresses from device tree. This patch is based on the original
commit from qcacld-2.0 driver improving and simplifying the code to work with
the new qcacld-3.0 driver.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-19 16:13:30 +02:00
Arturo Buzarra 2c111a99f1 firmware-qualcomm: update wireless firmware from r10016.1
This commit updates the wireless firmware in order to work with the new Linux
qcacld-3.0 wireless driver.
Latest release "r10016.1 - Post-CS3 1.0.016.1" updates the following files from
"qca6574au-le-2-2-1_qca_oem" product branch:

    PCIe:
     - athwlan.bin  (b4fd36922625b7303d006581f6c7cd10)
     - utf.bin      (0d70048214fea05d1c40b3034e8107cd)

    SDIO:
     - qwlan30.bin  (342cb50ce5c6ff930a65f341c0dfbc77)
     - utf30.bin    (f94810be89cc2f3e979ab4a57243872b)

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-19 13:36:28 +02:00
Arturo Buzarra 5bc574a8e9 kernel-module-qualcomm: update recipe to use new qcacld-3.0 Linux wireless driver
This commit updates the Linux wireless driver for Qualcomm's chipset to the
new qcacld-3.0 driver.
This update is based on the release "r10016.1 - Post-CS3 1.0.016.1" from
"qca6574au-le-2-2-1_qca_oem" product branch, which uses for a Linux kernel v5.4
the tag "CHSS.LNX_FSL.5.0-01200-QCA6574AUARMSDIOHZ".

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-19 13:36:28 +02:00
Arturo Buzarra 3eef2d8d37 imx-boot: fix include path with dynamic layer
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-12 17:34:07 +02:00
Arturo Buzarra 4518d265e4 meta-digi-arm: fix typo in dynamic-layers for NXP platform
Commit 8c396281 ("layer: add dynamic-layers for NXP platform") introduced a
typo in the dynamic layer name.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-12 17:34:07 +02:00
Arturo Buzarra 4a4f40ad02 ccmp15-dvk: fix ubifs partition creation for ConnectCore MP15 platform
This commit uses the same values as the ConnectCore 6UL which uses the same
type of NAND.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-10 11:29:12 +02:00
Arturo Buzarra 8fac0cc46e image_types: fix do_image_boot_ubifs() for ConnectCore MP15 platform
This commit reverts partially the commit 548b8729 ("image_types: add support to
create CCMP15 ubifs images") to fix the boot partition generation.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-10 11:29:12 +02:00
Arturo Buzarra 8bdc615a5a digi-defaults: add ConnectCore MP15 platform Linux/U-Boot reference
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-10 11:29:12 +02:00
Arturo Buzarra acf7c4305a ccmp15-dvk: fix image types included for the ConnectCore MP15 platform
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-10 11:29:12 +02:00
Arturo Buzarra a1862921af ccmp15-dvk: remove bluez5-init recipe for the ConnectCore MP15 platform
This platform initializes the Bluetooth interface through the own bluetooth
driver, so the custom Digi init scripts are not needed.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-10 11:01:08 +02:00
Arturo Buzarra 85a77d15ea ccmp15-dvk: add firmware recipes for wireless and bluetooth
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-10 11:01:08 +02:00
Arturo Buzarra ace9abb13e ccmp15-dvk: set zImage as default kernel image type
This commit changes the "Image" for the "zImage" as the default kernel image
type for the STM platform.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-10 11:01:08 +02:00
Arturo Buzarra 602b884717 linux-dey: fix deploy folder for STM platforms
This commit avoids creating a subfolder for the kernel artifacts, to homogenize
it with the NXP platforms and avoid using custom recipes for the result
artifacts.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-10 11:01:08 +02:00
Arturo Buzarra 7b61614eae firmware-murata: new recipe to manage firmware binaries to Murata wireless chips
This recipe will download and install the required firmware binaries for
bluetooth and wireless interfaces. This recipe is based on the release
imx-hardknott-cynder_r1.0 (Wireless firmware v13.10.246.261)

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-05-10 10:56:22 +02:00
Mike Engel ea0d8d7b8b pulseaudio: add alsa and pulseaudio support for the CCMP15
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 548b8729aa image_types: add support to create CCMP15 ubifs images
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 97c1732c6c optee: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel c14c4499e9 layer: remove required STM recipe from build system
This commit removes some STM recipes that are not
needed in our layer because they apply changes that
are not required in our DEY layer.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel ee06c1bf0e alsa: add alsa support for CCMP15
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 23d307ca58 linux: move defconfig build commands to kernel common recipe
This commit moves Kernel defconfig build commands into the Linux
common recipe.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 652341f3b1 linux: fix some build issues and update copyright date
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel de46b4ae85 ccmp15-dvk: add CCMP15-DVK platform configuration
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel bef5224dd8 mca-tool: add mca-tool support for CCMP15
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 31a6056dcf conf: move PREFERRED_VERSION for NXP platforms into imx-digi basic configuration
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel bb6e445966 layer: add STM EULA files and checksum for STM platforms
The EULA version is SLA0048 Rev4/March 2018

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 75e2478ae1 u-boot: add CCMP15 support to build u-boot
This commit adds u-boot build support for the CCMP15 platform.
The installation scripts are copies from the CC6UL platform.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>

https://onedigi.atlassian.net/browse/DEL-7797
2022-05-04 14:01:05 +02:00
Mike Engel 93d956032a linux-fslc: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 86fb57103d imx-usb-loader: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel ed8cdd92d6 imx-vpu: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel bcbf3edb22 imx-test: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel f8f03a6735 imx-lib: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel f6c3e519b6 isp-imx: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 7bdfbd3144 imx-vpu-hantro-vc: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 01bb7fe355 mcore-demos: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 8f63ae3764 udev: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 8a72bbd3a6 imx-vpu-hantro: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 0b198431ee imx-mkimage: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 494c773286 imx-seco: move recipes into dynamic-layers for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel bf2a06e9b5 imx-atf: move recipes into dynamic-layer for NXP
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel cd9eb2d093 firmware-imx: move to dynamic-layer
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 8c39628133 layer: add dynamic-layers for NXP platform
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 1546a79981 linux: add CCMP15 support to build kernel
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel d78d601841 linux: move Trustfence signing into include file to be used by different kernel versions
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Mike Engel 56d7133147 layer: add STM layer for CCMP15
This commit adds the STM layer to the DEY build
system and enables NXP platform layer.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2022-05-04 14:01:05 +02:00
Gabriel Valcazar 600c3d7790 mount_digiparts.sh: run single MTD layout code path only when appropriate
This code path was added in the context of single MTD layout support for
ccimx6ul boards, but it was being executed in the default storage layout use
case as well. This could trigger a race condition in which one code path
deletes the mount point while the other one is still setting it up, causing
partitions to not be mounted automatically (specifically, the "update"
partition).

Since both code paths are mutually exclusive in our implementation, reflect
this by making sure that the single MTD layout path is executed only when said
layout is enabled in the U-Boot environment.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
(cherry picked from commit 9a7ea10a4dfb74651f865f125372604fe6840a10)
2022-04-06 10:51:30 +02:00
Gabriel Valcazar 54ddb775c4 trustfence-sign-artifact.sh: remove CONFIG_SIGN_MODE as a mandatory parameter
The sign mode needed for each platform is invariable, and since the platform
is already a mandatory parameter for the script, we can store this information
implicitly. Reflect this change in every recipe where the script is used, but
keep the variable at the Yocto level since it's still needed in several places.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-03-22 12:47:32 +01:00
Javier Viguera faef4f90d9 linux-dey: rename branch for NXP supported platforms
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-22 10:19:49 +01:00
Javier Viguera 9cf07d25aa imx-boot: add SOC target for ConnectCore 8M Plus
https://onedigi.atlassian.net/browse/DEL-7784

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-03 12:00:26 +01:00
Isaac Hermida 3166345250 u-boot: add boot script for ConnectCore 8M Plus
https://onedigi.atlassian.net/browse/DEL-7784

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-03 12:00:26 +01:00
Javier Viguera 682fc8c169 u-boot: add recipe for v2021.04 (at the moment only for ccimx8mp)
https://onedigi.atlassian.net/browse/DEL-7784

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-03 12:00:26 +01:00
Javier Viguera 946c2fe6cf linux-dey: add recipe for kernel 5.10 (at the moment only for ccimx8mp)
https://onedigi.atlassian.net/browse/DEL-7784

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-03 12:00:26 +01:00
Isaac Hermida 148b1b443b meta-digi-arm: add support for ConnectCore 8M Plus platform
https://onedigi.atlassian.net/browse/DEL-7784

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-02-03 11:45:31 +01:00
Javier Viguera b6137c5d5e linux-dey: move the version specific info to the proper bitbake recipes
The license checksum and the source branch should be on the properly
versioned bitbake recipes. Otherwise, when we include this common file
in a different version linux recipe (for example, the upcoming 5.10) it
will inherit incorrect values.

While on it, fix the incorrect license checksum values for the linux 5.4
recipes.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-02-02 10:34:33 +01:00
Arturo Buzarra 771d5af74c firmware-qualcomm: update proprietary firmware to release r00006.3.470144.2a
Latest release r00006.3.470144.2a - CS3 0.0.006.3.470144.2a updates the
following files from qca6574au-le-2-2-2_qca_oem repository to fix
CVE-2021-30310:

qca65X4_pcie:   qwlan30.bin ->  b4a3730e9084871ef89faa5a34aae790
                utf.bin     ->  fd5c746e80dcb45f76e739f766055f5a
qca65X4_sdio:   qwlan30.bin ->  550701e51751928458a83d7dafadc017
                utf30.bin   ->  273bd31372afa2d7736a8e7639e44830

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-01-18 12:03:37 +01:00
Arturo Buzarra 7fbcde38bf firmware-qualcomm: Update BDF to pass EN 300 328 V2.2.2 blocking test.
This commit updates the US Board Data File (BDF) to include the changes
required to pass the EN 300 328 V2.2.2 blocking test.

The new BDF files are:

- ccimx6/bdwlan30_US.bin (eb3d3cdafd30b30e837974177a281648)
- ccimx8m/bdwlan30_US.bin (72531e6e0870673e4ba2b02bd551925b)
- ccimx8x/bdwlan30_US.bin (1cf667271da33f6eb207360eeb3d4d63)

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-01-17 13:00:31 +01:00
Gabriel Valcazar b0ff9ec03a linux-firmware: remove SDMA packages
This makes it so bitbake obtains the SDMA firmware from the firmware-imx recipe
instead.

This also avoids including all of the linux-firmware packages in i.MX6 SDK
builds, preventing errors when building the ccimx6sbc SDK (linux-firmware
provides the community versions of the ath6k and ar3k firmwares, which clash
with our versions).

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-12 17:09:33 +01:00
Gabriel Valcazar 01611bdf3e hardknott: tensorflow-lite: rename to tensorflow-lite-coral
This makes it possible to distinguish between two different packages:

    * NXP's tensorflow-lite, which contains modifications for i.MX platforms
    * Our tensorflow-lite, which is meant to be used with Google Coral

Since tensorflow-lite-coral provides a subset of the files provided by
tensorflow-lite (specifically, the python libraries), make the packages
conflict during runtime.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 28dedd9050 hardknott: perf: sync with meta-imx hardknott-5.10.72-2.2.0 branch
This package is used by the eIQ recipes, so make sure we have NXP's .bbappend
so it works as expected

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar a7f8fe487c hardknott: digi-sc-firmware: update to v1.11.0
This includes NXP's code from the SCFW porting kit v1.11.0

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar d3ec43b3a1 hardknott: imx-vpu-hantro-vc: make package compatible with all i.MX8MP boards
This is a small oversight on NXP's part, because this package is pulled in as a
dependency of imx-vpuwrap, but it's only compatible with their EVK board,
making the build fail on any other i.MX8MP board.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 54d0d58147 hardknott: imx-boot: adapt patch for latest revision
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar cf38841b02 hardknott: imx-atf: adapt patches to latest revision
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 8db6ddabd7 hardknott: image_types_digi: shorten VFAT label name
It seems like the version of mkfs.vfat used in Yocto 3.3 has a label name
length limit of 11 characters. All of the labels for our current platforms
surpassed this limit ("Boot ccimxX" alone already occupies 11 characters), so
replace the machine name with "DEY"

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar a357f47f3b hardknott: ccimx8x: use both versions of the SECO firmware (B0 and C0)
We lost this logic when migrating to hardknott, so re-incorporate it

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 99a72aa189 hardknott: imx-boot: explicitly set IMX_BOOT_SOC_TARGET and ATF_PLATFORM
These variables were originally set in NXP's recipes, but they moved their
definitions to each platform's configuration file. Set the appropriate values
where needed. While at it, replace every mention of the SOC_TARGET variable
with its new name, IMX_BOOT_SOC_TARGET.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 1184f74439 hardknott: meta-digi-arm: filter out imx-atf recipe from meta-freescale
The recipe we ported from meta-imx has the same version number (v2.4) and
bitbake chooses the meta-freescale version because said layer comes before
meta-digi-arm in the BBLAYERS. Since the meta-freescale version uses different
platform overrides, the build fails, so filter it out to use our version
instead.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 52c37a6fe5 hardknott: meta-digi: replace GPL-2.0 license file with GPL-2.0-only
The common license file GPL-2.0 is now called GPL-2.0-only in poky, so we need
to reflect this name change to avoid errors

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 16e8c39225 hardknott: conf: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Reflect NXP's changes in each platform's MACHINE_FIRMWARE in our layer

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 74f99d887f hardknott: imx-boot: sync with meta-imx hardknott-5.10.72-2.2.0 branch
NXP now uses the meta-freescale version of the imx-boot recipe as a base, and
applies a .bbappend in meta-imx to apply more customizations. Reflect this
in meta-digi-arm and merge said .bbappend with ours. While at it, omit one of
NXP's operations in their do_deploy, since it breaks our build and doesn't look
essential.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 6e4c9d10cc hardknott: mcore-demos: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Change the recipes' path to align with meta-imx and update said recipes

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar a3c2e95526 hardknott: optee-imx: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Update recipes to v3.15.0.imx

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 903e07ff8f hardknott: linux-imx-headers: sync with meta-imx hardknott-5.10.72-2.2.0 branch
For now, port the new content of the v5.10 recipe to our v5.4 recipe.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 641501cc04 hardknott: udev: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Update the 10-imx.rules file

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 8844f5eeea hardknott: isp-imx: sync with meta-imx hardknott-5.10.72-2.2.0 branch
These recipes are exclusive to the i.MX8MP, so add them just in case.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 07af2e7561 hardknott: imx-vpu-hantro-vc: sync with meta-imx hardknott-5.10.72-2.2.0 branch
This recipe is only compatible with the i.MX8MP EVK, so it might be
platform-specific or board-specific. Add it for now to be safe.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 4df9da4749 hardknott: imx-vpu-hantro: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Update to v1.24.0 and add new recipe for imx-vpu-hantro-daemon

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar fea55dbad0 hardknott: imx-test: sync with meta-imx hardknott-5.10.72-2.2.0 branch
This recipe was missing from our layer, so add it just in case it's needed
by any new package.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar a3f5249599 hardknott: imx-seco: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Update to v3.8.4

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar b2e49ee896 hardknott: imx-mkimage: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Update revision and synchronize recipes

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 4ed89e201a hardknott: imx-atf: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Update revision and re-organize platform overrides

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 4b5897b944 hardknott: imx-lib: sync with meta-imx hardknott-5.10.72-2.2.0 branch
This .bbappend is brand new in meta-imx, so add it to our layer

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 3c6c9b82a3 hardknott: firmware-imx: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Update the recipes to v8.14. NXP changed the mechanism used to load the sdma
and regulatory firmware (they now use firmwared), so remove our ccimx8mm sdma
fw service for now and see if we need a similar workaround with the new
mechanism.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar d62d022375 hardknott: layer.conf: sync with meta-imx hardknott-5.10.72-2.2.0 branch
Sync the NXP license checksums by removing the outdated ones and adding the
missing ones

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar 8d51d35236 hardknott: fsl-eula-unpack: sync with meta-imx hardknott-5.10.72-2.2.0 branch
This .bbclass is outdated and no longer used in any of NXP's recipes, so remove
it

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Gabriel Valcazar a382184037 hardknott: update meta-digi LAYERSERIES_COMPAT
Update support to "hardknott" release

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-05 11:09:46 +01:00
Ariel D'Alessandro 68ec34e108 image-type_digi.bbclass: Fix typo in comment
Minor change fixing a typo.

Signed-off-by: Ariel D'Alessandro <ariel@vanguardiasur.com.ar>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
(cherry picked from commit 0305b8cb855e347f5147d1b7a1afabffdcf8777b)
2022-01-05 10:31:49 +01:00
Gabriel Valcazar ef85b7d8f4 Merge tag 'dey-3.2-r2.2' into dey-3.2/master
Digi Embedded Yocto 3.2-r2.2

Manually changed recipes to use the master branches instead of the fixed SHA1
from the last release.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2022-01-03 11:49:48 +01:00
Gabriel Valcazar 23d067b8b9 meta-digi: update revisions for dey-3.2-r2.2
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-12-09 18:12:40 +01:00
Gonzalo Ruiz 70de030974 Revert "trustfence: change RAM location to the same values used in u-boot"
The AHAB decryption process takes the encrypted file from the address defined
in U-Boot and decrypts it into the address defined in this script. If both
addresses are the same, the decryption process ends up failing. This
happens even for signed-only images.

Maintain the original addresses in this script so they do not collide.

This reverts commit c970d87d5a.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-12-09 09:19:59 +01:00
Arturo Buzarra c8c3381ba3 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-12-02 23:26:47 +01:00
Arturo Buzarra 44ff44680f meta-digi: update revisions for dey-3.2-r2.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-12-02 23:26:47 +01:00
Francisco Gil a96fc150bf u-boot-dey: missing ";" in installation scripts for cc6ul
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2021-12-02 17:14:58 +01:00
Mike Engel c970d87d5a trustfence: change RAM location to the same values used in u-boot
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-12-01 13:11:39 +01:00
Mike Engel ddec434bc8 trustfence: move CC8X read-only signature to the end of the image
This commit moves the read-only container signature to the end of
rootfs image for the CC8X platform.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-12-01 13:11:39 +01:00
Hector Palacios fbeb7f6720 read-only: remove regular rootfs fstypes for read-only-rootfs
If IMAGE_FEATURE 'read-only-rootfs' is active, the rootfs image
will be SQUASHFS.
Remove other root file system images, such as ext4, ubifs, sdcard.gz
to avoid confusion and use by install scripts.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-12-01 11:49:20 +01:00
Arturo Buzarra 46f7d6a64c u-boot-dey: ccimx6ul: sync boot script with new dualboot variables
U-Boot uses partition names instead of partition indexes for the nand devices.
This commit syncs the boot scripts with the new dualboot variables.

https://onedigi.atlassian.net/browse/CC6UL-1254

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-11-29 11:55:17 +01:00
Francisco Gil b8d46f0120 read_only: create folders in build time
These folders /mnt/linux, /mnt/update and /mnt/data are
created by the automount_block.sh script. In a read only
system, these folders are not created raising some errors.

Creating these folders solves the issue.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2021-11-25 12:42:59 +01:00
Francisco Gil afc61dfb83 wifi: add symbolics links needed by the read only filesystem.
Create this symbolics links in build time instead of doing it
in run-time. This simplifies the system and allows it to work
with read only filesystems.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2021-11-25 12:39:28 +01:00
Francisco Gil 179d4315ef wireless: mac: create symbolic links for the wireless macs
Before this patch the MAC addresses were read from the device
tree in the qualcomm.sh script executed at init, and a creates
a file where the MAC where located.

In 0a92f5d9e8df644de74e74f152ed6ff3dd8d3369 in the qca driver
the support to read these MAC addresses from the filesystem
was added.

This commits creates the simbolic link between the device tree
and the expected path where the MAC addresses where located, and
gets rid of the file with the MAC addresses.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2021-11-25 11:38:27 +01:00
Gonzalo Ruiz 446ecdd2e0 imx-boot: install mkimage logs into imx-boot-tools directory
mkimage logs are required for signature on CC8X and CC8M platforms. Create a
copy in the 'imx-boot-tools' deploy directory so a prebuilt imx-boot file can
be later signed using the standalone signature procedure.

Build the 'print_fit_hab' target unconditionally so the log is available for
future standalone signature processes.

Also, use 'CONFIG_MKIMAGE_LOG_PATH' and 'CONFIG_FIT_HAB_LOG_PATH' variables to
point to the logs before calling the sign scripts. We no longer require
creating a symbolic link of the log files.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-11-19 17:45:34 +01:00
Arturo Buzarra ed03674968 firmware-qualcomm: update proprietary firmware to release r00006.3
Latest release r00006.3 - CS3 0.0.006.3 updates the following files from
qca6574au-le-2-2-2_qca_oem repository:

qca65X4_pcie:   qwlan30.bin ->  c0741f39de31ee92a623e15adf60881e
                utf.bin     ->  875b0f52c9b80130c78f9ed2b64d7148
qca65X4_sdio:   qwlan30.bin ->  066692969db9bbb82f36cdb2352d3aa8
                utf30.bin   ->  d3b5042c3dd316b15d72db6214b60fbc

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-11-17 11:53:31 +01:00
Gabriel Valcazar 500cc96394 kernel-module-qualcomm: re-add compatibility with the ccimx6sbc
This change was accidentally reverted when merging to dey-3.2/maint, causing
the qualcomm module to be missing in the rootfs.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-11-17 11:44:14 +01:00
Arturo Buzarra 291c64d343 cryptoauthlib: set ATECC508A as default device type in default configuration
https://onedigi.atlassian.net/browse/DEL-7727

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-11-16 15:49:13 +01:00
Arturo Buzarra 916f383d8c cryptoauthlib: fix default i2c bus speed
By default, all platforms except ccimx6qpsbc work at 400 kHz on the i2c bus
connected to the ATECC508A crypto chip.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-11-16 15:29:16 +01:00
Hector Palacios 82dd2cbc4d trustfence-sign-artifact: re-use RAMDISK address for rootfs
Re-use RAMDISK address for authenticating the rootfs instead
of allocating a new address (if authenticating a rootfs, we're
not using a ramdisk).

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-11-12 09:01:44 +01:00
Hector Palacios fe2a1f281e Merge branch 'dey-3.2/master' into dey-3.2/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-11-11 16:23:43 +01:00
Mike Engel 2145614724 images: add function to sign read only rootfs when Trustfence is enabled
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-11-11 13:37:30 +01:00
Mike Engel eb730358e5 trustfence: add read only rootfs signing option to signing script
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-11-11 13:37:30 +01:00
Hector Palacios 75fca73cc5 u-boot: cc6ul: fix script adding missing call to 'uuu'
Add missing call to 'uuu' and erase the partition before creating
the UBI volumes.

Also add larger timeouts to erase operations.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-11-11 13:32:16 +01:00
Hector Palacios bc88451131 machines: add SQUASFS to IMAGE_FSTYPES for read-only-rootfs
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-7708
2021-11-05 11:18:16 +01:00
Hector Palacios 7cd57a40e3 libubootenv: adapt recipe for read-only-rootfs
The config file /etc/fw_env.config is generated dynamically basing on
the partition table and, in the case of NAND-based SOMs, on the NAND
geometry. This is done on a postinst script that modifies the file on the
first boot of the target. Since this is not allowed on read-only-rootfs,
this commit adds a default fw_env.config file to use instead when
read-only-rootfs is enabled.

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

https://onedigi.atlassian.net/browse/DEL-7708
2021-11-05 11:18:16 +01:00
Javier Viguera c89a66480b meta-digi: remove postinst on target when using read-only-rootfs image feature
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2021-11-05 11:18:16 +01:00
Gabriel Valcazar dcd97799c9 ccimx6sbc: install Qualcomm-related packages along with the Atheros ones
The idea is to have the support for both chips co-exist in the same image, then
have the system detect which chip is being used during runtime.

https://onedigi.atlassian.net/browse/DEL-7661
https://onedigi.atlassian.net/browse/DEL-7666

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-11-03 15:58:53 +01:00
Gabriel Valcazar 7ea02c26aa qualcomm: adapt firmware and module recipes to be compatible with the ccimx6sbc
This allows the packages to be included in the ccimx6sbc images. While at it,
include the Qualcomm bluez patches in ccimx6 builds. These patches aren't
destructive, they simply add functionality required by the Qualcomm chip, so
they shouldn't have any secondary effects when using the Atheros chip.

https://onedigi.atlassian.net/browse/DEL-7661
https://onedigi.atlassian.net/browse/DEL-7666

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-11-03 15:58:53 +01:00
Hector Palacios 899f89eb33 digi-defaults: use '+=' operator in assignment of BOOT_SCRIPTS
Other layers, such as meta-digi-dualboot, may add scripts to this
list on their layer.conf file. Depending on the order and priority
of layers, using a strict '=' here completely overrides previous
values, which is not desired.

Reported-by: Francisco Gil <francisco.gilmartinez@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-10-20 10:10:40 +02:00
Hector Palacios 2e35d16e03 linux-dey: fix apply of kernel configuration fragments
- Add the '-m' parameter. Without it, the script doesn't
  generate the output merged configuration file, and the
  fragments are not applied.
- Fix the if condition. The '*.cfg' expands to a list of
  files, but the '-f' only admits one parameter. Use instead
  the Python find_cfgs() function.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-10-15 19:14:27 +02:00
Hector Palacios 9ac3bd46ca uboot: install-uuu: restore variables on bootcmd after 'env default -a'
The variable 'dualboot' (and 'singlemtdsys' for CC6UL) was restored
after the bootcmd that runs the first time after programming U-Boot runs
fastboot again to resume the script.
This is ok for the CC6UL but not for the rest of platforms, that run the
partition script on the bootcmd, *before* running fastboot.

Restore the variables for all platforms in the bootcmd right after
resetting the environment.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-10-14 13:35:46 +02:00
Hector Palacios 3ab0340741 u-boot: print what system is booting after update
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-10-11 11:36:00 +02:00
Hector Palacios 13a46ed323 conf: move UBOOT_HAS_FASTBOOT to ccimx8x common include
The SBC Express also supports fastboot now.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-10-08 14:20:22 +02:00
Hector Palacios f7a1a484a6 conf: move BOOT_SCRIPTS variable to common include file
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-10-08 14:15:13 +02:00
Francisco Gil e67ed06dd5 dualboot: move the logic of fallback boot to altbootcmd
U-Boot has embedded support to handle bootcount tries.
When the limit of tries is reached, U-Boot runs the script
in `altbootcmd` rather than the usual `bootcmd`.
This other script resides on meta-digi-dualboot layer.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2021-10-08 12:59:30 +02:00
Gonzalo Ruiz 825dd6a555 install_linux_fw_uuu: remove redirection in every case
Ensure stdout redirection to the USB interface is removed in every case.
Otherwise, it would be left redirected when INSTALL_UBOOT_FILENAME is
manually set.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-09-30 10:36:40 +02:00
Gonzalo Ruiz 555be511a6 u-boot-dey: customize install_linux_fw_uuu script for ccimx6/ccimx6qp
Also, set UBOOT_HAS_FASTBOOT = "true" for these platforms.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-09-30 10:32:17 +02:00
Gonzalo Ruiz 1166981fa1 u-boot-dey: add install_linux_fw_uuu.sh for ccimx6/ccimx6qp
Add initially as a copy of the script used on the ccimx8x platform.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-09-29 18:52:29 +02:00
Gonzalo Ruiz 2e375b2e3f u-boot-dey: [cosmetic] change permissions for install_linux_fw_uuu.sh
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-09-29 18:52:29 +02:00
Hector Palacios cc2df395c5 uboot: ccimx6ul: rename variable for single MTD system partition
Rename from 'ubisysvols' to 'singlemtdsys'.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-29 13:44:50 +02:00
Hector Palacios fa3028a17e uboot: install sd/usb: convert double condition in a simpler single condition
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-29 13:44:50 +02:00
Hector Palacios f3ae964d10 uboot: cc6ul: force erase of partitions before update on install scripts
Install scripts may rework the partition table basing on the value of
env variables. Information of UBI volumes may remain on the NAND that
could later not correspond to the new partition table.
Make sure the MTD partitions are erased prior to updating:
- For Multi-MTD, append '-e' option to the update command.
- For Single-MTD, erase the system partition.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-29 13:44:50 +02:00
Hector Palacios f647e6d442 uboot: add dualboot support to fw install script from SD/USB
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-7649
2021-09-24 09:42:59 +02:00
Hector Palacios dae2b5000a uboot: add dualboot support to uuu firmware install script
Check the status of 'dualboot' env variable.
If set to "yes", use the dualboot partition table in the script and
restore the variable (default is "no") after resetting the environment.
Also, for dualboot, there's no need to wipe the recovery partition or
boot into recovery mode.

For dualboot, this script programs both systems A and B with the same
images.

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

https://onedigi.atlassian.net/browse/DEL-7649
2021-09-24 09:42:50 +02:00
Hector Palacios 85d55a70a2 uboot: use ssh protocol when using Digi internal MTK remote
Commit c33fc8a7fe wrongly used
https protocol when using MTK remote when it should have been
ssh.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-16 12:53:09 +02:00
Gonzalo Ruiz 4502004cd7 conf: machine: add flexSPI overlay to CC8X/CC8M
https://onedigi.atlassian.net/browse/DEL-7584

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-09-15 15:58:12 +02:00
Gabriel Valcazar 42cab22b95 ccimx6: add "pam" to DISTRO_FEATURES
This is necessary for images that have SELinux enabled. Aside from changing
some package configurations and including an additional library in the rootfs,
this change has no apparent effects on the core functionality of the system.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-15 10:19:14 +02:00
Gabriel Valcazar 32a39c7910 linux-dey: add support for configuration fragments
This allows users to apply small changes to our kernel configuration without
having to create a completely new defconfig. Use a simplified version of the
kernel-yocto.bbclass implementation.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-15 10:16:28 +02:00
Gabriel Valcazar abba0948a9 refpolicy: adapt reference policy to DEY prebuilt image features
The default policy provided by meta-selinux breaks a lot of the features in
DEY, so adapt it to make most features work. Note that this is simply an
example, end users should create their own policies for their own needs.

Make these changes toggleable so that users can use the reference policy
instead.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-15 10:16:28 +02:00
Gabriel Valcazar 96f54105d3 ccimx6/6ul: add "firmware-imx-regulatory" package
This package includes a script that is executed by a udev rule that we
currently include in our sysvinit images. Without it, the regulatory firmware
mechanism is broken and an error appears when booting the system.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-13 16:42:35 +02:00
Gabriel Valcazar c26d78d7a1 firmware-imx: install firmware loading scripts regardless of the init manager
When we added the SDMA fw systemd service, we accidentally made it so that all
scripts were installed only when using systemd. These files are still needed
when using sysvinit, so correct this change.

While at it, include the SDMA fw service in firmware-imx-sdma's FILES.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-13 16:42:22 +02:00
Hector Palacios 05d21a1310 u-boot: boot.txt: move dualboot checks to the top
When DualBoot mechanism is enabled and an update is pending,
the boot script needs to change certain variables and save the
environment.
The regular boot script already changes a number of variables,
such as 'extra_bootargs' and 'overlays' by appending strings to
the already existing values. Saving the envionment may make these
grow endlessly with each iteration of the boot script.

For this reason, move the DualBoot check as the first thing in
the script, save the environment if needed, and then continue
with the normal flow, that changes variables before booting
but doesn't save them.

On certain scripts, this allows us to get rid of some instructions
for resetting the overlays variable.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-09 17:38:44 +02:00
Hector Palacios 27c13055eb uboot: ccimx6ul: decide on using UBI vols basing on ubisysvols
The script required the passing of option '-b' for setting up the
target to use a single MTD partition and multiple UBI volumes.
If a target however already has the variable 'ubisysvols' set to
'yes' but this parameter is forgotten when calling the script, the
partition layout would change to default (several MTD partitions).

Remove the recently added '-b' option and make the script decide
basing on the current value of 'ubisysvols' variable.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-09 17:38:44 +02:00
Hector Palacios 13df57c1fc ccimx6ul: add support for ubisysvols on SD/USB install scripts
The script preserves the current value of env variable 'ubisysvols'
so that the new partition script generates the appropriate partition
table before proceeding with the update operations.
If using a UBI volumes layout, the script will not erase the partitions.

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

https://onedigi.atlassian.net/browse/DEL-7614
2021-09-09 17:38:44 +02:00
Hector Palacios e380377310 uboot: exit on error on uuu install script
Exit on error to prevent continuation of programming when
there was an issue.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-09 17:38:44 +02:00
Hector Palacios f46851e245 uboot: ccimx6ul: add ubisysvols support to uuu install script
With U-Boot supporting the creation of mtdparts and UBI volumes depending
on the value of variable 'ubisysvols', adapt the install script to make
use of those to generate a partition table and UBI volumes accordingly.
This can be triggered with new option '-b'.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-09 17:38:44 +02:00
Hector Palacios fcd3791535 ccimx6ul: boot: set 'rootfsvol' variable for dualboot
Set the new variable 'rootfsvol' to rootfs_a or rootfs_b when dualboot is
enabled, to cover the case where the devices uses the 'system' partition
with different UBI volumes.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-09 17:38:44 +02:00
Hector Palacios f00ce5ca9b u-boot-dey: add support for dualboot to boot scripts
The support for dualboot was integrated on meta-digi-dualboot layer, but it
really depends only on environment variable 'dualboot' so we'd better
integrate the support on the scripts in meta-digi, to avoid synchonization
problems between both layers.
This also allows to be able to easily enable dualboot in U-Boot with the
variable, without needing to update the script on the linux partition.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-09 17:38:44 +02:00
Hector Palacios 91bfa01a52 udev: automount UBI volumes named "linux" or "recovery"
Traditionally, platforms based on NAND, used one UBI volume
per MTD partition.
Now it's possible to use only one MTD partition containing many
UBI volumes.

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

https://onedigi.atlassian.net/browse/DEL-7614
2021-09-09 17:38:44 +02:00
Hector Palacios c33fc8a7fe uboot/linux: fix build from internal MTK Digi git server
Enabling DIGI_INTERNAL_GIT defaults to LOG server. The build from local
MTK Digi server was broken.

Fix uboot and linux recipes declaring different repo paths depending on
whether the local remote is LOG or MTK.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-09 17:38:44 +02:00
Gabriel Valcazar 50cbe9e6c8 ccimx6/6ul: add "firmware-imx-regulatory" package
This package includes a script that is executed by a udev rule that we
currently include in our sysvinit images. Without it, the regulatory firmware
mechanism is broken and an error appears when booting the system.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-09 09:48:37 +02:00
Gabriel Valcazar e24525af5d firmware-imx: install firmware loading scripts regardless of the init manager
When we added the SDMA fw systemd service, we accidentally made it so that all
scripts were installed only when using systemd. These files are still needed
when using sysvinit, so correct this change.

While at it, include the SDMA fw service in firmware-imx-sdma's FILES.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-09-09 09:48:25 +02:00
Hector Palacios 9352fc1395 digi: [cosmetic] remove final slash from Digi remotes and move it to recipes
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-09-07 11:01:29 +02:00
Gabriel Valcazar 225e6cafb5 mca-tool: update to v1.25
Includes minor improvements

https://onedigi.atlassian.net/browse/CC6UL-1218

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-08-18 14:11:42 +02:00
Mike Engel 54cb00e120 layer: add new EULA license MD5SUM values
This commit adds new EULA MD5SUM values that are
required due to the update of the eIQ support by
NXP.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-08-11 10:39:59 +02:00
Hector Palacios efb615fc7c ccimx8x-sbc-pro: fix typo on DT overlay filename
The LVDS converter model is lt8912.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
(cherry picked from commit a72fd737d1)
2021-07-28 17:19:43 +02:00
Mike Engel 216d06e723 Merge tag 'dey-3.2-r1.2' into dey-3.2/master
Digi Embedded Yocto 3.2-r1.2

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-07-28 17:19:42 +02:00
Hector Palacios a72fd737d1 ccimx8x-sbc-pro: fix typo on DT overlay filename
The LVDS converter model is lt8912.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-07-08 16:00:03 +02:00
Gonzalo Ruiz aa92d2d13a meta-digi: update revisions for dey-3.2-r1.2
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-07 12:56:23 +02:00
Gonzalo Ruiz 0e2e09044e meta-digi: revert revisions to AUTOREV
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-07 12:56:23 +02:00
Gonzalo Ruiz 534df51e1c install_linux_fw_uuu: cc8m: ensure fastboot_buffer value
This command was already present on the script used for CC8X. Add it here
so the scripts are as much alike as possible.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-06 18:17:34 +02:00
Gonzalo Ruiz 7076d9f24e install_linux_fw_uuu: reconfigure fastboot after partitioning
Fastboot is configured on boot with the current MMC configuration.
If we create a GPT partition table, we need to restart fastboot before we
try to program any partition with the 'flash' fastboot command.

Set 'fastboot_dev' to a different device, 'sata' for example an back to 'mmc'
to trigger a fastboot restart after creating the partition table on blank
devices.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-06 18:15:59 +02:00
Hector Bujanda a800fdb555 mca-tool: update to v1.24
Includes:
   - add support for getting properties from the ROM bootloader.
   - flash layout extra check by asking flash size to the MCA bootloader.
   - flash layout extra check by asking flash size to the MCA.

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2021-07-06 00:03:34 +02:00
Gabriel Valcazar 7d3c5bcccf u-boot-dey: install-uuu: fix bash-ism in condition that checks the variant
The current syntax only works properly when running the script through bash.
Change this so that it works for other shells as well.

While at it, fix a typo in the message that appears when the variant can't be
detected in the 6UL script.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-07-05 14:34:06 +02:00
Gonzalo Ruiz 95c8629cba meta-digi: revert revisions to AUTOREV
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-02 14:42:26 +02:00
Gonzalo Ruiz d98487a309 meta-digi: update revisions for dey-3.2-r1.1
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-07-02 14:42:09 +02:00
Arturo Buzarra f3791f3bc3 meta-digi: Add Edge TPU Person segmentation example
https://onedigi.atlassian.net/browse/DEL-7603

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-07-01 14:49:54 +02:00
Arturo Buzarra adb00d0f49 meta-digi: Add Edge TPU Keyphrase Detector example
Split each example in a different recipe.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-06-29 19:11:52 +02:00
Gabriel Valcazar bf67c2eef4 u-boot-dey: add image decompression logic to UUU installation scripts
We document how to use this script from the Yocto image directory. Now that the
*.ext4 files are compressed by default, the script needs to automatically
decompress said files before starting the update process.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-06-29 15:42:22 +02:00
Gabriel Valcazar d3a6920a07 dey-image-qt: compress .sdcard images by default
These images are comprised of the bootloader, linux and rootfs images. Since
the rootfs images are highly compressable, we can compress the .sdcard file as
well to reduce the space taken up by build artifacts.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-06-29 12:48:26 +02:00
Gabriel Valcazar bbdf745661 dey-image-qt: compress .ext4 images by default
Since these images are highly compressable, this greatly reduces the amount of
space taken up by build artifacts.

Modify the code used to generate the .sdcard and .installer.zip files so that
they contain the decompressed .ext4 image.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-06-29 12:48:26 +02:00
Arturo Buzarra 0c9a497de9 meta-digi: Add Edge TPU simple camera examples
This commit adds the Edge TPU simple camera examples to exercise the Google
Coral devices with Digi Embedded Yocto.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-06-28 16:10:18 +02:00
Arturo Buzarra 6316ec9cc5 meta-digi: Add Google Coral support recipes
This commit adds the required libraries and packages to exercise the Google
Coral devices with Digi Embedded Yocto.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-06-28 14:52:21 +02:00
Hector Palacios 4838aa4849 u-boot-dey: fix typo on script name of help text
Reported-by: Hector Bujanda <hector.bujanda@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-28 09:50:46 +02:00
Hector Palacios 3096af0069 u-boot-dey: install-uuu: fix when U-Boot cannot be determined
The install script of cc8x had errors (using double '==' instead
of single on comparisions).
Besides fixing this typo, this commit changes the logic to:
- default to 2GB U-Boot for variants other than the ones in the
  list.
- consider variant code 0x00 (not programmed HWID) as a failure.
  thus forcing the user to specify the file on the command line.

This second action is done also on the cc6ul script.

Reported-by: Hector Bujanda <hector.bujanda@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-25 13:24:45 +02:00
Francisco Gil Martinez 09f5454c49 u-boot-dey: fix install script for cc8x
Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2021-06-25 07:50:55 +02:00
Gonzalo Ruiz b4fc41ced6 firmware_qualcomm: ccimx6ul: add blocking test fix to BDF
Update US Board Data File to include the changes required to pass the
EN 300 328 V2.2.2 blocking test.

The new BDF is:

- bdwlan30_US.bin (24140b5c28256cadfd95bc28fc574733)

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-06-15 17:52:34 +02:00
Hector Palacios 6b17713b10 u-boot: ccimx6sbc: fix script test of temp variable
install_abort is a temp variable so 'test -n' doesn't work on it.
This was fixed in all scripts except the USB script of ccimx6sbc.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-15 11:53:03 +02:00
Hector Palacios ec0341358a u-boot-dey: fix closing quotes on U-Boot install scripts
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-15 11:24:25 +02:00
Hector Bujanda da766b29d5 mca: added GPIO-refreshed watchdog overlays for ccimx8 platforms
https://onedigi.atlassian.net/browse/DEL-7494

Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2021-06-08 00:24:42 +02:00
Hector Palacios f2286f3d26 meta-digi: branch to dey-3.2/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-07 12:56:58 +02:00
Hector Palacios a61873f7f1 u-boot-dey: improvements to microSD and USB install scripts
- Check the existence of files before the 10 second wait.
- Print the list of filenames to program to each partition.
- Print the file that's being updated to each partition.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-02 11:01:37 +02:00
Hector Palacios 9f3ab7c9d9 u-boot-dey: group identical files per SOM or SOM family
With the generalization done in previous commits, we have now several files
that are identical and can be merged into a common SOM or SOM family
folder.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-02 11:01:37 +02:00
Hector Palacios 96bc57c7f0 u-boot-dey: use global variables to generalize install scripts
Create global variables:
  DEFAULT_IMAGE_NAME
  GRAPHICAL_IMAGES

to have them substituted on the U-Boot install scripts for better
generalization.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-02 11:01:37 +02:00
Hector Palacios c2c3cfb7cd u-boot-dey: use new variable 'image-name' to compose filenames in scripts
U-Boot install scripts (from uSD and USB) were hard-coded to dey-image-qt.
Allow to install other image files by setting a new variable 'image-name'
which defaults to 'dey-image-qt' if not defined, except for the CC6UL
SBC Express, that defaults to 'core-image-base'.

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

https://jira.digi.com/browse/DEL-7385
https://jira.digi.com/browse/DEL-7333
2021-06-02 11:01:37 +02:00
Hector Palacios 71e96e84c4 u-boot-dey: ccimx8m: remove soc_type generation on boot script
On these boot scripts, this variable is not used, so we can remove it.
Besides, it's generated by U-Boot code.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-02 11:01:37 +02:00
Hector Palacios a7d0ba8b38 u-boot-dey: remove hard-coded platform name from scripts
Use ##MACHINE## placeholder to have it later substituted by the recipe
using Yocto ${MACHINE} variable.
This will help later reducing the number of files to have one per SOM
(or even family) instead of one per platform.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-06-02 11:01:37 +02:00
Gabriel Valcazar 05a1dfb84e digi-u-boot: use default name for initial env file
Otherwise, the name of the file will be "u-boot-dey-initial-env", causing
errors when reading the default environment from userspace, since libubootenv
expects "u-boot-initial-env" instead.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-05-31 16:16:59 +02:00
Mike Engel 3df077d0ff firmware-imx: add sdma-firmware.service to the rootfs
This commit adds the sdma-firmware.service to the rootfs
to load the SDMA firmware during boot, that is necessary
for some drivers to work correctly.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-05-28 11:12:40 +02:00
Hector Palacios c89d46600a u-boot-dey: append the graphic backend only to graphical images
Non-graphical images (core-image-base, dey-image-aws) don't contain the
graphic-backend on their filenames.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-05-25 17:15:45 +02:00
Hector Palacios aa535a505b u-boot-dey: improve workflow and messages of uuu install script
- Determine first the filenames and abort if any does not exist.
- Print a warning message about the erasing of the media with a list
  of partitions and files to use for the update
- Sync the different scripts so they look more similar

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

https://jira.digi.com/browse/DEL-7333
2021-05-25 17:15:45 +02:00
Hector Palacios 8f4d707fb6 u-boot-dey: function for updating eMMC partitions with a message
Similar to how it's done on the ccimx6ul, create a function for updating
a partition with a file, that also prints a message.
Rename the function to be the same in all scripts.

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

https://jira.digi.com/browse/DEL-7333
2021-05-25 17:15:45 +02:00
Hector Palacios 51ce92b982 u-boot-dey: [cosmetic] print countdown on wait message, and OK at the end
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-7333
2021-05-25 17:15:45 +02:00
Hector Palacios ce417f5b9e u-boot-dey: abort update from uuu if any of files to update does not exist
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://jira.digi.com/browse/DEL-7333
2021-05-25 17:15:45 +02:00
Hector Palacios ed2d2e54c6 u-boot-dey: add uuu install script for ccimx8x-sbc-express
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-05-25 17:15:45 +02:00
Hector Palacios f1f3af5e66 u-boot-dey: improve uuu install script with options
Previously, this script only allowed the U-Boot filename as parameter.
This commit makes use of getopts() to pass the following options to the
script:
  -h, for help
  -i, to pass the dey image name that prefixes the firmware filenames
  -n, to skip the 10 seconds delay that allow you to cancel the process
  -u, to pass the U-Boot filename

The default image name (if none passed) keeps being 'dey-image-qt' but the
new option allows reusing this script to install dey-image-webkit or
dey-image-aws images.

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

https://jira.digi.com/browse/DEL-7385
2021-05-25 17:15:45 +02:00
Gonzalo Ruiz 0d1984224b u-boot-dey: add 6UL variants 7 to 10 to bootscripts
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
(cherry picked from commit 65311d69852dbd57c534f27c1742bb2b02a41916)
2021-05-25 15:16:45 +02:00
Francisco Gil Martinez 1436126eae udev: missing rules since 5.4.70 migration
Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2021-05-18 13:55:22 +02:00
Hector Palacios 28d9e025ea connectivity: include Atheros proprietary 'athtestcmd'
The prebuilt 'athtestcmd' binary allows you to test tx/rx of the
Wi-Fi MAC, when the driver is loaded in test mode.
This is required for certifying Wi-Fi in products, so add it by
default for the ccimx6sbc.

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

https://jira.digi.com/browse/DEL-7444
(cherry picked from commit acb402fdcfa54d8d5519580ff7fcfb76fbed3f49)
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-05-17 13:58:57 +02:00
Arturo Buzarra eaa09c940b dtc: backport patch to fix build with GCC v10 on DTC v1.4.5
This commit backports a patch to fix the following build issue with
the GCC v10:
    dtc-parser.tab.c:1069: multiple definition of `yylloc'

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-06 15:46:18 +02:00
Arturo Buzarra f67b5c4355 u-boot-dey: disable support to initial environment on v2017.03
Since this feature was introduced in newer versions of U-Boot, we need
to disable it for v2017.03 to avoid several compilation issues.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra 0cacb0c511 dtc: keep version 1.4.5 only for CC6/CC6QP platforms that build U-Boot 2017.X
This version is only required to build U-Boot 2017.X, so since CC6UL was moved
to a new U-Boot version it is not necessary and also fixes a build issue.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Gonzalo Ruiz 23a5128f57 firmware_qualcomm: ccimx6ul: update BDF calibration
Update US Board Data File to use the new GOLDEN2 calibration.

The new BDF is:

- bdwlan30_US.bin (328f970444b5eaaa48c0188cea1685e3)

https://jira.digi.com/browse/CC6UL-1210

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
(cherry picked from commit 373b3958bad9d0c462349d89ef5832e843624b01)
2021-05-05 19:18:11 +02:00
Arturo Buzarra a26d4661e8 trustfence-cst: fix build warning about a trailing slash in S variable
This commit fixes the following warning:
    WARNING: meta-digi/meta-digi-arm/recipes-bsp/trustfence-cst/trustfence-cst_3.3.1.bb:
    Recipe trustfence-cst sets S variable with trailing slash '/tmp/work/aarch64-dey-linux/trustfence-cst/3.3.1-r0/cst-3.3.1/',
    remove it

https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra b7db48e644 gatesgarth migration: optee-imx: Sync with BSP release rel_imx_5.10.9_1.0.0
https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra 867386c5c8 gatesgarth migration: u-boot-dey: introduce UBOOT_INITIAL_ENV
This default environment is needed by packages like libubootenv.

https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Gabriel Valcazar 2388e1b3f6 gatesgarth migration: Remove u-boot-fw-utils files
This package has been entirely replaced with libubootenv

https://jira.digi.com/browse/DEL-7410

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-05-05 19:18:11 +02:00
Gabriel Valcazar 887fcae052 gatesgarth migration: Add support for libubootenv
This is a replacement for u-boot-fw-utils. Adapt the u-boot-fw-utils patches
to this new library and include the same logic as the u-boot-fw-utils recipe
(generate and install the U-Boot environment configuration file in the rootfs)

For now, remove the u-boot-default-env dependency, since the package doesn't
exist in zeus.

https://jira.digi.com/browse/DEL-7410

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra 2409de4c6e gatesgarth migration: imx-digi-base: Add the ability to use exclusive recipes for NXP BSP
Commit 4ab569fb("recipes-*: refine restrictions for NXP BSP") from
meta-freescale layer restrict the use of certain recipes and classes to
enforces them to use a NXP BSP. This is done by adding a new MACHINEOVERRIDES
called "use-nxp-bsp"

https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra 5175796a14 gatesgarth migration: layer.conf: EULA.txt Update to license v19
Sync with BSP release rel_imx_5.10.9_1.0.0

https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra 5eaa4d2d42 gatesgarth migration: imx-boot: Sync with BSP release rel_imx_5.10.9_1.0.0
https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra 526a0fbcc6 gatesgarth migration: linux-dey: fix do_kernel_localversion() task dependency
Commit ffeb0556("classes: fsl-kernel-localversion: Fix task dependency") in
meta-freescale layer fixes a task dependency issue, so do_preconfigure() was
renamed to do_kernel_localversion().

https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra 9ed772d281 gatesgarth migration: imx-vpu-hantro: Upgrade to v1.21.0
Sync with BSP release rel_imx_5.10.9_1.0.0

https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra 9b30496cbc gatesgarth migration: imx-m4/m7-demos: Sync with BSP release rel_imx_5.10.9_1.0.0
https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra 994fc80b27 gatesgarth migration: imx-atf: Upgrade to v2.4
Sync with BSP release rel_imx_5.10.9_1.0.0

https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra f6496788a4 gatesgarth migration: firmware-imx: Upgrade to v8.11
Sync with BSP release rel_imx_5.10.9_1.0.0

https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-05-05 19:18:11 +02:00
Arturo Buzarra 41e6d7aa4b gatesgarth migration: update meta-digi LAYERSERIES_COMPAT to indicate support with "gatesgarth" release
https://jira.digi.com/browse/DEL-7508

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-04-29 20:07:28 +02:00
Arturo Buzarra 8182824e43 Merge branch 'dey-3.0/maint' into dey-3.0/master
Manually changed recipes to use the master branches instead of the fixed SHA1
from the last release.
2021-04-27 17:18:50 +02:00
Hector Bujanda f6e906b625 New ccimx6 variant:
* Dual-core Consumer, 1GHz
* 4GB eMMC,
* 1GB DDR3,
* Temp grade: -20/+105C

https://jira.digi.com/browse/CCIMX6-973

Signed-off-by: Hector Bujanda <Hector.Bujanda@digi.com>
2021-04-21 11:03:14 +02:00
Hector Palacios f176ce67f3 digi-sc-firmware: update recipe to v1.7.1.1
The new SCFW re-enables "Read DBI deskew configuration"
setting, to support Nanya LPDDR4 chips.

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

https://jira.digi.com/browse/CC8X-297
2021-04-20 16:16:29 +02:00
Arturo Buzarra f1aebd1c8a imx-atf: rework patches to disable Cortex-M debug console
Add a patch series to customize the ATF console for the ConnectCore 8M platforms,
and to disable the Cortex-M debug UART.

https://jira.digi.com/browse/DEL-7497

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-04-16 16:17:29 +02:00
Arturo Buzarra c74360a5c4 imx-boot: add M4 demos to ConnectCore 8M Mini platform
Include in the deploy folder the M4 demos for the ConnectCore 8M Mini platform

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-04-14 15:11:18 +02:00
Gonzalo Ruiz 7227dc728e firmware_qualcomm: ccimx8m: update US Board Data File calibration
Update file:

- bdwlan30_US.bin (93a58f0f8e241bef6600d53d013c3cb2)

  This file was generated by calibrating several v3 CC8MN SOMs and
  merging their resulting BDF files into a new Golden file.
  Target output powers tables and CTL tables remain intact.

Reference calibration file is obtained from 'qca6574au-le-2-2-2_qca_oem' repo
at tag 'r00005.1' under path
'wlanfw/cnss_proc/wlan/fw/target/sdio_dst/qc6174/bdwlan30.bin':

- bdwlan30.bin (8a40d95698825e1718bee640b1f7982a)

Target output powers respect the maximum EVM for every data rate.
CTL limits comply with FCC, CE and TELEC certifications.

https://jira.digi.com/browse/DEL-7487

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
(cherry picked from commit cceffef831edd10b017aac3006636c98f7baa0a9)
2021-04-06 11:25:43 +02:00
Gonzalo Ruiz 84104cd0b6 firmware_qualcomm: ccimx8m: update US Board Data File calibration
Update file:

- bdwlan30_US.bin (93a58f0f8e241bef6600d53d013c3cb2)

  This file was generated by calibrating several v3 CC8MN SOMs and
  merging their resulting BDF files into a new Golden file.
  Target output powers tables and CTL tables remain intact.

Reference calibration file is obtained from 'qca6574au-le-2-2-2_qca_oem' repo
at tag 'r00005.1' under path
'wlanfw/cnss_proc/wlan/fw/target/sdio_dst/qc6174/bdwlan30.bin':

- bdwlan30.bin (8a40d95698825e1718bee640b1f7982a)

Target output powers respect the maximum EVM for every data rate.
CTL limits comply with FCC, CE and TELEC certifications.

https://jira.digi.com/browse/DEL-7487

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
(cherry picked from commit cceffef831edd10b017aac3006636c98f7baa0a9)
2021-04-06 11:24:50 +02:00
Hector Palacios 2df009e6a7 machine: ccimx8mm/8mn: fix typo on device tree overlay extension
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-03-23 10:35:02 +01:00
Hector Palacios 74aceb2954 machine: ccimx8mn/8mm: add DT overlay for Fusion 10" LCD
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-03-16 11:14:04 +01:00
Gabriel Valcazar 4c9546357d meta-digi: revert revisions to AUTOREV
This reverts commit 7728d5f458.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-03-08 18:07:48 +01:00
Gabriel Valcazar 7728d5f458 meta-digi: update revisions for dey-3.0-r4.1
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-03-08 18:06:59 +01:00
Gabriel Valcazar 8dc46fcaf8 imx-boot: export SRK revocation config when signing i.MX8M imx-boot images
There's a Yocto configuration option that enables this feature in U-Boot, but
since imx-boot images are signed using the scripts in trustfence-sign-tools,
said configuration is lost and the scripts don't take it into account if it's
enabled. Make sure that the configuation carries over to the script.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-03-08 10:35:46 +01:00
Gabriel Valcazar 1134e4c07c trustfence-sign-tools: don't encrypt artifacts in ccimx8mn/ccimx8mm projects
Attempting to boot encrypted artifacts on these platforms will result in HAB
events caused by CAAM errors. This is due to the CAAM being configured for
non-secure contexts (in regards to Trustzone) while the HAB expects it to be
configured for secure contexts.

For now, only sign artifacts for these platforms even if the project has the
encryption feature enabled.

https://jira.digi.com/browse/DUB-993

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-03-04 13:14:13 +01:00
Francisco Gil f154d811a6 Merge branch 'dey-3.0/master' into fgilmar/merge_to_maint
# Conflicts:
#	meta-digi-dey/recipes-support/opencv/opencv_4.4.0.imx.bb
2021-03-01 16:53:35 +01:00
Francisco Gil c29c718827 firmware-qualcomm: bluetooth: allow users to use Bluetooth 4.1
Allow users to select Certified Bluetooth 4.1, rather than
the default not-certified Bluetooth 5, through the use of variable
BT_FW_VERSION="4"

md5sums:

nvm_tlv_3.2.bin ==> 9621f50172f2bfb4f65f8e5c6528b614
rampatch_tlv_3.2.tlv ==> 769e1fc9e5a2061bb3aaa1f32dac3804

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2021-02-22 16:42:58 +01:00
Gabriel Valcazar 0095d8c415 imx-seco: Update recipes to new NXP BSP release imx_5.4.70_2.3.1
Update imx-seco to v3.7.5, update imx-seco-libs revision and add a new patch.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-02-17 12:01:00 +01:00
Gabriel Valcazar 0bf51d5b7d digi-sc-firmware: update to v1.7.1
This includes NXP's code from the SCFW porting kit v1.7.1

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-02-17 12:01:00 +01:00
Hector Palacios e3f6955cc1 ccimx8m: remove quad core device tree overlay
This overlay added cooling devices for all quad cores.
On the latest BSP, the SoC device tree include contains all four
cooling devices and the newest U-Boot is able to delete the nodes
for non-existing cores, so there's no need for this overlay
anymore.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-02-17 09:23:07 +01:00
Gabriel Valcazar 358f98dd4f imx-boot: apply ccimx8mn patch to the ccimx8mm as well
Otherwise, mkimage will delete the device trees between imx-boot builds,
causing the build to fail when generating a signed imx-boot.

https://jira.digi.com/browse/DEL-7420

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-02-12 11:37:15 +01:00
Gabriel Valcazar daae78b60c trustfence-sign-tools: add ccimx8mm support to the artifact signing script
https://jira.digi.com/browse/DEL-7420

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-02-12 11:37:15 +01:00
Gabriel Valcazar a308f02452 digi-sc-firmware: update to v1.7.0
This includes NXP's code from the SCFW porting kit v1.7.0 and a DCD update
using RPA v16.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-02-12 11:02:46 +01:00
Mike Engel fa801e1e9f linux: Update kernel sources to new master
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-02-09 16:25:07 +01:00
Mike Engel e9c4a09bf0 recipes-security: optee-imx: Update recipes to new BSP release imx_5.4.70_2.3.0
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-02-09 15:21:36 +01:00
Mike Engel bd11b26598 recipes-bsp: imx-seco: Update recipes to new BSP release imx_5.4.70_2.3.0
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-02-09 15:21:35 +01:00
Mike Engel 968cf3a9ed recipes-bsp: imx-mkimage: Update recipes to new BSP release imx_5.4.70_2.3.0
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-02-09 15:21:35 +01:00
Mike Engel ab0722caff recipes-bsp: imx-aft: Update recipes to new BSP release imx-5.4.70-2.3.0.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-02-09 15:21:35 +01:00
Mike Engel 5b15c23ab9 recipes-bsp: firmware-imx: Update recipes to new BSP release imx_5.4.70_2.3.0
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2021-02-09 15:21:35 +01:00
Hector Bujanda 2d0c2c0976 mca-tool: update to v1.23
Includes:
   - add support for ccimx8mm.

https://jira.digi.com/browse/DEL-7398

Signed-off-by: Hector Bujanda <Hector.Bujanda@digi.com>
2021-02-05 09:49:32 +01:00
Arturo Buzarra c939115a2f recipes-bsp: add recipe imx-vpu-hantro to support ConnectCore 8M Mini
ConnectCore 8M Mini has support to VPU but the library used is different than
the used by the i.MX6 processors. This recipe manages the required libraries
to operate with this kind of VPU.

https://jira.digi.com/browse/DEL-7397

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00
Arturo Buzarra 98a4733cd0 meta-digi-arm/conf/layer.conf: EULA.txt Update to license v16 and v17
Required for the release rel_imx_5.4.70_2.3.0 based on zeus

https://jira.digi.com/browse/DEL-7397

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00
Arturo Buzarra 52db82f2c7 imx-digi-base: sync with meta-imx branch zeus-5.4.70-2.3.0
Update the MACHINE values with the ones in meta-freescale and meta-imx layer.

https://jira.digi.com/browse/DEL-7397

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00
Arturo Buzarra 702382c7e4 imx-digi-base: Simplify preferred providers for graphics
Sync with meta-freescale layer. See commmit f718ae3f
("imx-base.inc: Simplify preferred providers for graphics")

https://jira.digi.com/browse/DEL-7397

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00
Arturo Buzarra a306da408a imx-atf: Disable Cortex-M4 debug console
The Cortex-M4 uses the UART4 as debug console, and it is
shared with the Cortex-A53. This commit disables it for the
ConnectCore 8M Mini DVK board to avoid conflicts.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00
Arturo Buzarra be7de5559c imx-boot: add support to ConnectCore 8M Mini DVK platform
Both ConnectCore 8M platforms share the same U-Boot build process,
so apply the same changes for them.

https://jira.digi.com/browse/DEL-7397

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00
Arturo Buzarra 5781efc559 firmware-imx: add support to ConnectCore 8M Mini DVK platform
Use the same common files for both ConnectCore 8M platforms

https://jira.digi.com/browse/DEL-7397

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00
Arturo Buzarra d05cec7b2b firmware-qualcomm: add support to ConnectCore 8M Mini DVK platform
Use the same common files for both ConnectCore 8M platforms

https://jira.digi.com/browse/DEL-7397

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00