Commit Graph

1512 Commits

Author SHA1 Message Date
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
Arturo Buzarra bb43ab1744 alsa-state: 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 b49c6f9f8b cryptoauthlib: add support for ccimx8mm platform
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 8b01fe57a9 uboot: add support to ConnectCore 8M Mini DVK platform
Add initial support cloned from ccimx8mn-dvk

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 a76f3031fb meta-digi-arm: add support for ConnectCore 8M Mini DVK platform
https://jira.digi.com/browse/DEL-7397

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-02-04 13:07:07 +01:00
Hector Bujanda b0e535b28c change recipes to build from 'master' branches
Signed-off-by: Hector Bujanda <hector.bujanda@digi.com>
2021-01-26 11:51:11 +01:00
Arturo Buzarra 3a011775b1 cosmetic: digi-defaults.inc: update Linux/U-Boot version table
Update the ccimx8m and cc6ul supported U-Boot version.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-01-22 13:27:36 +01:00
Arturo Buzarra 4265926650 u-boot: remove 2018.03 recipe, replaced by v2020.04
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-01-22 13:25:15 +01:00
Arturo Buzarra 61497fb2dd meta-digi: revert revisions to AUTOREV
This reverts commit bc843e239d.
2021-01-21 12:57:49 +01:00
Arturo Buzarra bc843e239d meta-digi: update revisions for dey-3.0-r3.2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-01-21 12:56:46 +01:00
Hector Palacios ee29d0ffcd install_fw: cc6ul: erase 'update' partition unconditionally
When manually changing the partition table, it could happen that
a UBI volume already exists in the 'update' partition.
If not erased, the system may find the old UBI volume (with wrong
geometry information) and try to mount it which will result in
failure.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-01-20 18:16:49 +01:00
Arturo Buzarra de2e9e40ad meta-digi: revert revisions to AUTOREV
This reverts commit c22e8faf90.
2021-01-18 18:37:09 +01:00
Arturo Buzarra c22e8faf90 meta-digi: update revisions for dey-3.0-r3.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-01-18 18:30:50 +01:00
Hector Palacios fddaee85b9 update-fw scripts: fix error path after sucessful update
On commit 1e5cafeb79 a fall-back
update command was introduced in case the newest command fails.
If the newest command succeeds, however, the 'test' command for
error doesn't match (there is no error) and the return code of
such test is "1". On the next check for errors, this results on
an error, when we really mean to continue because the first
command was successful.

Move the second error check inside the error path of the first
attempt.

Reported-by: Francisco Gil <francisco.gilmartinez@digi.com>
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2021-01-18 17:36:38 +01:00
Gonzalo Ruiz 39baff1e60 trustfence: add new TRUSTFENCE_SRK_REVOKE_MASK variable
In order to revoke SRKs in platforms with AHAB we need to set a mask
during the signing/encryption process.

Create new TRUSTFENCE_SRK_REVOKE_MASK variable to export the
SRK_REVOKE_MASK variable required by the imx-boot signing script.

The revoke mask is not necessary for signing/encryption of other artifacts,
so set it by default to 0x0.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2021-01-13 17:00:29 +01:00
Arturo Buzarra 6c7bd330a4 trustfence-sign-artifact: add support for ccimx8x encryption
Add support to sign and encrypt OS artifacts for AHAB devices.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2021-01-08 13:03:36 +01:00
Hector Palacios 1e5cafeb79 uboot: update fw install scripts to remove source fs from commands
The 'source file system' was removed as an argument from the
'update' command in U-Boot v2020.04.
For platforms using such version, remove it from the update fw
scripts.

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

