Commit Graph

735 Commits

Author SHA1 Message Date
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 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 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
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 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 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
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 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
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 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
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
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
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
Hector Palacios c92392ffdf uboot: add script to update firmware through uuu
U-Boot v2020.04 for the CC6UL supports the fastboot protocol.
Create scripts to install DEY firmware via USB using uuu
tool.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-11-16 13:26:53 +01:00
Mike Engel 18198b5c12 u-boot-dey: ccimx6ulstarter: fix typo in installer script
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
(cherry picked from commit 3041f3a2f7)
2020-11-16 12:09:39 +01:00
Mike Engel 3041f3a2f7 u-boot-dey: ccimx6ulstarter: fix typo in installer script
Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2020-11-16 12:02:42 +01:00
Gonzalo Ruiz a628fb9b63 firmware_qualcomm: ccimx8mn: update US Board Data File Target Powers table
Update file:

- bdwlan30_US.bin (388da992fdf0bd25e62060247a0606e5)

  This file was generated by calibrating several v3 CC8MN SOMs and
  merging their resulting BDF files into a Golden file.
  It also encodes the Target output powers tables.

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.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2020-11-13 08:56:34 +01:00
Gabriel Valcazar f9df488eb3 digi-sc-firmware: update to v1.6.0
Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2020-11-05 12:49:55 +01:00
Hector Palacios 4685664d07 u-boot: boot script: allow to disable Wi-Fi/BT overlays
Check a U-Boot env variable (disable_wifi/disable_bt) for easily
disabling Wi-Fi and/or Bluetooth overlays.

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

https://jira.digi.com/browse/DEL-7297
(cherry picked from commit b74a8cee54)
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2020-11-04 16:10:20 +01:00
Hector Bujanda 6c554dd682 recipes-bsp: imx-vpu: Update recipes to new BSP release imx_5.4.47_2.2.0
Includes:
imx-vpu: Fix selected version for 6Q and 6DL [LF-1816]

    An older version of imx-vpu, from upstream, is being selected
    for the image instead of the current one. The problem is
    the override imxvpucnm used for the COMPATIBLE_MACHINE
    is no longer being used. Update the recipe to use SOC
    overrides instead.

    Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>

Signed-off-by: Hector Bujanda <Hector.Bujanda@digi.com>
2020-11-02 22:06:14 +01:00
Hector Bujanda dab847eee4 recipes-bsp: imx-seco: Update recipes to new BSP release imx_5.4.47_2.2.0
Includes:
imx-seco-libs: Switch branch to imx_5.4.47_2.2.0
multilib: imx-seco-libs: Fix LIBDIR
imx-seco.inc:  use c0 for 8dxl phantom with new c0 boards

Signed-off-by: Hector Bujanda <Hector.Bujanda@digi.com>
2020-11-02 22:05:55 +01:00