Commit Graph

1178 Commits

Author SHA1 Message Date
Javier Viguera c42cca79ba u-boot-dey: update uboot for ccimx93 to version v2023.04
Following NXP's 'lf-6.1.22-2.0.0' release.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-07-07 12:22:55 +02:00
Francisco Gil 36804ef13d libubootenv: readonly: add hardcoded configuration for readonly systems
We can't run a post installation script in a readonly file system.

We need to provide a configuration file beforehand.

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

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-07-03 11:30:46 +02:00
Gabriel Valcazar 2687207948 ccimx8x: reflect imx-boot simplification in installer scripts
We no longer need logic to determine the SOM's RAM size and bus width, we only
need to know the SOC revision, which is info that is always available.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-06-30 15:00:25 +02:00
Gabriel Valcazar d13b42492f Rework ccimx8x imx-boot/u-boot recipes to reduce number of imx-boot artifacts
Now that both U-Boot and the SCFW can autodetect the RAM configuration, we can
simplify the imx-boot build process to generate two binaries (one per SOC
revision) instead of eight. Build "flash_spl" imx-boot images and use only one
global defconfig for u-boot.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-06-30 15:00:25 +02:00
Gabriel Valcazar 609028fe66 digi-sc-firmware: update to v1.11.0.1
This update includes automatic RAM configuration detection, and only one SCFW
binary is needed for all ccimx8x variants. Adapt the imx-boot recipe
accordingly.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-06-30 15:00:25 +02:00
Gabriel Valcazar fe53d9fe5c u-boot-dey: re-order ccimx8x deployment steps to avoid errors
For the ccimx8x, we changed the order of the steps in do_deploy() from:

    Deploy -> Rename files -> Move binaries

To:

    Deploy -> Move binaries -> Rename files

When it's time to rename the files, they won't be in their original place and
the process will fail. Make sure we move the files after they've been renamed
to avoid errors.

Also, one move operation is enough for all artifacts, so remove the second
operation.

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-06-29 16:24:29 +02:00
Isaac Hermida 130a5c796c ccimx93: add support for NPU dtb overlay
Load the NPU overlay based on the CPU model.

https://onedigi.atlassian.net/browse/DEL-8565
https://onedigi.atlassian.net/browse/DEL-8563

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2023-06-22 16:03:16 +02:00
Gonzalo Ruiz 82877e9840 firmware-murata: install the FCC.CE specific hcd patch
There are two different firmware files for Bluetooth on Murata's type2AE
module:

- JRL: It configures a Bluetooth TxPower of 7dB, to be used in Japan
only.
- FCC.CE: It configures a Bluetooth TxPower of 5dB, to be used in the
rest of the world.

To comply with the FCC requirement that it should not be possible to
configure different regulatory domains, or in this case configurations,
than FCC, only deploy the FCC.CE file by default:

- BCM4373A0_FCC.CE.hcd (md5sum: 1e287a3ab7f83e59352cb321315ea80f)

This file reports the following information during boot time:

 Bluetooth: hci0: 89373 UART 37.4 MHz wlbga_BU sLNA muRata Type 2EA 5dBm 20220608-0103
 Bluetooth: hci0: BCM4373A0 (001.001.025) build 0155

JRL file will be added via the Worldwide DEY patch addon that customers
can request from Digi.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2023-06-21 12:51:07 +02:00
Gonzalo Ruiz ab0209f6f5 firmware-murata: add US-only CLM blob
Replace the CLM blob file from Github, which supports several countries
with a custom US-only CLM blob file. This way, default images will only
have support for US regulatory domain, therefore complying with FCC
requirements.

The Worldwide CLM blob file will be provided by Digi International on
request.

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2023-06-08 17:36:11 +02:00
Francisco Gil 8fa29e7698 libubootenv: readonly: add hardcoded configuration for readonly systems
We can't run a post installation script in a readonly file system.