https://jira.digi.com/browse/DUB-983
2021-01-07 19:29:06 +01:00
Gabriel Valcazar c124a019a4 imx-boot: remove "sync" call in the ccimx8mn's do_compile() function
This command isn't essential and might not be available on all systems, so
remove it. Use the "oflag=sync" dd parameter instead.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2021-01-04 17:40:54 +01:00
Gabriel Valcazar ae012f7069 ccimx8x: update USB install script with selected U-Boot for variants
A similar change was done in the dey-3.0/maint branch for the uSD installation
scripts, but since USB scripts were added in dey-3.0/master, apply the same
to them as well.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-28 14:54:38 +01:00
Gabriel Valcazar e0055ce0cb Merge branch 'dey-3.0/master' into dey-3.0/maint
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-12-28 12:28:39 +01:00
Mike Engel 024732f8cc trustfence: create 128Bit dek when using MX8MN.
This commit creates a 128Bit DEK, which is the max supported
length at the moment for the iMX8M.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-12-28 11:04:28 +01:00
Mike Engel 0a2bee68ae imx-boot: add u-boot image encryption.
This commit adds u-boot image encryption.

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-12-28 11:04:28 +01:00
Mike Engel 8c616ee84b imx-boot: add dummy dek blob to encrypt MX8MN modules.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-12-28 11:04:28 +01:00
Mike Engel 827d2e9a4d ccimx8mn: enable Trustfence artifact encryption.
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-12-28 11:04:28 +01:00
Mike Engel 1baba309c2 ccimx8mn: add Optee component to the machine features.
Since this component pulls in Optee dependencies, which in turn depend on
packages from meta-python2, add this layer to the ccimx8mn-dvk's default
bblayers.

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

https://jira.digi.com/browse/DEL-7025
2020-12-28 11:04:28 +01:00
Mike Engel c0788ada65 meta-digi: add support for Optee packages
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-12-28 11:04:28 +01:00
Gonzalo Ruiz f91a1d5ebe trustfence-cst: remove premirror for cst tarball
Tarball file is going to be present in the DIGI FTP, so there is no need
for premirrors.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-12-22 10:49:15 +01:00
Gonzalo Ruiz 379ab894c3 trustfence-cst: remove *.inc file
Since there is only 1 supported version of cst, the include file is
only used once.

Move all the recipe implementation to the *.bb recipe and remove the
*.inc file.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-12-22 10:45:06 +01:00
Gonzalo Ruiz 4cc19e5059 trustfence-cst: fetch cst tarball from Digi FTP
Since cst-3.3.1 is now distributed with a BSD-3-Clause license, it is allowed
to distribute its source code from the Digi FTP.

Fetch the tarball from that location.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-12-21 15:16:55 +01:00
Hector Palacios 2caec3176a ccimx8x: update install script with selected U-Boot for variants
CC8X SOMs code the RAM size on the OTP bits so this fall-back table
shouldn't be necessary, but update it with latest variants just
in case.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-12-21 14:06:28 +01:00
Hector Palacios abacf26dab machine: ccimx8x-sbc-express: build 512MB 16bit U-Boot
This machine was not building the 512MB 16bit U-Boot.
While on it, and for consistency, re-order to make the 2GB 32bit
the default (same as the SBC Pro), since the SBC Express was
discontinued as a product.

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

https://jira.digi.com/browse/DEL-7363
2020-12-21 14:04:17 +01:00
Gonzalo Ruiz 85e3325e75 firmware-qualcomm: Add CTL tables to CC8MN US BDF
Add Compliance Test Limits (CTL) information for FCC, CE and TELEC
certifications to the CC8MN US Board Data File.

The rest of the file (calibration, target power levels, etc.) remains
intact.

Updated file:

- bdwlan30_US.bin (MD5SUM: f9600f7bf4d601494b9bbe1ccbe94d6a)

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-12-18 17:28:46 +01:00
Gonzalo Ruiz eb76c33166 trustfence-cst: build CST using libcrypto from SDK
CST was being built linking to the openssl libcrypto library from the host.
When the openssl version in the host didn't match the version in the SDK,
the SDK build failed like this:

Error:
 Problem 1: package nativesdk-packagegroup-sdk-host-1.0-r12.0.x86_64_nativesdk requires nativesdk-trustfence-cst, but none of the providers can be installed
  - conflicting requests
  - nothing provides libcrypto.so.1.0.0()(64bit) needed by nativesdk-trustfence-cst-3.3.1-r0.0.x86_64_nativesdk
  - nothing provides libcrypto.so.1.0.0(OPENSSL_1.0.0)(64bit) needed by nativesdk-trustfence-cst-3.3.1-r0.0.x86_64_nativesdk
  - nothing provides libcrypto.so.1.0.0(OPENSSL_1.0.1)(64bit) needed by nativesdk-trustfence-cst-3.3.1-r0.0.x86_64_nativesdk
 Problem 2: package nativesdk-packagegroup-qt5-toolchain-host-1.0-r0.0.x86_64_nativesdk requires nativesdk-packagegroup-sdk-host, but none of the providers can be installed
  - package nativesdk-packagegroup-sdk-host-1.0-r12.0.x86_64_nativesdk requires nativesdk-trustfence-cst, but none of the providers can be installed
  - conflicting requests
  - nothing provides libcrypto.so.1.0.0()(64bit) needed by nativesdk-trustfence-cst-3.3.1-r0.0.x86_64_nativesdk
  - nothing provides libcrypto.so.1.0.0(OPENSSL_1.0.0)(64bit) needed by nativesdk-trustfence-cst-3.3.1-r0.0.x86_64_nativesdk
  - nothing provides libcrypto.so.1.0.0(OPENSSL_1.0.1)(64bit) needed by nativesdk-trustfence-cst-3.3.1-r0.0.x86_64_nativesdk