We need to provide a configuration file beforehand.

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

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-06-06 13:07:37 +02:00
Arturo Buzarra a44aa6e521 ccmp15: add MCA DT overlay support
This commit modifies the boot script condition to apply the overlay for MCA
based on HWID MCA field.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-05-30 11:00:30 +02:00
Javier Viguera 0ef9174760 Merge branch 'dey-4.0/maint' into dey-4.0/master
This merges back tag 'dey-4.0-r3.2' + some other fixes.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-05-26 11:27:34 +02:00
Arturo Buzarra e679d3821d meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-05-17 15:34:53 +02:00
Arturo Buzarra 04f8e54400 meta-digi: update revisions for dey-4.0-r3.2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-05-17 15:30:24 +02:00
Hector Palacios ca242ba0be u-boot-dey: remove extra brackets on shell condition
Signed-off-by: Hector Palacios <hector.palacios@digi.com>

https://onedigi.atlassian.net/browse/DEL-8510
2023-05-12 13:24:37 +02:00
Arturo Buzarra e45edb7f56 meta-digi: revert revisions to AUTOREV 2023-05-11 23:10:41 +02:00
Arturo Buzarra d780711b17 meta-digi: update revisions for dey-4.0-r3.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-05-11 22:58:31 +02:00
Arturo Buzarra dc2298625d switch to building from maintenance branches for dey-4.0-r3
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-05-11 22:57:54 +02:00
Hector Palacios e600597024 Merge branch 'dey-4.0/master' into dey-4.0/maint
Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-05-11 13:19:32 +02:00
Hector Palacios f2da72b2eb trustfence-stm-signtools: add rdepends on nativesdk-qtbase
The tools STM32MP_KeyGen_CLI and STM32MP_SigningTool_CLI have
a dependency of libQt5Core.so.5 which is provided by qtbase.
Add this dependency to avoid errors during SDK generation.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-05-11 11:29:02 +02:00
Hector Palacios fa1c877758 trustfence: image_types: do not sign artifacts for STM platforms
For the moment, do not sign aditional artifacts, such as the ramdisk,
the kernel or the boot scripts for STM platforms.

In the specific case of the ramdisk, simply copy it over with the
expected filename extension.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-05-10 17:33:23 +02:00
Hector Palacios 762a4a8315 u-boot-dey: split do_deploy:append to postfuncs
The do_deploy:append did three things:
- adapt the U-Boot filenames to 'u-boot-<platform>-<config>.<ext>'
- sign/encrypt the U-Boot files (only for iMX6 family)
- sign the boot scripts

Convert the first two actions into functions (the third already was) and
call them conditionally as postfuncs.
Also skip the signing of U-Boot files if the platform is not based on
iMX6 family.

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

This is the case, for example, of:

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

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

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-05-10 17:33:23 +02:00
Hector Palacios 39dd22c471 trustfence: add recipe to install STM sign tools
This recipe downloads a tarball that contains the binaries:
- STM32MP_KeyGen_CLI
- STM32MP_SigningTool_CLI