Fix that by adding the native dependencies include and lib folders to
the CST build. Also add openssl-native as a dependency for the SDK build,
otherwise it wont link to the SDK libcrypto library.

Additionally, to allow running CST in a host machine where the openssl version
does not match the version in the SDK, libcrypto library is statically linked.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
(cherry picked from commit a95b3ad602)
2020-12-18 17:19:46 +01:00
Gonzalo Ruiz a95b3ad602 trustfence-cst: build CST using libcrypto from SDK
CST was being built linking to the openssl libcrypto library from the host.
When the openssl version in the host didn't match the version in the SDK,
the SDK build failed like this:

Error:
 Problem 1: package nativesdk-packagegroup-sdk-host-1.0-r12.0.x86_64_nativesdk requires nativesdk-trustfence-cst, but none of the providers can be installed
  - conflicting requests
  - nothing provides libcrypto.so.1.0.0()(64bit) needed by nativesdk-trustfence-cst-3.3.1-r0.0.x86_64_nativesdk
  - nothing provides libcrypto.so.1.0.0(OPENSSL_1.0.0)(64bit) needed by nativesdk-trustfence-cst-3.3.1-r0.0.x86_64_nativesdk
  - nothing provides libcrypto.so.1.0.0(OPENSSL_1.0.1)(64bit) needed by nativesdk-trustfence-cst-3.3.1-r0.0.x86_64_nativesdk
 Problem 2: package nativesdk-packagegroup-qt5-toolchain-host-1.0-r0.0.x86_64_nativesdk requires nativesdk-packagegroup-sdk-host, but none of the providers can be installed
  - package nativesdk-packagegroup-sdk-host-1.0-r12.0.x86_64_nativesdk requires nativesdk-trustfence-cst, but none of the providers can be installed
  - conflicting requests
  - nothing provides libcrypto.so.1.0.0()(64bit) needed by nativesdk-trustfence-cst-3.3.1-r0.0.x86_64_nativesdk
  - nothing provides libcrypto.so.1.0.0(OPENSSL_1.0.0)(64bit) needed by nativesdk-trustfence-cst-3.3.1-r0.0.x86_64_nativesdk
  - nothing provides libcrypto.so.1.0.0(OPENSSL_1.0.1)(64bit) needed by nativesdk-trustfence-cst-3.3.1-r0.0.x86_64_nativesdk

Fix that by adding the native dependencies include and lib folders to
the CST build. Also add openssl-native as a dependency for the SDK build,
otherwise it wont link to the SDK libcrypto library.

Additionally, to allow running CST in a host machine where the openssl version
does not match the version in the SDK, libcrypto library is statically linked.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-12-16 14:57:56 +01:00
Arturo Buzarra 8b3b8b5516 uboot: add script to update firmware from a USB stick
Create scripts to install DEY firmware using a USB stick.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2020-12-03 15:46:22 +01:00
Francisco Gil Martinez fe2b5017f6 ccimx8x: add dt overlay for pcie modems
Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2020-11-23 08:17:07 +01:00
Francisco Gil Martinez 0c44a150d0 ccimx8x: add dt overlay for pcie modems
Signed-off-by: Francisco Gil Martinez <francisco.gilmartinez@digi.com>
2020-11-20 11:45:55 +01:00
Hector Bujanda 376f6dadf2 ccimx8x/mn: add dt overlays for the user LEDs
https://jira.digi.com/browse/DEL-7254

Signed-off-by: Hector Bujanda <Hector.Bujanda@digi.com>
2020-11-19 11:43:58 +01:00
Hector Palacios dc663aa743 uboot: v2020.04 is now supported for ccimx8m and ccimx6ul
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-11-16 13:26:53 +01:00