from ST Microelectronics STM32CubeProgrammer v2.12.0.

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

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-05-10 17:33:23 +02:00
Arturo Buzarra 30ce41ad5b meta-digi: fix binary names in Google Coral recipes
Commit 065cf3e9 ("kirkstone migration: general update to the new override
syntax") incorrectly renamed binaries in a massive change. This commit restores
the binary names to the original.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-05-10 09:11:19 +02:00
Gabriel Valcazar 163b229beb Move Coral-related recipes to dynamic Freescale layer
These are recipes we created to support Google Coral on i.MX platforms. ST's
machine learning layer provides similar recipes, so to avoid conflicts, move
the recipes meant for i.MX platforms to a dynamic layer.

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

Signed-off-by: Gabriel Valcazar <gabriel.valcazar@digi.com>
2023-05-08 13:00:59 +02:00
Hector Palacios 0e61017da8 libubootenv: add fall-back function to read HWID from nvmem
The HWID is populated on the device tree by the boot loader.
This can be used as a key modifier when encrypting the U-Boot
environment. Some old U-Boot versions however, did not populate
the HWID on the device tree. When updating firmware from an
old version to a new one, the library may not be able to read
the HWID from the DT and then be unable to unencrypt the
environment.

This patch implements a fall-back function to read the HWID
directly from the nvmem node (sysfs). Implementation has been
done for ccimx6 family only, where this case of old U-Boot
can happen.

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

https://onedigi.atlassian.net/browse/DEL-8444
(cherry picked from commit 222a91f213)
2023-04-19 09:39:43 +02:00
Tatiana Leon 8718734b46 ccimx6: ccimx6ul: ccimx8m: ccimx8x: ccimx93: install: only install system A by default, add an option to install B
https://onedigi.atlassian.net/browse/DEL-8232

Signed-off-by: Tatiana Leon <Tatiana.Leon@digi.com>
2023-04-18 17:49:03 +02:00
Hector Palacios 222a91f213 libubootenv: add fall-back function to read HWID from nvmem
The HWID is populated on the device tree by the boot loader.
This can be used as a key modifier when encrypting the U-Boot
environment. Some old U-Boot versions however, did not populate
the HWID on the device tree. When updating firmware from an
old version to a new one, the library may not be able to read
the HWID from the DT and then be unable to unencrypt the
environment.

This patch implements a fall-back function to read the HWID
directly from the nvmem node (sysfs). Implementation has been
done for ccimx6 family only, where this case of old U-Boot
can happen.

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

https://onedigi.atlassian.net/browse/DEL-8444
2023-04-17 08:48:52 +02:00
Javier Viguera 4ef4794f20 Merge tag 'dey-4.0-r2.2' into dey-4.0/master
Digi Embedded Yocto 4.0-r2.2

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-03-20 11:05:11 +01:00
Francisco Gil 27414d3420 meta-digi: revert revisions to AUTOREV
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-03-10 15:48:01 +01:00
Francisco Gil b59f31c114 meta-digi: update revisions for dey-4.0-r2.2
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2023-03-10 15:46:34 +01:00
Arturo Buzarra 358a7cc414 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-08 18:59:27 +01:00
Arturo Buzarra de3ba53ef3 meta-digi: update revisions for dey-4.0-r2.1
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-08 18:58:58 +01:00
Arturo Buzarra e7b0a7affc cmp15: apply DT overlay for the DVK v1 on boards without board_version defined
This commit modifies the boot script condition to apply the overlay for DVK v1
on boards without the board_version variable defined.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-08 10:57:05 +01:00
Arturo Buzarra 0773e31fd4 ccmp15: add DT overlay for the DVK v1
This commit adds an overlay for DVK v1 and modifies the boot script to apply it
based on the board_version variable.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-07 13:59:29 +01:00
Gonzalo Ruiz 732f8cb0cf u-boot-dey: install fip-b unconditionally in install scripts
Partitions 'fip-a' and 'fip-b' are redundant at the moment. They are
not currently part of the dualboot system. In consequence, program
both partitons unconditionally during the install process.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2023-03-07 12:02:28 +01:00
Arturo Buzarra 430955a584 firmware-murata: update firmware binaries to version imx-kirkstone-fafnir_r1.0
This commit updates the required firmware binaries for Bluetooth and Wireless
interfaces, based on the Murata release imx-kirkstone-fafnir_r1.0 that matches
with the Cypress Linux WiFi Driver (FMAC) release v5.15.58-2023_0222 (Wireless
firmware v13.10.246.300)

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-01 11:12:36 +01:00
Arturo Buzarra e598915b34 switch to building from maintenance branches for dey-4.0
https://onedigi.atlassian.net/browse/DEL-8388

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2023-03-01 11:12:36 +01:00
Arturo Buzarra aae03774ab Merge branch 'dey-4.0/master' into dey-4.0/maint 2023-02-27 16:34:53 +01:00
Javier Viguera adbb511484 meta-digi: remove True option to getVar
True is the default since long time ago, and thus not necessary. This
follows similar changes done in other layers.

Command used:

sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' | cut -d':' -f1 | sort -u)

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-24 16:24:47 +01:00
Gonzalo Ruiz 93f90d63e7 firmware_qualcomm: ccimx6ul: fix MCS7 drop and adjust 5GHz TxPower
Set parameter 'greentxConfig__0_0=0x2' to use the optimal TxPower
in MCS7 data rates, improving performance.

Also, adjust maximum TxPower in the 5GHz band to account for
output power tolerances.

The new BDF is:

- bdwlan30_US.bin (53072f8af541a49e4ed9c22698b1912f)

https://onedigi.atlassian.net/browse/CC6UL-1302
https://onedigi.atlassian.net/browse/DEL-8364

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2023-02-24 12:51:04 +01:00
Javier Viguera 5ba05c91e0 alsa-state: add configuration for ccimx93
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-02-21 12:23:28 +01:00
Hector Palacios fbc92e45b3 trustfence-cst: fix issue with binutils 2.38 objcopy
There is an issue in binutils 2.38 objcopy when called
with '--weaken' flag:

  https://sourceware.org/bugzilla/show_bug.cgi?id=27493

To circumvent it, patch the trustfence-cst config.mk to
call specifically with 'weaken-symbol err_msg' which is
apparently the only symbol that's overriden by the code.

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

https://onedigi.atlassian.net/browse/DEL-8033
https://onedigi.atlassian.net/browse/DEL-8332
(cherry picked from commit 4e361ff449)
2023-01-30 12:21:41 +01:00
Hector Palacios 4e361ff449 trustfence-cst: fix issue with binutils 2.38 objcopy
There is an issue in binutils 2.38 objcopy when called
with '--weaken' flag:

  https://sourceware.org/bugzilla/show_bug.cgi?id=27493

To circumvent it, patch the trustfence-cst config.mk to
call specifically with 'weaken-symbol err_msg' which is
apparently the only symbol that's overriden by the code.

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

https://onedigi.atlassian.net/browse/DEL-8033
https://onedigi.atlassian.net/browse/DEL-8332
2023-01-30 12:20:12 +01:00
Javier Viguera 753424ae91 ccimx93: add support for MCA dtb overlay
On boot, it is enabled dynamically depending on MCA setting in HWID.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-23 17:33:31 +01:00
Javier Viguera aab5eda5c2 meta-digi-arm: add kernel parameter for single boot logo
Number of bootup logos is now configured using fbcon=logo-count parameter,
so use it instead of our deprecated custom code in the kernel.

For backwards compatibility, we add this parameter in the u-boot boot
script for all platforms but the ccimx93, where this is directly handled
by u-boot (v2022.04).

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-23 17:33:31 +01:00
Hector Palacios 87ef63f7c3 Revert "u-boot-dey: remove fip 'optee' suffix from install scripts"
This reverts commit 2bdfdc92e1.

This suffix was removed on error. The artifact does have the suffix.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2023-01-18 10:55:47 +01:00
Mike Engel a0fa0d3812 install: add option to install system B for dual boot
https://onedigi.atlassian.net/browse/DEL-8232

Signed-off-by: Mike Engel <Mike.Engel@digi.com>
2023-01-16 09:59:22 +01:00
Gonzalo Ruiz 2bdfdc92e1 u-boot-dey: remove fip 'optee' suffix from install scripts
https://onedigi.atlassian.net/browse/DEL-8268

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2023-01-10 13:26:39 +01:00
Javier Viguera 60e499f423 u-boot-dey: customize boot script for ccimx93
This was a verbatim copy of the one for the ccimx8mm.

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

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-03 17:57:24 +01:00
Javier Viguera e5bbc04341 u-boot-dey: define build path for external build
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2023-01-03 17:53:40 +01:00
Hector Palacios c21dac88a6 uboot: ccmp1: remove deprecated FIP_UBOOT_CONFIG
This variable was removed from meta-st-stm32mp so we need to get rid of it
in meta-digi, too.

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

https://onedigi.atlassian.net/browse/DEL-8268
2023-01-02 17:24:59 +01:00
Javier Viguera 9713cbaf13 u-boot-dey: enable version 2022.04 for ccimx93
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-12-22 12:37:46 +01:00
Javier Viguera eeb5ffd4d4 u-boot-dey: rework installation of firmware deploying scripts
Rework the "build_uboot_scripts" to prevent changing the templates in
the WORKDIR, as those are part of the SRC_URI. Instead, change the
deployed scripts by using "sed" and redirection.

Also, removed UBOOT_HAS_FASTBOOT altogether, as there is no platform
that does not support fastboot.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-12-22 12:37:46 +01:00
Javier Viguera 9d40092ce5 meta-digi: rework u-boot support
Instead of overriding the whole do_compile function, just to reconfigure
u-boot for Trustfence, create a do_configure pre-function that takes care
of that. This allows the removal of duplicated code.

Also, disable the generation of u-boot environment artifacts. We are
not using them and so many u-boot artifacts in the deploy directory
are confusing.

Finally, adjust the names of the TF u-boot artifacts in the do_deploy
append function.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-12-22 12:37:46 +01:00
Javier Viguera cfa581c958 meta-digi: add override files for ccimx93
These are just a verbatim copy of the ccimx8mm ones, so the project is
buildable. This file list should be revisited and adapted for the
ccimx93.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-12-20 14:50:54 +01:00
Javier Viguera e9ced229a8 meta-digi-arm: add recipe for u-boot v2022.04
At the moment disabled by default (DEFAULT_PREFERENCE = "-1")

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-12-01 16:51:10 +01:00
Javier Viguera f165e77194 u-boot-dey: cosmetic, rename include file
Follow the pattern Yocto uses for most of the include files for recipes.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-12-01 16:51:10 +01:00
Javier Viguera db5067371e meta-digi: get rid of ccimx8mp-dvk
Platform not supported.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-30 18:06:57 +01:00
Javier Viguera 83a3aa22e4 Merge tag 'dey-4.0-r1.2' into dey-4.0/master
Digi Embedded Yocto 4.0-r1.2

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-30 15:01:06 +01:00
Arturo Buzarra 93a4dd2db5 meta-digi: revert revisions to AUTOREV
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-29 16:35:27 +01:00
Arturo Buzarra 2ca5dfe31e meta-digi: update revisions for dey-4.0-r1.2
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-29 16:34:56 +01:00
Gonzalo Ruiz d9563ea54e u-boot-dey: add config to select whether to build the scripts
Add configuration 'BUILD_UBOOT_SCRIPTS' to select whether to build the
boot and install scripts or not, and set it to 'true' by default.

This allows removing the scripts on upper Yocto layers.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2022-11-22 15:38:49 +01:00
Francisco Gil 6ffbbb390a dualboot: get rid of DUALBOOT_ENABLED configuration
All the dualboot logic will be checked in run time.
To do this:
* Include the altboot.src by default in all the images
* Create a post installation script to change the
firmware_download_path in the cloud connector
* Unify the swupdate file descriptor for dual and single boot

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-22 11:42:39 +01:00
Arturo Buzarra 0efbb07107 meta-digi: branch to dey-4.0/maint
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-21 17:44:48 +01:00
Hector Palacios c70917b24c uuu installer: increase the timeout for rootfs update
Increase the timeout from 90 to 120s since it's a large image
and it may take more time on different NANDs.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2022-11-18 12:45:26 +01:00
Hector Palacios 2cf902f8d7 installer scripts: cover case where U-Boot env does not exist
The U-Boot environment resides on a UBI volume. The uuu script
relies on the environment to save part of the commands that
U-Boot needs to execute after reboot in the middle of the
installation. If the UBI volume 'uboot_config' does not exist
the installer fails.

This commit:
- Creates a function -on the uuu script only- for obtaining
  the result of running any U-Boot command (0=success, 1=error).
- Checks the existance of 'uboot_config' volume.
- Runs 'ubivolscript' script to create the UBI volumes layout
  that generates the environment volume if it doesn't exist.
- Increases the timeout for running the 'ubivolscript' since
  there are occasions in which 'ubi part' (which is part of the
  script) takes more time (if it cannot find the fastmap).

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2022-11-18 12:45:26 +01:00
Arturo Buzarra d8efac02bf u-boot-dey: move dualboot boot script to common ccmp1 folder to fix ccmp13 build
By default ccmp1 platforms have dualboot mode by default, however the required
boot script was added to ccmp15 platform only, so this commit fixes it.

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-11-15 16:21:25 +01:00
Francisco Gil b7cd473b39 dualboot: add missing altboot.txt needed by dualboot
Once you enabled dualboot in the ccmp15 you need this file
for the altbootcmd.

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-11-15 07:55:16 +01:00
Gonzalo Ruiz b1ee0307cc u-boot-dey: ccmp1: update install scripts for CCMP1 platform
Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2022-11-11 09:39:28 +01:00
Gonzalo Ruiz 44a05a819e u-boot-dey: fix install scripts for dual boot
The first time the 'dualboot' variable is tested it is directly run in
the script and doesn't need to escape the special characters.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2022-11-10 14:09:25 +01:00
Gonzalo Ruiz 0e221d2ce3 u-boot-dey: ccmp1/cc6ul: ensure 'rootfsvol' value in every case
When Dual Boot is not enabled, 'rootfsvol' variable must point to the
single boot system rootfs partition 'rootfs'.

Explicitly set this value. Otherwise the script relays on the default
rootfsvol value, which may be a Dual Boot partition.

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2022-11-10 11:19:52 +01:00
Isaac Hermida c7f2960b4e meta-digi: revert revisions to AUTOREV
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-11-04 12:38:21 +01:00
Isaac Hermida dad34f1006 meta-digi: update revisions for dey-4.0-r1.1
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-11-03 18:21:46 +01:00
Javier Viguera 3a147dc6cd trustfence-cst: update openssl to version 1.1.1s
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-11-03 10:34:55 +01:00
Hector Palacios 1105a8fecd dualboot: move contents of meta-digi-dualboot layer into meta-digi as a class
- create dualboot.bbclass that
  - sets DUALBOOT_ENABLED variable
  - defines partition names and function for changing the sw-description
    for swupdate
- move files from layer into meta-digi

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

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

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
2022-10-26 11:29:23 +02:00
Hector Palacios e346958131 ccmp1: remove usage of $singlemtdsys variable
On the CCMP1 SOMs, we only consider a single system partition called UBI,
with many UBI volumes.
The variable 'singlemtdsys' allowed to change between this and
a system with multiple MTD partitions with one UBI volume each
(old approach on CC6UL).
This commit removes the variable and uses the logic as if it was set.

Signed-off-by: Hector Palacios <hector.palacios@digi.com>
2022-10-25 16:57:02 +02:00
Gonzalo Ruiz 4a97851d4e firmware-murata: update 2AE NVRAM file
Use the latest 2AE NVRAM file from the master branch. This file improves
the EVM performance for the 2AE murata module.

MD5SUM:
- cyfmac4373-sdio.2AE.txt: 6301804650847946c79797387eda9c7a

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

Signed-off-by: Gonzalo Ruiz <Gonzalo.Ruiz@digi.com>
2022-10-20 16:06:09 +02:00
Arturo Buzarra af034aa971 u-boot-dey: ccmp1: add dualboot support to boot script
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-20 11:42:25 +02:00
Arturo Buzarra d4544a7f43 libubootenv: adapt recipe to platforms with bootloader environment in UBI volume
This commit adds support to read bootloader environment from a UBI volume.

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-20 09:32:24 +02:00
Arturo Buzarra b3d46473df ccmp1: add support to DT overlays for ccmp1 platforms
Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-10-10 09:44:14 +02:00
Isaac Hermida 877e501076 meta-digi: revert revisions to AUTOREV
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-10-04 17:03:57 +02:00
Isaac Hermida 5209a3db06 meta-digi: update revisions for dey-4.0-r1.beta2
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
2022-10-04 14:26:53 +02:00
Mike Engel 9b0f79c02f meta-digi: firmware-qualcomm: add Bluetooth Vulnerability CVE-2019-9506 resolution
This commit adds Bluetooth Vulnerability CVE-2019-9506
resolution to the firmware file.

CVE-2019-9506 is a Bluetooth key negotiation vulnerability.

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

https://onedigi.atlassian.net/browse/DEL-7134
2022-10-03 13:37:10 +02:00
Isaac Hermida 29b008b790 qualcomm wifi: conditionally support using firmware with CCX tags
Co-authored-by: Javier Viguera <javier.viguera@digi.com>

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-30 15:28:10 +02:00
Isaac Hermida cad9ab7d1d firmware-qualcomm: fix overrides syntax
Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-30 14:47:02 +02:00
Isaac Hermida 6a21f74dd5 firmware-qualcomm: revert back to fw used by driver qcacld-2.0
Reset the FW files to release r00006.3.470144.2a

Verbatim copy of the recipes in DEY-3.2, using command:
git restore -s dey-3.2/master -- meta-digi-arm/recipes-bsp/firmware-qualcomm

Signed-off-by: Isaac Hermida <isaac.hermida@digi.com>
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-30 14:47:02 +02:00
Arturo Buzarra 0380161f02 meta-digi: generalize recipes to support ConnectCore MP13 DVK platform
https://onedigi.atlassian.net/browse/DEL-8078

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-09-15 16:14:30 +02:00
Arturo Buzarra 1dc17d0d81 uboot: add support to ConnectCore MP13 DVK platform
Add initial support cloned from ccmp15-dvk

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

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-09-15 16:14:30 +02:00
Arturo Buzarra 91baf1643a u-boot-dey: add recipe for v2021.10
This commit moves the ccmp15 platform to build U-Boot v2021.10

Signed-off-by: Arturo Buzarra <arturo.buzarra@digi.com>
2022-09-07 13:44:36 +02:00
Javier Viguera 69f4956f7a u-boot: cc6ul: install script: increase rootfs programming timeout
For the CC6UL 1GB flash variant, the programming of the rootfs exceeds
the current 90 secs timeout, giving following failure:

[Bulk(R):LIBUSB_ERROR_TIMEOUT] fb[-t 90000]: ucmd update rootfs ram ${fastboot_buffer} ${fastboot_bytes} -e
Error: Bulk(R):LIBUSB_ERROR_TIMEOUT

Increase the timeout to prevent the failure.

Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-05 18:22:21 +02:00
Javier Viguera f5964b0f97 meta-digi: revert revisions to AUTOREV
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-02 17:37:46 +02:00
Javier Viguera 33c7d69b3e meta-digi: update revisions for dey-4.0-r1.beta1
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2022-09-02 17:34:14 +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 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 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 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
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 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 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 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
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 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 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 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 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 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
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 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
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 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 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 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 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 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 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
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
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 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
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
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 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 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 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
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
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 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 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
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
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
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
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 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
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 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
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 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 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 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 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 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
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
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